The areas / V24. Category theory
Mathlib.CategoryTheory.CopyDiscardCategory.Deterministic
3 declarations. Mathlib docs · Source
Deterministic Morphisms in Copy-Discard Categories
Morphisms that preserve the copy operation perfectly.
A morphism f : X → Y is deterministic if copying then applying f to both copies equals applying
f then copying: f ≫ Δ[Y] = Δ[X] ≫ (f ⊗ f).
In probabilistic settings, these are morphisms without randomness. In cartesian categories, all morphisms are deterministic.
Main definitions
Deterministic- Type class for morphisms that preserve copying
Main results
- Identity morphisms are deterministic
- Composition of deterministic morphisms is deterministic
Tags
deterministic, copy-discard category, comonoid morphism
abbrev CategoryTheory.Deterministic E3 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.MonoidalCategory C] → [CategoryTheory.CopyDiscardCategory C] → {X Y : C} → (X ⟶ Y) → Prop
A morphism is deterministic if it preserves the comonoid structure.
In probabilistic contexts, these are morphisms without randomness.
theorem CategoryTheory.Deterministic.copy_natural E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.MonoidalCategory C]
[inst_2 : CategoryTheory.CopyDiscardCategory C] {X Y : C} (f : X ⟶ Y) [CategoryTheory.Deterministic f],
CategoryTheory.CategoryStruct.comp f CategoryTheory.ComonObj.comul =
CategoryTheory.CategoryStruct.comp CategoryTheory.ComonObj.comul
(CategoryTheory.MonoidalCategoryStruct.tensorHom f f)
Deterministic morphisms commute with copying.
theorem CategoryTheory.Deterministic.discard_natural E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.MonoidalCategory C]
[inst_2 : CategoryTheory.CopyDiscardCategory C] {X Y : C} (f : X ⟶ Y) [CategoryTheory.Deterministic f],
CategoryTheory.CategoryStruct.comp f CategoryTheory.ComonObj.counit = CategoryTheory.ComonObj.counit
Deterministic morphisms commute with discarding.