Skip to content

Commit fae92db

Browse files
committed
cleanup
1 parent 619d716 commit fae92db

File tree

31 files changed

+110
-113
lines changed

31 files changed

+110
-113
lines changed

Mathlib/Algebra/Category/AlgCat/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ instance : Inhabited (AlgCat R) :=
150150

151151
lemma forget_obj {A : AlgCat.{v} R} : (forget (AlgCat.{v} R)).obj A = A := rfl
152152

153-
@[deprecated ConcreteCategory.forget_map_eq_coe (since := "2026-03-03")]
153+
@[deprecated ConcreteCategory.forget_map_eq_ofHom (since := "2026-03-03")]
154154
lemma forget_map {A B : AlgCat.{v} R} (f : A ⟶ B) :
155155
(forget (AlgCat.{v} R)).map f = (f : _ → _) :=
156156
rfl

Mathlib/Algebra/Category/CommAlgCat/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ instance : Inhabited (CommAlgCat R) := ⟨of R R⟩
122122

123123
lemma forget_obj (A : CommAlgCat.{v} R) : (forget (CommAlgCat.{v} R)).obj A = A := rfl
124124

125-
@[deprecated ConcreteCategory.forget_map_eq_coe (since := "2026-03-06")]
125+
@[deprecated ConcreteCategory.forget_map_eq_ofHom (since := "2026-03-06")]
126126
lemma forget_map (f : A ⟶ B) : (forget (CommAlgCat.{v} R)).map f = (f : _ → _) := rfl
127127

128128
instance : CommRing ((forget (CommAlgCat R)).obj A) := inferInstanceAs <| CommRing A

Mathlib/Algebra/Category/CommBialgCat.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ instance : Inhabited (CommBialgCat R) := ⟨of R R⟩
123123
lemma forget_obj (A : CommBialgCat.{v} R) : (forget (CommBialgCat.{v} R)).obj A = A :=
124124
rfl
125125

126-
@[deprecated ConcreteCategory.forget_map_eq_coe (since := "2026-03-06")]
126+
@[deprecated ConcreteCategory.forget_map_eq_ofHom (since := "2026-03-06")]
127127
lemma forget_map (f : A ⟶ B) : (forget (CommBialgCat.{v} R)).map f = (f : _ → _) := rfl
128128

129129
instance : CommRing ((forget (CommBialgCat R)).obj A) := inferInstanceAs <| CommRing A

Mathlib/Algebra/Category/Grp/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ lemma coe_id {X : GrpCat} : (𝟙 X : X → X) = id := rfl
120120
@[to_additive (attr := simp)]
121121
lemma coe_comp {X Y Z : GrpCat} {f : X ⟶ Y} {g : Y ⟶ Z} : (f ≫ g : X → Z) = g ∘ f := rfl
122122

123-
@[deprecated (since := "2026-02-10")] alias forget_map := ConcreteCategory.forget_map_eq_coe
123+
@[deprecated (since := "2026-02-10")] alias forget_map := ConcreteCategory.forget_map_eq_ofHom
124124

125125
@[to_additive (attr := ext)]
126126
lemma ext {X Y : GrpCat} {f g : X ⟶ Y} (w : ∀ x : X, f x = g x) : f = g :=
@@ -337,7 +337,7 @@ lemma coe_id {X : CommGrpCat} : (𝟙 X : X → X) = id := rfl
337337
@[to_additive (attr := simp)]
338338
lemma coe_comp {X Y Z : CommGrpCat} {f : X ⟶ Y} {g : Y ⟶ Z} : (f ≫ g : X → Z) = g ∘ f := rfl
339339

340-
@[deprecated (since := "2026-02-10")] alias forget_map := ConcreteCategory.forget_map_eq_coe
340+
@[deprecated (since := "2026-02-10")] alias forget_map := ConcreteCategory.forget_map_eq_ofHom
341341

342342
@[to_additive (attr := ext)]
343343
lemma ext {X Y : CommGrpCat} {f g : X ⟶ Y} (w : ∀ x : X, f x = g x) : f = g :=

Mathlib/Algebra/Category/Grp/LeftExactFunctor.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ noncomputable def inverse : (C ⥤ₗ Type v) ⥤ (C ⥤ₗ AddCommGrpCat.{v}) :
7474
open scoped MonObj
7575

7676
set_option backward.isDefEq.respectTransparency false in
77-
-- attribute [local simp] types_tensorObj_def types_tensorUnit_def in
7877
attribute [-instance] Functor.LaxMonoidal.comp Functor.Monoidal.instComp in
7978
/-- Implementation, see `leftExactFunctorForgetEquivalence`.
8079
This is the complicated bit, where we show that forgetting the group structure in the image of
@@ -88,7 +87,7 @@ noncomputable def unitIsoAux (F : C ⥤ AddCommGrpCat.{v}) [PreservesFiniteLimit
8887
refine CommGrp.mkIso Multiplicative.toAdd.toIso (by
8988
erw [Functor.mapCommGrp_obj_grp_one]
9089
cat_disch) ?_
91-
dsimp [-Functor.comp_map, -ConcreteCategory.forget_map_eq_coe]
90+
dsimp [-Functor.comp_map, -ConcreteCategory.forget_map_eq_ofHom]
9291
have : F.Additive := Functor.additive_of_preserves_binary_products _
9392
simp only [Category.id_comp]
9493
erw [Functor.mapCommGrp_obj_grp_mul]

Mathlib/Algebra/Category/ModuleCat/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ end
217217
definitional equality issues. -/
218218
lemma forget_obj {M : ModuleCat.{v} R} : (forget (ModuleCat.{v} R)).obj M = M := rfl
219219

220-
@[deprecated ConcreteCategory.forget_map_eq_coe (since := "2026-03-02")]
220+
@[deprecated ConcreteCategory.forget_map_eq_ofHom (since := "2026-03-02")]
221221
lemma forget_map {M N : ModuleCat.{v} R} (f : M ⟶ N) :
222222
(forget (ModuleCat.{v} R)).map f = (f : _ → _) :=
223223
rfl

Mathlib/Algebra/Category/ModuleCat/Semi.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ definitional equality issues. -/
195195
lemma forget_obj {M : SemimoduleCat.{v} R} : ((forget (SemimoduleCat.{v} R)).obj M : Type _) = M :=
196196
rfl
197197

198-
@[deprecated ConcreteCategory.forget_map_eq_coe (since := "2026-02-25")]
198+
@[deprecated ConcreteCategory.forget_map_eq_ofHom (since := "2026-02-25")]
199199
lemma forget_map {M N : SemimoduleCat.{v} R} (f : M ⟶ N) :
200200
(forget (SemimoduleCat.{v} R)).map f = (f : _ → _) :=
201201
rfl

Mathlib/Algebra/Category/MonCat/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ lemma coe_id {X : CommMonCat} : (𝟙 X : X → X) = id := rfl
309309
@[to_additive (attr := simp)]
310310
lemma coe_comp {X Y Z : CommMonCat} {f : X ⟶ Y} {g : Y ⟶ Z} : (f ≫ g : X → Z) = g ∘ f := rfl
311311

312-
@[deprecated (since := "2026-02-15")] alias forget_map := ConcreteCategory.forget_map_eq_coe
312+
@[deprecated (since := "2026-02-15")] alias forget_map := ConcreteCategory.forget_map_eq_ofHom
313313

314314
@[to_additive (attr := ext)]
315315
lemma ext {X Y : CommMonCat} {f g : X ⟶ Y} (w : ∀ x : X, f x = g x) : f = g :=

Mathlib/Algebra/Category/Ring/Basic.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ unif_hint forget_obj_eq_coe (R R' : SemiRingCat) where
156156
(forget SemiRingCat).obj R ≟ SemiRingCat.carrier R'
157157

158158
@[deprecated (since := "2026-02-16")] alias forget_obj := CategoryTheory.forget_obj
159-
@[deprecated (since := "2026-02-16")] alias forget_map := ConcreteCategory.forget_map_eq_coe
159+
@[deprecated (since := "2026-02-16")] alias forget_map := ConcreteCategory.forget_map_eq_ofHom
160160

161161
instance {R : SemiRingCat} : Semiring ((forget SemiRingCat).obj R) :=
162162
inferInstanceAs <| Semiring R.carrier
@@ -326,7 +326,7 @@ unif_hint forget_obj_eq_coe (R R' : RingCat) where
326326
(forget RingCat).obj R ≟ RingCat.carrier R'
327327

328328
@[deprecated (since := "2026-02-16")] alias forget_obj := CategoryTheory.forget_obj
329-
@[deprecated (since := "2026-02-16")] alias forget_map := ConcreteCategory.forget_map_eq_coe
329+
@[deprecated (since := "2026-02-16")] alias forget_map := ConcreteCategory.forget_map_eq_ofHom
330330

331331
instance {R : RingCat} : Ring ((forget RingCat).obj R) :=
332332
inferInstanceAs <| Ring R.carrier
@@ -498,7 +498,7 @@ unif_hint forget_obj_eq_coe (R R' : CommSemiRingCat) where
498498
(forget CommSemiRingCat).obj R ≟ CommSemiRingCat.carrier R'
499499

500500
@[deprecated (since := "2026-02-16")] alias forget_obj := CategoryTheory.forget_obj
501-
@[deprecated (since := "2026-02-16")] alias forget_map := ConcreteCategory.forget_map_eq_coe
501+
@[deprecated (since := "2026-02-16")] alias forget_map := ConcreteCategory.forget_map_eq_ofHom
502502

503503
instance {R : CommSemiRingCat} : CommSemiring ((forget CommSemiRingCat).obj R) :=
504504
inferInstanceAs <| CommSemiring R.carrier
@@ -665,7 +665,7 @@ instance : Inhabited CommRingCat :=
665665
⟨of PUnit⟩
666666

667667
@[deprecated (since := "2026-02-16")] alias forget_obj := CategoryTheory.forget_obj
668-
@[deprecated (since := "2026-02-16")] alias forget_map := ConcreteCategory.forget_map_eq_coe
668+
@[deprecated (since := "2026-02-16")] alias forget_map := ConcreteCategory.forget_map_eq_ofHom
669669

670670
/-- This unification hint helps with problems of the form `(forget ?C).obj R =?= carrier R'`.
671671

Mathlib/Algebra/Category/Semigrp/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ lemma coe_id {X : MagmaCat} : (𝟙 X : X → X) = id := rfl
128128
@[to_additive (attr := simp)]
129129
lemma coe_comp {X Y Z : MagmaCat} {f : X ⟶ Y} {g : Y ⟶ Z} : (f ≫ g : X → Z) = g ∘ f := rfl
130130

131-
@[deprecated (since := "2026-02-10")] alias forget_map := ConcreteCategory.forget_map_eq_coe
131+
@[deprecated (since := "2026-02-10")] alias forget_map := ConcreteCategory.forget_map_eq_ofHom
132132

133133
@[to_additive (attr := ext)]
134134
lemma ext {X Y : MagmaCat} {f g : X ⟶ Y} (w : ∀ x : X, f x = g x) : f = g :=
@@ -290,7 +290,7 @@ lemma coe_id {X : Semigrp} : (𝟙 X : X → X) = id := rfl
290290
@[to_additive (attr := simp)]
291291
lemma coe_comp {X Y Z : Semigrp} {f : X ⟶ Y} {g : Y ⟶ Z} : (f ≫ g : X → Z) = g ∘ f := rfl
292292

293-
@[deprecated (since := "2026-02-10")] alias forget_map := ConcreteCategory.forget_map_eq_coe
293+
@[deprecated (since := "2026-02-10")] alias forget_map := ConcreteCategory.forget_map_eq_ofHom
294294

295295
@[to_additive (attr := ext)]
296296
lemma ext {X Y : Semigrp} {f g : X ⟶ Y} (w : ∀ x : X, f x = g x) : f = g :=

0 commit comments

Comments
 (0)