Skip to content

Commit 0e77245

Browse files
committed
add a counterexample to the docstring of ciSup_exists_le
1 parent 53d509d commit 0e77245

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Mathlib/Order/ConditionallyCompleteLattice/Indexed.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ 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+
/-- Note that equality doesn't always hold, for example for `ι := ℤ, p := (· = 0), f := fun _ ↦ -1`
364+
the LHS is `-1` but the RHS is `-1 ⊔ sSup ∅ = -1 ⊔ 0 = 0`. -/
363365
theorem ciSup_exists_le {p : ι → Prop} {f : Exists p → α} : ⨆ ih, f ih ≤ ⨆ (i) (h), f ⟨i, h⟩ := by
364366
by_cases! h : Exists p
365367
· have : Nonempty <| Exists p := ⟨h⟩

0 commit comments

Comments
 (0)