Skip to content

Commit caf1dee

Browse files
committed
chore(CategoryTheory): move instances from FullSubcategory to ObjectProperty.FullSubcategory (leanprover-community#38221)
Move some instances for `CategoryTheory.ObjectProperty.FullSubcategory` to the correct namespace.
1 parent 9b51fe6 commit caf1dee

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

Mathlib/CategoryTheory/ConcreteCategory/Basic.lean

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ instance InducedCategory.concreteCategory {C : Type u} {D : Type u'} [Category.{
195195
comp_apply _ _ _ := ConcreteCategory.comp_apply _ _ _
196196
id_apply _ := ConcreteCategory.id_apply _
197197

198-
open ObjectProperty in
199-
instance FullSubcategory.concreteCategory {C : Type u} [Category.{v} C]
198+
instance ObjectProperty.FullSubcategory.concreteCategory {C : Type u} [Category.{v} C]
200199
{FC : C → C → Type*} {CC : C → Type w} [∀ X Y, FunLike (FC X Y) (CC X) (CC Y)]
201200
[ConcreteCategory.{w} C FC]
202201
(P : ObjectProperty C) : ConcreteCategory P.FullSubcategory (fun X Y => FC X.1 Y.1) where
@@ -207,6 +206,9 @@ instance FullSubcategory.concreteCategory {C : Type u} [Category.{v} C]
207206
comp_apply _ _ _ := ConcreteCategory.comp_apply _ _ _
208207
id_apply _ := ConcreteCategory.id_apply _
209208

209+
@[deprecated (since := "2026-04-18")] alias FullSubcategory.concreteCategory :=
210+
ObjectProperty.FullSubcategory.concreteCategory
211+
210212
end ConcreteCategory
211213

212214
variable {C : Type u} [Category.{v} C]

Mathlib/CategoryTheory/ConcreteCategory/Forget.lean

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,14 @@ instance InducedCategory.hasForget₂ (f : C → D) : HasForget₂ (InducedCateg
111111
forget₂ := inducedFunctor f
112112
forget_comp := rfl
113113

114-
instance FullSubcategory.hasForget₂ (P : ObjectProperty C) : HasForget₂ P.FullSubcategory C where
114+
instance ObjectProperty.FullSubcategory.hasForget₂ (P : ObjectProperty C) :
115+
HasForget₂ P.FullSubcategory C where
115116
forget₂ := P.ι
116117
forget_comp := rfl
117118

119+
@[deprecated (since := "2026-04-18")] alias FullSubcategory.hasForget₂ :=
120+
ObjectProperty.FullSubcategory.hasForget₂
121+
118122
/-- In order to construct a “partially forgetting” functor, we do not need to verify functor laws;
119123
it suffices to ensure that compositions agree with `forget₂ C D ⋙ forget D = forget C`.
120124
-/

0 commit comments

Comments
 (0)