OAI/Combinatorics/ContingencyTables/Transport/IntegerFutureSquare.lean
17 declarations, 0 contain sorry, 0 declared as axioms
The integer transport recursion's future square identity
The three new--new removal entries partition by the same resulting pair. Their coefficients give an exact nonnegative square, without a signature assumption on the weighted future form.
- lemma
OAI.ContingencyTables.IntegerWeightedTransport.sum_range_shiftline 17 - lemma
OAI.ContingencyTables.IntegerWeightedTransport.sum_range_truncateline 30 - lemma
OAI.ContingencyTables.IntegerWeightedTransport.sum_middle_shiftline 43 - lemma
OAI.ContingencyTables.IntegerWeightedTransport.future_aaline 57 - lemma
OAI.ContingencyTables.IntegerWeightedTransport.future_bbline 66 - lemma
OAI.ContingencyTables.IntegerWeightedTransport.future_abline 78 - theorem
OAI.ContingencyTables.IntegerWeightedTransport.future_new_squareline 93Source documentation
The exact new--new part of the future correction: two diagonal removals and the mixed removal of the same integer pair form a square.
theorem future_new_square (F : ((I ⊕ Bool) → ℕ) → ℝ) (z : I → ℕ) (n : ℕ) (g : ℕ → ℝ) : (∑ j ∈ Finset.range (n+3), (pairMatrix F (n+2) z j (.inr false) (.inr false) * g j ^ 2 - 2 * pairMatrix F (n+2) z j (.inr false) (.inr true) * g j * g (j+1) + pairMatrix F (n+2) z j (.inr true) (.inr true) * g (j+1) ^ 2)) = ∑ k ∈ Finset.range (n+1), F (profile z k (n-k)) * (g (k+2)-g (k+1)) ^ 2 := by … - theorem
OAI.ContingencyTables.IntegerWeightedTransport.future_new_nonnegativeline 140Source documentation
Every kernel entry has the same complete configuration; positivity alone makes the future correction nonnegative.
theorem future_new_nonnegative (F : ((I ⊕ Bool) → ℕ) → ℝ) (z : I → ℕ) (n : ℕ) (g : ℕ → ℝ) (hF : ∀ p, 0 ≤ F p) : 0 ≤ ∑ j ∈ Finset.range (n+3), (pairMatrix F (n+2) z j (.inr false) (.inr false) * g j ^ 2 - 2 * pairMatrix F (n+2) z j (.inr false) (.inr true) * g j * g (j+1) + pairMatrix F (n+2) z j (.inr true) (.inr true) * g (j+1) ^ 2) := by … - theorem
OAI.ContingencyTables.IntegerWeightedTransport.future_mixed_cancelline 153Source documentation
The two mixed old--new sums telescope, including both invalid endpoint removals.
theorem future_mixed_cancel (F : ((I ⊕ Bool) → ℕ) → ℝ) (z : I → ℕ) (M : ℕ) (h : I → ℝ) (g : ℕ → ℝ) : (∑ j ∈ Finset.range (M+1), ((pairMatrix F M z j).toBilin' (old h) (Pi.single (.inr false) 1) * g j - (pairMatrix F M z j).toBilin' (old h) (Pi.single (.inr true) 1) * g (j+1))) = 0 := by … - theorem
OAI.ContingencyTables.IntegerWeightedTransport.future_old_sumline 171Source documentation
Old--old entries partition the parent's balanced marginal exactly.
theorem future_old_sum (F : ((I ⊕ Bool) → ℕ) → ℝ) (z : I → ℕ) (M : ℕ) (h : I → ℝ) : (∑ j ∈ Finset.range (M+1), (pairMatrix F M z j).toBilin' (old h) (old h)) = (integerRemovalMatrix (marginal F M) z).toBilin' h h := by … - def
OAI.ContingencyTables.IntegerWeightedTransport.extendCoefficientsline 179 - lemma
OAI.ContingencyTables.IntegerWeightedTransport.extendCoefficients_inlline 184 - lemma
OAI.ContingencyTables.IntegerWeightedTransport.extendCoefficients_aline 189 - lemma
OAI.ContingencyTables.IntegerWeightedTransport.extendCoefficients_bline 194 - lemma
OAI.ContingencyTables.IntegerWeightedTransport.extended_quadraticline 198 - theorem
OAI.ContingencyTables.IntegerWeightedTransport.future_square_identityline 219Source documentation
Equation future-square of the first manuscript for actual integer removal matrices. The parent is the balanced raw marginal.
theorem future_square_identity (F : ((I ⊕ Bool) → ℕ) → ℝ) (z : I → ℕ) (n : ℕ) (h : I → ℝ) (g : ℕ → ℝ) : (∑ j ∈ Finset.range (n+3), (pairMatrix F (n+2) z j).toBilin' (extendCoefficients h (g j) (g (j+1))) (extendCoefficients h (g j) (g (j+1)))) - (integerRemovalMatrix (marginal F (n+2)) z).toBilin' h h = ∑ k ∈ Finset.range (n+1), F (profile z k (n-k)) * (g (k+2)-g (k+1))^2 := by …Mentions: OAI.ContingencyTables.IntegerWeightedTransport.extendCoefficients
- theorem
OAI.ContingencyTables.IntegerWeightedTransport.future_form_monotoneline 236Source documentation
Processing an ordinary integer pair can only increase a future form. No signature assertion about the weighted future kernel is required.
theorem future_form_monotone (F : ((I ⊕ Bool) → ℕ) → ℝ) (z : I → ℕ) (n : ℕ) (h : I → ℝ) (g : ℕ → ℝ) (hF : ∀ p, 0 ≤ F p) : (integerRemovalMatrix (marginal F (n+2)) z).toBilin' h h ≤ ∑ j ∈ Finset.range (n+3), (pairMatrix F (n+2) z j).toBilin' (extendCoefficients h (g j) (g (j+1))) (extendCoefficients h (g j) (g (j+1))) := by …Mentions: OAI.ContingencyTables.IntegerWeightedTransport.extendCoefficients