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.

✓ 5 results · all verified · 5 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; all 5 also cleared it.

Composite quadrature rules

1 · Prerequisites

2 · Summary

Objective

This page supplies exact uniform-panel midpoint and composite Simpson procedures, their derivative-norm error bounds, and Simpson exactness through cubic degree. The composite trapezoid definition and its matching C2 error theorem already have canonical published homes: Composite trapezoidal rule and Second-derivative error bound for the composite trapezoidal rule. They are used here without duplicating their carriers. All bounds concern exact-real quadrature; floating point evaluation and summation error are separate. The midpoint proof uses an explicit nonnegative panel kernel. The Simpson proof supplies its own signed Peano kernel and then sums over the even number of panels.

3 · Logical flowchart

4 · Definitions, theorems and proofs

AlgorithmAlgorithm: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Composite midpoint rule on a uniform grid

Definition

Input real endpoints a,b, an integer n, and a function f. If a≥b or n<1, return invalid-grid without evaluating f. For the remaining inputs, require a real-valued function f:[a,b]→R evaluable at every point of [a,b]. Put h=(b−a)/n and mj=a+(j+12)h for 0≤j<n. The composite midpoint rule returns

QM(f;a,b,n):=h∑j<nf(mj).

The sum is the finite sum of Finite sums and finite products, by recursion. The admissibility conditions a<b and n≥1 ensure h>0 and all mj∈(a+jh,a+(j+1)h). The rule is an exact-real formula; floating-point evaluation and summation error are separate from its quadrature error.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Composite Simpson rule on an even uniform grid

Definition

Input real endpoints a,b, an integer n, and an evaluation function f. If a≥b or n<2, return invalid-grid without evaluating f. For the remaining inputs require f:[a,b]→R to be evaluable at every point of [a,b]. If n is odd, the procedure returns invalid-Simpson-panel-count. If n is even, put h=(b−a)/n and xj=a+jh for 0≤j≤n; return

QS(f;a,b,n):=h3∑j<n/2(f(x2j)+4f(x2j+1)+f(x2j+2)).

The sum is a finite sum of Finite sums and finite products, by recursion. Each two-panel block [x2j,x2j+2] uses its endpoints and midpoint. Expanding the block sum gives weights 1,4,2,…,4,1. The even condition n≥2 makes the number of blocks a positive integer. The formula is an exact-real procedure; floating point evaluation and summation error are separate from its quadrature error.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

Midpoint panel error kernel and second-derivative bound

Statement

Let a<b, m=(a+b)/2, and f∈C2([a,b]) in the sense of Higher derivatives and the classes Ck and C∞. Define

K(t)={12(t−a)2,a≤t≤m,12(b−t)2,m≤t≤b.

Then K is nonnegative and continuous,

∫abf(t) dt−(b−a)f(m)=∫abK(t)f′′(t) dt,

and, with M2:=max⁡t∈[a,b]∣f′′(t)∣,

∣∫abf(t) dt−(b−a)f(m)∣≤(b−a)324M2.

In particular, if f′′≥0 on [a,b], the panel midpoint value does not exceed the integral.

Facts & Assumptions

Given: Reals a<b and f∈C2([a,b]).

[F1]

Higher derivatives and the classes Ck and C∞: C2([a,b]) means that f, f′, and f′′ are continuous on the closed interval, with endpoint derivatives interpreted from within the interval.

[F2]

If u,v are differentiable on [a,b] with u′,v′ integrable, then ∫abuv′=u(b)v(b)−u(a)v(a)−∫abu′v: for differentiable u,v with integrable derivatives, ∫uv′=[uv]−∫u′v on a closed interval.

[F4]

Every continuous function on a closed nondegenerate rectangle in Rm is Riemann integrable: every continuous real function on a closed nondegenerate rectangle in Rq, q≥1, is Riemann integrable; here q=1 and the rectangle is [a,b].

[F6]

Extreme value theorem: a continuous real function on a nonempty compact subset of R attains a greatest and a least value: a continuous real function on a nonempty compact subset of R attains its maximum and minimum.

[F7]

If f≤g on [a,b] and both are integrable then ∫abf≤∫abg; and m(b−a)≤∫abf≤M(b−a): pointwise order between integrable functions on an increasing interval gives the same order between their integrals.

[F8]
[F9]

The second fundamental theorem: if G is differentiable on [a,b] with G′=f and f is integrable, then ∫abf=G(b)−G(a): if G is differentiable on [a,b], G′=g, and g is integrable, then ∫abg=G(b)−G(a).

[F10]

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: constants and the identity are continuous; sums, scalar multiples and products preserve continuity, so every polynomial function and its product with f′′ are continuous on each interval where the polynomial formula for K applies.

Proof

1.1givenF1F4F5F6F10construct

By [F1], f′′ is continuous and [a,b] is compact by [F5], so [F6] gives the finite maximum M2=max⁡[a,b]∣f′′∣. Each formula for K is polynomial and hence continuous by [F10]; the two formulas agree at m, so K is continuous on [a,b] and nonnegative on both halves. Thus Kf′′ is continuous by [F10], and f, K, Kf′′, and their restrictions are integrable by [F4].

2.1givenF1F2F4step 1.1

On [a,m], K(a)=K′(a)=0, K(m)=(b−a)2/8, K′(m)=(b−a)/2, and K′′=1 inside; applying [F2] first to u=K,v=f′ and then to u=K′,v=f gives ∫amKf′′=K(m)f′(m)−K′(m)f(m)+∫amf, with all hypotheses valid because K is polynomial on this half and f∈C2.

2.2givenF1F2F4step 1.1

On [m,b], K(b)=K′(b)=0, K(m)=(b−a)2/8, K′(m)=−(b−a)/2, and K′′=1 inside; the same two applications of [F2] give ∫mbKf′′=−K(m)f′(m)+K′(m)f(m)+∫mbf.

3.1step 2.1step 2.2F3algebra

Adding steps 2.1 and 2.2 cancels the f′(m) terms, sums the f(m) terms to −(b−a)f(m), and by additivity [F3] yields ∫abKf′′=∫abf−(b−a)f(m).

4.1step 1.1step 3.1F3F4F7F8F9F11F12F13algebra∎

The chain rule [F11], power rule [F12], and scalar rule [F13] show that (t−a)3/6 is an antiderivative of the left formula for K, and −(b−t)3/6 is an antiderivative of the right formula. The FTC [F9] therefore gives ∫amK=(m−a)3/6=(b−a)3/48 and ∫mbK=(b−m)3/6=(b−a)3/48; additivity [F3] gives ∫abK=(b−a)3/24. Since 0≤K and ∣f′′∣≤M2, one has −M2K≤Kf′′≤M2K; monotonicity [F7] and linearity [F8] give ∣∫abKf′′∣≤M2∫abK=M2(b−a)3/24, and if f′′≥0 they also give ∫abKf′′≥0. Step 3.1 transfers the bound and sign to the midpoint error.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

Composite midpoint error bound for a twice continuously differentiable function

Statement

Let a<b, let n≥1 be an integer, and put h=(b−a)/n. If f∈C2([a,b]), define M2=max⁡x∈[a,b]∣f′′(x)∣. The composite midpoint value QM(f;a,b,n) of Composite midpoint rule on a uniform grid satisfies

∣∫abf(x) dx−QM(f;a,b,n)∣≤(b−a)h224M2.

The integral is the Riemann integral. This is an exact-arithmetic quadrature bound; evaluation and summation roundoff are not included.

Facts & Assumptions

Given: Reals a<b, an integer n≥1, h=(b−a)/n, and f∈C2([a,b]).

[F1]

Composite midpoint rule on a uniform grid: QM is the sum of the values at the n panel midpoints, each multiplied by h.

[F2]

Midpoint panel error kernel and second-derivative bound: on a panel of length h, the difference between its integral and its midpoint value times h has absolute value at most M2h3/24.

[F4]

Triangle inequality for finite sums: the absolute value of a finite sum is at most the sum of the absolute values.

Proof

1.1givenF2construct

Put xj=a+jh and mj=(xj+xj+1)/2 for 0≤j<n. Each panel [xj,xj+1] has length h and inherits the C2 restriction of f; max⁡[xj,xj+1]∣f′′∣≤M2. By [F2], its midpoint error Ej obeys ∣Ej∣≤M2h3/24.

2.1step 1.1F1F3algebra

Repeated application of [F3] gives ∫abf=∑j=0n−1∫xjxj+1f. By [F1], QM=h∑j=0n−1f(mj), so subtraction gives ∫abf−QM=∑j=0n−1Ej.

3.1step 1.1step 2.1F4algebra∎

The finite-sum triangle inequality [F4] and step 1.1 yield ∣∫abf−QM∣≤∑j=0n−1∣Ej∣≤nM2h3/24. Since nh=b−a, this is the claimed bound.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

Peano kernel identity for one Simpson panel

Statement

Let a<b, put L=b−a and m=(a+b)/2, and let f∈C4([a,b]). Define the one-block Simpson value and its kernel by

S(f;a,b):=L6(f(a)+4f(m)+f(b)),Ka,b(x):={(x−a)3(3(x−a)−2L)72,a≤x≤m,(b−x)3(3(b−x)−2L)72,m≤x≤b.

Then

∫abf(x) dx−S(f;a,b)=∫abKa,b(x)f(4)(x) dx,

and Ka,b≤0 with ∫ab∣Ka,b(x)∣ dx=L5/2880. The value S(f;a,b) is the one-block specialization of Composite Simpson rule on an even uniform grid.

Facts & Assumptions

Given: Reals a<b, L=b−a, m=(a+b)/2, and f∈C4([a,b]).

[F1]

Composite Simpson rule on an even uniform grid: on two subintervals of equal width L/2, the Simpson output is L6(f(a)+4f(m)+f(b)).

[F2]

Higher derivatives and the classes Ck and C∞: C4([a,b]) means all derivatives through order four exist and are continuous, with endpoint derivatives taken from within the interval.

[F3]

If u,v are differentiable on [a,b] with u′,v′ integrable, then ∫abuv′=u(b)v(b)−u(a)v(a)−∫abu′v: for differentiable u,v with integrable derivatives, ∫uv′=[uv]−∫u′v on a closed interval.

[F4]

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

[F6]

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: constants and the identity are continuous; sums, scalar multiples and products preserve continuity, so the polynomial pieces of Ka,b and their products with f(4) are continuous on each half-panel.

Proof

1.1givenF2F4F6algebra

On the left half, Ka,b(x)=(3y4−2Ly3)/72 with y=x−a; hence K(4)=1, K(a)=K′(a)=K′′(a)=0, and at m its value and first two derivatives are −L4/1152, 0, and L2/24, while K′′′(m−)=L/3. The right-half formula gives K(4)=1, K(b)=K′(b)=K′′(b)=0, and K′′′(m+)=−L/3. Thus K,K′,K′′ match at m. Each polynomial formula for K and its product with the continuous f(4) is continuous on its closed half by [F2] and [F6]. Both formulas agree at m, so K and Kf(4) are continuous on [a,b]; also f is continuous by [F2]. These functions and their restrictions are integrable by [F4].

2.1F1F2F3F4F6F10step 1.1algebra

On each closed half, every derivative K(r) for 0≤r≤4 is polynomial and continuous by [F6], and every f(s) for 0≤s≤4 is continuous by [F2]. They are all integrable by [F4], so the four applications of integration by parts [F3] satisfy their derivative-integrability hypotheses. They give ∫Ka,bf(4)=[B]+∫f, where B=Kf′′′−K′f′′+K′′f′−K′′′f and the bracket is the endpoint difference for that half. Summing the brackets, the terms at m involving K,K′,K′′ cancel, while the jump in K′′′ contributes −2Lf(m)/3; the outer endpoints contribute −L(f(a)+f(b))/6. Additivity [F10] combines both half-integrals of Kf(4) and of f; the remaining integral is ∫abf because K(4)=1. By [F1], this is precisely ∫abf−S(f;a,b), proving the identity.

3.1F5F7F8F9F10step 1.1algebra∎

Since 0≤x−a≤L/2 on the left half, 3(x−a)−2L<0, so Ka,b≤0 there; the right formula gives the same sign. Define H(x)=35(x−a)5−L2(x−a)4 on [a,m]. The power rule [F7], chain rule [F9], and sum/scalar rules [F8] give H′(x)=3(x−a)4−2L(x−a)3. By the FTC [F5], additivity [F10], and symmetry of the two kernel pieces, and H(m)−H(a)=−L5/80, ∫ab∣Ka,b∣=−2(H(m)−H(a))/72=L5/2880.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

Composite Simpson rule is exact through cubic degree

Statement

Let a<b, let n≥2 be an even integer, and let p(x)=c0+c1x+c2x2+c3x3 with real coefficients. Then

∫abp(x) dx=QS(p;a,b,n),

where QS is the composite Simpson value of Composite Simpson rule on an even uniform grid.

Facts & Assumptions

Given: Reals a<b, an even integer n≥2, and p(x)=c0+c1x+c2x2+c3x3.

[F1]

Composite Simpson rule on an even uniform grid: the composite value is h3∑j<n/2(f(x2j)+4f(x2j+1)+f(x2j+2)).

[F2]

Peano kernel identity for one Simpson panel: on a panel, the error equals the integral of its Peano kernel times the fourth derivative.

[F6]

Higher derivatives and the classes Ck and C∞: p∈C4([a,b]) requires that p and its derivatives through order four exist and are continuous on [a,b].

Proof

1.1givenF4F5F6F7algebra

Repeated use of [F4] and the sum/scalar rules in [F5] gives, for every real x, p′(x)=c1+2c2x+3c3x2,p′′(x)=2c2+6c3x,p′′′(x)=6c3,p(4)(x)=0. These formulas establish existence of all derivatives through order four, including their restrictions to the endpoints with the one-sided convention. Each of p,p′,p′′,p′′′ and p(4) is a polynomial function, hence continuous by [F7]. Thus p∈C4([a,b]) by [F6], and p(4)≡0.

2.1step 1.1F2

For every block [x2j,x2j+2], the restriction of p is C4 and has fourth derivative zero. The Peano-kernel identity [F2] makes that block's Simpson error ∫x2jx2j+2Kx2j,x2j+2(x) 0 dx=0.

3.1step 2.1F1F3algebra∎

By [F3], summing the exact block integrals gives ∫abp. Summing the block Simpson values from [F1], each endpoint appears once, each odd interior node appears with coefficient 4, and each even interior node appears with coefficient 2. This is exactly the composite formula [F1], so the global rule is exact.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

Composite Simpson error bound for a four-times continuously differentiable function

Statement

Let a<b, let n≥2 be an even integer, and put h=(b−a)/n. If f∈C4([a,b]), set M4=max⁡x∈[a,b]∣f(4)(x)∣. Then the value QS(f;a,b,n) of Composite Simpson rule on an even uniform grid satisfies

∣∫abf(x) dx−QS(f;a,b,n)∣≤(b−a)h4180M4.

The integral is the Riemann integral. This is an exact-arithmetic quadrature bound; evaluation and summation roundoff are not included.

Facts & Assumptions

Given: Reals a<b, an even integer n≥2, h=(b−a)/n, and f∈C4([a,b]).

[F1]

Higher derivatives and the classes Ck and C∞: C4([a,b]) makes f(4) continuous on the closed interval.

[F2]

Heine-Borel by bisection: every closed bounded interval [a,b] is compact: every closed bounded interval [a,b] is compact.

[F3]

Extreme value theorem: a continuous real function on a nonempty compact subset of R attains a greatest and a least value: a continuous real function on a nonempty compact subset of R attains its maximum.

[F4]

Composite Simpson rule on an even uniform grid: the composite value is the sum, over j<n/2, of h3(f(x2j)+4f(x2j+1)+f(x2j+2)).

[F5]

Peano kernel identity for one Simpson panel: on a panel of length L, the Simpson error is ∫Kf(4), where K≤0 and ∫∣K∣=L5/2880.

[F7]

Triangle inequality for finite sums: the absolute value of a finite sum is at most the sum of the absolute values.

[F8]

If f≤g on [a,b] and both are integrable then ∫abf≤∫abg; and m(b−a)≤∫abf≤M(b−a): pointwise order between integrable functions on an increasing interval gives the same order between their integrals.

Proof

1.1givenF1F2F3F4F5F8F9construct

By [F1], f(4) is continuous. The interval is compact by [F2], so [F3] gives M4=max⁡[a,b]∣f(4)∣<∞. For each j=0,…,n/2−1, put u=x2j and L=2h. The local rule from [F4] is S(f;u,u+L); by [F5], its error is Ej=∫uu+LKu,u+Lf(4) and ∫uu+L∣Ku,u+L∣=(2h)5/2880. Since Ku,u+L≤0, its absolute value equals its negative, hence is integrable by [F5] and [F9]. The integrable functions satisfy −M4∣Ku,u+L∣≤Ku,u+Lf(4)≤M4∣Ku,u+L∣. Monotonicity [F8] and scalar linearity [F9] therefore give ∣Ej∣≤M4∫uu+L∣Ku,u+L∣=M4(2h)5/2880.

2.1step 1.1F4F6algebra

Additivity [F6] gives ∫abf as the sum of the local panel integrals. Summing the local Simpson expressions in [F4], each interior even-indexed value appears in two adjacent blocks and each odd-indexed value appears once; hence their sum is exactly QS(f;a,b,n). Therefore the global error is ∑j=0n/2−1Ej.

3.1step 1.1step 2.1F7algebra∎

The finite-sum triangle inequality [F7] yields ∣∑jEj∣≤(n/2)M4(2h)5/2880=nM4h5/180. Using nh=b−a gives the stated bound.

5 · Examples, counterexamples and false statements

None yet.

Sources