The areas / V24. Category theory
Mathlib.CategoryTheory.CopyDiscardCategory.Cartesian
4 declarations. Mathlib docs · Source
Cartesian Categories as Copy-Discard Categories
Every cartesian monoidal category is a copy-discard category where:
- Copy is the diagonal map
- Discard is the unique map to terminal
Main results
CopyDiscardCategoryinstance for cartesian monoidal categories- All morphisms in cartesian categories are deterministic
Tags
cartesian, copy-discard, comonoid, symmetric monoidal
abbrev CategoryTheory.CartesianCopyDiscard.instComonObjOfCartesian E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.CartesianMonoidalCategory C] → (X : C) → CategoryTheory.ComonObj X
Provide ComonObj instances using the canonical cartesian comonoid structure.
instance CategoryTheory.CartesianCopyDiscard.instIsCommComonObjOfCartesian E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.CartesianMonoidalCategory C]
[inst_2 : CategoryTheory.BraidedCategory C] (X : C), CategoryTheory.IsCommComonObj X
Every object in a cartesian category has commutative comonoid structure.
abbrev CategoryTheory.CartesianCopyDiscard.ofCartesianMonoidalCategory E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.CartesianMonoidalCategory C] →
[CategoryTheory.BraidedCategory C] → CategoryTheory.CopyDiscardCategory C
Cartesian categories have copy-discard structure.
instance CategoryTheory.CartesianCopyDiscard.instDeterministic E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.CartesianMonoidalCategory C]
[inst_2 : CategoryTheory.BraidedCategory C] {X Y : C} (f : X ⟶ Y), CategoryTheory.Deterministic f
In cartesian categories, every morphism is deterministic (preserves the comonoid structure).