OAI/Combinatorics/ContingencyTables/Rooted/ForestPenaltyProgram.lean
25 declarations, 0 contain sorry, 0 declared as axioms
Exact rational assembly of the companion forest penalty
The natural root discrepancy and the finite list of tree affine forms are combined by polynomial binary arithmetic to compute rationalD, including the original maximum-forest cuts.
- abbrev
OAI.ContingencyTables.ForestPenaltyProgram.Inputline 19 - def
OAI.ContingencyTables.ForestPenaltyProgram.rootFractionRealizerline 21 - def
OAI.ContingencyTables.ForestPenaltyProgram.scaleFractionRealizerline 24 - def
OAI.ContingencyTables.ForestPenaltyProgram.treeSumline 27 - def
OAI.ContingencyTables.ForestPenaltyProgram.treeSumRealizerline 30 - lemma
OAI.ContingencyTables.ForestPenaltyProgram.polynomial_treeSumline 35 - def
OAI.ContingencyTables.ForestPenaltyProgram.penaltyCodeline 39 - def
OAI.ContingencyTables.ForestPenaltyProgram.rootSumRealizerline 42 - lemma
OAI.ContingencyTables.ForestPenaltyProgram.polynomial_rootSumline 46 - def
OAI.ContingencyTables.ForestPenaltyProgram.penaltyCodeRealizerline 51 - theorem
OAI.ContingencyTables.ForestPenaltyProgram.polynomial_penaltyCodeline 57 - lemma
OAI.ContingencyTables.ForestPenaltyProgram.penaltyCode_valueline 62 - abbrev
OAI.ContingencyTables.ForestPenaltyProgram.ExponentInputline 76 - def
OAI.ContingencyTables.ForestPenaltyProgram.weightedPenaltyline 78 - def
OAI.ContingencyTables.ForestPenaltyProgram.weightedPenaltyRealizerline 81 - lemma
OAI.ContingencyTables.ForestPenaltyProgram.polynomial_weightedPenaltyline 86 - def
OAI.ContingencyTables.ForestPenaltyProgram.exponentCodeline 90 - def
OAI.ContingencyTables.ForestPenaltyProgram.exponentCodeRealizerline 92 - theorem
OAI.ContingencyTables.ForestPenaltyProgram.polynomial_exponentCodeline 96 - lemma
OAI.ContingencyTables.ForestPenaltyProgram.exponentCode_valueline 99 - def
OAI.ContingencyTables.ForestPenaltyProgram.rootCountline 111Source documentation
This is the integral root part occurring in the source's exact forest completion, before multiplying by the softening strength.
def rootCount (A : Instance I J) (x y : I → J → ℤ) : ℕ := …
- lemma
OAI.ContingencyTables.ForestPenaltyProgram.rootCount_castline 115 - def
OAI.ContingencyTables.ForestPenaltyProgram.dataline 127 - theorem
OAI.ContingencyTables.ForestPenaltyProgram.penaltyCode_dataline 136Source documentation
The compiled finite arithmetic computes the actual rational penalty; this statement uses no oracle or approximate-evaluation premise.
theorem penaltyCode_data (A : Instance I J) (C : ℕ) (hC : 0<C) (z : View A → ℕ) (trees : Fin t ≃ TreeCell A.T) (free : Fin q ≃ FreeCell A.small A.T) (v : FreeCell A.small A.T → ℕ) : TreeFraction.val (penaltyCode (data A C z trees free v))= rationalD A C z (fun i => (v (index A i):ℚ)) := by …Mentions: OAI.ContingencyTables.ForestPenaltyProgram.penaltyCode, OAI.ContingencyTables.ForestPenaltyProgram.data
- theorem
OAI.ContingencyTables.ForestPenaltyProgram.exponentCode_dataline 154