Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: Not applicablePipeline-generated
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.

Certified three-dimensional particle-mesh Ewald evaluator

Definition

Assume Countable Choice. Inputs are a full-rank real cell matrix A, a finite neutral configuration of pairwise-distinct torus positions xi and real charges qi, an Ewald parameter α>0, cutoffs R,Kc≥1, integers Mr≥1, an order P≥2, a mesh-self-correction flag, an optional off-source query point x, requested nonnegative tolerances for each requested output, and integer controller indices JR≥⌊R⌋, JK≥⌊Kc⌋, and JA≥1. The inputs must satisfy 2α2JR(JR+1)≥3 and (2α2)−1JK(JK+1)≥3 for the shell controllers. The arithmetic interface is one fixed instance of Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add, with representable set F and certified outward enclosures for every finite arithmetic node, elementary-function evaluation, transform phase, and final arithmetic radius. There is an optional positive integer enclosure-work cap Bencl, defaulting to 1 when omitted. Each non-transform validation, enclosure, or comparison request executes its supplied certificate lookup/evaluation program for at most Bencl program instructions, including control-flow steps. Its numerical primitives are exact rational arithmetic/comparisons, fixed-format rounded operations, and reads of finite supplied certificate data. Elementary functions and refinement loops are implemented through these counted instructions, not as uncapped oracle calls. On exhaustion, unavailable data, a nonfinite bound, an uncertified required divisor or an unresolved comparison, return arithmetic-inconclusive, except where an explicit cutoff, transform, or window-denominator branch below names its more specific status. Do not retry with larger budgets inside a run. A larger cap may be supplied for another run; no accepted enclosure loses its required soundness. Supplied finite certificate data and the cap are part of the arithmetic interface, so this rule does not impose a precision or accuracy restriction on successful outputs. Every particle and optional query point also has a certified representative interval in [0,1)3 after reduction modulo the cell. Transform calls use common controls: an exact rational phase tolerance τ with 0<τ≤1/4, integer exponent limits emin⁡≤emax⁡, integer precision p0≥2, finite integer cap pmax⁡≥p0, integer elementary-series cap Jphase≥1, and integer radix-two depth dmax⁡≥0 required by Arbitrary-length mixed-radix and Bluestein DFT. Every vector passed to a transform has real and imaginary coordinates in F, and the outward enclosures include phase and arithmetic errors from the entire transform call. If ∑iqi≠0 is certified, return nonneutral. Otherwise check neutrality, distinctness, full rank, valid scalar/integer controls, and the required input enclosures using the bounded interface above. A certified violation of these input conditions returns invalid-input; unavailable or unresolved evidence returns arithmetic-inconclusive. If a query point is certified to be a source image, return collision for that potential query; if its off-source status is unresolved, return arithmetic-inconclusive. A controller inequality that is certified false is invalid-input; an unresolved one is arithmetic-inconclusive.

  1. Compute a certified outward upper bound BK for ∥AT∥2Kc/(2π) and set NK=⌈BK⌉. Enumerate every integer triple in the finite box [−NK,NK]3. For each nonzero k, compute a certified interval [dk−,dk+] for ∣2πA−Tk∣ and an interval [Kc−,Kc+] for Kc. Include k in BKc if dk+≤Kc−, exclude it if dk−>Kc+, and return cutoff-inconclusive if neither comparison is certified. Retain from BKc exactly the signed modes satisfying ∣kr∣<Mr/2 for every coordinate and store them in K. This set is finite, symmetric and injective modulo the mesh. Every other mode in BKc is kept in the finite omitted-mode ledger MKc=BKc∖K; it is never assigned zero error.

  2. Initialize the full grid g to zero. Use each particle's supplied certified representative interval ti∈[0,1)3. For each coordinate r, enclose a=Mrti,r by [a−,a+]; if a+−a−>1, return arithmetic-inconclusive. Enumerate every integer Lr from ⌈a−−P⌉ through ⌊a+⌋. This finite list contains every translate with 0≤a−Lr≤P and has at most P+2 entries. For every triple (L1,L2,L3), evaluate qi∏rWP(Mrti,r−Lr), reduce Lr modulo Mr to the grid residue ℓr, add the term to gℓ, and store the particle's finite support tuples for later gathers. This Cartesian list computes the periodic assignment exactly because each integer Lr is uniquely ℓr+jMr. Accumulate all terms that wrap to the same residue; when P>Mr, do not drop duplicate contributions. The support is the causal predecessor support of the window, not an unspecified symmetric nearest-node rule.

  3. For each coordinate fiber, call Arbitrary-length mixed-radix and Bluestein DFT with the supplied common transform controls on its representable center vector. If an input cannot be represented, a call returns any inconclusive or range-failure status, or a normalization scale fails, return transform-inconclusive and retain that substatus. Apply the negative-sign unitary tensor DFT g^M(k)=Ng−1/2∑ℓ∈Ggℓe−2πi∑rkrℓr/Mr,Ng=M1M2M3, by dividing each returned unnormalised coordinate transform by Mr, with outward enclosures for every scale operation. The required mathematical output convention is the unitary transform. The correctness-and-cost supplier proves the formal exact-constant transform identity; it is not used as a floating-point error bound.

  4. For each retained k, form the window multiplier D(k)=∏r=13e−πiPkr/Mrsinc⁡(πkr/Mr)P and obtain an outward lower bound for ∣D(k)∣. If any lower bound is nonpositive, return denominator-inconclusive without division. Otherwise set zk=Ng g^M(k)D(k)‾,ck=4πe−∣κk∣2/(4α2)V∣κk∣2. Use the conjugated denominator forced by the negative-sign DFT and the causal window. The signed mode representative is used in every window factor; residues are used only as storage indices.

  5. For every tensor-transform call in this step, use Arbitrary-length mixed-radix and Bluestein DFT with the same model and controls as in Step 3, divide each coordinate output by Mr, and propagate a failed or unrepresentable subcall or failed normalization as transform-inconclusive. Form mode arrays on the full mesh-frequency grid, placing retained signed modes in their unique residues and setting all other entries to zero. Set vkU=ckzk/D(k) on K. Apply the per-coordinate unitary normalization to the negative-sign tensor DFT of vU‾, conjugate the output, and multiply by Ng; the inverse-transform target array is uℓ=∑k∈KvkUe2πi∑rkrℓr/Mr. If a query point was supplied, use its supplied representative tx and the finite-support routine of Step 2 to compute the off-source mesh potential Re⁡∑ℓ∈Gwℓ(tx)uℓ. For forces set vkF=ckzk‾/D(k)‾ on K, zero elsewhere, and apply the same per-coordinate normalization to its negative-sign tensor DFT, then multiply by Ng to form λℓ=∑k∈KvkFe−2πi∑rkrℓr/Mr. Evaluate ∇xwℓ by differentiating the finite support products on the selected mesh box and applying A−T; aggregate all tuple derivative contributions by residue, retaining duplicate wraps. Then FM,i=−qiRe⁡∑ℓ∈Gλℓ∇xwℓ(ti), gathering only the at most (P+2)3 candidate support contributions per particle. For P=2 at a knot, use the one-sided derivative from the adjacent box immediately to the right in each knot coordinate (box index ⌊Mrtr⌋ modulo Mr), consistently for the full derivative vector and both correction factors. Determine this right-hand mesh-box index by the bounded certificate interface, allowing a supplied exact knot equality; if its floor/branch cannot be certified, return arithmetic-inconclusive. This is the selected branch from the assignment definition and is not asserted to be a classical gradient. Computed enclosures retain outward bounds on residual imaginary parts. The mesh energy is EM,K=12∑k∈Kck∣zk∣2.

    If mesh-self correction is enabled, place hk=ck/∣D(k)∣2 on retained residues and zero elsewhere. Apply the same normalized negative-sign tensor DFT to h and multiply by Ng to form the cyclic kernel γd=∑k∈Khke−2πi∑rkrdr/Mr. For each particle evaluate Si=∑ℓ,mwℓ(ti)wm(ti)γℓ−m over all support-residue pairs, retaining duplicate-wrap contributions, and set CM=12∑iqi2(Si−∑k∈Kck). Replace the mesh energy by EM,K−CM. Replace the uncorrected force by FM,i+qi2∑ℓ,mwℓ(ti)∇xwm(ti)γℓ−m, using the same selected derivative branch. The equality of this finite cyclic-kernel computation with the correction and its branch derivative is proved in Deterministic reciprocal particle-mesh Ewald potential, energy, and force bounds. Outward enclosures include the kernel transform, local products, derivative-window factors, and subtraction.

  6. For each query/particle pair and particle pair, use certified representatives ta,tb∈[0,1)3. If ∣A(ta−tb+ℓ)∣≤R, then ∣ℓ∣≤∥A−1∥2R+3. Compute an outward upper bound BR for the right-hand side, set NR=⌈BR⌉, and for each required query or particle pair enumerate every integer index in [−NR,NR]3. For each candidate compute an outward interval [r−,r+] for its image distance and an interval [R−,R+] for R; include the image if r+≤R−, exclude it if r−>R+, and return cutoff-inconclusive otherwise. Use these finite lists to compute the real potential when requested, real energy, and real force, excluding exactly the own zero-image term (j,ℓ)=(i,0) from energy and force before any singular kernel division. For every other retained image certify a positive lower distance bound before dividing; otherwise return arithmetic-inconclusive. Keep the force convention as the finite sum of differentiated retained pair kernels; do not differentiate the hard-cutoff membership indicator. Add the ordinary Ewald energy constant −α∑iqi2/π to the total energy. The point-source potential is only returned off all source images.

  7. Compute MR=⌊R⌋ and MK=⌊Kc⌋; if either floor is not determined by its certified enclosure, return cutoff-inconclusive. Construct finite U3 real and reciprocal shell controllers with the supplied JR,JK. For each retained mode, compute outward bounds for Ak and Bk by summing the source/derivative alias terms through ∣nr∣≤JA and adding the supplier's finite p-series remainders; for P=2, use its finite derivative-window controller. Use Hk=0 for the declared analytic-window gather in both force branches; place all finite arithmetic errors in the supplied radii εF,i. Include every omitted mode in MKc and the mesh-self correction if enabled. Add the actual outward arithmetic radii for all spread, transform, solve, gather, summation, and correction nodes. The outward enclosures for finite controllers themselves use the bounded enclosure interface above; its name does not authorize an unbounded oracle or refinement search. If a required arithmetic radius or controller enclosure is unavailable, return arithmetic-inconclusive. Otherwise retain the computed intervals and total error radii for the final output. Use the same bounded interface for tolerance comparisons: return certified when every requested radius is certified to meet its tolerance, certified-over-tolerance when at least one is certified to exceed it, and arithmetic-inconclusive if neither decision is certified. The total-certificate theorem proves the error bounds and formal operation-count properties for this evaluation; operation counts do not certify accuracy.

Depends on

Used by

Dependency tree · two levels

42 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