Skip to content

Commit 4440dcf

Browse files
committed
suggestions
1 parent ebdea2e commit 4440dcf

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Mathlib/Order/ConditionallyCompleteLattice/Indexed.lean

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ theorem ciSup_le [Nonempty ι] {f : ι → α} {c : α} (H : ∀ x, f x ≤ c) :
141141

142142
theorem ciSup₂_le [Nonempty ι] [∀ i, Nonempty (κ i)] {f : ∀ i, κ i → α}
143143
(h : ∀ i j, f i j ≤ a) : ⨆ (i) (j), f i j ≤ a :=
144-
ciSup_le fun i => ciSup_le <| h i
144+
ciSup_le fun i ↦ ciSup_le <| h i
145+
146+
theorem le_ciInf₂ [Nonempty ι] [∀ i, Nonempty (κ i)] {f : ∀ i, κ i → α} (h : ∀ i j, a ≤ f i j) :
147+
a ≤ ⨅ (i) (j), f i j :=
148+
ciSup₂_le (α := αᵒᵈ) h
145149

146150
/-- The indexed supremum of a function is bounded below by the value taken at one point -/
147151
theorem le_ciSup {f : ι → α} (H : BddAbove (range f)) (c : ι) : f c ≤ iSup f :=
@@ -185,10 +189,6 @@ theorem ciInf_mono {f g : ι → α} (B : BddBelow (range f)) (H : ∀ x, f x
185189
theorem le_ciInf [Nonempty ι] {f : ι → α} {c : α} (H : ∀ x, c ≤ f x) : c ≤ iInf f :=
186190
ciSup_le (α := αᵒᵈ) H
187191

188-
theorem le_ciInf₂ [Nonempty ι] [∀ i, Nonempty (κ i)] {f : ∀ i, κ i → α} (h : ∀ i j, a ≤ f i j) :
189-
a ≤ ⨅ (i) (j), f i j :=
190-
le_ciInf fun i => le_ciInf <| h i
191-
192192
/-- The indexed infimum of a function is bounded above by the value taken at one point -/
193193
theorem ciInf_le {f : ι → α} (H : BddBelow (range f)) (c : ι) : iInf f ≤ f c :=
194194
le_ciSup (α := αᵒᵈ) H c
@@ -381,17 +381,17 @@ theorem exists_lt_of_lt_ciSup [Nonempty ι] {f : ι → α} (h : b < iSup f) :
381381
let ⟨_, ⟨i, rfl⟩, h⟩ := exists_lt_of_lt_csSup (range_nonempty f) h
382382
⟨i, h⟩
383383

384-
theorem exists_lt_of_lt_ciSup₂ [Nonempty ι] [∀ i, Nonempty (κ i)]
385-
{f : ∀ i, κ i → α} (h : a < ⨆ (i) (j), f i j) : ∃ i j, a < f i j := by
386-
contrapose! h
387-
exact ciSup₂_le h
388-
389384
/-- Indexed version of `exists_lt_of_csInf_lt`.
390385
When `iInf f < a`, there is an element `i` such that `f i < a`.
391386
-/
392387
theorem exists_lt_of_ciInf_lt [Nonempty ι] {f : ι → α} (h : iInf f < a) : ∃ i, f i < a :=
393388
exists_lt_of_lt_ciSup (α := αᵒᵈ) h
394389

390+
theorem exists_lt_of_lt_ciSup₂ [Nonempty ι] [∀ i, Nonempty (κ i)]
391+
{f : ∀ i, κ i → α} (h : a < ⨆ (i) (j), f i j) : ∃ i j, a < f i j := by
392+
contrapose! h
393+
exact ciSup₂_le h
394+
395395
theorem lt_ciSup_iff [Nonempty ι] {f : ι → α} (hb : BddAbove (range f)) :
396396
a < iSup f ↔ ∃ i, a < f i := by
397397
simpa only [mem_range, exists_exists_eq_and] using lt_csSup_iff hb (range_nonempty _)
@@ -493,7 +493,7 @@ theorem ciSup_le' {f : ι → α} {a : α} (h : ∀ i, f i ≤ a) : ⨆ i, f i
493493
csSup_le' <| forall_mem_range.2 h
494494

495495
theorem ciSup₂_le' {f : ∀ i, κ i → α} (h : ∀ i j, f i j ≤ a) : ⨆ (i) (j), f i j ≤ a :=
496-
ciSup_le' fun i => ciSup_le' <| h i
496+
ciSup_le' fun i ciSup_le' <| h i
497497

498498
@[simp]
499499
theorem ciSup_bot : ⨆ _ : ι, (⊥ : α) = ⊥ := le_bot_iff.mp (ciSup_le' fun _ ↦ bot_le)

0 commit comments

Comments
 (0)