Category instance for algebras over a commutative ring #
We introduce the bundled category AlgebraCat
of algebras over a fixed commutative ring R
along
with the forgetful functors to RingCat
and ModuleCat
. We furthermore show that the functor
associating to a type the free R
-algebra on that type is left adjoint to the forgetful functor.
An alias for AlgebraCat.{max u₁ u₂}
, to deal around unification issues.
Since the universe the ring lives in can be inferred, we put that last.
Equations
- AlgebraCatMax R = AlgebraCat R
Instances For
Equations
- AlgebraCat.instCoeSortAlgebraCatType R = { coe := AlgebraCat.carrier }
Equations
- AlgebraCat.instCategoryAlgebraCat R = CategoryTheory.Category.mk
Equations
Equations
- (_ : AlgHomClass (M ⟶ N) R ↑M ↑N) = (_ : AlgHomClass (↑M →ₐ[R] ↑N) R ↑M ↑N)
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
- 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
- One or more equations did not get rendered due to their size.
The object in the category of R-algebras associated to a type equipped with the appropriate typeclasses.
Equations
- AlgebraCat.of R X = AlgebraCat.mk X
Instances For
Typecheck a AlgHom
as a morphism in AlgebraCat R
.
Equations
- AlgebraCat.ofHom f = f
Instances For
Equations
- AlgebraCat.instInhabitedAlgebraCat R = { default := AlgebraCat.of R R }
Forgetting to the underlying type and then building the bundled object returns the original algebra.
Equations
Instances For
The "free algebra" functor, sending a type S
to the free algebra on S
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The free/forget adjunction for R
-algebras.
Equations
- AlgebraCat.adj R = CategoryTheory.Adjunction.mkOfHomEquiv (CategoryTheory.Adjunction.CoreHomEquiv.mk fun (X : Type u) (A : AlgebraCat R) => (FreeAlgebra.lift R).symm)
Instances For
Build an isomorphism in the category AlgebraCat R
from a AlgEquiv
between Algebra
s.
Equations
Instances For
Build a AlgEquiv
from an isomorphism in the category AlgebraCat R
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Algebra equivalences between Algebra
s are the same as (isomorphic to) isomorphisms in
AlgebraCat
.
Equations
- algEquivIsoAlgebraIso = CategoryTheory.Iso.mk (fun (e : X ≃ₐ[R] Y) => AlgEquiv.toAlgebraIso e) fun (i : AlgebraCat.of R X ≅ AlgebraCat.of R Y) => CategoryTheory.Iso.toAlgEquiv i
Instances For
Equations
- instCoeOutSubalgebraToCommSemiringToSemiringAlgebraCat X = { coe := fun (N : Subalgebra R X) => AlgebraCat.of R ↥N }