Category instances for Mul, Add, Semigroup and AddSemigroup #
We introduce the bundled categories:
along with the relevant forgetful functors between them.
This closely follows Mathlib/Algebra/Category/MonCat/Basic.lean.
TODO #
- Limits in these categories
- free/forgetful adjunctions
The category of additive magmas and additive magma morphisms.
Instances For
Construct a bundled MagmaCat from the underlying type and typeclass.
Equations
Instances For
Construct a bundled AddMagmaCat from the underlying type and typeclass.
Equations
Instances For
Equations
Equations
Equations
Equations
The results below duplicate the ConcreteCategory simp lemmas, but we can keep them for dsimp.
The category of additive semigroups and semigroup morphisms.
- carrier : Type u
The underlying type.
- str : AddSemigroup โself
Instances For
Construct a bundled Semigrp from the underlying type and typeclass.
Equations
Instances For
Construct a bundled AddSemigrp from the underlying type and typeclass.
Equations
Instances For
Equations
Equations
Equations
Equations
Typecheck an AddHom as a morphism in AddSemigrp.
Equations
Instances For
The results below duplicate the ConcreteCategory simp lemmas, but we can keep them for dsimp.
Equations
Build an isomorphism in the category AddMagmaCat from an AddEquiv between Adds.
Equations
Instances For
Build an isomorphism in the category
AddSemigroup from an AddEquiv between AddSemigroups.
Equations
Instances For
additive equivalences between Adds are the same
as (isomorphic to) isomorphisms in AddMagmaCat
Equations
Instances For
additive equivalences between AddSemigroups are
the same as (isomorphic to) isomorphisms in AddSemigroup
Equations
Instances For
Ensure that forgetโ CommMonCat MonCat automatically reflects isomorphisms.
Once we've shown that the forgetful functors to type reflect isomorphisms,
we automatically obtain that the forgetโ functors between our concrete categories
reflect isomorphisms.