OAI/Combinatorics/ContingencyTables/Counting/CompanionPhaseWords.lean
11 declarations, 0 contain sorry, 0 declared as axioms
Explicit fresh words and rational arithmetic for one outer phase
- def
OAI.ContingencyTables.CompanionPhaseWords.observationBitsline 19Source documentation
Separate current-parameter and next-parameter oracle words are reserved at every observed state, including states at which they are unused.
def observationBits (A : Instance I J) (C K j : ℕ) (xi : ℚ) : ℕ := …
- def
OAI.ContingencyTables.CompanionPhaseWords.phaseBitsline 22 - def
OAI.ContingencyTables.CompanionPhaseWords.phaseWordEquivline 25 - def
OAI.ContingencyTables.CompanionPhaseWords.observedTermline 31 - def
OAI.ContingencyTables.CompanionPhaseWords.observedRatioline 39 - lemma
OAI.ContingencyTables.CompanionPhaseWords.observedTerm_nonnegline 46 - lemma
OAI.ContingencyTables.CompanionPhaseWords.observedRatio_positiveline 58 - structure
OAI.ContingencyTables.CompanionPhaseWords.Storedline 81 - def
OAI.ContingencyTables.CompanionPhaseWords.updateline 85 - theorem
OAI.ContingencyTables.CompanionPhaseWords.update_positiveline 97Source documentation
A nonaborting update keeps every stored rational positive, even if all its weight calls were statistically inaccurate.
theorem update_positive (A : Instance I J) (C : ℕ) (hC : 0 < C) (K j N : ℕ) (hK : 1 ≤ K) (hW : 100*A.d*K ≤ A.W) (hB : (K:ℝ)=binWidth A C) (hj : j+1 ≤ rationalHeight A C) (xi : ℚ) (hx0 : 0 < xi) (hx1 : xi < 1) (v : Grid (I := Fin (dimension A)) K) (old next : Stored A) … - lemma
OAI.ContingencyTables.CompanionPhaseWords.update_multiplier_castline 114