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
Equations
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Typecheck a RingHom as a morphism in SemiRingCat.
Equations
Instances For
Use the ConcreteCategory.hom projection for @[simps] lemmas.
Equations
- SemiRingCat.Hom.Simps.hom R S f = f.hom
Instances For
The results below duplicate the ConcreteCategory simp lemmas, but we can keep them for dsimp.
Equations
- SemiRingCat.instInhabited = { default := { carrier := PUnit.{?u.2 + 1}, semiring := CommRing.toCommSemiring.toSemiring } }
This unification hint helps with problems of the form (forget ?C).obj R =?= carrier R'.
Equations
- R.forget_obj_eq_coe R' = (R = R' → (CategoryTheory.forget SemiRingCat).obj R = ↑R')
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Ring equivalences are isomorphisms in category of semirings
Equations
- e.toSemiRingCatIso = { hom := SemiRingCat.ofHom ↑e, inv := SemiRingCat.ofHom ↑e.symm, hom_inv_id := ⋯, inv_hom_id := ⋯ }
Instances For
Equations
- RingCat.instCoeSortType = { coe := RingCat.carrier }
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Use the ConcreteCategory.hom projection for @[simps] lemmas.
Equations
- RingCat.Hom.Simps.hom R S f = f.hom
Instances For
The results below duplicate the ConcreteCategory simp lemmas, but we can keep them for dsimp.
Equations
- RingCat.instInhabited = { default := { carrier := PUnit.{?u.2 + 1}, ring := PUnit.commRing.toRing } }
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
- R.forget_obj_eq_coe R' = (R = R' → (CategoryTheory.forget RingCat).obj R = ↑R')
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
The forgetful functor from RingCat to SemiRingCat is fully faithful.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Ring equivalences are isomorphisms in category of rings
Equations
- e.toRingCatIso = { hom := RingCat.ofHom ↑e, inv := RingCat.ofHom ↑e.symm, hom_inv_id := ⋯, inv_hom_id := ⋯ }
Instances For
The category of commutative semirings.
- of :: (
- carrier : Type u
The underlying type.
- commSemiring : CommSemiring ↑self
- )
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Typecheck a RingHom as a morphism in CommSemiRingCat.
Equations
Instances For
Use the ConcreteCategory.hom projection for @[simps] lemmas.
Equations
- CommSemiRingCat.Hom.Simps.hom R S f = f.hom
Instances For
The results below duplicate the ConcreteCategory simp lemmas, but we can keep them for dsimp.
Equations
- CommSemiRingCat.instInhabited = { default := { carrier := PUnit.{?u.2 + 1}, commSemiring := CommRing.toCommSemiring } }
This unification hint helps with problems of the form (forget ?C).obj R =?= carrier R'.
Equations
- R.forget_obj_eq_coe R' = (R = R' → (CategoryTheory.forget CommSemiRingCat).obj R = ↑R')
Instances For
Equations
- One or more equations did not get rendered due to their size.
The forgetful functor from CommSemiRingCat to SemiRingCat is fully faithful.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The forgetful functor from commutative rings to (multiplicative) commutative monoids.
Equations
- One or more equations did not get rendered due to their size.
Ring equivalences are isomorphisms in category of commutative semirings
Equations
- e.toCommSemiRingCatIso = { hom := CommSemiRingCat.ofHom ↑e, inv := CommSemiRingCat.ofHom ↑e.symm, hom_inv_id := ⋯, inv_hom_id := ⋯ }
Instances For
The category of commutative rings.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
The underlying ring hom.
Equations
Instances For
Typecheck a RingHom as a morphism in CommRingCat.
Equations
Instances For
Use the ConcreteCategory.hom projection for @[simps] lemmas.
Equations
- CommRingCat.Hom.Simps.hom R S f = f.hom
Instances For
The results below duplicate the ConcreteCategory simp lemmas, but we can keep them for dsimp.
Equations
- CommRingCat.instInhabited = { default := { carrier := PUnit.{?u.2 + 1}, commRing := PUnit.commRing } }
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
- R.forget_obj_eq_coe R' = (R = R' → (CategoryTheory.forget CommRingCat).obj R = ↑R')
Instances For
Equations
- One or more equations did not get rendered due to their size.
The forgetful functor from CommRingCat to RingCat is fully faithful.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Ring equivalences are isomorphisms in category of commutative rings
Equations
- e.toCommRingCatIso = { hom := CommRingCat.ofHom ↑e, inv := CommRingCat.ofHom ↑e.symm, hom_inv_id := ⋯, inv_hom_id := ⋯ }
Instances For
Build a RingEquiv from an isomorphism in the category RingCat.
Equations
- e.ringCatIsoToRingEquiv = RingEquiv.ofHomInv (RingCat.Hom.hom e.hom) (RingCat.Hom.hom e.inv) ⋯ ⋯