OAI/Combinatorics/ContingencyTables/Sampling/SmallContextCoordinates.lean
12 declarations, 0 contain sorry, 0 declared as axioms
Actual row-major small-prefix coordinate splitting
The retained prefix is precisely the earlier small cells. The remaining ordinary cells all follow the next exposed cell, which is the condition needed for the completion-retaining conditional repair injection.
- lemma
OAI.ContingencyTables.SmallContextCoordinates.rowMajor_trichotomyline 22 - abbrev
OAI.ContingencyTables.SmallContextCoordinates.Cellsline 31 - def
OAI.ContingencyTables.SmallContextCoordinates.Earlierline 33 - def
OAI.ContingencyTables.SmallContextCoordinates.Laterline 34 - instance
OAI.ContingencyTables.SmallContextCoordinates.earlierFintypeline 36 - instance
OAI.ContingencyTables.SmallContextCoordinates.laterFintypeline 41 - def
OAI.ContingencyTables.SmallContextCoordinates.cellSplitEquivline 46 - def
OAI.ContingencyTables.SmallContextCoordinates.splitPairEquivline 86Source documentation
Pack the prefix, special pair and suffix into the cell split.
def splitPairEquiv (P T : Type u) : ((P×Bool) ⊕ (Bool ⊕ (T×Bool))) ≃ (P ⊕ (Unit ⊕ T))×Bool where … - def
OAI.ContingencyTables.SmallContextCoordinates.contextEquivline 101Source documentation
The exact small-coordinate bijection required by physical context transport. The suffix enumeration introduces no extra assignment.
noncomputable def contextEquiv (small : I → J → Bool) (s : I×J) (hs : small s.1 s.2=true) {n : ℕ} (e : Fin n ≃ Later small s) (U : ℕ) : ((Earlier small s×Bool) ⊕ Coordinates Bool (widths (fun _ : Fin n => U))) ≃ SmallView (fun a : I×J => small a.1 a.2) := …Mentions: OAI.ContingencyTables.SmallContextCoordinates.Later, OAI.ContingencyTables.SmallContextCoordinates.Earlier
- lemma
OAI.ContingencyTables.SmallContextCoordinates.contextEquiv_prefixline 109 - lemma
OAI.ContingencyTables.SmallContextCoordinates.contextEquiv_specialline 114 - lemma
OAI.ContingencyTables.SmallContextCoordinates.contextEquiv_laterline 122