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
The object in the category of R-algebras associated to a type equipped with the appropriate
typeclasses. This is the preferred way to construct a term of SemiRingCat
.
Equations
Instances For
Equations
Equations
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'
.
Equations
Instances For
Equations
Ring equivalences are isomorphisms in category of semirings
Equations
Instances For
Equations
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
.
Equations
Instances For
Equations
Equations
The forgetful functor from RingCat
to SemiRingCat
is fully faithful.
Equations
Instances For
Ring equivalences are isomorphisms in category of rings
Equations
Instances For
The category of commutative semirings.
- carrier : Type u
The underlying type.
- commSemiring : CommSemiring ↑self
Instances For
The object in the category of R-algebras associated to a type equipped with the appropriate
typeclasses. This is the preferred way to construct a term of CommSemiRingCat
.
Equations
Instances For
Equations
Typecheck a RingHom
as a morphism in CommSemiRingCat
.
Equations
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'
.
Equations
Instances For
Equations
The forgetful functor from CommSemiRingCat
to SemiRingCat
is fully faithful.
Equations
Instances For
The forgetful functor from commutative rings to (multiplicative) commutative monoids.
Equations
Ring equivalences are isomorphisms in category of commutative semirings
Equations
Instances For
The category of commutative rings.
Instances For
The object in the category of R-algebras associated to a type equipped with the appropriate
typeclasses. This is the preferred way to construct a term of CommRingCat
.
Equations
Instances For
Equations
Equations
The underlying ring hom.
Equations
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.
Equations
Instances For
Equations
Equations
The forgetful functor from CommRingCat
to RingCat
is fully faithful.
Equations
Instances For
Equations
Ring equivalences are isomorphisms in category of commutative rings