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 / V20. Probability

Mathlib.Probability.Kernel.Category.SFinKer

53 declarations. Mathlib docs · Source

SFinKer

The category of measurable spaces with s-finite kernels is a copy-discard category.

Main declarations

  • LargeCategory SFinKer: the categorical structure on SFinKer.
  • MonoidalCategory SFinKer: SFinKer is a monoidal category using the Cartesian product.
  • SymmetricCategory SFinKer: SFinKer is a symmetric monoidal category.
  • CopyDiscardCategory SFinKer: SFinKer is a copy-discard category.

References

  • [A synthetic approach to Markov kernels, conditional independence and theorems on sufficient statistics][fritz2020]

theorem SFinKer.Hom.mk.inj E1 #

∀ {X Y : SFinKer} {hom : ProbabilityTheory.Kernel X.carrier Y.carrier}
  {property : ProbabilityTheory.IsSFiniteKernel hom} {hom_1 : ProbabilityTheory.Kernel X.carrier Y.carrier}
  {property_1 : ProbabilityTheory.IsSFiniteKernel hom_1},
  { hom := hom, property := property } = { hom := hom_1, property := property_1 } → hom = hom_1

theorem SFinKer.of.injEq E0 #

∀ (carrier : Type u) [str : MeasurableSpace carrier] (carrier_1 : Type u) (str_1 : MeasurableSpace carrier_1),
  ({ carrier := carrier, str := str } = { carrier := carrier_1, str := str_1 }) = (carrier = carrier_1 ∧ str ≍ str_1)

theorem SFinKer.Hom.mk.injEq E0 #

∀ {X Y : SFinKer} (hom : ProbabilityTheory.Kernel X.carrier Y.carrier)
  (property : ProbabilityTheory.IsSFiniteKernel hom) (hom_1 : ProbabilityTheory.Kernel X.carrier Y.carrier)
  (property_1 : ProbabilityTheory.IsSFiniteKernel hom_1),
  ({ hom := hom, property := property } = { hom := hom_1, property := property_1 }) = (hom = hom_1)

def SFinKer.Hom.ctorIdx E1 #

{X Y : SFinKer} → X.Hom Y → ℕ

theorem SFinKer.Hom.mk.congr_simp E1 #

∀ {X Y : SFinKer} (hom hom_1 : ProbabilityTheory.Kernel X.carrier Y.carrier) (e_hom : hom = hom_1)
  (property : ProbabilityTheory.IsSFiniteKernel hom),
  { hom := hom, property := property } = { hom := hom_1, property := ⋯ }

theorem SFinKer.of.inj E1 #

∀ {carrier : Type u} {str : MeasurableSpace carrier} {carrier_1 : Type u} {str_1 : MeasurableSpace carrier_1},
  { carrier := carrier, str := str } = { carrier := carrier_1, str := str_1 } → carrier = carrier_1 ∧ str ≍ str_1

def SFinKer.ctorIdx E1 #

SFinKer → ℕ

structure SFinKer E3 #

Type (u + 1)

The category of measurable spaces and s-finite kernels.

ctor SFinKer.of E0 #

(carrier : Type u) → [str : MeasurableSpace carrier] → SFinKer

abbrev SFinKer.carrier E1 #

SFinKer → Type u

The underlying measurable space.

instance SFinKer.str E0 #

(self : SFinKer) → MeasurableSpace self.carrier

instance instCoeSortSFinKerType E0 #

CoeSort SFinKer (Type u_1)

structure SFinKer.Hom E1 #

SFinKer → SFinKer → Type u

The morphisms in SFinKer from X to Y are the s-finite kernels from X to Y.

theorem SFinKer.Hom.ext E1 #

∀ {X Y : SFinKer} {x y : X.Hom Y}, x.hom = y.hom → x = y

theorem SFinKer.Hom.ext_iff E0 #

∀ {X Y : SFinKer} {x y : X.Hom Y}, x = y ↔ x.hom = y.hom

ctor SFinKer.Hom.mk E0 #

{X Y : SFinKer} → (hom : ProbabilityTheory.Kernel X.carrier Y.carrier) → ProbabilityTheory.IsSFiniteKernel hom → X.Hom Y

abbrev SFinKer.Hom.hom E1 #

{X Y : SFinKer} → X.Hom Y → ProbabilityTheory.Kernel X.carrier Y.carrier

The underlying morphism.

theorem SFinKer.Hom.property E1 #

∀ {X Y : SFinKer} (self : X.Hom Y), ProbabilityTheory.IsSFiniteKernel self.hom

The property that the morphism satisfies.

instance SFinKer.instIsSFiniteKernelCarrierHom E0 #

∀ {X Y : SFinKer} {κ : X.Hom Y}, ProbabilityTheory.IsSFiniteKernel κ.hom

theorem SFinKer.comp_hom E1 #

∀ {X Y Z : SFinKer} (κ : X.Hom Y) (η : Y.Hom Z), (CategoryTheory.CategoryStruct.comp κ η).hom = η.hom.comp κ.hom

theorem SFinKer.id_hom E1 #

∀ (X : SFinKer), (CategoryTheory.CategoryStruct.id X).hom = ProbabilityTheory.Kernel.id

instance SFinKer.instLargeCategory E0 #

CategoryTheory.LargeCategory SFinKer

theorem SFinKer.hom_ext E1 #

∀ {X Y : SFinKer} {κ η : X ⟶ Y}, κ.hom = η.hom → κ = η

theorem SFinKer.hom_ext_iff E0 #

∀ {X Y : SFinKer} {κ η : X ⟶ Y}, κ = η ↔ κ.hom = η.hom

instance SFinKer.instMonoidalCategory E0 #

CategoryTheory.MonoidalCategory SFinKer

theorem SFinKer.associator_hom_hom E1 #

∀ (X Y Z : SFinKer),
  (CategoryTheory.MonoidalCategoryStruct.associator X Y Z).hom.hom =
    ProbabilityTheory.Kernel.deterministic ⇑MeasurableEquiv.prodAssoc ⋯

theorem SFinKer.whiskerRight_hom E1 #

∀ {X₁ X₂ : SFinKer} (κ : X₁ ⟶ X₂) (Y : SFinKer),
  (CategoryTheory.MonoidalCategoryStruct.whiskerRight κ Y).hom = κ.hom.parallelComp ProbabilityTheory.Kernel.id

theorem SFinKer.leftUnitor_hom_hom E1 #

∀ (X : SFinKer), (CategoryTheory.MonoidalCategoryStruct.leftUnitor X).hom.hom = ProbabilityTheory.Kernel.id.map Prod.snd

theorem SFinKer.whiskerLeft_hom E1 #

∀ (X Y₁ Y₂ : SFinKer) (κ : Y₁ ⟶ Y₂),
  (CategoryTheory.MonoidalCategoryStruct.whiskerLeft X κ).hom = ProbabilityTheory.Kernel.id.parallelComp κ.hom

theorem SFinKer.leftUnitor_inv_hom E1 #

∀ (X : SFinKer),
  (CategoryTheory.MonoidalCategoryStruct.leftUnitor X).inv.hom = ProbabilityTheory.Kernel.id.map fun x ↦ (PUnit.unit, x)

theorem SFinKer.rightUnitor_inv_hom E1 #

∀ (X : SFinKer),
  (CategoryTheory.MonoidalCategoryStruct.rightUnitor X).inv.hom =
    ProbabilityTheory.Kernel.id.map fun x ↦ (x, PUnit.unit)

theorem SFinKer.tensorObj_carrier E1 #

∀ (X Y : SFinKer), (CategoryTheory.MonoidalCategoryStruct.tensorObj X Y).carrier = (X.carrier × Y.carrier)

theorem SFinKer.tensorObj_str E1 #

∀ (X Y : SFinKer), (CategoryTheory.MonoidalCategoryStruct.tensorObj X Y).str = Prod.instMeasurableSpace

theorem SFinKer.tensorUnit_str E1 #

(CategoryTheory.MonoidalCategoryStruct.tensorUnit SFinKer).str = PUnit.instMeasurableSpace

theorem SFinKer.rightUnitor_hom_hom E1 #

∀ (X : SFinKer),
  (CategoryTheory.MonoidalCategoryStruct.rightUnitor X).hom.hom = ProbabilityTheory.Kernel.id.map Prod.fst

theorem SFinKer.tensorUnit_carrier E1 #

(CategoryTheory.MonoidalCategoryStruct.tensorUnit SFinKer).carrier = PUnit.{u + 1}

theorem SFinKer.tensorHom_def E0 #

∀ {X₁ Y₁ X₂ Y₂ : SFinKer} (f : X₁ ⟶ Y₁) (g : X₂ ⟶ Y₂),
  CategoryTheory.MonoidalCategoryStruct.tensorHom f g =
    CategoryTheory.CategoryStruct.comp
      ((fun {X₁ X₂} κ Y ↦ { hom := κ.hom.parallelComp ProbabilityTheory.Kernel.id, property := ⋯ }) f X₂)
      ((fun X Y₁ Y₂ κ ↦ { hom := ProbabilityTheory.Kernel.id.parallelComp κ.hom, property := ⋯ }) Y₁ X₂ Y₂ g)

theorem SFinKer.associator_inv_hom E1 #

∀ (X Y Z : SFinKer),
  (CategoryTheory.MonoidalCategoryStruct.associator X Y Z).inv.hom =
    ProbabilityTheory.Kernel.deterministic ⇑MeasurableEquiv.prodAssoc.symm ⋯

instance SFinKer.instSymmetricCategory E0 #

CategoryTheory.SymmetricCategory SFinKer

theorem SFinKer.braiding_inv_hom E1 #

∀ (X Y : SFinKer), (β_ X Y).inv.hom = ProbabilityTheory.Kernel.swap Y.carrier X.carrier

theorem SFinKer.braiding_hom_hom E1 #

∀ (X Y : SFinKer), (β_ X Y).hom.hom = ProbabilityTheory.Kernel.swap X.carrier Y.carrier

theorem SFinKer.counit_hom E1 #

∀ {X : SFinKer}, CategoryTheory.ComonObj.counit.hom = ProbabilityTheory.Kernel.discard X.carrier

theorem SFinKer.comul_hom E1 #

∀ {X : SFinKer}, CategoryTheory.ComonObj.comul.hom = ProbabilityTheory.Kernel.copy X.carrier

instance SFinKer.instComonObj E0 #

{X : SFinKer} → CategoryTheory.ComonObj X

instance SFinKer.instCopyDiscardCategory E0 #

CategoryTheory.CopyDiscardCategory SFinKer

instance SFinKer.deterministic_deterministic E0 #

∀ (X Y : SFinKer) (κ : ProbabilityTheory.Kernel X.carrier Y.carrier) [inst : ProbabilityTheory.IsDeterministic κ]
  [ProbabilityTheory.IsMarkovKernel κ], CategoryTheory.Deterministic { hom := κ, property := ⋯ }

theorem SFinKer.deterministic_id_map E1 #

∀ (X Y : SFinKer) (f : X.carrier → Y.carrier),
  Measurable f → CategoryTheory.Deterministic { hom := ProbabilityTheory.Kernel.id.map f, property := ⋯ }

instance SFinKer.instDeterministicHomAssociator E0 #

∀ {X Y Z : SFinKer}, CategoryTheory.Deterministic (CategoryTheory.MonoidalCategoryStruct.associator X Y Z).hom

instance SFinKer.instDeterministicHomLeftUnitor E0 #

∀ {X : SFinKer}, CategoryTheory.Deterministic (CategoryTheory.MonoidalCategoryStruct.leftUnitor X).hom

instance SFinKer.instDeterministicHomRightUnitor E0 #

∀ {X : SFinKer}, CategoryTheory.Deterministic (CategoryTheory.MonoidalCategoryStruct.rightUnitor X).hom

instance SFinKer.instDeterministicHomBraiding E0 #

∀ {X Y : SFinKer}, CategoryTheory.Deterministic (β_ X Y).hom

instance SFinKer.instDeterministicCounit E0 #

∀ {X : SFinKer}, CategoryTheory.Deterministic CategoryTheory.ComonObj.counit

instance SFinKer.instDeterministicComul E0 #

∀ {X : SFinKer}, CategoryTheory.Deterministic CategoryTheory.ComonObj.comul