Alphabeta Math
Pipeline-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.

✓ 4 results · all verified · 0 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 4 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Adaptive quadrature and error indicators

1 · Prerequisites

2 · Summary

Objective

This page separates adaptive Simpson's finite procedure and its heuristic indicator from a conditional certified mode. The 1/15 relation follows from a local composite Simpson asymptotic expansion. A nonzero leading coefficient ensures asymptotic relative accuracy; when that coefficient is zero, the expansion alone gives no relative-error conclusion. The indicator does not certify any finite run. The capped procedure always returns an explicit accepted, cap-reached, or failure status. A separate interval mode encloses the integral only when sound point-value and fourth-derivative enclosure oracles are supplied; an inconclusive enclosure never reports the requested tolerance as achieved.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicableOpen item page →

Embedded Simpson refinement indicator

Definition

Let a<b, let n≥2 be even, and let f be real-valued at the nodes of the uniform grids with n and 2n subintervals. The coarse Simpson value is S0=QS(f;a,b,n) and the refined value is S1=QS(f;a,b,2n), using Composite Simpson rule on an even uniform grid. The signed refinement indicator is (S1−S0)/15 and its magnitude is ηn(f;a,b):=∣S1−S0∣15.

For the local two-panel case n=2, S1 is also the sum of the two one-block Simpson values on the halves of [a,b].

This definition alone is not a bound on the true error.

For data supplied only at the grid nodes, the calls to the Simpson procedure mean calls on the extension f~:[a,b]→R that agrees with those data at the nodes and is zero elsewhere. This extension is evaluable everywhere as required by the procedure. Its finite sums use only the prescribed nodes, so any other evaluable extension gives the same S0, S1 and indicator; no off-grid values or regularity are required.

Remarks

The factor 1/15 has asymptotic Richardson justification under the hypotheses of Conditional asymptotic validity of the Simpson /15 indicator; it remains a heuristic indicator at any finite grid.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

Leading composite Simpson error coefficient

Statement

Let a<b, let k≥1 be an integer, set nk=2k and hk=(b−a)/nk, and let Qk=QS(f;a,b,nk) for f∈C4([a,b]). With I=∫abf(x) dx, one has I−Qk=−hk4180∫abf(4)(x) dx+o(hk4)(k→∞). Here rk=o(hk4) means rk/hk4→0 along this sequence. The integral is the Riemann integral.

Facts & Assumptions

Given: A real interval [a,b] with a<b, f∈C4([a,b]), and the composite Simpson values on the grids with nk=2k subintervals.

[F1]

Peano kernel identity for one Simpson panel: on a panel [α,β] of length L, the Simpson kernel has the two quartic pieces displayed in its Statement; they agree at the midpoint, satisfy K≤0, and have ∫αβ∣K∣=L5/2880. The panel error is ∫αβK(x)f(4)(x) dx.

[F2]

Higher derivatives and the classes Ck and C∞: f∈C4([a,b]) means f and its derivatives through order four are continuous on the closed interval, in particular both f and f(4) are continuous.

[F3]

Heine-Cantor: a continuous map from a compact metric space to any metric space is uniformly continuous: a continuous real function on a compact metric space is uniformly continuous.

[F5]

Every continuous function on a closed nondegenerate rectangle in Rm is Riemann integrable: a continuous real function on a closed nondegenerate interval is Riemann integrable.

[F6]

For a<c<b: f is integrable on [a,b] if and only if it is integrable on [a,c] and on [c,b], and then ∫abf=∫acf+∫cbf; with the oriented form for arbitrary a,b,c: for Riemann-integrable f on [a,b] and a<c<b, the restrictions to [a,c] and [c,b] are integrable and ∫abf=∫acf+∫cbf; iterating this two-piece identity gives additivity over any finite adjacent partition.

[F10]

Composite Simpson rule on an even uniform grid: for even n≥2, QS is the sum of the one-block Simpson values on the adjacent panels [x2j,x2j+2], 0≤j<n/2.

[F11]

Every complete ordered field is Archimedean: for every real R there is a natural number N≥1 with R<N.

[F12]

Bernoulli's inequality (1+x)n≥1+nx: if x≥−1 and k∈N, then (1+x)k≥1+kx.

Proof

1.1givenF11F12choosealgebra

Let δ>0 and put R=(b−a)/δ. By [F11] choose N≥1 with R<N. For every k≥N, [F12] with x=1 gives 2k≥1+k≥1+N>R, so hk=(b−a)/2k<δ. Since δ>0 was arbitrary, hk→0.

1.2givenF1F2F3F4F5F7F9algebra

Put g=f(4). By [F2] and [F5], both f and g are integrable. By [F3]–[F4], g is uniformly continuous on the compact interval. The two formulas for Kj in [F1] agree at their shared midpoint, so Kj is continuous; [F9] makes Kj(g−g(cj)) continuous and [F5] makes it integrable. Fix ε>0; choose δ>0 so that ∣g(x)−g(y)∣<ε whenever x,y∈[a,b] and ∣x−y∣<δ. For hk<δ, write each Simpson block as Pj=[cj−hk,cj+hk] with midpoint cj. By [F1] and linearity, its error minus −((2hk)5/2880)g(cj) is ∫PjKj(x)(g(x)−g(cj)) dx. Since Kj≤0 and ∣g(x)−g(cj)∣<ε, [F7] bounds the absolute value of this difference by ε(2hk)5/2880.

2.1step 1.1step 1.2

The δ chosen in step 1.2 is positive, so step 1.1 gives an index after which hk<δ; hence the panel estimate of step 1.2 holds for all sufficiently large k.

3.1givenF5F6F7F8F10step 1.2step 2.1algebra

There are nk/2=(b−a)/(2hk) blocks. By [F10], Qk is the sum of their one-block Simpson values; repeated application of additivity [F6] sums their integrals to I. Hence their local errors sum to I−Qk. If Jk=−((2hk)5/2880)∑jg(cj), step 1.2 gives ∣(I−Qk)−Jk∣≤(b−a)hk4ε/180. Also, on each block the uniform-continuity bound gives g(cj)−ε≤g(x)≤g(cj)+ε. By [F7] and [F8], integrating these constant bounds gives 2hk(g(cj)±ε), so ∣∫Pjg−2hkg(cj)∣≤2hkε. Repeated additivity [F6] then yields ∣2hk∑jg(cj)−∫abg∣≤(b−a)ε.

4.1givenstep 3.1algebra∎

Since Jk/hk4=−(2hk∑jg(cj))/180, step 3.1 shows that ∣(I−Qk)/hk4+(1/180)∫abg∣≤(b−a)ε/90 for all sufficiently large k. As ε>0 was arbitrary, the displayed limit follows.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Finite-depth adaptive Simpson with an indicator

Definition

Input a<b, an absolute indicator tolerance τ>0, a remaining depth D∈N and a positive panel-call budget P∈N, and a deterministic evaluation routine Eval⁡ that returns a finite real value at a requested node or reports failure. It reports failure when a required node cannot be evaluated, including when its midpoint is unrepresentable in the evaluator's arithmetic. Apply the exact-real Simpson formulas of Composite Simpson rule on an even uniform grid to the returned values; floating-point rounding accuracy is not asserted.

Define the recursive call A(u,v,d,p,t) for u<v, d≥0, p≥1 and t>0 as follows.

  1. Compute m=(u+v)/2 and the five values of Eval⁡ at u,(3u+v)/4,m,(u+3v)/4,v. On failure, return failure with no estimate.
  2. Compute S0=QS(f;u,v,2) and S1=QS(f;u,v,4) from the two nested grids of Embedded Simpson refinement indicator, and put η=η2(f;u,v)=∣S1−S0∣/15.
  3. If η≤t, return (accepted, estimate S1, indicator η).
  4. If η>t and either d=0 or p<3, return (cap-reached, estimate S1, indicator η).
  5. Otherwise put pL=⌊(p−1)/2⌋ and pR=⌈(p−1)/2⌉. Recursively call A(u,m,d−1,pL,t/2) and A(m,v,d−1,pR,t/2). If either returns failure, return failure. Otherwise return the sum of their estimates and indicators, with status cap-reached if either child has that status and accepted otherwise.

The public call is A(a,b,D,P,τ). The budget counts recursive panel calls; each call uses at most five point evaluations. accepted means that the returned leaf indicators sum to at most τ. Neither that status nor the indicator is a certified true-error statement. A cap result is an estimate with explicit cap-reached status, not a successful tolerance claim.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

Conditional asymptotic validity of the Simpson /15 indicator

Statement

Let a<b, f∈C4([a,b]), nk=2k for k≥1, hk=(b−a)/nk, Qk=QS(f;a,b,nk), and c=−(1/180)∫abf(4)(x) dx. Let I=∫abf. Then the refinement indicator ηk=∣Qk+1−Qk∣15 satisfies ηk=∣c∣hk4/16+o(hk4). If c≠0, then ηk/∣I−Qk+1∣→1. The Richardson-corrected value Rk+1=Qk+1+(Qk+1−Qk)/15 satisfies I−Rk+1=o(hk4). When c=0, these statements give no relative error estimate for ηk; at no finite level does ηk alone certify the true error.

Facts & Assumptions

Given: A nondegenerate interval, a C4 integrand, nested composite Simpson grids with mesh widths hk+1=hk/2, and exact arithmetic.

[F1]

Leading composite Simpson error coefficient: I−Qk=chk4+o(hk4) with the stated coefficient c.

[F2]

Embedded Simpson refinement indicator: the magnitude of the embedded indicator is ∣Qk+1−Qk∣/15; a Richardson correction adds the signed quantity (Qk+1−Qk)/15 to the refined value.

[F3]

Higher derivatives and the classes Ck and C∞: C4 specifies continuous derivatives through order four on the closed interval.

[F4]

The reverse triangle inequality: for reals x,y, ∣∣x∣−∣y∣∣≤∣x−y∣.

Proof

1.1givenF1F3algebra

By [F3], the regularity hypothesis is f∈C4([a,b]). By [F1], write Ek:=I−Qk=chk4+rk where rk=o(hk4). Since hk+1=hk/2, Ek+1=chk4/16+o(hk4).

2.1givenF2F4step 1.1algebra

The signed difference Qk+1−Qk=Ek−Ek+1. Therefore [F2] and step 1.1 give (Qk+1−Qk)/15=chk4/16+sk for some sk=o(hk4). By [F4], the difference between ηk=∣(Qk+1−Qk)/15∣ and ∣c∣hk4/16 is at most ∣sk∣=o(hk4), so ηk=∣c∣hk4/16+o(hk4).

3.1givenF4step 1.1step 2.1algebra∎

If c≠0, step 1.1 and [F4] give ∣Ek+1∣/hk4→∣c∣/16>0, so Ek+1≠0 for all sufficiently large k; dividing the step 2.1 relation by ∣Ek+1∣ then gives ηk/∣Ek+1∣→1. Also I−Rk+1=(16Ek+1−Ek)/15, whose order-hk4 terms cancel by step 1.1, leaving o(hk4). If c=0, both leading terms vanish, and these asymptotic formulas do not give a relative-error conclusion. The limit statements do not bound any finite-level error.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

Termination and indicator bookkeeping for capped adaptive Simpson

Statement

For valid inputs, Finite-depth adaptive Simpson with an indicator terminates after at most P recursive panel calls and at most 5P evaluation requests. A finite result is a sum of the refined Simpson values on the returned leaf intervals, and its reported indicator is the sum of their nonnegative indicators. An evaluation failure, including an unrepresentable required node reported by the evaluator, returns failure with no estimate. If the status is accepted, that indicator sum is at most the requested tolerance τ. If no evaluation fails and a rejected leaf cannot split because of the depth or panel-call cap, the result has status cap-reached. These claims do not bound the true quadrature error.

Facts & Assumptions

Given: a<b, τ>0, integers D≥0 and P≥1, and a deterministic evaluation routine returning finite values at every requested node or an explicit failure.

[F1]

Finite-depth adaptive Simpson with an indicator: a call accepts when η≤t, returns cap-reached when rejected and d=0 or p<3, and otherwise splits into two calls with depth d−1, positive budgets ⌊(p−1)/2⌋,⌈(p−1)/2⌉, and tolerances t/2.

[F2]

Embedded Simpson refinement indicator: each leaf indicator is ∣S1−S0∣/15≥0.

Proof

1.1givenF1F2basealgebra

A call with a failed evaluation returns failure after at most five requests. Otherwise, a call that accepts immediately or cannot split because d=0 or p<3 returns a single leaf after at most five requests. Its estimate is its refined Simpson value, and its indicator is nonnegative by [F2]; if accepted, its indicator is at most t. These cases use one panel call and include every call with p=1 or p=2.

2.1givenF1ihinductionstep 1.1algebra

For strong induction on positive integer p, uniformly over nonnegative integer d and positive t, assume [IH] all the claims hold for every smaller positive panel budget. Step 1.1 covers calls that return without splitting. In the remaining case η>t, d>0 and p≥3, [F1] gives two positive integer child budgets, each smaller than p, whose sum is p−1; both child depths are nonnegative integers. The induction hypothesis applies to both recursive calls, so they terminate and together use at most p−1 panel calls; adding the parent gives at most p. Each call uses at most five requests, so the total is at most 5p. A failed child makes the parent return failure with no estimate.

3.1givenF1F2ihinductionstep 1.1step 2.1discharge-inductionalgebra∎

Consider a finite result. If the call does not split, step 1.1 gives the leaf-sum representation and, when accepted, its indicator is at most t. If it splits, neither child failed; the child panels partition the parent and [F1] adds their estimates and nonnegative indicators, so the induction hypothesis gives the leaf-sum representation. The parent is accepted in this branch only when both child results are accepted; their indicator totals are each at most t/2 by induction, hence their sum is at most t. A rejected terminal leaf returns cap-reached, which propagates to the root when no evaluation fails. Conversely, any cap status can be traced down the finite tree of step 2.1 to such a leaf. A failure instead propagates with no estimate by [F1]. No implication to true error is in [F1] or [F2].

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Certified adaptive Simpson from derivative enclosures

Definition

Input finite dyadic endpoints a<b, a positive dyadic tolerance τ, integers D≥0 and P≥1, and a function f∈C4([a,b]). Also supply two validated enclosure routines:

  • V(x) returns a finite real interval containing the exact value f(x);
  • Y([u,v]) returns a finite real interval containing every f(4)(x) for x∈[u,v].

If either routine does not meet its enclosure contract, this algorithm makes no certification claim; soundness is a mathematical caller precondition and cannot be detected from samples. An explicit oracle failure or malformed or non-finite interval result returns failure. The intervals and operations are those of Real intervals, complex rectangles and ball enclosures and Outward-rounded interval, rectangle and ball operations. The function ru⁡ is upward directed rounding from Dyadic floating-point format and directed rounding. A midpoint that is not exactly representable or a non-finite interval operation returns failure with no enclosure; malformed or non-finite oracle results are covered by the explicit failure rule above.

Define A([u,v],d,p,t) recursively. Form the exact midpoint m=(u+v)/2; if it is not representable in the format, return failure. Query V(u),V(m),V(v) and let Y([u,v])=[y−,y+]. Put M=max⁡(∣y−∣,∣y+∣) and let L=v−u be the exact difference of the dyadic endpoints. Form an outward-rounded interval W=[v,v]−[u,u] by interval subtraction, and compute SP:=(W/[6,6])(V(u)+4V(m)+V(v)) using outward interval operations. Compute BP=ru⁡(ML5/2880) by upward rounding the exact real expression; if it overflows, return failure. Set CP=SP+[−BP,BP] by outward interval addition. If any interval operation has a non-finite status, return failure. Treat the endpoints of CP as exact dyadic rationals and report their exact rational midpoint qP and half-width rP; compare rP with t exactly.

  1. If rP≤t, return (certified, enclosure CP, estimate qP, error bound rP).
  2. If rP>t and either d=0 or p<3, return (inconclusive, enclosure CP, estimate qP, error bound rP).
  3. Otherwise split at m, allocate pL=⌊(p−1)/2⌋ and pR=⌈(p−1)/2⌉, and recurse with depth d−1 and tolerance t/2 on each half. A failed child or non-finite interval sum returns failure. Otherwise outward-add the child enclosures to obtain C, with exact midpoint q and half-width r; return certified if r≤t, and inconclusive otherwise.

The public call is A([a,b],D,P,τ). certified asserts an error at most r≤τ; inconclusive still returns a valid enclosure and bound but does not assert the requested tolerance was met. The derivative enclosure routine is an explicit mathematical precondition, not something inferred from sampled values or the Simpson indicator. Outward rounding of all interval operations, and the separate Peano remainder bound, are essential.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

Sound integral enclosure from certified adaptive Simpson

Statement

Assume the input hypotheses and the two sound enclosure-oracle contracts in Certified adaptive Simpson from derivative enclosures. Whenever the algorithm returns certified or inconclusive with a finite enclosure C=[L,U], the exact Riemann integral I=∫abf(x) dx belongs to C. Its reported center q=(L+U)/2 and half-width r=(U−L)/2 satisfy ∣I−q∣≤r. A certified status additionally means r≤τ. The algorithm terminates after at most P recursive panel calls. If an oracle reports failure or returns a malformed or non-finite interval, or an interval operation is non-finite, the algorithm returns failure and asserts no finite enclosure. An inconclusive result does not assert that the requested tolerance was met.

Facts & Assumptions

Given: A finite dyadic interval [a,b], a<b, a C4 function, and validated point-value and fourth-derivative interval enclosures on every queried point and panel.

[A1]

The point-value routine returns a finite interval containing f(x) at each queried node, and the fourth-derivative routine returns a finite interval containing f(4)([u,v]) on each queried panel.

[F1]

Composite Simpson rule on an even uniform grid: for n=2 the exact panel value is L(f)=v−u6(f(u)+4f((u+v)/2)+f(v)).

[F2]

Composite Simpson error bound for a four-times continuously differentiable function: for f∈C4([u,v]) and an even grid with step h, the exact error is at most (v−u)h4max⁡∣f(4)∣/180.

[F3]

Outward-rounded operations are inclusion-isotone and enclose DAG evaluations: finite outward-rounded interval operations enclose the exact values of every operation node in a finite arithmetic expression DAG; a non-finite status makes no finite claim.

[F4]

Outward-rounded interval, rectangle and ball operations and Real intervals, complex rectangles and ball enclosures: finite interval operations use outward-rounded endpoint formulas, and finite intervals have ordered endpoints.

[F5]

Dyadic floating-point format and directed rounding: ru⁡(x) is the least representable number greater than or equal to a finite x when it is within range; overflow is reported otherwise.

[F6]

Higher derivatives and the classes Ck and C∞: C4 means derivatives through order four are continuous on the closed interval.

[F7]

For a<c<b: f is integrable on [a,b] if and only if it is integrable on [a,c] and on [c,b], and then ∫abf=∫acf+∫cbf; with the oriented form for arbitrary a,b,c: if f is integrable on [a,b] and a<c<b, then ∫abf=∫acf+∫cbf; iterating this identity gives additivity over finite adjacent partitions.

[F8]

Certified adaptive Simpson from derivative enclosures: a panel is split only when its radius exceeds the local tolerance and both depth and panel-call budget allow it; child tolerances are halved, and child enclosures are outward-added.

[F11]

The reverse triangle inequality: for reals x,y, ∣∣x∣−∣y∣∣≤∣x−y∣.

Proof

1.1givenA1F1F3F4construct

Fix a recursive panel [u,v] of length L with finite oracle results. By [A1], the exact values f(u),f((u+v)/2),f(v) belong to their returned intervals. The interval W=[v,v]−[u,u] in [F4] contains L=v−u, and [6,6] is an exact positive divisor. Thus the expression DAG for SP in the algorithm contains the exact L(f) expression of [F1]; by [F3]–[F4], SP contains the exact Simpson value S.

1.2givenA1F2F3F4F5F6F9F10F11algebra

By [A1], every value of f(4) on [u,v] lies between y− and y+; ordered endpoints [F4] imply its absolute value is at most M=max⁡(∣y−∣,∣y+∣). This M is nonnegative. By [F6], the restriction of f to [u,v] is C4 and g:=f(4) is continuous. For any x,y∈[u,v], [F11] gives ∣∣g(x)∣−∣g(y)∣∣≤∣g(x)−g(y)∣. Fix x0∈[u,v] and let ε>0. Continuity of g at x0 supplies δ>0 such that x∈[u,v] and ∣x−x0∣<δ imply ∣g(x)−g(x0)∣<ε. Then [F11] gives ∣∣g(x)∣−∣g(x0)∣∣<ε, so ∣g∣ is continuous at x0. Since x0 was arbitrary, ∣g∣ is continuous on [u,v]. By [F9], [u,v] is compact, and [F10] gives M4=max⁡x∈[u,v]∣g(x)∣. Since every ∣g(x)∣≤M by [A1] and [F4], M4≤M. Applying [F2] with n=2 and step h=L/2 gives ∣∫uvf−S∣≤M4L5/2880≤ML5/2880. The directed upward rounding in the algorithm makes BP≥ML5/2880 by [F5]. Thus the exact panel integral belongs to S+[−BP,BP]. Outward interval addition and [F3] show that it belongs to CP.

1.3givenF8inductionalgebra

For p=1 or p=2, [F8] forbids a split, so after the finite panel calculation the call returns. For p≥3, a call either returns without splitting or splits into two adjacent halves with positive budgets pL,pR<p and pL+pR=p−1, by [F8]. Strong induction on p therefore proves termination; a split tree uses at most 1+pL+pR=p calls, so the public call uses at most P.

2.1givenF3F7F8step 1.2step 1.3inductionalgebra

The returned panels form a finite partition of [a,b]. Each leaf interval contains its exact panel integral by step 1.2; [F7] adds those integrals to I. At each internal node the outward interval sum contains the exact sum of its child interval values by [F3] and [F8]. Induction up the finite tree proves I∈C.

3.1givenF3F8step 2.1algebra∎

Since C=[L,U] contains I, its midpoint and half-width satisfy ∣I−(L+U)/2∣≤(U−L)/2. By [F8], the algorithm returns certified only after the exact comparison r≤τ; otherwise it returns inconclusive. An explicit oracle failure, malformed or non-finite oracle interval, or non-finite interval operation returns no finite enclosure by definition. The truth of the oracle's enclosure contract remains a hypothesis, not a runtime test.

5 · Examples, counterexamples and false statements

None yet.

Sources