Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  Positive.lean   Sprache: Lean

 

/-
Copyright (c) 2026 Gaëtan Serré. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gaëtan Serré
-/

module

public import Mathlib.CategoryTheory.CopyDiscardCategory.Deterministic
public import Mathlib.CategoryTheory.MarkovCategory.Basic

/-!
# 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]
-/


public section

universe v u

namespace CategoryTheory

open MonoidalCategory CopyDiscardCategory ComonObj

/-- Markov category where copy is natural given deterministic composition of morphisms. -/
class PositiveCategory (C : Type u) [Category.{v} C] [MonoidalCategory C] extends
    MarkovCategory C where
  /-- 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. -/

  copy_comp_natural {X Y Z : C} (f : X ⟶ Y) (g : Y ⟶ Z) [h : Deterministic (f ≫ g)] :
      f ≫ Δ ≫ (g ⊗ₘ �� Y) = Δ ≫ (f ≫ g ⊗ₘ f)

variable {C : Type u} [Category.{v} C] [MonoidalCategory C]

namespace PositiveCategory

variable [PositiveCategory C]

instance {X Y : C} (f : X ⟶ Y) [IsIso f] : Deterministic f where
  hom_comul := by
    calc
    _ = f ≫ Δ ≫ (inv f ⊗ₘ �� Y) ≫ (f ⊗ₘ �� Y) := by
      cat_disch
    _ = (f ≫ Δ ≫ (inv f ⊗ₘ �� Y)) ≫ (f ⊗ₘ �� Y) := by
      simp
    _ = (Δ ≫ (�� X ⊗ₘ f)) ≫ (f ⊗ₘ �� Y) := by
      rw [copy_comp_natural (h := by rw [IsIso.hom_inv_id]; infer_instance)]
      simp
    _ = Δ ≫ (�� X ⊗ₘ f) ≫ (f ⊗ₘ �� Y) := by
      simp
    _ = Δ ≫ ((�� X ≫ f) ⊗ₘ (f ≫ �� Y)) := by
      rw [MonoidalCategory.tensorHom_comp_tensorHom]
    _ = Δ ≫ (f ⊗ₘ f) := by cat_disch

end PositiveCategory

end CategoryTheory

Messung
CHZG
9210010097

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

letze Version des Elbe Quellennavigators


letze Version des Demonstrationsprogramms Goedel
letze Version des Bille Abgleichprogramms
Version

Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1,188,097
#Domains=862,651