Skip to content

Commit 1aacdef

Browse files
committed
chore: clean up sSup and sInf usage (#35297)
1 parent 2d2989a commit 1aacdef

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

Mathlib/Algebra/Group/Submonoid/Basic.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ theorem coe_iInf {ι : Sort*} {S : ι → Submonoid M} : (↑(⨅ i, S i) : Set
9595
@[to_additive /-- The `AddSubmonoid`s of an `AddMonoid` form a complete lattice. -/]
9696
instance : CompleteLattice (Submonoid M) :=
9797
{ (completeLatticeOfInf (Submonoid M)) fun _ =>
98-
IsGLB.of_image (f := (SetLike.coe : Submonoid M → Set M))
99-
(@fun S T => show (S : Set M) ≤ T ↔ S ≤ T from SetLike.coe_subset_coe)
100-
isGLB_biInf with
98+
.of_image SetLike.coe_subset_coe isGLB_biInf with
10199
le := (· ≤ ·)
102100
lt := (· < ·)
103101
bot := ⊥

Mathlib/CategoryTheory/Category/Pairwise.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def cocone : Cocone (diagram U) where
174174
def coconeIsColimit : IsColimit (cocone U) where
175175
desc s := homOfLE
176176
(by
177-
apply CompleteSemilatticeSup.sSup_le
177+
apply sSup_le
178178
rintro _ ⟨j, rfl⟩
179179
exact (s.ι.app (single j)).le)
180180

Mathlib/CategoryTheory/Limits/Lattice.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,21 +170,21 @@ variable {α : Type u} [CompleteLattice α] {J : Type w} [Category.{w'} J]
170170
def limitCone (F : J ⥤ α) : LimitCone F where
171171
cone :=
172172
{ pt := iInf F.obj
173-
π := { app := fun _ => homOfLE (CompleteLattice.sInf_le _ _ (Set.mem_range_self _)) } }
173+
π := { app := fun _ => homOfLE (sInf_le (Set.mem_range_self _)) } }
174174
isLimit :=
175175
{ lift := fun s =>
176-
homOfLE (CompleteLattice.le_sInf _ _ (by rintro _ ⟨j, rfl⟩; exact (s.π.app j).le)) }
176+
homOfLE (le_sInf (by rintro _ ⟨j, rfl⟩; exact (s.π.app j).le)) }
177177

178178
/-- The colimit cocone over any functor into a complete lattice.
179179
-/
180180
@[simps]
181181
def colimitCocone (F : J ⥤ α) : ColimitCocone F where
182182
cocone :=
183183
{ pt := iSup F.obj
184-
ι := { app := fun _ => homOfLE (CompleteLattice.le_sSup _ _ (Set.mem_range_self _)) } }
184+
ι := { app := fun _ => homOfLE (le_sSup (Set.mem_range_self _)) } }
185185
isColimit :=
186186
{ desc := fun s =>
187-
homOfLE (CompleteLattice.sSup_le _ _ (by rintro _ ⟨j, rfl⟩; exact (s.ι.app j).le)) }
187+
homOfLE (sSup_le (by rintro _ ⟨j, rfl⟩; exact (s.ι.app j).le)) }
188188

189189
-- see Note [lower instance priority]
190190
instance (priority := 100) hasLimits_of_completeLattice : HasLimitsOfSize.{w, w'} α where

Mathlib/Combinatorics/SimpleGraph/Acyclic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ theorem exists_maximal_isAcyclic_of_le_isAcyclic
125125
{H : SimpleGraph V} (hHG : H ≤ G) (hH : H.IsAcyclic) :
126126
∃ H' : SimpleGraph V, H ≤ H' ∧ Maximal (fun H => H ≤ G ∧ H.IsAcyclic) H' := by
127127
refine zorn_le_nonempty₀ {H | H ≤ G ∧ H.IsAcyclic} (fun c hcs hc y hy ↦ ?_) _ ⟨hHG, hH⟩
128-
refine ⟨sSup c, ⟨?_, ?_⟩, CompleteLattice.le_sSup c
128+
refine ⟨sSup c, ⟨?_, ?_⟩, fun _ ↦ le_sSup
129129
· grind [sSup_le_iff]
130130
· exact isAcyclic_sSup_of_isAcyclic_directedOn c (by grind) hc.directedOn
131131

Mathlib/Order/Atoms.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ theorem exists_mem_le_of_le_sSup_of_isAtom {α} [CompleteAtomicBooleanAlgebra α
693693
lemma eq_setOf_le_sSup_and_isAtom {α} [CompleteAtomicBooleanAlgebra α] {S : Set α}
694694
(hS : ∀ a ∈ S, IsAtom a) : S = {a | a ≤ sSup S ∧ IsAtom a} := by
695695
ext a
696-
refine ⟨fun h => ⟨CompleteLattice.le_sSup S a h, hS a h⟩, fun ⟨hale, hatom⟩ => ?_⟩
696+
refine ⟨fun h => ⟨le_sSup h, hS a h⟩, fun ⟨hale, hatom⟩ => ?_⟩
697697
obtain ⟨b, hbS, hba⟩ := (IsAtom.le_sSup hatom).mp hale
698698
obtain rfl | rfl := (hS b hbS).le_iff.mp hba
699699
· simpa using hatom.1

Mathlib/Topology/Order/HullKernel.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def gi (hG : OrderGenerates T) : GaloisInsertion (α := Set T) (β := αᵒᵈ)
198198
rw [OrderDual.le_toDual, kernel, kernel]
199199
exact sInf_le_sInf <| image_val_mono fun c hcS => by
200200
rw [hull, mem_preimage, mem_Ici]
201-
exact CompleteSemilatticeInf.sInf_le _ _ (mem_image_of_mem Subtype.val hcS)
201+
exact sInf_le (mem_image_of_mem Subtype.val hcS)
202202

203203
lemma kernel_hull (hG : OrderGenerates T) (a : α) : kernel (hull T a) = a := by
204204
conv_rhs => rw [← OrderDual.ofDual_toDual a, ← (gi hG).l_u_eq a]
@@ -216,7 +216,7 @@ lemma closedsGC_closureOperator [TopologicalSpace α] [IsLower α]
216216
simp only [GaloisConnection.closureOperator_apply, Closeds.coe_closure, closure, le_antisymm_iff]
217217
constructor
218218
· exact fun ⦃a⦄ a ↦ a (hull T (kernel S)) ⟨(isClosed_iff hT).mpr ⟨kernel S, rfl⟩,
219-
image_subset_iff.mp (fun _ hbS => CompleteSemilatticeInf.sInf_le _ _ hbS)⟩
219+
image_subset_iff.mp (fun _ hbS => sInf_le hbS)⟩
220220
· simp_rw [le_eq_subset, subset_sInter_iff]
221221
intro R hR
222222
rw [← (hull_kernel_of_isClosed hT hG hR.1), ← gc_closureOperator]

0 commit comments

Comments
 (0)