OAI/Combinatorics/ContingencyTables/Transport/IntegerResidualCorrection.lean
6 declarations, 0 contain sorry, 0 declared as axioms
Integer realization of the exact residual correction law
- def
OAI.ContingencyTables.IntegerResidualCorrection.countline 14 - lemma
OAI.ContingencyTables.IntegerResidualCorrection.cast_countline 17 - def
OAI.ContingencyTables.IntegerResidualCorrection.lawline 28Source documentation
The finite integer weights sum to
|A|*Q; all truncations are exact because the ordinary law is pointwise dominated by the uniform law.def law (p : IntegerLaw A Q) (T : ℕ) (hQ : 0<Q) (hT : 0<T) (hdom : ∀ x,(1-1/(T:ℚ))*(p.toRational hQ).mass x≤uniformMass (α := A)) : …Mentions: OAI.ContingencyTables.IntegerLaw
- lemma
OAI.ContingencyTables.IntegerResidualCorrection.denominator_posline 42 - lemma
OAI.ContingencyTables.IntegerResidualCorrection.law_massline 45 - theorem
OAI.ContingencyTables.IntegerResidualCorrection.mixture_exactline 58Source documentation
The ordinary branch and the explicit integer-weight branch have exactly uniform combined mass, before physical execution is compiled.
theorem mixture_exact (p : IntegerLaw A Q) (T : ℕ) (hQ : 0<Q) (hT : 0<T) (hdom : ∀ x,(1-1/(T:ℚ))*(p.toRational hQ).mass x≤uniformMass (α := A)) (a : A) : …Mentions: OAI.ContingencyTables.IntegerLaw