OAI/Combinatorics/ContingencyTables/Transport/IntegerLaw.lean
22 declarations, 0 contain sorry, 0 declared as axioms
Integer counts for the finite stages of law tabulation
- structure
OAI.ContingencyTables.IntegerLawline 13Source documentation
Counts of equally likely slots. The denominator is explicit so that composition can reserve ignored bits without enumerating them.
structure IntegerLaw (A : Type*) [Fintype A] (Q : ℕ) where …
- def
OAI.ContingencyTables.IntegerLaw.toRationalline 23 - def
OAI.ContingencyTables.IntegerLaw.ofMassline 30 - lemma
OAI.ContingencyTables.IntegerLaw.toRational_ofMassline 41 - def
OAI.ContingencyTables.IntegerLaw.rebaseline 47 - lemma
OAI.ContingencyTables.IntegerLaw.toRational_rebaseline 50 - def
OAI.ContingencyTables.IntegerLaw.scaleline 53 - theorem
OAI.ContingencyTables.IntegerLaw.toRational_scaleline 57 - def
OAI.ContingencyTables.IntegerLaw.piline 65 - theorem
OAI.ContingencyTables.IntegerLaw.toRational_piline 70 - def
OAI.ContingencyTables.IntegerLaw.pointline 79 - def
OAI.ContingencyTables.IntegerLaw.pushline 83 - def
OAI.ContingencyTables.IntegerLaw.bindline 89 - def
OAI.ContingencyTables.IntegerLaw.productline 95 - theorem
OAI.ContingencyTables.IntegerLaw.toRational_productline 101 - theorem
OAI.ContingencyTables.IntegerLaw.toRational_pushline 112 - theorem
OAI.ContingencyTables.IntegerLaw.toRational_bindline 123 - theorem
OAI.ContingencyTables.IntegerLaw.toRational_pointline 137 - def
OAI.ContingencyTables.IntegerLaw.retryCountline 148 - lemma
OAI.ContingencyTables.IntegerLaw.retryCount_totalline 152 - def
OAI.ContingencyTables.IntegerLaw.retryline 162 - theorem
OAI.ContingencyTables.IntegerLaw.toRational_retryline 167Source documentation
First-success sums are evaluated in integers with a reserved common denominator. No division by the acceptance probability occurs.
theorem toRational_retry (p : IntegerLaw (Option A) Q) (hQ : 0<Q) (fallback : A) (N : ℕ) : (p.retry fallback N).toRational (pow_pos hQ N)= retryLaw (p.toRational hQ) id fallback N := by …Mentions: OAI.ContingencyTables.IntegerLaw, OAI.ContingencyTables.IntegerLaw.toRational