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.

✓ 8 results · all verified · 7 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 1 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Shape preserving piecewise polynomial interpolation

1 · Prerequisites

2 · Summary

Overview

This page defines cubic Hermite pieces with explicit nodal values and slopes, proves a sufficient monotonicity region in normalized endpoint slopes, and gives the finite PCHIP slope-selection algorithm with its endpoint, flat-interval, and sign-change rules. The PCHIP proof establishes C1 matching and no overshoot on every data cell, hence monotonicity for monotone data. Its third-order value estimate is limited to uniform grids on intervals where the derivative is bounded away from zero; no third-order estimate is claimed at extrema or on arbitrary nonuniform meshes. A separate Bernstein representation proves a convex-hull and positivity guarantee from nonnegative control values. Positive samples alone do not imply positivity between them.

3 · Logical flowchart

4 · Definitions, theorems and proofs

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

Piecewise cubic Hermite interpolant

Definition

Let N≥1 be an integer, let x0<⋯<xN be real nodes, let y0,…,yN∈R be values, and let m0,…,mN∈R be prescribed slopes. For 0≤i<N put hi=xi+1−xi>0 and t=(x−xi)/hi on [xi,xi+1]. Define H00(t)=2t3−3t2+1,H01(t)=−2t3+3t2,H10(t)=t3−2t2+t,H11(t)=t3−t2. The cubic Hermite piece on [xi,xi+1] is Pi(x)=yiH00(t)+yi+1H01(t)+himiH10(t)+himi+1H11(t). The piecewise cubic Hermite interpolant is the function whose restriction to each such interval is Pi; adjacent pieces use their common prescribed value yi at a shared node. The slopes mi are input data, not values inferred from neighboring pieces.

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

Piecewise Bernstein representation

Definition

Let s≥1 be an integer and let a=x0<⋯<xs=b be a finite partition, and on each cell [xi,xi+1] choose an integer degree ni≥0 and real controls ci,0,…,ci,ni. For t=(x−xi)/(xi+1−xi)∈[0,1], define the Bernstein basis polynomial Bk,ni(t)=ι(nik)tk(1−t)ni−k,0≤k≤ni, where (nik) is the natural binomial coefficient from The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣, ι is the canonical embedding of The canonical natural ι(n)=n⋅1F of a field into R, and finite sums use Finite sums and finite products, by recursion. The cell polynomial is pi(x)=∑k=0nici,kBk,ni(t). These cell polynomials form a piecewise Bernstein representation. To require continuity at a shared node, impose the additional endpoint-control condition ci,ni=ci+1,0; continuity is not part of the representation unless that condition is imposed.

For degree two this formula reads pi(x)=ci,0(1−t)2+ι(21) ci,1t(1−t)+ci,2t2.

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

Interpolation, C1 matching, and cubic reproduction for Hermite pieces

Statement

For the data in Piecewise cubic Hermite interpolant, each piece has the prescribed endpoint values and slopes: Pi(xi)=yi, Pi(xi+1)=yi+1, Pi′(xi)=mi, and Pi′(xi+1)=mi+1. The resulting interpolant is C1 on [x0,xN] (with the corresponding one-sided derivatives at the endpoints). On a single interval, if the four prescribed endpoint data are the values and derivatives of a polynomial q of degree at most three, then Pi=q on that interval.

Facts & Assumptions

Given: Strictly increasing real nodes, values, and prescribed slopes as in Piecewise cubic Hermite interpolant.

[F1]

Piecewise cubic Hermite interpolant: on a cell, Pi=yiH00(t)+yi+1H01(t)+himiH10(t)+himi+1H11(t) with t=(x−xi)/hi and the four displayed cubic basis polynomials.

[F2]

Sum, product, quotient, and chain rules from difference quotients: for every integer m≥1, (xm)′=mxm−1.

Proof

1.1F1algebra

The basis values are H00(0)=1, H01(0)=H10(0)=H11(0)=0, and H01(1)=1, H00(1)=H10(1)=H11(1)=0. Substitution into [F1] gives Pi(xi)=yi and Pi(xi+1)=yi+1.

1.2F1F2algebra

Differentiating the displayed basis using [F2] gives (H00′,H01′,H10′,H11′)(0)=(0,0,1,0) and (H00′,H01′,H10′,H11′)(1)=(0,0,0,1). Since dt/dx=1/hi, differentiation of [F1] therefore gives Pi′(xi)=mi and Pi′(xi+1)=mi+1.

2.1step 1.1step 1.2

At a shared node xi, the left and right pieces both have value yi by step 1.1 and both have derivative mi by step 1.2. Thus the piecewise function and its first derivative match there; the one-sided endpoint statements follow from the same step 1.2 calculation.

3.1F1F2algebra∎

Write a degree-at-most-three polynomial in the normalized coordinate as q(t)=a0+a1t+a2t2+a3t3. For q=1, its endpoint values are (1,1) and scaled slopes are (0,0); for q=t, they are (0,1) and (1,1); for q=t2, they are (0,1) and (0,2); and for q=t3, they are (0,1) and (0,3), by [F2] and the chain rule under t=(x−xi)/hi. Substitution in [F1] gives H00+H01=1, H01+H10+H11=t, H01+2H11=t2, and H01+3H11=t3. The formula is linear in endpoint values and slopes, so it reproduces their linear combination q.

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

A sufficient monotonicity square for cubic Hermite interpolation

Statement

Let p be the single Hermite piece from Piecewise cubic Hermite interpolant on [x0,x1], with h=x1−x0>0, endpoint values y0,y1, slopes m0,m1, and secant d=(y1−y0)/h. If d≠0 and α=m0/d, β=m1/d both lie in [0,3], then p is monotone from y0 to y1 and stays between those values. If d=0 and m0=m1=0, then p is constant.

Facts & Assumptions

Given: One Hermite cell with h>0, endpoint values and slopes as in the statement.

[F1]

Piecewise cubic Hermite interpolant: the cell is P=y0H00(t)+y1H01(t)+hm0H10(t)+hm1H11(t) for t=(x−x0)/h.

[F2]

The mean value theorem, as the case g(x)=x of Cauchy's: for f continuous on [a,b] with a<b and differentiable on (a,b) there is c∈(a,b) with f(b)−f(a)=f′(c)(b−a): continuity on a closed interval and differentiability in its interior give p(v)−p(u)=p′(c)(v−u) for some interior c whenever u<v.

[F3]

Sum, product, quotient, and chain rules from difference quotients: the integer power rule (xm)′=mxm−1 holds for m≥1.

Proof

1.1F1F3givenalgebra

For d≠0, differentiating [F1] by [F3], using y1−y0=hd and dt/dx=1/h, gives p′(x)/d=α+(6−4α−2β)t+(3α+3β−6)t2. Indeed, H01′=6t−6t2, H10′=1−4t+3t2, and H11′=−2t+3t2; substitution produces those coefficients. Direct substitution in [F1] also gives p(x0)=y0 and p(x1)=y1.

2.1step 1.1givenalgebra

For 0≤t≤1 put λ00=(1−α/3)(1−β/3), λ30=(α/3)(1−β/3), λ03=(1−α/3)(β/3), and λ33=(α/3)(β/3). These are nonnegative and sum to one. The polynomial in step 1.1 is affine in (α,β), so it equals the convex combination with these weights of its values at (0,0),(3,0),(0,3),(3,3), namely 6t(1−t), 3(1−t)2, 3t2, and 3(1−2t)2. Each of these four polynomials is nonnegative on [0,1].

3.1step 1.1step 2.1F1F2givenalgebra∎

step 2.1 gives p′(x)/d≥0 throughout the cell. If d>0, p′≥0; if d<0, p′≤0. For any two points u<v in the cell, [F2] transfers that derivative sign to p(v)−p(u), so p is monotone; step 1.1 gives its endpoint values y0,y1, so every value lies between them. If d=0, then y1=y0 and [F1] reduces to p=y0(H00+H01)=y0, since m0=m1=0 and H00+H01=1.

Remarks

The diagram uses horizontal coordinate α=m0/d and vertical coordinate β=m1/d; the shaded square is the sufficient region [0,3]2. Its four vertices are the four derivative polynomials listed in proof step 2.1. The argument above proves the claim independently of the picture.

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

PCHIP slope selection

Definition

Inputs: An integer n≥2, strictly increasing real nodes x0<⋯<xn−1, and real values y0,…,yn−1. All operations here are over the real numbers.

Output: Slopes m0,…,mn−1 and the piecewise cubic Hermite interpolant determined by these nodes, values, and slopes under Piecewise cubic Hermite interpolant.

Put hi=xi+1−xi>0 and di=(yi+1−yi)/hi for 0≤i<n−1. Write sgn⁡(r)∈{−1,0,1} for the sign of a real number.

  • If n=2, set m0=m1=d0.
  • If n≥3, for each interior node 1≤k≤n−2, set mk=0 when dk−1dk≤0. When dk−1dk>0, put w1=2hk+hk−1, w2=hk+2hk−1, and mk=w1+w2w1/dk−1+w2/dk.
  • For n≥3, at the left endpoint compute m^0=(2h0+h1)d0−h0d1h0+h1. Set m0=0 if sgn⁡(m^0)≠sgn⁡(d0). Otherwise set m0=3d0 if d0d1<0 and ∣m^0∣>3∣d0∣; in all remaining cases set m0=m^0.
  • For n≥3, at the right endpoint compute m^n−1=(2hn−2+hn−3)dn−2−hn−2dn−3hn−2+hn−3. Apply the preceding clip and cap rule with d0,d1 replaced by dn−2,dn−3 and m0,m^0 replaced by mn−1,m^n−1.

For n≥3, the algorithm returns the Hermite pieces from the stated values and selected slopes. The two-node branch is the line through the two input points.

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

Bernstein control values bound a piecewise polynomial

Statement

On each cell of a representation from Piecewise Bernstein representation, the polynomial value lies between the minimum and maximum of that cell's controls. In particular, nonnegative controls imply a nonnegative polynomial throughout the cell. If every cell has nonnegative controls and adjacent endpoint controls agree, the piecewise function is continuous and nonnegative on the entire partition. This is a control-value guarantee; positivity at a finite set of sample nodes alone is not among the hypotheses.

Facts & Assumptions

Given: A finite Bernstein representation over a real interval, with integer degrees and real control values.

[F1]

Piecewise Bernstein representation: each basis term is Bk,n(t)=ι(nk)tk(1−t)n−k and a cell polynomial is their finite weighted sum.

[F2]

The binomial theorem in R: (x+y)n=∑k<n+1ι ⁣(nk) xky n−k: for real x,y and a natural n, (x+y)n=∑k<n+1ι(nk)xkyn−k.

[F3]

The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣: each (nk) is a natural number, and (n0)=(nn)=1.

[F4]

Trichotomy of the order on N: the order on naturals is total, so a natural is zero or positive.

[F5]

The canonical natural ι(n)=n⋅1F of a field: the canonical embedding sends zero to zero and sends each successor to the previous image plus one.

[F6]

Canonical naturals are positive and strictly increasing: in an ordered field, the canonical image of a positive natural is positive.

[F7]

Laws of finite sums and finite products: finite sums preserve termwise inequalities, and finite products of nonnegative reals are nonnegative.

[F8]

Every nonempty finite set of reals has a maximum and a minimum: every nonempty finite list of real numbers has both a maximum and a minimum.

[F9]

Maximum and minimum of a set: a maximum (minimum) is an element of a set that bounds it above (below).

[F10]

Integer powers am: for every real a and natural n, a0=1 and an+1=an⋅a, including when a=0.

[F12]

Multiplication by zero: 0⋅a=0: zero times any real is zero.

Proof

1.1F1F3F4F5F6F10givenalgebrainduction

Fix a cell and t∈[0,1]. Both t and 1−t are nonnegative, so their natural powers are nonnegative by induction using the recursive definition [F10] and closure of nonnegative reals under multiplication. By [F3]–[F4], (nk) is a natural that is either zero or positive; [F5] sends its zero case to zero, and [F6] sends its positive case to a positive real. Thus every Bk,n(t)≥0.

1.2F1F2F10giveninductionalgebra

Apply [F2] with x=t and y=1−t. Since t+(1−t)=1, [F10] and induction give 1n=1, so the displayed Bernstein basis terms sum to one.

2.1step 1.1step 1.2F1F3F5F7F8F9F10F11F12algebra∎

By [F8]–[F9], let cmin⁡ and cmax⁡ be the minimum and maximum of the finite control list. For each k, [F1], step 1.1, and [F7] give cmin⁡Bk,n(t)≤ci,kBk,n(t)≤cmax⁡Bk,n(t): the control differences and basis weights are nonnegative, so their products are nonnegative. Summing with [F7] and using step 1.2 gives cmin⁡≤pi(x)≤cmax⁡. Therefore nonnegative controls imply pi(x)≥0. Each pi is a polynomial in x after substituting the affine local coordinate, so it is continuous on its cell by [F11]. For ni≥1, [F3], [F5], [F10], step 1.2, and [F12] give B0,ni(0)=Bni,ni(1)=1 and all other endpoint basis values zero; for ni=0 the sole basis term is constantly one. Thus at a shared node pi(xi+1)=ci,ni=ci+1,0=pi+1(xi+1). Given ε>0, the minimum of the two positive continuity radii for the adjacent cell restrictions then gives continuity of the piecewise function at that node; at cell interiors continuity follows from [F11], and at the outer endpoints it follows from the single adjacent cell restriction. Applying the bound cellwise gives nonnegativity throughout the partition.

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

PCHIP slope selection has no zero denominator

Statement

For every admissible input to PCHIP slope selection, each branch is defined over R and every selected slope is finite; in particular, the algorithm never divides by zero.

Facts & Assumptions

Given: A finite strictly increasing real node list with at least two nodes and real data values.

[F1]

PCHIP slope selection: widths are positive; the only interior division by a secant occurs when the two adjacent secants have positive product; endpoint formulas divide by a sum of positive widths; and the two-node branch uses one secant.

Proof

1.1givenF1algebra

Each hi=xi+1−xi is positive, so every secant di is defined and finite. In the two-node branch both slopes equal the already defined secant, and neither endpoint formula is evaluated. When n≥3, the endpoint denominators h0+h1 and hn−2+hn−3 exist and are positive.

2.1F1step 1.1algebra∎

The interior harmonic-mean branch is entered only when dk−1dk>0. Thus both secants are nonzero and have the same sign; the weights w1=2hk+hk−1 and w2=hk+2hk−1 are positive. The two terms w1/dk−1 and w2/dk therefore have that same nonzero sign, so their sum is nonzero and finite. The endpoint clip and cap branches only compare finite real quantities and introduce no division. Hence every output slope is defined and finite.

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

PCHIP endpoint slopes lie in the Hermite monotonicity square

Statement

For any input to PCHIP slope selection, consider an interval with secant di. If di=0, the selected slopes at both endpoints of that interval are zero. If di≠0, then mi/di and mi+1/di both belong to [0,3].

Facts & Assumptions

Given: An admissible PCHIP input, its secants, and its selected slopes.

[F1]

PCHIP slope selection: interior slopes are zero when adjacent secants have nonpositive product and otherwise use the positive-weight harmonic formula; endpoint slopes are clipped when their sign disagrees with the adjacent secant and capped at three times that secant when the adjacent secants have opposite signs.

[F2]

PCHIP slope selection has no zero denominator: the algorithm's harmonic denominators are nonzero, and its selected slopes are finite.

Proof

1.1F1F2givenalgebra

At an interior node k whose adjacent secants have nonpositive product, [F1] sets mk=0. If their product is positive, write r=dk/dk−1>0 and W=w1+w2=3(hk−1+hk). Dividing the harmonic formula in [F1] by dk gives mk/dk=W/(w1r+w2), which is positive and at most W/w2≤3, because w2=hk+2hk−1≥hk+hk−1. Dividing instead by dk−1 gives mk/dk−1=W/(w1+w2/r)≤W/w1≤3, since w1=2hk+hk−1≥hk+hk−1.

1.2F1givenalgebra

For a nonzero first secant, put q=d1/d0. The raw endpoint ratio is m^0/d0=1+h0h0+h1(1−q). If q≥0, this ratio is at most 1+h0/(h0+h1)<2; clipping makes it zero if it is nonpositive. If q<0, the ratio is greater than 1, and the cap branch reduces it to 3 exactly when it exceeds 3. Thus the final ratio is in [0,3]. If d0=0, the raw endpoint value is either zero or has sign different from d0, so the clip sets it to zero. The reflected argument proves the same bound at the right endpoint.

2.1step 1.1step 1.2F1F2given∎

For two nodes both selected slopes equal d0, so they are zero when d0=0 and their ratios to d0 are 1 otherwise. For n≥3, if di=0, its interior endpoint slopes are set to zero by the nonpositive-product branch, and a first or last endpoint slope is zero by the clip rule. If di≠0, each of its endpoint slopes is either an interior slope covered by step 1.1 or an endpoint slope covered by step 1.2. These cases prove both alternatives in the statement.

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

PCHIP slopes are second-order accurate on uniform nonstationary grids

Statement

Let a<b, let f be C3 on an open interval containing [a,b], and suppose ∣f′(x)∣≥c>0 for every x∈[a,b]. For an integer N≥2, put h=(b−a)/N>0 and xj=a+jh for j=0,…,N. Let mj be the slopes selected by PCHIP slope selection from the values f(xj). There are constants C,h0>0, depending on f, c, and [a,b], such that for every such grid with h<h0, max⁡0≤j≤N∣mj−f′(xj)∣≤Ch2.

Facts & Assumptions

Given: Reals a<b, a C3 real function on an open neighborhood of [a,b], a positive lower bound for ∣f′∣ on [a,b], an integer N≥2, and the uniform grid with h=(b−a)/N>0.

[F1]

PCHIP slope selection: interior slopes use the weighted harmonic formula when neighboring secants have the same nonzero sign; the one-sided endpoint estimate is ((2h0+h1)d0−h0d1)/(h0+h1), followed by a sign clip and an opposite-sign cap.

[F2]

PCHIP slope selection has no zero denominator: for admissible inputs every selected slope is a finite real number and every formula denominator is nonzero.

[F3]

Continuity and derivative on a real interval: C3 on an open interval means derivatives through order three exist and are continuous there.

[F4]
[F6]

Taylor's theorem with an integral remainder: if derivatives through order r+1 are continuous, the degree-r Taylor polynomial at c has remainder bounded by M∣x−c∣r+1/(r+1)! when ∣f(r+1)∣≤M on the segment.

[F7]

A continuous real function on a compact subset of R is bounded: a continuous real function on a compact subset of R is bounded there.

[F8]

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

[F9]

Every nonempty finite set of reals has a maximum and a minimum: every finite list of real numbers has a maximum.

Proof

1.1F1F3F4F5F7F8given

By [F3], f′ is continuous. It cannot take both a positive and a negative value on [a,b], since [F5] would then give a zero of f′, contradicting ∣f′∣≥c. Thus f′ has one sign throughout. On each grid cell [F4] gives dj=f′(ξj) for some interior ξj, so all secants have that sign and ∣dj∣≥c. Since a<b and h=(b−a)/N>0, the grid is admissible for [F1], and [F8] makes [a,b] compact. Since f′, f′′, and f′′′ are continuous by [F3], [F7] supplies M1,M2,M3≥0 with ∣f′∣≤M1, ∣f′′∣≤M2, and ∣f′′′∣≤M3 on [a,b].

1.2F3F6givenalgebra

Fix an interior node xk and set s=f′(xk) and q=f′′(xk). Applying [F6] with degree two at xk to xk−h and xk+h and dividing the remainders by h gives dk−1=s−hq/2+e− and dk=s+hq/2+e+, where ∣e−∣,∣e+∣≤M3h2/6. Since ∣s∣≥c, for sufficiently small h both secants stay bounded away from zero. The identity 1/(s+u)=1/s−u/s2+u2/(s2(s+u)) then gives, with a uniform constant, 1/dk−1=1/s+hq/(2s2)+O(h2) and 1/dk=1/s−hq/(2s2)+O(h2).

2.1F1F2step 1.2givenalgebra

On a uniform grid the two weights in [F1] are both 3h, so the interior slope equals 2/(1/dk−1+1/dk). The first-order terms in step 1.2 cancel, giving 1/dk−1+1/dk=2/s+O(h2). Since ∣s∣≤M1, the leading term has magnitude at least 2/M1; thus the denominator stays bounded away from zero for sufficiently small h, and its reciprocal yields mk=s+O(h2) with a constant uniform in k.

2.2F1F2F6step 1.1givenalgebra

At the left endpoint, [F6] at a gives d0=f′(a)+hf′′(a)/2+O(M3h2) and d1=f′(a)+3hf′′(a)/2+O(M3h2), by expanding f(a+h) and f(a+2h). Therefore the raw endpoint estimate in [F1] is m^0=(3d0−d1)/2=f′(a)+O(M3h2). For small h it has the sign of f′(a); step 1.1 gives that same sign for d0,d1, so neither the sign clip nor the opposite-sign cap changes it. Reflecting the expansions at b gives the identical O(h2) error for mN.

3.1step 2.1step 2.2F9given∎

The interior and endpoint estimates above use the bounds M1,M2,M3 and c−1 on the fixed interval; their constants and smallness thresholds are therefore uniform in the node index. Taking a common maximum for the error constants and a common positive minimum for the thresholds gives C,h0 valid at every interior node and both endpoints. The finite list ∣mj−f′(xj)∣, 0≤j≤N, has a maximum by [F9], and the uniform pointwise estimate bounds it by Ch2.

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

PCHIP is C1, monotone on each data segment, and has no interval overshoot

Statement

For every input to PCHIP slope selection, the resulting interpolant is C1 and interpolates all input values. On each cell with nonzero secant di, the interpolant is monotone from yi to yi+1 and stays between those endpoint values; on a cell with di=0 it is constant. In particular, if the input values are nondecreasing (respectively nonincreasing), the complete interpolant is nondecreasing (respectively nonincreasing). No C2 matching is asserted.

Facts & Assumptions

Given: Strictly increasing real nodes with arbitrary real data and the PCHIP slopes and pieces selected by PCHIP slope selection.

[F1]

PCHIP slope selection: the procedure returns the Hermite pieces determined by its input values and selected slopes.

[F2]

PCHIP slope selection has no zero denominator: all selected slopes are finite and the procedure's divisions are defined.

[F3]

Interpolation, C1 matching, and cubic reproduction for Hermite pieces: shared nodal values and slopes give interpolation and C1 matching.

[F4]

A sufficient monotonicity square for cubic Hermite interpolation: normalized endpoint slopes in [0,3]2 make a nonflat Hermite segment monotone between its endpoint values; zero secant and zero endpoint slopes make it constant.

[F5]

PCHIP endpoint slopes lie in the Hermite monotonicity square: PCHIP has precisely those normalized-slope bounds on every cell, including the flat-cell case.

Proof

1.1F1F2F3given

By [F2], the algorithm defines one finite slope at each input node. Its output consists of Hermite pieces sharing the same value and selected slope at each common node, so [F3] gives interpolation and C1 matching.

1.2F4F5given

Fix a cell with di≠0. By [F5], both slopes normalized by di lie in [0,3]; [F4] therefore makes this piece monotone from yi to yi+1 and keeps it between those values.

2.1F4F5step 1.1step 1.2given∎

If di=0, [F5] gives zero slopes at both endpoints, and [F4] makes that Hermite piece constant at its common endpoint value. For nondecreasing input, every di≥0, so each nonflat cell is nondecreasing by step 1.2, the flat cells are constant by the calculation above, and the pieces agree at nodes by step 1.1; concatenating the cells gives a nondecreasing function. The nonincreasing case is identical with all inequalities reversed.

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

PCHIP has third-order value accuracy on uniform nonstationary grids

Statement

Let a<b, let f be C3 on an open interval containing [a,b], and suppose ∣f′(x)∣≥c>0 on [a,b]. For each integer N≥2, put h=(b−a)/N>0 and xj=a+jh, j=0,…,N, and let Ph be the PCHIP interpolant to the values f(xj). There are constants C,h0>0, depending only on f, c, and [a,b], such that for every such grid with h<h0, max⁡x∈[a,b]∣Ph(x)−f(x)∣≤Ch3. The assertion is limited to uniform grids and intervals on which the derivative stays bounded away from zero; it makes no third-order claim at an extremum.

Facts & Assumptions

Given: Reals a<b, the stated C3 function and derivative bound on [a,b], an integer N≥2, and the uniform grid with h=(b−a)/N>0.

[F1]

PCHIP slope selection: PCHIP uses the prescribed nodal values and selected slopes in the cubic Hermite formula.

[F2]

PCHIP slope selection has no zero denominator: those slopes and pieces are finite and well-defined.

[F3]

Piecewise cubic Hermite interpolant: on a cell the Hermite formula is the linear combination of H00,H01,H10,H11 with value and slope data.

[F4]

Interpolation, C1 matching, and cubic reproduction for Hermite pieces: each Hermite piece interpolates its endpoint values and slopes; the resulting interpolant is C1 on the closed interval (with one-sided endpoint derivatives); and each piece reproduces any cubic polynomial from its endpoint values and derivatives.

[F5]

PCHIP slopes are second-order accurate on uniform nonstationary grids: for all sufficiently fine uniform grids, every PCHIP nodal slope differs from f′(xj) by at most Csh2 for a constant Cs independent of the cell.

[F6]

Taylor's theorem with an integral remainder: the degree-two Taylor polynomial of a C3 function has remainder at most Mh3/6 on a cell of width h when ∣f′′′∣≤M there. Applied to f′ with degree one, the same theorem bounds its remainder by Mh2/2.

[F7]

Continuity and derivative on a real interval: C3 on an open interval means the derivatives through order three exist and are continuous there.

[F8]

A continuous real function on a compact subset of R is bounded: a continuous real function on a compact subset of R is bounded there.

[F9]

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

[F10]

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.

[F11]

Real and complex modulus product and triangle inequalities: the real triangle inequality; applying it twice gives ∣∣u∣−∣v∣∣≤∣u−v∣.

Proof

1.1F6F7F8F9given

Since a<b and h=(b−a)/N>0, the grid is admissible and [a,b] is compact by [F9]. By [F7] and [F8], choose M≥0 with ∣f′′′∣≤M on [a,b]. Fix a cell [xi,xi+h] and let T2 be the degree-two Taylor polynomial of f at xi. By [F6], the residual r=f−T2 satisfies r(xi)=r′(xi)=0 and, for every x∈[xi,xi+h], ∣r(x)∣≤Mh3/6; at the right endpoint it also satisfies ∣r(xi+h)∣≤Mh3/6 and ∣r′(xi+h)∣≤Mh2/2. The derivative bound is [F6] applied to f′ with degree one.

1.2F1F2F3F5givenalgebra

Let H be the exact-derivative Hermite piece for f on this cell. The PCHIP piece Ph and H have identical endpoint values. By [F3], their difference is h(mi−f′(xi))H10(t)+h(mi+1−f′(xi+h))H11(t). Since [F2] guarantees these PCHIP slopes are defined and ∣H10(t)∣=t(1−t)2≤1, ∣H11(t)∣≤1, [F5] gives ∣Ph(x)−H(x)∣≤2Csh3 for every x in the cell.

2.1F3F4step 1.1algebra

For this exact-derivative Hermite piece H, linearity of the formula [F3] and reproduction [F4] give H=T2+Hr, where Hr(t)=r(xi+h)H01(t)+hr′(xi+h)H11(t). On 0≤t≤1, ∣H01(t)∣=t2(3−2t)≤1 and ∣H11(t)∣=t2(1−t)≤1, so ∣Hr(t)∣≤(1/6+1/2)Mh3=2Mh3/3. Together with ∣r(x)∣≤Mh3/6 from step 1.1, this yields ∣H(x)−f(x)∣≤5Mh3/6 for every x in the cell.

3.1step 2.1step 1.2F1F4F7F9F10F11algebra∎

Combining steps 2.1 and 1.2 gives ∣Ph(x)−f(x)∣≤(5M/6+2Cs)h3 for every x∈[a,b], since the cells cover the interval. The constants do not depend on i or N; put C=5M/6+2Cs. To justify the maximum in the statement, admissibility of the grid for [F1] gives x0<⋯<xN, so a<b. By [F4], Ph is C1 and hence continuous on [a,b]; by [F7], f is continuous there. Set E(x)=∣Ph(x)−f(x)∣. For x,z∈[a,b], applying the triangle inequality twice gives ∣∣Ph(x)−f(x)∣−∣Ph(z)−f(z)∣∣≤∣(Ph(x)−f(x))−(Ph(z)−f(z))∣≤∣Ph(x)−Ph(z)∣+∣f(x)−f(z)∣, so E is continuous on [a,b]. By [F9], [a,b] is compact, and it is nonempty; [F10] therefore gives a point where E attains its maximum. The pointwise bound just proved bounds that maximum by Ch3.

5 · Examples, counterexamples and false statements

None yet.

Sources