Alphabeta Math
AlgorithmAlgorithm: AI-adaptedProof: Not applicablePipeline-generatedjudge pass (gpt-6-luna)
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Natural-cubic tridiagonal Cholesky solve with a residual certificate

Definition

Use one binary floating-point format from Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add with round-to-nearest, ties-to-even, a known rational unit roundoff 0<u≤1/4, and the model's normal-or-zero success rule. Inputs are r≥2 finite stored real knots x1<⋯<xr and finite stored real values y1,…,yr. These stored numbers are the exact interpolation data; no unrecorded perturbation of the data is included. Write hi=xi+1−xi for their exact rational differences. If a constant 2 or 6 needed by the selected branch is not representable as a finite normal number, return input-format-failure. Arithmetic statuses below report the first failing operation in the specified order. This algorithm makes no claim that floating-point success is automatic.

If r=2, return success with endpoint second derivatives M^1=M^2=0 and error certificate B=0. The corresponding piece is the exact straight line. For r≥3, put n=r−2 and return certificate-parameter-failure unless (n−1)u<1.

For r≥3, assemble stored widths and secant slopes in increasing i=1,…,r−1: compute h^i=fl⁡(xi+1−xi), ai=fl⁡(yi+1−yi), and qi=fl⁡(ai/h^i), in that order. At the first failed operation return assembly-range-failure(i,operation). Successful width subtraction gives h^i>0. In increasing k=1,…,n, for the row corresponding to knot xk+1 compute

sk=fl⁡(h^k+h^k+1),dk=fl⁡(2sk),tk=fl⁡(qk+1−qk),fk=fl⁡(6tk)

in that order. Copy ck=h^k+1 for k<n. On failure return assembly-range-failure(k,operation). Let T∈Rn×n have diagonal dk, adjacent off-diagonal entries ck, and zero entries elsewhere; represent it by these three diagonals, not a dense array. Let the stored right-hand side be f=(f1,…,fn)T.

Factor T with a real lower bidiagonal factor, stored as diagonal ℓ1,…,ℓn and subdiagonal e1,…,en−1. For k=1,…,n in order, set p1=d1 by exact copy; for k>1 compute ζk=fl⁡(ek−1ek−1) and pk=fl⁡(dk−ζk). If either operation fails, return factor-range-failure(k,operation). If the resulting pk fails the published positive-normal pivot test of Failure-aware rounded Cholesky factorization, return invalid-pivot(k,p_k). Otherwise compute ℓk=fl⁡(pk); on failure or a nonpositive or nonnormal result return factor-range-failure(k,operation). For k<n compute ek=fl⁡(ck/ℓk) and return the same indexed factor status on failure.

Solve Lz=f by forward substitution in increasing index order: set z1=fl⁡(f1/ℓ1); for k>1, compute a=fl⁡(ek−1zk−1), b=fl⁡(fk−a), and zk=fl⁡(b/ℓk). Solve LTm^=z in decreasing order: set m^n=fl⁡(zn/ℓn); for k<n, compute a=fl⁡(ekm^k+1), b=fl⁡(zk−a), and m^k=fl⁡(b/ℓk). At the first failed operation return solve-range-failure(direction,k,operation). These are separate multiply, subtract, and divide operations; no fused multiply-add is used. Set M^1=M^r=0 and copy the interior vector M^k+1=m^k.

Compute the rounded residual in increasing row order. Within row k, form the products Tkjm^j for existing columns j in increasing column order, and add them sequentially from an exact zero accumulator to obtain v^k. Then compute w^k=fl⁡(v^k−fk). Return the first residual-range-failure(k,j,operation) if any operation fails. Structural zero entries are omitted; all included products, additions, and the final subtraction use the operationwise model.

The certificate calculations that follow are exact rational arithmetic on the finite binary values and the rational u; they are not rounded floating-point calculations. Define

F1=∑k=1n∣dk∣+2∑k=1n−1∣ck∣,X1=∑k=1n∣m^k∣,Y1=∑k=1n∣fk∣,V1=∑k=1n∣v^k∣,W1=∑k=1n∣w^k∣

and

gn=1+6u1−(n−1)u−1,C=W1+gnF1X1+u(V1+Y1).

Form the exact natural-cubic matrix A and right-hand side b for the original stored data as in Natural cubic interpolation at distinct knots: Akk=2(hk+hk+1), Ak,k+1=Ak+1,k=hk+1, and bk=6((yk+2−yk+1)/hk+1−(yk+1−yk)/hk), with only existing interior entries included; represent A by its three diagonals and compute the following row quantities as a stream, without allocating dense matrices. Compute

α=max⁡k∑j∣Akj−Tkj∣,β=max⁡k∣bk−fk∣,Q=max⁡k∣m^k∣,δ=min⁡1≤k≤n(hk+hk+1),H=max⁡1≤i<rhi,

and

B=H28δ(C+αQ+β).

All denominators are positive: hi>0, δ>0, and 1−(n−1)u>0. Return success(\widehat M,C,\alpha,\beta,B). If a resource-limited implementation cannot complete the exact rational certificate, it may return certificate-resource-failure, which carries no certified B.

For r≥3, associate to the returned vector M^ the piecewise cubic reconstruction on each [xi,xi+1] given by

s^i(x)=M^i(xi+1−x)3+M^i+1(x−xi)36hi+(yi−M^ihi26)xi+1−xhi+(yi+1−M^i+1hi26)x−xihi.

This reconstruction interpolates the stored data and need not be C1 at an interior knot; it is a piecewise cubic reconstruction, not necessarily a natural spline. The certificate concerns exact evaluation of these pieces. Any floating-point evaluation of them needs a separate piece-evaluation error allowance.

Remarks

This local procedure specializes the published rounded Cholesky and substitution methods to the natural-cubic tridiagonal system; it does not redefine natural interpolation. Its termination and linear arithmetic and storage bounds are proved in A successful natural-cubic tridiagonal Cholesky solve has a certified residual ↗.

Depends on

Used by

Dependency tree · two levels

13 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources