@@ -26,7 +26,9 @@ open CategoryTheory
2626
2727/-- The category of semirings. -/
2828structure SemiRingCat where
29- private mk ::
29+ /-- The object in the category of semirings associated to a type equipped with the appropriate
30+ typeclasses. -/
31+ of ::
3032 /-- The underlying type. -/
3133 carrier : Type u
3234 [semiring : Semiring carrier]
@@ -42,11 +44,6 @@ instance : CoeSort (SemiRingCat) (Type u) :=
4244
4345attribute [coe] SemiRingCat.carrier
4446
45- /-- The object in the category of R-algebras associated to a type equipped with the appropriate
46- typeclasses. This is the preferred way to construct a term of `SemiRingCat`. -/
47- abbrev of (R : Type u) [Semiring R] : SemiRingCat :=
48- ⟨R⟩
49-
5047lemma coe_of (R : Type u) [Semiring R] : (of R : Type u) = R :=
5148 rfl
5249
@@ -176,7 +173,9 @@ end SemiRingCat
176173
177174/-- The category of rings. -/
178175structure RingCat where
179- private mk ::
176+ /-- The object in the category of rings associated to a type equipped with the appropriate
177+ typeclasses. -/
178+ of ::
180179 /-- The underlying type. -/
181180 carrier : Type u
182181 [ring : Ring carrier]
@@ -192,11 +191,6 @@ instance : CoeSort (RingCat) (Type u) :=
192191
193192attribute [coe] RingCat.carrier
194193
195- /-- The object in the category of R-algebras associated to a type equipped with the appropriate
196- typeclasses. This is the preferred way to construct a term of `RingCat`. -/
197- abbrev of (R : Type u) [Ring R] : RingCat :=
198- ⟨R⟩
199-
200194lemma coe_of (R : Type u) [Ring R] : (of R : Type u) = R :=
201195 rfl
202196
@@ -338,7 +332,9 @@ end RingCat
338332
339333/-- The category of commutative semirings. -/
340334structure CommSemiRingCat where
341- private mk ::
335+ /-- The object in the category of commutative semirings associated to a type equipped with the
336+ appropriate typeclasses. -/
337+ of ::
342338 /-- The underlying type. -/
343339 carrier : Type u
344340 [commSemiring : CommSemiring carrier]
@@ -354,11 +350,6 @@ instance : CoeSort (CommSemiRingCat) (Type u) :=
354350
355351attribute [coe] CommSemiRingCat.carrier
356352
357- /-- The object in the category of R-algebras associated to a type equipped with the appropriate
358- typeclasses. This is the preferred way to construct a term of `CommSemiRingCat`. -/
359- abbrev of (R : Type u) [CommSemiring R] : CommSemiRingCat :=
360- ⟨R⟩
361-
362353lemma coe_of (R : Type u) [CommSemiring R] : (of R : Type u) = R :=
363354 rfl
364355
@@ -499,7 +490,9 @@ end CommSemiRingCat
499490
500491/-- The category of commutative rings. -/
501492structure CommRingCat where
502- private mk ::
493+ /-- The object in the category of commutative rings associated to a type equipped with the
494+ appropriate typeclasses. -/
495+ of ::
503496 /-- The underlying type. -/
504497 carrier : Type u
505498 [commRing : CommRing carrier]
@@ -515,11 +508,6 @@ instance : CoeSort (CommRingCat) (Type u) :=
515508
516509attribute [coe] CommRingCat.carrier
517510
518- /-- The object in the category of R-algebras associated to a type equipped with the appropriate
519- typeclasses. This is the preferred way to construct a term of `CommRingCat`. -/
520- abbrev of (R : Type u) [CommRing R] : CommRingCat :=
521- ⟨R⟩
522-
523511lemma coe_of (R : Type u) [CommRing R] : (of R : Type u) = R :=
524512 rfl
525513
0 commit comments