The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V24. Category theory

Mathlib.CategoryTheory.MarkovCategory.Positive

6 declarations. Mathlib docs · Source

Positive Categories

Markov categories where deletion is natural for all morphisms.

Main definitions

  • PositiveCategory: Markov category where copy is natural given deterministic composition of morphisms.

Main results

  • copy_comp_natural - Given morphisms f : X ⟶ Y and g : Y ⟶ Z, if their composition is deterministic, then process f, copy and then process g equals copy and process f and g independently.

  • All isomorphisms in a positive Markov category are deterministic.

Implementation notes

The key property copy_comp_natural : f ≫ Δ ≫ (g ⊗ₘ 𝟙 Y) = Δ ≫ (f ≫ g ⊗ₘ f), given Deterministic (f ≫ g), means that after processing f, copying and then processing g is the same as copying and processing f and g independently. The probabilistic interpretation is that given a deterministic process that has a stochastic intermediate result, the same distribution over both results can be obtained by computing the intermediate result independently of the deterministic process.

References

  • [Fritz, A synthetic approach to Markov kernels, conditional independence and theorems on sufficient statistics, Def. 11.22][fritz2020]
  • [Moss and Perrone, A category-theoretic proof of the ergodic decomposition theorem][moss2023]

def CategoryTheory.PositiveCategory.ctorIdx E1 #

{C : Type u} →
  {inst : CategoryTheory.Category.{v, u} C} →
    {inst_1 : CategoryTheory.MonoidalCategory C} → CategoryTheory.PositiveCategory C → ℕ

class CategoryTheory.PositiveCategory E3 #

(C : Type u) → [inst : CategoryTheory.Category.{v, u} C] → [CategoryTheory.MonoidalCategory C] → Type (max u v)

Markov category where copy is natural given deterministic composition of morphisms.

ctor CategoryTheory.PositiveCategory.mk E0 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.MonoidalCategory C] →
      [toMarkovCategory : CategoryTheory.MarkovCategory C] →
        (∀ {X Y Z : C} (f : X ⟶ Y) (g : Y ⟶ Z)
            [h : CategoryTheory.Deterministic (CategoryTheory.CategoryStruct.comp f g)],
            CategoryTheory.CategoryStruct.comp f
                (CategoryTheory.CategoryStruct.comp CategoryTheory.ComonObj.comul
                  (CategoryTheory.MonoidalCategoryStruct.tensorHom g (CategoryTheory.CategoryStruct.id Y))) =
              CategoryTheory.CategoryStruct.comp CategoryTheory.ComonObj.comul
                (CategoryTheory.MonoidalCategoryStruct.tensorHom (CategoryTheory.CategoryStruct.comp f g) f)) →
          CategoryTheory.PositiveCategory C

instance CategoryTheory.PositiveCategory.toMarkovCategory E0 #

{C : Type u} →
  {inst : CategoryTheory.Category.{v, u} C} →
    {inst_1 : CategoryTheory.MonoidalCategory C} →
      [self : CategoryTheory.PositiveCategory C] → CategoryTheory.MarkovCategory C

theorem CategoryTheory.PositiveCategory.copy_comp_natural E3 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {inst_1 : CategoryTheory.MonoidalCategory C}
  [self : CategoryTheory.PositiveCategory C] {X Y Z : C} (f : X ⟶ Y) (g : Y ⟶ Z)
  [h : CategoryTheory.Deterministic (CategoryTheory.CategoryStruct.comp f g)],
  CategoryTheory.CategoryStruct.comp f
      (CategoryTheory.CategoryStruct.comp CategoryTheory.ComonObj.comul
        (CategoryTheory.MonoidalCategoryStruct.tensorHom g (CategoryTheory.CategoryStruct.id Y))) =
    CategoryTheory.CategoryStruct.comp CategoryTheory.ComonObj.comul
      (CategoryTheory.MonoidalCategoryStruct.tensorHom (CategoryTheory.CategoryStruct.comp f g) f)

Given morphisms f : X ⟶ Y and g : Y ⟶ Z, if their composition is deterministic, then process f, copy and then process g equals copy and process f and g independently.

instance CategoryTheory.PositiveCategory.instDeterministicOfIsIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.MonoidalCategory C]
  [inst_2 : CategoryTheory.PositiveCategory C] {X Y : C} (f : X ⟶ Y) [CategoryTheory.IsIso f],
  CategoryTheory.Deterministic f