OAI/Combinatorics/ContingencyTables/Dense/DenseSuppliedFallback.lean
13 declarations, 0 contain sorry, 0 declared as axioms
Dense law tabulation retains the supplied feasible fallback
- abbrev
OAI.ContingencyTables.DensePrograms.SuppliedTabulationline 11 - def
OAI.ContingencyTables.DensePrograms.replaceVectorFallbackline 13 - def
OAI.ContingencyTables.DensePrograms.replaceVectorFallbackRealizerline 16 - lemma
OAI.ContingencyTables.DensePrograms.polynomial_replaceVectorFallbackline 19 - def
OAI.ContingencyTables.DensePrograms.suppliedVectorInputline 24 - def
OAI.ContingencyTables.DensePrograms.suppliedVectorInputRealizerline 27 - def
OAI.ContingencyTables.DensePrograms.suppliedTabulationMeasureline 36 - lemma
OAI.ContingencyTables.DensePrograms.work_suppliedVectorInputline 38 - def
OAI.ContingencyTables.DensePrograms.suppliedDrawCountsline 57 - def
OAI.ContingencyTables.DensePrograms.suppliedDrawCountsRealizerline 60 - theorem
OAI.ContingencyTables.DensePrograms.work_suppliedDrawCountsline 63 - theorem
OAI.ContingencyTables.DensePrograms.suppliedDrawCounts_actualline 79Source documentation
The fallback is transported by the caller's normalization, rather than being recomputed in the normalized margin order.
theorem suppliedDrawCounts_actual {m n d : ℕ} (R : Option (Fin m) → ℕ) (P : Option (Fin n) → ℕ) (hd : 14≤d) (hq : m*n≤d) (hR : ∀ i,d^12≤R i) (hP : ∀ j,d^12≤P j) (htotal : ∑ i,R i=∑ j,P j) (h : ℕ) (fallback : Table R P) : suppliedDrawCounts (((marginCode R,marginCode P),(d,h)),tableOutput fallback)= List.ofFn (((IndexedTableLaw.law R P (le_refl (∑ i,R i)) ((denseTrialCounts R P d hd hR hP finProdFinEquiv h (canonicalOrigin (m*n) d (by omega))).push (trialSuccess R P d finProdFinEquiv htotal))).retry (IndexedTableLaw.index R P (le_refl (∑ i,R i)) fallback) (d^4*(h+1))).count) := by …Mentions: OAI.ContingencyTables.Table, OAI.ContingencyTables.DensePrograms.suppliedDrawCounts, OAI.ContingencyTables.DensePrograms.marginCode, OAI.ContingencyTables.DensePrograms.tableOutput, OAI.ContingencyTables.IndexedTableLaw.law, OAI.ContingencyTables.DensePrograms.canonicalOrigin, OAI.ContingencyTables.IndexedTableLaw.index
- theorem
OAI.ContingencyTables.DensePrograms.suppliedDrawCounts_atline 111