# Draft note to the CORE-MATH authors (not sent) This is a draft for a person to read, edit and send. Nothing has been sent or posted. --- Subject: an outside check of the fast-path bounds in binary64 erf and erfc Hello, Your FPTalks 2026 slides ask people who want to join to get in touch, and erf and erfc are not yet on the list of proofs done or in progress. We checked their fast paths from outside, at commit b7b12954f927. The work was done by an AI model (Claude), with a second AI model reviewing it. No mathematician has reviewed it, and the proof program is Python that no proof checker has verified. What we found - We found no failing input and no error above the bound the code states. Sampling: about 1.008e9 inputs for erf on each of two builds, and for erfc about 1.008e9 on gcc's default build and 1.008e8 on a -ffp-contract=off build, against MPFR, in four rounding modes. Both functions' worst-case files pass on both builds. - An interval-arithmetic program of our own (not derived from erf.sage) bounds |h + l - f(x)| for every piece of both fast paths, in all four rounding modes, under stated assumptions. Largest share of the claimed bound: 0.9374 for erf (table range 1, nearly all approximation error), 0.9355 for the erf-based branches of erfc, 0.674 for erfc's asymptotic branch. Under the same assumptions it also shows that the code's own rounding test is safe, so a value returned by either fast path is correctly rounded. It says nothing about the accurate paths or the tiny-input paths. - The approximation figures in the comments on erf.c's table C agree with our own measurement for all 94 ranges, and our bound for exp_1 (2^-74.377) is inside the stated 2^-74.139. Two things you may want to know 1. FMA contraction. With gcc 15.2, -std=gnu17 -O3 -march=native (so -ffp-contract=fast by default) the compiled fast paths are not the source's operations: GCC fuses the three FastTwoSum calls in erf's table branch whose second argument is a product, and the one in q_1. In 200,000 random inputs per function in four modes, about 80% of erf evaluations and 96% of erfc evaluations gave a different (h, l) from a -ffp-contract=off build. In the assembly we read, each fused FastTwoSum uses the exact product for both hi and lo, which is no worse, and our program covers that form. A compiler that fused hi and lo differently would not be covered. README.md asks for contraction everywhere or nowhere; check.sh's default flags for gcc leave it at the compiler's default. 2. In erf.sage, analyze0() computes err1 and err2 as (RIFulp(c9) + c0[7]*err_z2) and (RIFulp(c5) + c0[5]*err_z2). c0[7] and c0[5] are negative, so an absolute value seems to be missing. By our estimate the effect on the result is negligible, and our own bound for that branch is within the claim. Also: erfc.c refers to analyze_erfc_asympt_fast() in erfc.sage, and we did not find that file in the repository at this commit. What this does not cover - The accurate (second) paths and the tiny-input paths: no sampling aimed at them and no proof. The special-value handling is checked only by the inputs that happened to reach it. - Compilers and flags other than gcc 15.2 on x86-64 with the two settings above, and the copy inside glibc. - The assumptions, which are argued but not machine-checked. The main one is that the operations our program follows are the ones in your source. It was copied by hand and read against the code by two AI models. - The program is unverified Python on mpmath's interval arithmetic. It is not a formal proof. - Sampling cannot reach every case: it never flagged the constants erfc adds to erf's bound (0x1.4p-102 for x < 0, 0x1.4p-104 for small x >= 0), even at 0.35 of their size. Our program rejects the second at 0.5 of its size for tiny x, but not the first at 0.35, so these checks do not show how close to the limit the first one is. Code, data and the exact list of assumptions: LINK_TO_ADD --- Before sending: add the link, check the two numbered points against the current repository (it changes often), and decide in whose name to send it.