Quantitative tetrahedron vertex asymptotics ============================================ Under the uniform-simplex assumptions of :doc:`skeleton_risk_theory`, the positive single sum in :doc:`skeleton_risk_vertex` gives a second asymptotic term and a completely explicit error bound. Write :math:`\gamma=\lim_n(H_n-\log n)` for Euler's constant and put :math:`L_D=\log(D/2)+\gamma`. .. prf:theorem:: Two-term vertex expansion with an explicit remainder :label: thm-risk-vertex-two-term-error Define .. math:: :label: risk-vertex-two-term-expansion A_D=\frac{48\pi^2}{D^5} +\frac{576(L_D^2-L_D-1)-456\pi^2}{D^6}. For every integer :math:`D\geq256`, .. math:: :label: risk-vertex-two-term-error \left|a_0(4,D)-A_D\right| \leq\frac{10^7(1+\log D)^2}{D^7}. In particular the next-order coefficient contains a squared logarithm; the error is :math:`O(\log^2D/D^7)`. This result concerns the coefficient itself, rather than the error of a floating-point evaluation. The constant is conservative. The inequality holds at the beginning of its domain even when its error bound is larger than the coefficient. It becomes an increasingly accurate relative enclosure as the degree grows. .. prf:proof:: Put :math:`z=\zeta(2)=\pi^2/6`, :math:`B=1+\log D`, :math:`x=D/2`. Use the distribution from the single-sum proof, .. math:: \mathbb P(J=j) =\frac{\binom{D-1}j\binom{D+1}j}{\binom{2D}{D-1}}, \qquad 0\leq j\lfloor D/4\rfloor\}` and :math:`\epsilon_D=4\,2^{-D/12}`. The weight-ratio argument in :prf:ref:`cor-risk-tetrahedron-vertex-asymptotic` proves :math:`\mathbb P(C^c)\leq\epsilon_D` for :math:`D\geq12`. Along the segment from :math:`x` to any :math:`j\in C`, :math:`t>D/4` and :math:`0<\ell_t\leq B`. Restricted expectations below sum only over :math:`C`; neither :math:`u(0)` nor :math:`f(0)` is evaluated. Taylor expansion of :math:`u` through degree three uses :math:`u^{(4)}(t)=120/t^6`. Its expectation on the central range, with the moment bounds above, satisfies .. math:: \left|\mathbb E[\mathbf1_Cu(J)] -\frac4{D^2}-\frac6{D^3}\right| \leq\frac{20511}{D^4}+\frac{40\epsilon_D}{D^2}. Indeed the linear, quadratic-correction, cubic and fourth-derivative errors are bounded by :math:`8,12,11,20480` times :math:`D^{-4}`. The absolute value of the cubic Taylor polynomial on the omitted tail is at most :math:`(4+8+12+16)/D^2=40/D^2`. For :math:`f`, differentiation gives .. math:: f'(t)&=\frac{-3\ell_t^2+5\ell_t+12z+2}{t^4},\\ f''(t)&=\frac{12\ell_t^2-26\ell_t-48z-3}{t^5}. The numerator bounds are :math:`34B^2` and :math:`137B^2`. First-order Taylor expansion with a second-derivative remainder yields .. math:: \left|\mathbb E[\mathbf1_Cf(J)] -\frac{8(L_D^2-L_D-4z-1)}{D^3}\right| \leq\frac{17559B^2}{D^4} +\frac{360B^2\epsilon_D}{D^3}. Its linear expectation is at most :math:`272B^2/D^5\leq23B^2/D^4`; the quadratic remainder is at most :math:`17536B^2/D^4`. On the tail the absolute linear Taylor polynomial is at most :math:`(88+272)B^2/D^3`. The positive single-sum weight also satisfies :math:`01/2`. At :math:`D=256`, replace :math:`\epsilon_D` by :math:`2^{-19}`; the resulting rational expression is less than :math:`10^6`. Finally :math:`7200000+25920+1000000<10^7`, proving :eq:`risk-vertex-two-term-error`. Reproducible enclosures ------------------------- ``tools/risk_research/vertex_asymptotic.py`` returns the rational upper bound :math:`10^7(1+\lceil\log_2D\rceil)^2/D^7`, which dominates :eq:`risk-vertex-two-term-error` without evaluating a rounded logarithm. The optional real-ball evaluator uses python-flint/Arb for :math:`\pi`, :math:`\gamma` and the logarithm, and includes both arithmetic and analytic error in its returned coefficient enclosure. Its precision context is restored. For an error bound using only the project Python and standard library: .. code-block:: console python -m tools.risk_research.vertex_asymptotic --degree 10000 --bound-only --output .research/vertex-error.json For a real-ball enclosure, run the same command without ``--bound-only`` in the prepared Sage environment, which already contains python-flint. Finite exact comparisons and moment checks detect implementation errors; the all-degree guarantee follows from the inequalities above.