@@ -5,7 +5,7 @@ Authors: Christopher Hoskin, Violeta Hernández Palacios
55-/
66module
77
8- public import Mathlib.Data.Fintype.Order
8+ public import Mathlib.Data.Set.Finite.Basic
99public import Mathlib.Order.Antisymmetrization
1010public import Mathlib.Order.CompleteLattice.Defs
1111public import Mathlib.Order.UpperLower.Basic
@@ -292,19 +292,25 @@ end Preorder
292292section PartialOrder
293293variable [PartialOrder α]
294294
295- theorem dirSupClosed_singleton (a : α) : DirSupClosed {a} := by
295+ theorem DirSupClosed.singleton (a : α) : DirSupClosed {a} := by
296296 intro d hda hdn _ b hb
297297 rw [hdn.subset_singleton_iff] at hda
298298 subst hda
299299 exact mem_singleton_of_eq (hb.unique isLUB_singleton)
300300
301- theorem dirSupClosedOn_singleton (a : α) : DirSupClosedOn D {a} :=
302- (dirSupClosed_singleton a).dirSupClosedOn
301+ @ [deprecated (since := "2026-05-22" )] alias dirSupClosed_singleton := DirSupClosed.singleton
302+
303+ theorem DirSupClosedOn.singleton (a : α) : DirSupClosedOn D {a} :=
304+ (DirSupClosed.singleton a).dirSupClosedOn
305+
306+ @ [deprecated (since := "2026-05-22" )] alias dirSupClosedOn_singleton := DirSupClosedOn.singleton
303307
304308theorem Set.Finite.dirSupClosed (hs : s.Finite) : DirSupClosed s := by
305- intro t ht ht₀ ht₁ a ha
306- obtain ⟨b, hbt, hb⟩ := ht₁.finite_le ht₀ (hs.subset ht)
307- exact ht <| ha.unique ⟨hb, fun x hx ↦ hx hbt⟩ ▸ hbt
309+ induction s, hs using Set.Finite.induction_on with
310+ | empty => exact .empty
311+ | insert has _ hs₁ =>
312+ rw [Set.insert_eq]
313+ exact (DirSupClosed.singleton _).union hs₁
308314
309315theorem dirSupClosed_range_nat {f : ℕ → α} (hf : Monotone f) (hf' : IsCofinal (.range f)) :
310316 DirSupClosed (range f) := by
0 commit comments