Theorem 4.19
OpenQAlgorithms.Papers.Independent.Extend50.P34.paninski_exact_even_expansionFor even , , and ,
The sums are finite and every content-product denominator is positive under the height restriction. This exact expansion leads to the exponential chi-squared bound.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P34
noncomputable section
open scoped Matrix BigOperators
open MeasureTheory
namespace QAlgorithms.Papers.Independent.Extend50.P34
attribute [local instance] Classical.propDecidable
-- Reuse exact pinned definitions; these are imports, not local declarations.
open QAlgorithms.Papers.Independent.Support50.P38 (tv wordMass)
open QAlgorithms.Papers.Independent.Advance50.P28 (counts)
/-- Theorem 4.19, arXiv:1501.05028v1, PDF p.42. Both the exponent 2k on 2epsilon and the square on k!! are retained. k≤n replaces only vanishing terms. -/
theorem paninski_exact_even_expansion
(d n : ℕ) (hd : 0 < d) (heven : Even d)
(epsilon : ℝ) (he : 0 ≤ epsilon) (he1 : epsilon ≤ 1/2) :
chiSq (swSpectrum (n := n) (paninski d epsilon)) (swSpectrum (n := n) (unif d)) =
∑ k ∈ (Finset.Icc 2 n).filter Even,
falling n k * (2*epsilon)^(2*k) / (d : ℝ)^k *
(1 / evenDoubleFactorial k ^ 2 *
∑ mu ∈ (diagrams d k).filter DominoBalanced,
classCharacter mu (Multiset.replicate (k/2) 2)^2 *
parityProduct d mu true / parityProduct d mu false) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P34
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every positive even integer , natural number , and real , put for even and for odd , and put . For any diagram of size , use its chosen cell numbering to define row-preserving and column-preserving permutation sets , the matrix , its range , its orthogonal projection , and . Set , where , and let be the average of over permutations whose full cycle-length multiset, including fixed points, is , with value zero if none exist. For and height at most , define , , and , where is diagonal with word entry . Define as the sum of , with a zero summand whenever . Let and be the products of over the cells of even and odd content , respectively, and call domino-reducible if a finite sequence of removals of two distinct horizontally or vertically adjacent cells, each leaving a Young diagram, reduces it to the empty diagram. Then
Here is the descending factorial and inside denotes the multiset of copies of . The endpoints and are included; for the outer sum is empty.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.