Category instances for Semiring, Ring, CommSemiring, and CommRing. #
We introduce the bundled categories:
along with the relevant forgetful functors between them.
The category of semirings.
Instances For
This prevents SemiRingCat.of R being printed as { carrier := R, semiring := ... } by
delabStructureInstance.
Instances For
Use the ConcreteCategory.hom projection for @[simps] lemmas.
Instances For
The results below duplicate the ConcreteCategory simp lemmas, but we can keep them for dsimp.
This unification hint helps with problems of the form (forget ?C).obj R =?= carrier R'.
Instances For
Ring equivalences are isomorphisms in category of semirings
Instances For
This prevents RingCat.of R being printed as { carrier := R, ring := ... } by
delabStructureInstance.
Instances For
Use the ConcreteCategory.hom projection for @[simps] lemmas.
Instances For
The results below duplicate the ConcreteCategory simp lemmas, but we can keep them for dsimp.
This unification hint helps with problems of the form (forget ?C).obj R =?= carrier R'.
An example where this is needed is in applying
PresheafOfModules.Sheafify.app_eq_of_isLocallyInjective.
Instances For
The forgetful functor from RingCat to SemiRingCat is fully faithful.
Instances For
Ring equivalences are isomorphisms in category of rings
Instances For
The category of commutative semirings.
- of :: (
- carrier : Type u
The underlying type.
- commSemiring : CommSemiring ↑self
- )
Instances For
This prevents CommSemiRingCat.of R being printed as { carrier := R, commSemiring := ... } by
delabStructureInstance.
Instances For
Typecheck a RingHom as a morphism in CommSemiRingCat.
Instances For
Use the ConcreteCategory.hom projection for @[simps] lemmas.
Instances For
The results below duplicate the ConcreteCategory simp lemmas, but we can keep them for dsimp.
This unification hint helps with problems of the form (forget ?C).obj R =?= carrier R'.
Instances For
The forgetful functor from CommSemiRingCat to SemiRingCat is fully faithful.
Instances For
The forgetful functor from commutative rings to (multiplicative) commutative monoids.
Ring equivalences are isomorphisms in category of commutative semirings
Instances For
The category of commutative rings.
Instances For
This prevents CommRingCat.of R being printed as { carrier := R, commRing := ... } by
delabStructureInstance.
Instances For
The underlying ring hom.
Instances For
Use the ConcreteCategory.hom projection for @[simps] lemmas.
Instances For
The results below duplicate the ConcreteCategory simp lemmas, but we can keep them for dsimp.
This unification hint helps with problems of the form (forget ?C).obj R =?= carrier R'.
An example where this is needed is in applying TopCat.Presheaf.restrictOpen to commutative rings.
Instances For
The forgetful functor from CommRingCat to RingCat is fully faithful.
Instances For
Ring equivalences are isomorphisms in category of commutative rings
Instances For
Build a RingEquiv from an isomorphism in the category SemiRingCat.
Instances For
Build a RingEquiv from an isomorphism in the category CommSemiRingCat.
Instances For
Build a RingEquiv from an isomorphism in the category CommRingCat.