Skip to content

Commit b355864

Browse files
committed
Made Hom constructor private
1 parent 2faa31f commit b355864

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • Mathlib/Geometry/Manifold/Category/MfldCat

Mathlib/Geometry/Manifold/Category/MfldCat/Basic.lean

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,19 @@ lemma of_carrier (M : MfldCat 𝕜 n) : of (n := n) M.carrier M.E M.H M.I = M :=
100100
/-- The type of morphisms in `MfldCat`. -/
101101
@[ext]
102102
structure Hom (M N : MfldCat.{u, v} 𝕜 n) where
103+
private mk ::
103104
/-- The underlying `C^n` map. -/
104105
hom' : ContMDiffMap M.I N.I M N n
105106

107+
set_option backward.privateInPublic true in
108+
set_option backward.privateInPublic.warn false in
106109
instance : Category (MfldCat 𝕜 n) where
107110
Hom M N := Hom M N
108111
id M := ⟨ContMDiffMap.id⟩
109112
comp f g := ⟨g.hom'.comp f.hom'⟩
110113

114+
set_option backward.privateInPublic true in
115+
set_option backward.privateInPublic.warn false in
111116
instance : ConcreteCategory (MfldCat 𝕜 n)
112117
(fun M N => ContMDiffMap M.I N.I M N n) where
113118
hom f := f.hom'
@@ -157,11 +162,8 @@ lemma ofHom_id :
157162
lemma ofHom_comp (f : ContMDiffMap I I' X Y n) (g : ContMDiffMap I' I'' Y Z n) :
158163
ofHom (g.comp f) = ofHom f ≫ ofHom g := rfl
159164

160-
161165
end ofHom
162166

163-
164-
165167
instance inhabited : Inhabited (MfldCat 𝕜 n) :=
166168
⟨of 𝕜 𝕜 𝕜 (modelWithCornersSelf 𝕜 𝕜)⟩
167169

0 commit comments

Comments
 (0)