Skip to content

Commit aaa8608

Browse files
committed
feat(Order/ConditionallyCompleteLattice/Indexed): LE version of ciSup_or' for ConditionallyCompleteLattice
1 parent 9987a7e commit aaa8608

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Mathlib/Order/ConditionallyCompleteLattice/Indexed.lean

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,11 @@ lemma ciInf_image {ι ι' : Type*} {s : Set ι} {f : ι → ι'} {g : ι' → α
360360
⨅ i ∈ (f '' s), g i = ⨅ x ∈ s, g (f x) :=
361361
ciSup_image (α := αᵒᵈ) hf hg'
362362

363+
@[to_dual le_ciInf_or]
364+
lemma ciSup_or_le (p q : Prop) (f : p ∨ q → α) :
365+
⨆ (h : p ∨ q), f h ≤ (⨆ h : p, f (.inl h)) ⊔ (⨆ h : q, f (.inr h)) := by
366+
by_cases hp : p <;> simp [hp]
367+
363368
end ConditionallyCompleteLattice
364369

365370
section ConditionallyCompleteLinearOrder
@@ -495,12 +500,14 @@ theorem ciSup_mono' {ι'} {f : ι → α} {g : ι' → α} (hg : BddAbove (range
495500
(h : ∀ i, ∃ i', f i ≤ g i') : iSup f ≤ iSup g :=
496501
ciSup_le' fun i => Exists.elim (h i) (le_ciSup_of_le hg)
497502

498-
lemma ciSup_or' (p q : Prop) (f : p ∨ q → α) :
503+
lemma ciSup_or (p q : Prop) (f : p ∨ q → α) :
499504
⨆ (h : p ∨ q), f h = (⨆ h : p, f (.inl h)) ⊔ ⨆ h : q, f (.inr h) := by
500505
by_cases hp : p <;>
501506
by_cases hq : q <;>
502507
simp [hp, hq]
503508

509+
@[deprecated (since := "2026-05-03")] alias ciSup_or' := ciSup_or
510+
504511
end ConditionallyCompleteLinearOrderBot
505512

506513
namespace GaloisConnection

0 commit comments

Comments
 (0)