Alphabeta Math
AlgorithmAlgorithm: AI-adaptedProof: 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.

Finite certified evaluation of integer-order Bessel functions

Definition

Inputs are an integer order n≥0, a target J or scaled I, an exact dyadic real argument x, positive rational absolute tolerance εa, optional positive rational relative tolerance εr, a fixed exponent range (emin⁡,emax⁡), and finite positive integer caps Smax⁡,Kmax⁡,Mmax⁡,Nmax⁡,pmax⁡,W, with pmax⁡≥2. The caps bound stages, series terms, midpoint panels, Miller terminal index, dyadic precision, and exact interval operations and subroutine calls. Run stages q=1,…,min⁡(Smax⁡,Kmax⁡,Mmax⁡,pmax⁡), using precision p=max⁡(2,min⁡(q,pmax⁡)) and elementary-range truncation q. Reject n<0, invalid targets, nonpositive tolerances, invalid caps, emin⁡>emax⁡, or x<0 for the scaled I target with domain. The scaled target is always e−xIn(x).

Use exact rational endpoint formulas for finite sums, recurrences, mesh construction, and error bounds, with final endpoints rounded outward to precision p. Charge every exact arithmetic operation, range-evaluator node operation, term, rounding, and loop update to the shared counter W; interrupt a nested elementary-range call with inconclusive before its next operation would exceed the remaining budget. Factorials use The factorial n! and the falling factorial nk‾, defined by recursion in N. Call Certified range evaluation for elementary real and complex functions for the real sine, cosine, and exponential ranges in the midpoint branches. Before each call, round its rational input interval outward to the fixed dyadic format. Its finite outputs are sound by Certified real elementary-function evaluations enclose their ranges. Count each exact operation, term, rounding, and subroutine call against W; if the next operation would exceed W, return inconclusive. A non-finite elementary call makes that branch unavailable. Final endpoint overflow returns range.

Before forming any stage constant, if the target is scaled I and x=0, use precision p=pmax⁡, form [1,1] when n=0 and [0,0] when n≥1, and round its endpoints outward to that format. If either conversion overflows, return range. Otherwise apply the ordinary absolute-radius test to the rounded candidate and return success only when it passes; return inconclusive if it fails. The internal exact candidate has radius zero, but outward underflow may widen its stored enclosure. Set a successful output's relative flag by the usual contract test, so a zero value receives no relative certificate. This branch does not call the elementary-range procedure.

At stage q, compute an outward dyadic interval Pq containing π from the Machin identity in Trigonometric identities, Machin's formula and reduced Taylor tails and the arctangent series and geometric-tail argument in Range-reduced exponential, logarithm and arctangent series have certified tails: for r=1/5,1/239, use the q-term sum ∑k=0q−1(−1)kr2k+1/(2k+1) and tail bound r2q+1/((2q+1)(1−r2)), combine by 16arctan⁡(1/5)−4arctan⁡(1/239), and round outward to the selected format at precision p. If this conversion is non-finite or inf⁡Pq≤0, midpoint candidates are unavailable at this stage; the independent power-series or Miller branches may still be attempted.

For a requested Jn(x), first form a power-series candidate if possible. For any order r≥0, define the finite subroutine SeriesJ⁡(r): start a0=(x/2)r/(0! r!) and ak+1=−akx2/(4(k+1)(k+r+1)); sum a0,…,aq−1, and compute aq. Put ρJ=x24(q+1)(q+r+1). If ρJ<1, return the interval partial sum enlarged by ∣aq∣/(1−ρJ); otherwise mark this series candidate unavailable. The tail lemma Convergence and geometric tails for integer-order Bessel series proves each returned interval contains Jr(x).

For each requested target, also form its composite-midpoint candidate with m=q panels, h=π/m, and nodes θj=(j+12)h, j=0,…,m−1, using Pq as the interval for π. For Jn, call the elementary-range algorithm for sin⁡(θj), form nθj−xsin⁡(θj), and call it for the cosine of that interval. Let Qm be the interval sum h∑jcos⁡(nθj−xsin⁡θj) and EJ=hmax⁡224((n+∣x∣)2+∣x∣),hmax⁡=sup⁡(Pq)/m. The candidate is Qm/Pq+[−EJ,EJ]. For the scaled I target with x>0, call the elementary algorithm for cos⁡(θj), form −x(1−cos⁡(θj)), call it for the real exponential, and also call it for cos⁡(nθj). Let Qm be h times the sum of the resulting product intervals and set EI=hmax⁡224((x+n)2+x). The candidate is Qm/Pq+[−EI,EI]. The exact midpoint error lemmas Composite midpoint enclosure for the integer Bessel integral and Composite midpoint enclosure for the scaled modified Bessel integral prove these inclusions.

For a Jn(x) Miller candidate, only try this branch when x>0 and N=n+q≤Nmax⁡. Obtain SeriesJ⁡(r) for r=0,1,n,N+1; if any is unavailable, skip the branch. Set D0=−J1, D1=J0, and compute Dj+1=2jDj/x−Dj−1 for j=1,…,N by interval arithmetic. Set uN+1=0,uN=1, and compute uj−1=2juj/x−uj+1 for j=N,…,1. Require the intervals for DN+1, us, Js, and Js+qMDs below to exclude zero. Form qM=−JN+1/DN+1. In the fixed order s=0,1, whenever the tests pass, form J^n=Jsunus,EM=qM(JsDn−JnDs)Js+qMDs,CM=J^n−EM. The exact finite terminal-contamination identity Exact finite terminal-contamination error identity proves that each CM contains Jn(x). The Casoratian lemma Positive discrete Wronskian for the Bessel recurrence pair supplies the independent recurrence pair and positive invariant required by that identity.

Collect every available sound candidate for the requested target. If more than one is available, intersect them; if the intersection is empty, discard this stage. Round the selected candidate outward to precision p. Return success at the first stage whose radius is at most εa. Set relative_certified to true exactly when relative tolerance was requested, zero is excluded, and the contract's relative-radius test passes; failure of that relative test does not prevent absolute success. If no stage succeeds before the finite caps, return inconclusive. No branch uses a limit in the Miller terminal index.

Depends on

Used by

Dependency tree · two levels

68 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