OAI/Combinatorics/ContingencyTables/Machines/CachedCompletionWeights.lean
17 declarations, 0 contain sorry, 0 declared as axioms
Explicit table weights from the computed dense-law cache
- abbrev
OAI.ContingencyTables.DensePrograms.CompletionCacheline 11 - def
OAI.ContingencyTables.DensePrograms.cachedCompletionWeightline 13 - def
OAI.ContingencyTables.DensePrograms.cachedCompletionWeightRealizerline 16 - lemma
OAI.ContingencyTables.DensePrograms.polynomial_cachedCompletionWeightline 25 - def
OAI.ContingencyTables.DensePrograms.completionWeightEntryline 34 - def
OAI.ContingencyTables.DensePrograms.completionWeightEntryRealizerline 37 - lemma
OAI.ContingencyTables.DensePrograms.polynomial_completionWeightEntryline 40 - def
OAI.ContingencyTables.DensePrograms.completionWeightInputline 43 - def
OAI.ContingencyTables.DensePrograms.completionWeightInputRealizerline 46 - def
OAI.ContingencyTables.DensePrograms.completionWeightMeasureline 50 - lemma
OAI.ContingencyTables.DensePrograms.weight_le_completionMeasureline 53 - lemma
OAI.ContingencyTables.DensePrograms.work_completionWeightInputline 58 - def
OAI.ContingencyTables.DensePrograms.completionWeightsline 76 - def
OAI.ContingencyTables.DensePrograms.completionWeightsRealizerline 80 - theorem
OAI.ContingencyTables.DensePrograms.work_completionWeightsline 86 - lemma
OAI.ContingencyTables.DensePrograms.cachedCompletionWeight_actualline 94 - theorem
OAI.ContingencyTables.DensePrograms.completionWeights_actualline 107Source documentation
The explicit list contains every feasible table once. Each rejected free vector has zero weight; the surviving weights are the actual draw counts.
theorem completionWeights_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 : ℕ) : completionWeights ((marginCode R,marginCode P),(d,h))= List.ofFn (fun k : Fin (((∑ i,R i)+1)^(m*n)) => let o := BoxCompletion.decode R P htotal (∑ i,R i) (finFunctionFinEquiv.symm k) …Mentions: OAI.ContingencyTables.DensePrograms.completionWeights, OAI.ContingencyTables.DensePrograms.marginCode, OAI.ContingencyTables.BoxCompletion.decode