OAI/Combinatorics/ContingencyTables/Rooted/ForestPenaltyApplication.lean
19 declarations, 0 contain sorry, 0 declared as axioms
Literal companion row/column and unary tree penalties
The physical row view is ell+x; the physical column view is ell+M-y. The line groups are the disjoint original row and column coordinates. Roots are the actual chosen component roots of the large-cell forest. Only the false (row) coordinate of each tree cell carries its interval penalty. Thus the concrete exact factor family is precisely the source's nonroot indicator times its root/tree penalty weight.
- def
OAI.ContingencyTables.ForestPenaltyApplication.physicalRowline 27 - def
OAI.ContingencyTables.ForestPenaltyApplication.physicalColumnline 30 - def
OAI.ContingencyTables.ForestPenaltyApplication.lineOffsetline 34 - def
OAI.ContingencyTables.ForestPenaltyApplication.deviationline 39 - lemma
OAI.ContingencyTables.ForestPenaltyApplication.line_affineline 44 - def
OAI.ContingencyTables.ForestPenaltyApplication.rootFlagline 62 - def
OAI.ContingencyTables.ForestPenaltyApplication.unaryRateline 65 - def
OAI.ContingencyTables.ForestPenaltyApplication.unaryEllline 69 - def
OAI.ContingencyTables.ForestPenaltyApplication.unarySlopeline 71 - def
OAI.ContingencyTables.ForestPenaltyApplication.unaryCapline 73 - def
OAI.ContingencyTables.ForestPenaltyApplication.rootPenaltyline 75 - def
OAI.ContingencyTables.ForestPenaltyApplication.treePenaltyline 79 - def
OAI.ContingencyTables.ForestPenaltyApplication.penaltyline 84 - def
OAI.ContingencyTables.ForestPenaltyApplication.physicalWeightline 88 - lemma
OAI.ContingencyTables.ForestPenaltyApplication.line_product_eqline 94 - lemma
OAI.ContingencyTables.ForestPenaltyApplication.unary_product_eqline 113 - theorem
OAI.ContingencyTables.ForestPenaltyApplication.exact_eqline 133Source documentation
This is the companion's literal root/tree exponential weight with exact nonroot margin indicators, in the actual row/column coordinates.
theorem exact_eq (T : SimpleGraph (I⊕J)) (b : I → J → ℕ) (ell : I → J → ℤ) (M : I → J → ℕ) (r : I → ℤ) (c : J → ℤ) (alpha : ℝ) (z : ((I×J)×Bool) → ℕ) : physicalWeight T b ell M r c alpha z= if (∀ g, rootFlag T g=false → deviation ell M r c z g=0) then (2:ℝ)^(-alpha*penalty T b ell M r c z) else 0 := by …Mentions: OAI.ContingencyTables.ForestPenaltyApplication.physicalWeight, OAI.ContingencyTables.ForestPenaltyApplication.rootFlag, OAI.ContingencyTables.ForestPenaltyApplication.deviation, OAI.ContingencyTables.ForestPenaltyApplication.penalty
- theorem
OAI.ContingencyTables.ForestPenaltyApplication.physicalWeight_nonnegativeline 154 - theorem
OAI.ContingencyTables.ForestPenaltyApplication.exact_removalline 164Source documentation
The concrete unsummed factor family has the required raw removal signature; its line and unary roles have all been physically instantiated.
theorem exact_removal (T : SimpleGraph (I⊕J)) (b : I → J → ℕ) (ell : I → J → ℤ) (M : I → J → ℕ) (r : I → ℤ) (c : J → ℤ) (alpha : ℝ) (ha : 0≤alpha) (z : ((I×J)×Bool) → ℕ) : OnePositiveDirection (FactorialSignatures.integerRemovalMatrix (physicalWeight T b ell M r c alpha) z).toBilin' := by …Mentions: OAI.ContingencyTables.OnePositiveDirection, OAI.ContingencyTables.FactorialSignatures.integerRemovalMatrix, OAI.ContingencyTables.ForestPenaltyApplication.physicalWeight