Skip to content

Commit 0d43c25

Browse files
committed
add to_dual
1 parent cd0e4dd commit 0d43c25

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

Mathlib/Order/ConditionallyCompleteLattice/Indexed.lean

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,16 @@ theorem IsGLB.ciInf_set_eq {s : Set β} {f : β → α} (H : IsGLB (f '' s) a) (
136136
IsGLB.csInf_eq (image_eq_range f s ▸ H) (image_eq_range f s ▸ Hne.image f)
137137

138138
/-- The indexed supremum of a function is bounded above by a uniform bound -/
139+
@[to_dual le_ciInf /-- The indexed minimum of a function is bounded below by a uniform
140+
lower bound -/]
139141
theorem ciSup_le [Nonempty ι] {f : ι → α} {c : α} (H : ∀ x, f x ≤ c) : iSup f ≤ c :=
140142
csSup_le (range_nonempty f) (by rwa [forall_mem_range])
141143

144+
@[to_dual le_ciInf₂]
142145
theorem ciSup₂_le [Nonempty ι] [∀ i, Nonempty (κ i)] {f : ∀ i, κ i → α}
143146
(h : ∀ i j, f i j ≤ a) : ⨆ (i) (j), f i j ≤ a :=
144147
ciSup_le fun i ↦ ciSup_le <| h i
145148

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
149-
150149
/-- The indexed supremum of a function is bounded below by the value taken at one point -/
151150
theorem le_ciSup {f : ι → α} (H : BddAbove (range f)) (c : ι) : f c ≤ iSup f :=
152151
le_csSup H (mem_range_self _)
@@ -185,10 +184,6 @@ theorem le_ciSup_set {f : β → α} {s : Set β} (H : BddAbove (f '' s)) {c :
185184
theorem ciInf_mono {f g : ι → α} (B : BddBelow (range f)) (H : ∀ x, f x ≤ g x) : iInf f ≤ iInf g :=
186185
ciSup_mono (α := αᵒᵈ) B H
187186

188-
/-- The indexed minimum of a function is bounded below by a uniform lower bound -/
189-
theorem le_ciInf [Nonempty ι] {f : ι → α} {c : α} (H : ∀ x, c ≤ f x) : c ≤ iInf f :=
190-
ciSup_le (α := αᵒᵈ) H
191-
192187
/-- The indexed infimum of a function is bounded above by the value taken at one point -/
193188
theorem ciInf_le {f : ι → α} (H : BddBelow (range f)) (c : ι) : iInf f ≤ f c :=
194189
le_ciSup (α := αᵒᵈ) H c
@@ -387,15 +382,12 @@ When `iInf f < a`, there is an element `i` such that `f i < a`.
387382
theorem exists_lt_of_ciInf_lt [Nonempty ι] {f : ι → α} (h : iInf f < a) : ∃ i, f i < a :=
388383
exists_lt_of_lt_ciSup (α := αᵒᵈ) h
389384

385+
@[to_dual exists_lt_of_ciInf₂_lt]
390386
theorem exists_lt_of_lt_ciSup₂ [Nonempty ι] [∀ i, Nonempty (κ i)]
391387
{f : ∀ i, κ i → α} (h : a < ⨆ (i) (j), f i j) : ∃ i j, a < f i j := by
392388
contrapose! h
393389
exact ciSup₂_le h
394390

395-
theorem exists_lt_of_ciInf₂_lt [Nonempty ι] [∀ i, Nonempty (κ i)]
396-
{f : ∀ i, κ i → α} (h : ⨅ (i) (j), f i j < a) : ∃ i j, f i j < a :=
397-
exists_lt_of_lt_ciSup₂ (α := αᵒᵈ) h
398-
399391
theorem lt_ciSup_iff [Nonempty ι] {f : ι → α} (hb : BddAbove (range f)) :
400392
a < iSup f ↔ ∃ i, a < f i := by
401393
simpa only [mem_range, exists_exists_eq_and] using lt_csSup_iff hb (range_nonempty _)

0 commit comments

Comments
 (0)