Skip to content

Commit 8c18143

Browse files
committed
fix(CategoryTheory/MorphismProperty/Limits): change duplicate lemma (leanprover-community#39647)
Two lemmas introduced in leanprover-community#39534 do not have the right content and repeat previous lemmas. This PR fixes them to make them prove what their name claim.
1 parent 3ba74fa commit 8c18143

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Mathlib/CategoryTheory/MorphismProperty/Limits.lean

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,10 +1012,10 @@ instance (P : MorphismProperty C) [P.HasPullbacks] (P' : MorphismProperty C) :
10121012

10131013
lemma hasPullbacksAgainst_top_iff
10141014
(P : MorphismProperty C) :
1015-
P.IsStableUnderBaseChangeAgainst ⊤ ↔ P.IsStableUnderBaseChange where
1015+
P.HasPullbacksAgainst ⊤ ↔ P.HasPullbacks where
10161016
mp h :=
1017-
fun {_ _ _ _} _ _ _ _ h' h'' ↦
1018-
(h.isStableUnderBaseChangeAlong _ (by tauto)).of_isPullback h' h''⟩
1017+
fun _ h' ↦
1018+
(h.hasPullbacksAlong _ (by tauto)).hasPullback _ h'⟩
10191019
mpr _ := inferInstance
10201020

10211021
lemma _root_.CategoryTheory.Limits.hasPullback_ofHasPullbacksAgainst
@@ -1027,7 +1027,7 @@ lemma _root_.CategoryTheory.Limits.hasPullback_ofHasPullbacksAgainst
10271027
MorphismProperty.HasPullbacksAlong.hasPullback f hf
10281028

10291029
/-- `P.IsStableUnderCobaseChangeAgainst P'` states that for any morphism `f` satisfying `P` and
1030-
any morphism `g` with the same codomain as `f` satisfying `P'`, any pullback of `f` along `g`
1030+
any morphism `g` with the same domain as `f` satisfying `P'`, any pushout of `f` along `g`
10311031
also satisfies `P`. -/
10321032
class IsStableUnderCobaseChangeAgainst
10331033
(P P' : MorphismProperty C) : Prop where
@@ -1047,7 +1047,7 @@ lemma isStableUnderCobaseChangeAgainst_top_iff
10471047
(h.isStableUnderCobaseChangeAlong _ (by tauto)).of_isPushout h' h''⟩
10481048
mpr _ := inferInstance
10491049

1050-
/-- `P.HasPullbacksAgainst P'` states that for any morphism `f` satisfying `P'`,
1050+
/-- `P.HasPushoutsAgainst P'` states that for any morphism `f` satisfying `P'`,
10511051
`P` has pushouts along `f`. -/
10521052
class HasPushoutsAgainst
10531053
(P P' : MorphismProperty C) : Prop where
@@ -1060,10 +1060,10 @@ instance (P : MorphismProperty C) [P.HasPushouts] (P' : MorphismProperty C) :
10601060

10611061
lemma hasPushoutsAgainst_top_iff
10621062
(P : MorphismProperty C) :
1063-
P.IsStableUnderCobaseChangeAgainst ⊤ ↔ P.IsStableUnderCobaseChange where
1063+
P.HasPushoutsAgainst ⊤ ↔ P.HasPushouts where
10641064
mp h :=
1065-
fun {_ _ _ _} _ _ _ _ h' h'' ↦
1066-
(h.isStableUnderCobaseChangeAlong _ (by tauto)).of_isPushout h' h''⟩
1065+
fun _ h' ↦
1066+
(h.hasPushoutsAlong _ (by tauto)).hasPushout _ h'⟩
10671067
mpr _ := inferInstance
10681068

10691069
lemma _root_.CategoryTheory.Limits.hasPushout_ofHasPushoutsAgainst

0 commit comments

Comments
 (0)