OAI/Combinatorics/ContingencyTables/Machines/CachedStepCount.lean
9 declarations, 0 contain sorry, 0 declared as axioms
Weighted transitions from the cached completion list
- abbrev
OAI.ContingencyTables.ProfilePrograms.DecisionQueryline 16 - def
OAI.ContingencyTables.ProfilePrograms.decisionWeightline 20Source documentation
A rejected box entry contributes zero. A valid completion contributes its cached integer multiplicity precisely when it reaches the target.
def decisionWeight (z : DecisionQuery×(Option MatrixCode×ℕ)) : ℕ := …
Mentions: OAI.ContingencyTables.ProfilePrograms.DecisionQuery
- def
OAI.ContingencyTables.ProfilePrograms.decisionWeightRealizerline 23 - lemma
OAI.ContingencyTables.ProfilePrograms.polynomial_decisionWeightline 38 - def
OAI.ContingencyTables.ProfilePrograms.decisionWeightSumline 54 - def
OAI.ContingencyTables.ProfilePrograms.decisionWeightSumRealizerline 57 - lemma
OAI.ContingencyTables.ProfilePrograms.polynomial_decisionWeightSumline 60 - lemma
OAI.ContingencyTables.DensePrograms.sum_completionWeightsline 70Source documentation
Free-box enumeration sums each feasible table's weight once.
lemma sum_completionWeights {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 : ℕ) (w : MatrixCode → ℕ) : ((completionWeights ((marginCode R,marginCode P),(d,h))).map (fun z => z.1.elim 0 (fun X => z.2*w X))).sum= ∑ X : Table R P,(canonicalCounts R P hd hR hP htotal h).count X*w (tableOutput X) := by …Mentions: OAI.ContingencyTables.DensePrograms.MatrixCode, OAI.ContingencyTables.DensePrograms.completionWeights, OAI.ContingencyTables.DensePrograms.marginCode, OAI.ContingencyTables.Table, OAI.ContingencyTables.DensePrograms.canonicalCounts, OAI.ContingencyTables.DensePrograms.tableOutput
- lemma
OAI.ContingencyTables.SmallGraphProfiles.decisionWeightSum_actualline 114