@@ -8,7 +8,7 @@ public import Mathlib.CategoryTheory.Limits.Shapes.Pullback.IsPullback.Basic
88public import Mathlib.CategoryTheory.Monoidal.Cartesian.Basic
99
1010/-!
11- # Pullback in cartesian monoidal categories.
11+ # Pullback squares in cartesian monoidal categories.
1212
1313We show that various pullback squares result from other pullback squares or equalizers, in
1414the setting of a category with chosen finite products, i.e. where we have
@@ -46,7 +46,6 @@ namespace CategoryTheory
4646open Limits MonoidalCategory CartesianMonoidalCategory
4747variable {C : Type u} [Category.{v} C] [CartesianMonoidalCategory C]
4848
49-
5049/--
5150In a cartesian monoidal category, the following is a pullback square:
5251```
@@ -165,12 +164,12 @@ lemma IsPullback.pullback_monoidal {X₁ X₂ X₃ X₄ : C}
165164 (f₃ ⊗ₘ f₄) :=
166165 IsPullback.mk' (by apply CartesianMonoidalCategory.hom_ext <;> simp [hf.w])
167166 (by
168- introv _ h
169- simp [CartesianMonoidalCategory.hom_ext_iff] at h
167+ simp only [CartesianMonoidalCategory.hom_ext_iff]
168+ introv _ _
170169 apply hf.hom_ext <;> cat_disch)
171170 (by
172- introv h
173- simp [CartesianMonoidalCategory.hom_ext_iff] at h
171+ simp only [CartesianMonoidalCategory.hom_ext_iff]
172+ introv _
174173 use hf.lift (b ≫ fst _ _) (b ≫ snd _ _) (by cat_disch)
175174 cat_disch)
176175
@@ -205,10 +204,10 @@ lemma IsPullback.of_pullback_monoidal {W X Y Z : C}
205204 (by
206205 simp_rw [← and_imp, ← Category.assoc, ← CartesianMonoidalCategory.hom_ext_iff]
207206 introv h
208- have hw := hpb.w
209- simp [ CartesianMonoidalCategory.hom_ext_iff ] at hw
207+ have hw := congr($ hpb.w ≫ snd _ _)
208+ simp_rw [Category.assoc, CartesianMonoidalCategory.lift_snd, Category.comp_id ] at hw
210209 apply hpb.hom_ext _ h
211- rw [hw.left , reassoc_of% h])
210+ rw [hw, reassoc_of% h])
212211 (by
213212 introv h
214213 use hpb.lift (a ≫ f) (CartesianMonoidalCategory.lift a b) (by cat_disch)
@@ -242,9 +241,9 @@ lemma IsPullback.equalizer_monoidal {X Y : C} (f g : X ⟶ Y) [HasEqualizer f g]
242241 (by cat_disch)
243242 (by
244243 intro s m m' hm₂
245- simp [CartesianMonoidalCategory.hom_ext_iff] at hm₂
244+ rw [CartesianMonoidalCategory.hom_ext_iff] at hm₂
246245 use (equalizer.lift m (by cat_disch))
247- simpa [equalizer.lift_ι, equalizer.lift_ι_assoc] using ‹m ≫ f = m' ∧ _› .left)
246+ simpa [equalizer.lift_ι, equalizer.lift_ι_assoc] using hm₂ .left)
248247
249248/--
250249In a cartesian monoidal category, if we have that the following square is a pullback square,
@@ -264,11 +263,11 @@ lemma HasEqualizer.of_isPullback_monoidal {X Y : C} (f g : X ⟶ Y)
264263 (by nth_rw 1 [← lift_snd f g, ← lift_fst f g, hpb.w_assoc, hpb.w_assoc, lift_fst, lift_snd]),
265264 (by
266265 refine Limits.Fork.IsLimit.mk _ (fun s => hpb.lift s.ι (s.ι ≫ f)
267- (by simp [dsimp% s.condition])) ?_ ?_
266+ (by simp [s.condition])) ?_ ?_
268267 · cat_disch
269268 · intro s m hm
270269 apply hpb.hom_ext (by simpa using hm)
271- simp only [parallelPair_obj_zero, Fork.ofι_pt, Fork.ι_ofι, IsPullback.lift_snd] at hm ⊢
270+ simp only [Fork.ofι_pt, Fork.ι_ofι, IsPullback.lift_snd] at hm ⊢
272271 rw [← Category.comp_id d, ← lift_fst (𝟙 Y) (𝟙 Y), ← hpb.w_assoc, lift_fst,
273272 reassoc_of% hm])⟩⟩⟩
274273
0 commit comments