Category instances for monoid, add_monoid, comm_monoid, and add_comm_monoid. #
We introduce the bundled categories:
- MonCat
- AddMonCat
- CommMonCat
- AddCommMonCatalong with the relevant forgetful functors between them.
AddMonoidHom doesn't actually assume associativity. This alias is needed to make
the category theory machinery work.
Equations
- AddMonCat.AssocAddMonoidHom M N = (M →+ N)
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.
Equations
- AddMonCat.instCoeSortMonCatType = { coe := fun (X : AddMonCat) => ↑X }
Equations
- MonCat.instCoeSortMonCatType = { coe := fun (X : MonCat) => ↑X }
Equations
- AddMonCat.instMonoidα X = X.str
Equations
- AddMonCat.instFunLike X Y = inferInstanceAs (FunLike (↑X →+ ↑Y) ↑X ↑Y)
Equations
- MonCat.instFunLike X Y = inferInstanceAs (FunLike (↑X →* ↑Y) ↑X ↑Y)
Equations
- (_ : AddMonoidHomClass (X ⟶ Y) ↑X ↑Y) = (_ : AddMonoidHomClass (↑X →+ ↑Y) ↑X ↑Y)
Equations
- (_ : MonoidHomClass (X ⟶ Y) ↑X ↑Y) = (_ : MonoidHomClass (↑X →* ↑Y) ↑X ↑Y)
Equations
- AddMonCat.instInhabitedMonCat = { default := AddMonCat.of PUnit.{u_1 + 1} }
Equations
- MonCat.instInhabitedMonCat = { default := MonCat.of PUnit.{u_1 + 1} }
Typecheck an AddMonoidHom as a morphism in AddMonCat.
Equations
- AddMonCat.ofHom f = f
Instances For
Equations
Equations
Equations
- AddMonCat.instGroupαAddMonoidOfToAddMonoidToSubNegAddMonoid = inst
The category of additive commutative monoids and monoid morphisms.
Instances For
The category of commutative monoids and monoid morphisms.
Equations
Instances For
Equations
- AddCommMonCat.concreteCategory = id inferInstance
Equations
- CommMonCat.concreteCategory = id inferInstance
Equations
- AddCommMonCat.instCoeSortCommMonCatType = { coe := fun (X : AddCommMonCat) => ↑X }
Equations
- CommMonCat.instCoeSortCommMonCatType = { coe := fun (X : CommMonCat) => ↑X }
Equations
- AddCommMonCat.instCommMonoidα X = X.str
Equations
- CommMonCat.instCommMonoidα X = X.str
Equations
- AddCommMonCat.instFunLike X Y = let_fun this := inferInstance; this
Equations
- CommMonCat.instFunLike X Y = let_fun this := inferInstance; this
Construct a bundled AddCommMon from the underlying type and typeclass.
Equations
Instances For
Equations
- AddCommMonCat.instInhabitedCommMonCat = { default := AddCommMonCat.of PUnit.{u_1 + 1} }
Equations
- CommMonCat.instInhabitedCommMonCat = { default := CommMonCat.of PUnit.{u_1 + 1} }
Equations
- AddCommMonCat.instCoeCommMonCatMonCat = { coe := (CategoryTheory.forget₂ AddCommMonCat AddMonCat).toPrefunctor.obj }
Equations
- CommMonCat.instCoeCommMonCatMonCat = { coe := (CategoryTheory.forget₂ CommMonCat MonCat).toPrefunctor.obj }
Typecheck an AddMonoidHom as a morphism in AddCommMonCat.
Equations
- AddCommMonCat.ofHom f = f
Instances For
Typecheck a MonoidHom as a morphism in CommMonCat.
Equations
- CommMonCat.ofHom f = f
Instances For
Build an isomorphism in the category AddCommMonCat
from an AddEquiv between AddCommMonoids.
Equations
Instances For
Build an isomorphism in the category CommMonCat from a MulEquiv between CommMonoids.
Equations
Instances For
Build an AddEquiv from an isomorphism in the category
AddCommMonCat.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Build a MulEquiv from an isomorphism in the category CommMonCat.
Equations
- One or more equations did not get rendered due to their size.
Instances For
additive equivalences between AddMonoids are the same
as (isomorphic to) isomorphisms in AddMonCat
Equations
- addEquivIsoAddMonCatIso = CategoryTheory.Iso.mk (fun (e : X ≃+ Y) => AddEquiv.toAddMonCatIso e) fun (i : AddMonCat.of X ≅ AddMonCat.of Y) => CategoryTheory.Iso.addMonCatIsoToAddEquiv i
Instances For
multiplicative equivalences between Monoids are the same as (isomorphic to) isomorphisms
in MonCat
Equations
- mulEquivIsoMonCatIso = CategoryTheory.Iso.mk (fun (e : X ≃* Y) => MulEquiv.toMonCatIso e) fun (i : MonCat.of X ≅ MonCat.of Y) => CategoryTheory.Iso.monCatIsoToMulEquiv i
Instances For
additive equivalences between AddCommMonoids are
the same as (isomorphic to) isomorphisms in AddCommMonCat
Equations
- One or more equations did not get rendered due to their size.
Instances For
multiplicative equivalences between CommMonoids are the same as (isomorphic to) isomorphisms
in CommMonCat
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.