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.
Adaptive quadrature and error indicators
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Composite quadrature rules
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Countability and Uncountability
- Darboux, L'Hôpital, and Taylor's Theorem
- Filters and Ultrafilters
- Foundations of the Real Numbers for Analysis
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Metric Spaces
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Order, Zorn's Lemma, and the Axiom of Choice
- Outward rounded interval and ball arithmetic
- Properties of the Integral and the Working FTC
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Suprema and Infima
- The Derivative and the Mean Value Theorems
- The Riemann Integral in Rᵐ and Jordan Content
- The Riemann Integral: Definition and Integrability
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
Objective
This page separates adaptive Simpson's finite procedure and its heuristic indicator from a conditional certified mode. The 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
Embedded Simpson refinement indicator
Definition
Let , let be even, and let be real-valued at the nodes of the uniform grids with and subintervals. The coarse Simpson value is and the refined value is , using Composite Simpson rule on an even uniform grid. The signed refinement indicator is and its magnitude is
For the local two-panel case , is also the sum of the two one-block Simpson values on the halves of .
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 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 , and indicator; no off-grid values or regularity are required.
Remarks
The factor 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.
Leading composite Simpson error coefficient
Statement
Let , let be an integer, set and , and let for . With , one has Here means along this sequence. The integral is the Riemann integral.
Facts & Assumptions
Given: A real interval with , , and the composite Simpson values on the grids with subintervals.
Peano kernel identity for one Simpson panel: on a panel of length , the Simpson kernel has the two quartic pieces displayed in its Statement; they agree at the midpoint, satisfy , and have . The panel error is .
Higher derivatives and the classes and : means and its derivatives through order four are continuous on the closed interval, in particular both and are continuous.
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.
Heine-Borel by bisection: every closed bounded interval is compact: a closed bounded real interval is compact.
Every continuous function on a closed nondegenerate rectangle in is Riemann integrable: a continuous real function on a closed nondegenerate interval is Riemann integrable.
For : is integrable on if and only if it is integrable on and on , and then ; with the oriented form for arbitrary : for Riemann-integrable on and , the restrictions to and are integrable and ; iterating this two-piece identity gives additivity over any finite adjacent partition.
If on and both are integrable then ; and and Integrable functions on form a set closed under sums and scalar multiples, and : pointwise bounds pass to integrals, and integrals are linear.
Sums, scalar multiples, products, absolute values, maxima, minima and quotients with nonvanishing denominator of continuous functions are continuous, as are constants, the identity and every polynomial function: sums, scalar multiples, and products of continuous real functions are continuous.
Composite Simpson rule on an even uniform grid: for even , is the sum of the one-block Simpson values on the adjacent panels , .
Every complete ordered field is Archimedean: for every real there is a natural number with .
Bernoulli's inequality : if and , then .
Proof
Let and put . By [F11] choose with . For every , [F12] with gives , so . Since was arbitrary, .
Put . By [F2] and [F5], both and are integrable. By [F3]–[F4], is uniformly continuous on the compact interval. The two formulas for in [F1] agree at their shared midpoint, so is continuous; [F9] makes continuous and [F5] makes it integrable. Fix ; choose so that whenever and . For , write each Simpson block as with midpoint . By [F1] and linearity, its error minus is . Since and , [F7] bounds the absolute value of this difference by .
The chosen in step 1.2 is positive, so step 1.1 gives an index after which ; hence the panel estimate of step 1.2 holds for all sufficiently large .
There are blocks. By [F10], is the sum of their one-block Simpson values; repeated application of additivity [F6] sums their integrals to . Hence their local errors sum to . If , step 1.2 gives . Also, on each block the uniform-continuity bound gives . By [F7] and [F8], integrating these constant bounds gives , so . Repeated additivity [F6] then yields .
Since , step 3.1 shows that for all sufficiently large . As was arbitrary, the displayed limit follows.
Finite-depth adaptive Simpson with an indicator
Definition
Input , an absolute indicator tolerance , a remaining depth and a positive panel-call budget , and a deterministic evaluation routine 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 for , , and as follows.
- Compute and the five values of at
. On failure, return
failurewith no estimate. - Compute and from the two nested grids of Embedded Simpson refinement indicator, and put .
- If , return (
accepted, estimate , indicator ). - If and either or , return (
cap-reached, estimate , indicator ). - Otherwise put and
. Recursively call
and . If either returns failure,
return failure. Otherwise return the sum of their estimates and indicators,
with status
cap-reachedif either child has that status andacceptedotherwise.
The public call is . 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.
Conditional asymptotic validity of the Simpson /15 indicator
Statement
Let , , for , , , and . Let . Then the refinement indicator satisfies . If , then . The Richardson-corrected value satisfies . When , these statements give no relative error estimate for ; at no finite level does alone certify the true error.
Facts & Assumptions
Given: A nondegenerate interval, a integrand, nested composite Simpson grids with mesh widths , and exact arithmetic.
Leading composite Simpson error coefficient: with the stated coefficient .
Embedded Simpson refinement indicator: the magnitude of the embedded indicator is ; a Richardson correction adds the signed quantity to the refined value.
Higher derivatives and the classes and : specifies continuous derivatives through order four on the closed interval.
The reverse triangle inequality: for reals , .
Proof
By [F3], the regularity hypothesis is . By [F1], write where . Since , .
The signed difference . Therefore [F2] and step 1.1 give for some . By [F4], the difference between and is at most , so .
If , step 1.1 and [F4] give , so for all sufficiently large ; dividing the step 2.1 relation by then gives . Also , whose order- terms cancel by step 1.1, leaving . If , 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.
Termination and indicator bookkeeping for capped adaptive Simpson
Statement
For valid inputs, Finite-depth adaptive Simpson with an indicator
terminates after at most recursive panel calls and at most 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: , , integers and , and a deterministic evaluation routine returning finite values at every requested node or an explicit failure.
Finite-depth adaptive Simpson with an indicator: a call accepts
when , returns cap-reached when rejected and or ,
and otherwise splits into two calls with depth , positive budgets
, and tolerances .
Embedded Simpson refinement indicator: each leaf indicator is .
Proof
A call with a failed evaluation returns failure after at most five requests. Otherwise, a call that accepts immediately or cannot split because or 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 . These cases use one panel call and include every call with or .
For strong induction on positive integer , uniformly over nonnegative integer and positive , 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 , and , [F1] gives two positive integer child budgets, each smaller than , whose sum is ; both child depths are nonnegative integers. The induction hypothesis applies to both recursive calls, so they terminate and together use at most panel calls; adding the parent gives at most . Each call uses at most five requests, so the total is at most . A failed child makes the parent return failure with no estimate.
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 . 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 by induction, hence their sum is at most . 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].
Certified adaptive Simpson from derivative enclosures
Definition
Input finite dyadic endpoints , a positive dyadic tolerance , integers and , and a function . Also supply two validated enclosure routines:
- returns a finite real interval containing the exact value ;
- returns a finite real interval containing every for .
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
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 recursively. Form the exact midpoint ; if
it is not representable in the format, return failure. Query
and let . Put and let
be the exact difference of the dyadic endpoints. Form an outward-rounded
interval by interval subtraction, and compute
using outward interval
operations. Compute by upward rounding the
exact real expression; if it overflows, return failure. Set
by outward interval addition. If any interval operation
has a non-finite status, return failure. Treat the endpoints of as exact
dyadic rationals and report their exact rational midpoint and half-width
; compare with exactly.
- If , return (
certified, enclosure , estimate , error bound ). - If and either or , return
(
inconclusive, enclosure , estimate , error bound ). - Otherwise split at , allocate
and , and recurse
with depth and tolerance on each half. A failed child or
non-finite interval sum returns
failure. Otherwise outward-add the child enclosures to obtain , with exact midpoint and half-width ; returncertifiedif , andinconclusiveotherwise.
The public call is . certified asserts an error at most
; 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.
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 , the exact Riemann
integral belongs to . Its reported center
and half-width satisfy . A certified
status additionally means . The algorithm terminates after at
most 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 function, and validated point-value and fourth-derivative interval enclosures on every queried point and panel.
The point-value routine returns a finite interval containing at each queried node, and the fourth-derivative routine returns a finite interval containing on each queried panel.
Composite Simpson rule on an even uniform grid: for the exact panel value is .
Composite Simpson error bound for a four-times continuously differentiable function: for and an even grid with step , the exact error is at most .
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.
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.
Dyadic floating-point format and directed rounding: is the least representable number greater than or equal to a finite when it is within range; overflow is reported otherwise.
Higher derivatives and the classes and : means derivatives through order four are continuous on the closed interval.
For : is integrable on if and only if it is integrable on and on , and then ; with the oriented form for arbitrary : if is integrable on and , then ; iterating this identity gives additivity over finite adjacent partitions.
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.
Heine-Borel by bisection: every closed bounded interval is compact: every closed bounded interval is compact.
Extreme value theorem: a continuous real function on a nonempty compact subset of attains a greatest and a least value: a continuous real function on a nonempty compact set attains its maximum.
The reverse triangle inequality: for reals , .
Proof
Fix a recursive panel of length with finite oracle results. By [A1], the exact values belong to their returned intervals. The interval in [F4] contains , and is an exact positive divisor. Thus the expression DAG for in the algorithm contains the exact expression of [F1]; by [F3]–[F4], contains the exact Simpson value .
By [A1], every value of on lies between and ; ordered endpoints [F4] imply its absolute value is at most . This is nonnegative. By [F6], the restriction of to is and is continuous. For any , [F11] gives . Fix and let . Continuity of at supplies such that and imply . Then [F11] gives , so is continuous at . Since was arbitrary, is continuous on . By [F9], is compact, and [F10] gives . Since every by [A1] and [F4], . Applying [F2] with and step gives . The directed upward rounding in the algorithm makes by [F5]. Thus the exact panel integral belongs to . Outward interval addition and [F3] show that it belongs to .
For or , [F8] forbids a split, so after the finite panel calculation the call returns. For , a call either returns without splitting or splits into two adjacent halves with positive budgets and , by [F8]. Strong induction on therefore proves termination; a split tree uses at most calls, so the public call uses at most .
The returned panels form a finite partition of . Each leaf interval contains its exact panel integral by step 1.2; [F7] adds those integrals to . 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 .
Since contains , its midpoint and half-width satisfy . By [F8], the algorithm returns certified only after the exact comparison ; 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
- Art B. Owen, Monte Carlo Theory, Methods and Examples, Chapter 7, §7.2
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, §§5.6–5.7
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, §5.6
- L. Ridgway Scott, Numerical Analysis, 2nd ed., Chapter 13, §13.2
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, §5.7
- L. Ridgway Scott, Numerical Analysis, 2nd ed., Chapter 13
- R. B. Kearfott, Interval Computations: Introduction, Uses, and Resources, §§1 and 3.3
- S. M. Rump, Verification methods: Rigorous results using floating-point arithmetic