pith. machine review for the scientific record. sign in
def

indistinguishableSetoid

definition
show as:
view math explainer →
module
IndisputableMonolith.RecogGeom.Indistinguishable
domain
RecogGeom
line
62 · github
papers citing
none yet

open explainer

Read the cached plain-language explainer.

open lean source

IndisputableMonolith.RecogGeom.Indistinguishable on GitHub at line 62.

browse module

All declarations in this module, on Recognition.

explainer page

A cached Ask Recognition explainer exists for this declaration.

open explainer

depends on

used by

formal source

  59  trans := Indistinguishable.trans r
  60
  61/-- The indistinguishability setoid -/
  62def indistinguishableSetoid : Setoid C where
  63  r := Indistinguishable r
  64  iseqv := indistinguishable_equivalence r
  65
  66/-! ## Resolution Cells -/
  67
  68/-- The resolution cell of a configuration c is its equivalence class
  69    under indistinguishability. This is the set of all configurations
  70    that produce the same event as c. -/
  71def ResolutionCell {C E : Type*} (r : Recognizer C E) (c : C) : Set C :=
  72  {c' : C | c' ~[r] c}
  73
  74/-- A configuration is in its own resolution cell -/
  75theorem mem_resolutionCell_self (c : C) : c ∈ ResolutionCell r c :=
  76  Indistinguishable.refl r c
  77
  78/-- Resolution cells are exactly the fibers of the recognizer -/
  79theorem resolutionCell_eq_fiber (c : C) :
  80    ResolutionCell r c = r.fiber (r.R c) := by
  81  ext c'
  82  simp [ResolutionCell, Indistinguishable, Recognizer.fiber]
  83
  84/-- Two configurations have the same resolution cell iff they're indistinguishable -/
  85theorem resolutionCell_eq_iff {c₁ c₂ : C} :
  86    ResolutionCell r c₁ = ResolutionCell r c₂ ↔ c₁ ~[r] c₂ := by
  87  constructor
  88  · intro h
  89    have : c₂ ∈ ResolutionCell r c₁ := by
  90      rw [h]
  91      exact mem_resolutionCell_self r c₂
  92    exact (Indistinguishable.symm' r this)