Part 0.0: full correlation matrix in cascade ratios; partial closure of OQ2#91
Draft
Part 0.0: full correlation matrix in cascade ratios; partial closure of OQ2#91
Conversation
The Gram-Laplacian unification (PR #90) extends naturally to all layer pairs, not just adjacent ones, by the same Beta-Gamma reduction. This PR lands the generalisation as Theorem 14.X+1 plus a corollary that partially closes Supplement OQ2. Three additions: 1. Theorem (Full correlation matrix in cascade slicing ratios) thm:gram-matrix: C_{ij} = R(d_i + d_j + 1) / sqrt(R(2 d_i + 1) R(2 d_j + 1)) for any cascade layer pair (d_i, d_j). Equivalently: log C^2_{ij} = -Delta^2_{(k)} log R |_{m} with k = |d_i - d_j| (step) and m = d_i + d_j + 1 (centered doubled argument). Theorem thm:gram-R is the special case k=1. Proof: Beta-Gamma reduction G_{ij} = sqrt(pi) R(d_i + d_j + 1) for general (i,j); rest is direct substitution. 2. Corollary (Eigenvalue deficit in cascade primitives) cor:eigenvalue-cascade: The eigenvalue deficit epsilon(n, d_0) of Theorem 14.3 is the dominant-eigenvalue deficit of the explicit n x n cascade-native matrix above. The first-order perturbation expression (Theorem 14.5) becomes a sum of cascade R-ratios with no Beta function evaluations beyond what cascade primitives supply. This partially closes Supplement Open Question 2 (analytic formula for epsilon): the input matrix is now manifestly cascade-internal, though the eigenvalue itself still requires numerical computation. What remains: a closed-form lambda_1 expression eliminating the numerical eigendecomposition. 3. Remark (Structural sign of the Gram correction) rem:gram-sign-from-convexity: The positivity of the Gram correction (cited as 'Cauchy-Schwarz on integrands' in Paper IVb) reduces to convexity of log alpha on the cascade tower. Since alpha(d) ~ 1/(2d) asymptotically, log alpha ~ -log(2d) is convex, so Delta^2 log alpha > 0 and the per-step Gram deficit is positive structurally. This re-derives the sign rule from cascade-action curvature rather than from L^2 inner-product positivity, providing a more direct structural foundation. Updated: - "What this section proves" item 2: includes the full-matrix closed form and the eigenvalue cascade-native form. - Open Question 2: marked "partially closed", with the cascade-native matrix structure made explicit. - Numerical verification remark: now references the new theorem too. Verifier extended (tools/verifiers/gram_compliance_laplacian.py): - Verification 4: full correlation matrix closed form at non-adjacent pairs (5,7), (5,12), (10,20), (14,21), (5,217). All match to machine precision. - Verification 5: eigenvalue deficit epsilon from cascade-native matrix matches direct Beta-function eigendecomposition for paths d=5..12, d=6..13, d=14..21. Agreement at 1e-13 relative or better. All five verifications pass: - V1 closed form (adjacent): rel diff < 1e-12 - V2 Laplacian identity (adjacent): rel diff < 1e-7 - V3 path-sum agreement (linearisation): rel diff < 1e-2 - V4 full correlation matrix (non-adjacent): rel diff < 1e-12 - V5 epsilon agreement (cascade-native vs direct): rel diff < 1e-13 This is the next forced implication of the Gram unification: the Beta-Gamma reduction extends to general layer pairs, the entire correlation matrix becomes cascade-native, and OQ2 partially closes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The next forced implication of the Gram unification (PR #90): the Beta–Gamma reduction extends to general layer pairs, giving the entire correlation matrix in cascade slicing ratios and partially closing Supplement Open Question 2.
What's added
Theorem 14.X+1 (Full correlation matrix in cascade slicing ratios),
$$C_{ij} = \frac{R(d_i+d_j+1)}{\sqrt{R(2d_i+1),R(2d_j+1)}}$$ $(d_i, d_j)$ . Equivalently, $\log C^2_{ij} = -\Delta^2_{(k)}\log R|_{m}$ with step $k = |d_i - d_j|$ and centered doubled argument $m = d_i + d_j + 1$ . Theorem $k=1$ .
thm:gram-matrix:for any cascade layer pair
thm:gram-Ris the special caseCorollary (Eigenvalue deficit in cascade primitives),$\epsilon(n, d_0)$ of Theorem 14.3 is the dominant-eigenvalue deficit of the explicit cascade-native $n \times n$ matrix. The first-order perturbation expression of Theorem 14.5 becomes a sum of cascade $R$ -ratios.
cor:eigenvalue-cascade:The eigenvalue deficit
Remark (Structural sign),$\log\alpha$ on the cascade tower. Asymptotically $\alpha \sim 1/(2d)$ , so $\log\alpha \sim -\log(2d)$ is convex and $\Delta^2 \log\alpha > 0$ structurally.
rem:gram-sign-from-convexity:The positivity of the Gram correction (cited as Cauchy–Schwarz in Part IVb) reduces to convexity of
Why this is the "next forced implication"
The original Theorem 14.X (Gram correlation in cascade slicing ratios) used the Beta–Gamma reduction$G_{d,d+1} = \sqrt{\pi},R(2d+2)$ for adjacent layers. The same reduction $G_{ij} = \sqrt{\pi},R(d_i+d_j+1)$ holds for any pair $(d_i, d_j)$ — this is just the Beta function's argument structure, not a new mathematical fact. So the closed form generalises automatically.
What's gained:
Verification
tools/verifiers/gram_compliance_laplacian.pyextended with:All five verifications pass.
What remains open
OQ2 is partially closed, not fully:
Any closed-form$\lambda_1$ would derive from properties of $R$ at consecutive doubled arguments — a tractable problem in cascade primitives, no longer dependent on Beta function asymptotics.
Test plan
python tools/verifiers/gram_compliance_laplacian.py).thm:gram-Rand Corollarycor:gram-laplacian.Generated by Claude Code