OAI/Combinatorics/ContingencyTables/Transport/EqualitySoftening.lean
13 declarations, 0 contain sorry, 0 declared as axioms
Root penalties and exact nonroot equations
Root lines carry their actual absolute-deviation penalty. Nonroot lines carry a positive equality softener; its limit is the exact prescribed-line indicator. Unary interval penalties include the companion's tree factors. All balanced large-cell sums are performed before this finite limit.
- def
OAI.ContingencyTables.EqualitySoftening.lineFactorline 23 - def
OAI.ContingencyTables.EqualitySoftening.exactLineFactorline 27 - def
OAI.ContingencyTables.EqualitySoftening.affineDistanceline 33Source documentation
A physical affine coordinate, including a reflected tree coordinate.
noncomputable def affineDistance (ell slope cap : ℝ) (n : ℕ) : ℝ := …
- lemma
OAI.ContingencyTables.EqualitySoftening.affineDistance_convexline 36 - def
OAI.ContingencyTables.EqualitySoftening.unaryFactorline 50 - def
OAI.ContingencyTables.EqualitySoftening.softenedWeightline 53 - def
OAI.ContingencyTables.EqualitySoftening.exactWeightline 58 - lemma
OAI.ContingencyTables.EqualitySoftening.softenedWeight_positiveline 62 - theorem
OAI.ContingencyTables.EqualitySoftening.softenedWeight_removalline 69Source documentation
The actual positive factors prove the raw signature; it is not an assumption about a previously lifted binary weight.
theorem softenedWeight_removal (line : C → G) (root : G → Bool) (rate offset slope : G → ℝ) (urate ell uslope cap : C → ℝ) (L : ℝ) (hrate : ∀ g, 0 ≤ rate g) (hu : ∀ i, 0 ≤ urate i) (hL : 0 ≤ L) (z : C → ℕ) : OnePositiveDirection (integerRemovalMatrix (softenedWeight line root rate offset slope urate ell uslope cap L) z).toBilin' := by …Mentions: OAI.ContingencyTables.OnePositiveDirection, OAI.ContingencyTables.EqualitySoftening.softenedWeight
- lemma
OAI.ContingencyTables.EqualitySoftening.lineFactor_tendstoline 88 - theorem
OAI.ContingencyTables.EqualitySoftening.softenedWeight_tendstoline 96 - theorem
OAI.ContingencyTables.EqualitySoftening.exactWeight_removalline 106Source documentation
The exact-equality product itself inherits its finite raw signature.
theorem exactWeight_removal (line : C → G) (root : G → Bool) (rate offset slope : G → ℝ) (urate ell uslope cap : C → ℝ) (hrate : ∀ g, 0 ≤ rate g) (hu : ∀ i, 0 ≤ urate i) (z : C → ℕ) : OnePositiveDirection (integerRemovalMatrix (exactWeight line root rate offset slope urate ell uslope cap) z).toBilin' := by …Mentions: OAI.ContingencyTables.OnePositiveDirection, OAI.ContingencyTables.EqualitySoftening.exactWeight
- theorem
OAI.ContingencyTables.EqualitySoftening.exact_marginal_removalline 123Source documentation
This is the actual finite balanced large-cell marginal with exact nonroot equations. Positive softening is retained through every sum and removed only after the last sum.
theorem exact_marginal_removal (Ms : List ℕ) (m : I → ℕ) (R : ℕ) (line : Coordinates I Ms → G) (root : G → Bool) (rate offset slope : G → ℝ) (urate ell uslope cap : Coordinates I Ms → ℝ) (hwidth : ∀ M ∈ Ms, 2 ≤ M) (hrate : ∀ g, 0 ≤ rate g) (hu : ∀ i, 0 ≤ urate i) : RemovalSlice (eliminate Ms (exactWeight line root rate offset slope urate ell uslope cap)) m R := by …Mentions: OAI.ContingencyTables.EqualitySoftening.exactWeight