2994f874

By: huashengshao <erdissshaw@gmail.com>

D0: four-mass boxes at a massive pair's pseudo-threshold

The review of #30, its last section. At the pseudo-threshold of two massive
lines their r-function has the double root r = 1. With masses without exact
square roots, k rounds to either side of 2, depending on the labelling. In
box_four_masses_chart such a pair then left the expression routes wrong in
some labellings: the binary64 expression backend, SymJIT and the
interpreted Float, up to 130 times the value off. The pair was in the p23
slot (r24 must be real) or in the p12 slot (r13 real or on the unit circle by
the sign of k^2 - 4).

box_finite_four_masses forms the chart's six k with chart_pair and passes
them as parameters; formed again in the chart's body, k24 did not always
round as the selection's did. k is 2 exactly at a pseudo-threshold and -2 at
a threshold. The test is (a - b)^2 - 2 p (a + b) + p^2, which is exact for
short binary64 inputs and keeps a tiny p. A pair at its pseudo-threshold
takes neither slot. The hand-written boxes.rs does the same, and SymJIT's
entry points take these four-mass points from the native kernels
(native::pseudo_threshold_d0). The chart's definition shrinks from 18.8 MB to
6.3 MB.

New test tests/d0_pseudo_thresholds.rs. tests/d0_four_mass_orderings.rs:
image agreement 2e-30, for its row 16 with a pair exactly at its threshold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub
configure