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.
Spectral collocation and Galerkin methods — Examples
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Amplitude Estimation and Counting
- Approximation and Compactness in C(K)
- Areas of Elementary Plane Figures
- Binary Operations, Monoids, Groups and Subgroups
- Compactness
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Differentiability and the Cauchy–Riemann Equations
- Composite quadrature rules
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- 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
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Darboux, L'Hôpital, and Taylor's Theorem
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Equivalent Forms of Completeness
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite Fourier Analysis and the Fast Fourier Transform
- Foundations of the Real Numbers for Analysis
- Fundamental Trigonometric Identities
- Further Trigonometric Identities and Inverse Functions
- Gaussian quadrature
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Lebesgue Measure on Euclidean Space
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Metric Spaces
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Outer Measure and the Caratheodory Extension Theorem
- Polynomial approximation and Chebyshev interpolation
- Polynomial interpolation and remainder
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- 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
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Simple Field Extensions and the Construction of the Complex Numbers
- Sine, Cosine, and the Definition of Pi
- Spectral collocation and Galerkin methods
- Subspaces, Products, and Quotients
- Suprema and Infima
- The Complex Exponential and Euler's Formula
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Lebesgue and Riemann Integrals Compared
- The Lebesgue Integral and the Convergence Theorems
- The Logarithm and General Powers
- The Riemann Integral in Rᵐ and Jordan Content
- The Riemann Integral: Definition and Integrability
- The Topology of Euclidean Space
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
The examples compute a periodic Fourier derivative including its even-grid Nyquist mode, quantify the quadratic endpoint spacing of Lobatto nodes, and compare geometric Chebyshev coefficient decay for analytic data with algebraic decay for a cusp. A quadratic Fourier product shows the exact aliasing of frequencies three and four on a four-point grid. The final mass-matrix check computes a two-node Gaussian Legendre matrix and a two-panel Simpson approximation for the Chebyshev weight, including the proved Simpson error bound.
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
Four-point Fourier collocation differentiates the Nyquist cosine at its nodes
Example
Take and on the grid . Its samples are . The interpolating space contains the Nyquist cosine , while the derivative matrix omits that mode's derivative because it vanishes at every grid point. The returned derivative vector is .
Facts & Assumptions
Given: The four-point periodic Fourier grid, the real interpolant convention, and the polynomial .
Periodic Fourier collocation grid and even-grid Nyquist convention: for even the interpolation space contains and uses the cosine Nyquist mode only.
Quarter-turn values and shifts by pi/2 and pi: the sine and cosine values at integer multiples of are .
Sums, scalar multiples, products and quotients: , , , and when : derivatives distribute over finite sums and scalar multiples.
Periodic Fourier collocation differentiates its interpolant exactly: the matrix output on nodal data equals the derivative of their periodic trigonometric interpolant at every grid point, with the Nyquist derivative zero at the nodes.
Proof
Substitution of into using [F2] gives respectively . The frequencies lie in [F1]'s interpolation space, so is the interpolant of these samples.
By [F3] and [F5], . At the four nodes, the final term is zero and the first two terms give .
Exactness [F4] therefore gives , including the vanishing nodal derivative of the Nyquist mode.
Chebyshev–Lobatto nodes cluster quadratically at the endpoints
Example
For , the endpoint gap is at most , whereas a central adjacent-node gap is at least . Their ratio tends to zero, and the smallest spacing has quadratic endpoint scale. The mesh is nonuniform for ; for the nodes are equally spaced.
Facts & Assumptions
Given: An integer and the decreasing Chebyshev–Gauss–Lobatto nodes .
The subtraction formulas for sine and cosine and The addition formulas for sine and cosine: cosine differences reduce to products of sine factors, , and .
Sine chord and Lipschitz bounds: for and for all real .
Signs, monotonicity intervals, and ranges of sine and cosine and Quarter-turn values and shifts by pi/2 and pi: sine is strictly increasing on and .
Square roots exist: a unique with ; the positives are : each nonnegative real has a unique nonnegative square root.
For every in a complete ordered field there is a natural with : for every there is an integer with . Canonical naturals are positive and strictly increasing: canonical positive naturals are positive and strictly increasing. Inverses of positives are positive, and reciprocation reverses order: reciprocation reverses strict order on positive reals. Algebra of limits: sums, scalar multiples, products and quotients: a fixed real multiple of a sequence converging to zero also converges to zero.
Verification
The subtraction and addition identities [F2] give By [F3], , hence .
If is odd, choose ; then and [F4] gives sine equal to , so the gap formula in step 1.1 and [F3] give a central gap at least . If is even, choose and write . The addition and subtraction formulas [F2] give and . Thus ; the chord bound [F3] gives , so uniqueness of the nonnegative square root [F5] gives . Monotonicity [F4] now gives . In either parity, [F3] also gives , so the selected central gap in step 1.1 is at least .
Put . Every adjacent gap has the form , with . Reflecting about and using monotonicity [F4] gives ; equality occurs at and . Hence the smallest spacing is exactly , and [F3] bounds it by . For every , [F6] supplies an integer with ; for every integer , positivity and monotonicity of the canonical naturals and reciprocal order give . Thus , and the endpoint-to-central-gap ratio is at most , which tends to zero by the fixed-multiple limit law in [F6]. For , the selected central angle, reflected into if necessary, is strictly larger than ; strict monotonicity in [F4] makes its gap larger than the endpoint gap. For , the nodes are and both gaps equal . This proves the quadratic endpoint scale with its stated nonuniformity exception.
Analytic and nonsmooth data have geometric and algebraic Chebyshev coefficient decay
Example
For a continuous on , define its Chebyshev coefficients by For the analytic function , these coefficients are and for , a geometric decay. For the nonsmooth function , they are , for , and ; the nonzero coefficients decay algebraically like .
Facts & Assumptions
Given: The coefficient convention above and the two functions and .
Arcsine-weighted inner product on the Chebyshev interval and Chebyshev polynomials are orthogonal for the arcsine weight: , for , and distinct modes are orthogonal.
For the sequence is null, and for the sequence diverges to : for a real with ; Conjugation is an involutive real-field automorphism, , and modulus is definite, multiplicative, and subadditive gives complex modulus multiplicativity and the triangle inequality.
Complex differentiability at a point, the complex derivative, holomorphic functions, and entire functions: a complex function is holomorphic on an open set when it is complex differentiable at every point there; is a field, every element is uniquely , and every nonzero element has inverse supplies the complex field operations.
The derivatives of sine and cosine are cosine and minus sine, The chain rule, in one line from Carathéodory: if is differentiable at and is differentiable at , then is differentiable at with , and The second fundamental theorem: if is differentiable on with and is integrable, then : cosine has antiderivative for every nonzero integer .
Quarter-turn values and shifts by pi/2 and pi and Signs, monotonicity intervals, and ranges of sine and cosine: , , , and cosine is nonnegative on and nonpositive on .
, , and : and for real .
The derivative of at a point that is a limit point of , and differentiability on a set: differentiability at a point is the existence of the two-sided difference-quotient limit.
A continuous function on is Riemann integrable, by Heine-Cantor and Riemann's criterion and Integrable functions on form a set closed under sums and scalar multiples, and : continuous functions on a compact interval are Riemann integrable, and finite linear combinations may be integrated termwise.
Uniformly close integrable functions have integrals differing by at most the interval length times their uniform error: integrable functions uniformly within on have integrals differing by at most .
A function differentiable at is continuous at makes sine and cosine continuous; A composite of continuous functions is continuous, with no side hypothesis of the kind the composition of limits needs and 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 preserve continuity under the compositions, finite sums, products, and the nonvanishing denominator in this example. The absolute-value clause of 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 makes continuous. Hence all coefficient integrands are continuous and [F12] makes them integrable.
A real-analytic function on an open subset of is locally represented by a convergent real power series: a real function on an open set is real analytic if near each point it agrees with a convergent real power series centered at that point.
Proof
The set is an open neighborhood of and omits . For with , Thus [F4] makes holomorphic on a neighborhood of the interval. To verify analyticity in the power-series sense as well, fix a real and put for . Finite geometric summation gives . Since , the remainder has absolute value at most , tending to zero by [F3]. The series therefore represents on a neighborhood of every , establishing real analyticity on by [F15], in particular near .
The function is continuous by [F14] and is not differentiable at : for its difference quotient is , while for it is , so the two-sided limit in [F11] does not exist. By [F7], on and on . The subtraction identity [F9] gives , so reflection makes each odd coefficient integral its own negative. Therefore For odd , that reflection makes .
Put . Then , , , and . By [F8], has modulus . For , put . Multiplying the finite sum by cancels consecutive terms and gives . The triangle inequality in [F3] gives , so Induction using the addition formulas in [F5] and Euler's identity in [F8] gives . Thus , a continuous function by [F14], differs from by at most , uniformly for .
Multiplying numerator and denominator by and using [F10] gives Hence because the denominator equals . By step 1.3, the continuous functions satisfy by [F3]. This also establishes the claimed convergent Chebyshev expansion through [F1].
Fix a coefficient index . By [F14], the functions , , and their products with are continuous; [F12] makes them integrable. Since by [F7], [F13] bounds the corresponding coefficient differences by for index zero and by for positive indices. For every , finite integration and orthogonality [F2] give the coefficients of as at zero and at each . Letting therefore yields exactly the asserted coefficients of ; no interchange of an unbounded infinite sum and integral is assumed.
For , symmetry about and [F5] give where the last equality follows by integrating using [F6]–[F7]. Multiplying by gives . This coefficient magnitude is asymptotic to .
A quadratic Fourier product aliases two high modes on an even grid
Example
On the periodic grid, let . The continuous square has modes through frequency four, but its grid interpolant is
The frequency-three mode aliases to frequency one, and the frequency-four mode aliases to the constant mode. This exact sample identity is not a de-aliasing or nonlinear stability result.
Facts & Assumptions
Given: The four-point grid , the interpolant convention, and .
Periodic Fourier collocation grid and even-grid Nyquist convention: for , the interpolation space is spanned over by .
Periodic Fourier modes alias modulo the grid size: modes whose integer frequencies are congruent modulo have the same samples, and sampled products have frequency equal to the sum modulo .
Quarter-turn values and shifts by pi/2 and pi: on , and .
Proof
By [F3],
At every grid node [F4] turns this into . The right side belongs to [F1]'s interpolation space.
The modes at frequencies and in step 1.1 are identified on the grid by the congruences and , exactly as [F2] states. Thus the displayed interpolant has the same samples as , with the two alias contributions combined.
Gaussian and Simpson mass assembly give distinct exact and approximate checks
Example
Assume Countable Choice for the Lebesgue measure construction. For the degree-one monic Legendre basis on , the two-node Gaussian mass matrix is . For the Chebyshev arcsine pairing, composite Simpson with two panels gives The Simpson error in the entry is and satisfies the itemwise error estimate.
Facts & Assumptions
Given: Countable Choice, Lebesgue measure on , its two-node Gauss–Legendre rule, and the Chebyshev pairing sampled by two-panel composite Simpson.
The Axiom of Countable Choice (): Countable Choice is assumed for the Lebesgue measure construction and Riemann–Lebesgue agreement used in the local two-node Gaussian calculation.
Positive-measure Gaussian quadrature moment data, Monic orthogonal polynomials exist uniquely through the quadrature order, The m-node Gaussian quadrature rule for a positive measure, and Gaussian quadrature is exact through degree 2m−1 and has positive weights: valid order-three moment data for give the unique monic orthogonal polynomial, its two root nodes, cardinal-integral weights, and exactness through degree three.
Assemble a weighted Galerkin mass matrix from Gaussian nodes and Gaussian quadrature exactly assembles the orthogonal Galerkin mass matrix: the mass entries are Gaussian sums and equal the corresponding exact polynomial integrals.
Composite-Simpson assembly of the Chebyshev weighted mass matrix: for two panels, .
Composite Simpson error bound for Chebyshev weighted mass entries: for even panel count and .
Chebyshev polynomials are orthogonal for the arcsine weight: the exact mass matrix for is .
and for every : for .
Assuming countable choice, is a sigma-algebra containing every elementary set and is a complete measure extending elementary volume, Assuming countable choice, every Borel subset of is Lebesgue measurable, and A box in with parameters is Lebesgue measurable of measure , whichever of its faces are included: under Countable Choice, restriction to the relative Borel sets of is a positive measure, interval measure equals length, and positive-length intervals have positive measure. Subspace topology: the traces of the open sets, its closed sets and its bases, the continuity of the inclusion, and the characteristic property of a map into a subspace and The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement identify relative neighborhoods with intersections of open real neighborhoods.
A continuous function on is Riemann integrable, by Heine-Cantor and Riemann's criterion, For a natural the function is differentiable everywhere with derivative ; for it is the constant , with derivative ; for a natural the function is differentiable at every with derivative ; consequently every polynomial function is differentiable at every real, with the derivative computed term by term, The second fundamental theorem: if is differentiable on with and is integrable, then , and A bounded Riemann integrable function on a closed bounded interval is Lebesgue measurable and has the same integral: continuous polynomial integrands on are integrable, their ordinary integrals are evaluated by polynomial primitives, and under Countable Choice those values equal the Lebesgue integrals.
The Lebesgue integral is linear on : finite linear combinations of integrable polynomial functions may be integrated termwise.
Square roots exist: a unique with ; the positives are supplies the positive root ; Basic properties of the absolute value, A function differentiable at is continuous at , and 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 give continuity of and the polynomial integrands, as used with [F11]. Measure monotonicity in step 1.1 follows from the measure axioms in [F10]: if , then and .
Proof
Under [A1], let be Lebesgue measure restricted to the relative Borel sets of . It is a positive measure with total mass by [F10]. Every relative open neighborhood of a point of contains a positive-length interval, including a one-sided interval at either endpoint, so [F10] and [F14] give that neighborhood positive measure. Thus the relative support is all of , containing at least three points. Every for is continuous and bounded on by [F14], so [F11] gives its integrability. These are exactly the order-three, moment-data conditions in [F1]. The primitives give moments by [F11].
By [F9], , , and . Substitution of the quarter-turn values [F8] into [F5] gives , , and . The exact mass matrix is by [F7].
The monic polynomial is orthogonal to and , since and by step 1.1 and [F12]. Finite linearity extends this to every polynomial of degree below two, so uniqueness in [F1] identifies with the Gaussian orthogonal polynomial. Its roots satisfy , hence are and by [F14]. Their cardinal polynomials are and , so [F12] and the first two moments give . The rule Definition and exactness theorem in [F1] therefore give , exact for degrees through three.
The Gaussian sum for the basis is The entries agree with exact integrals by [F2], as also asserted by [F3].
The only nonzero entry error is . The Simpson theorem [F6] applies with , , and , and gives its bound . This bound is at least , since [F13] gives , equivalently . Therefore the displayed finite calculation matches the general entrywise estimate.
Sources
- Jie Shen and Tao Tang, Spectral and High-Order Methods with Applications, §2.2
- Lloyd N. Trefethen, Finite Difference and Spectral Methods for Ordinary and Partial Differential Equations, Ch. 7
- Jie Shen and Tao Tang, Spectral and High-Order Methods with Applications, Ch. 2
- Lloyd N. Trefethen, Finite Difference and Spectral Methods for Ordinary and Partial Differential Equations, Ch. 8
- Jie Shen and Tao Tang, Spectral and High-Order Methods with Applications, §1.8
- Benjamin Seibold, MIT 18.336 Lecture 24: Pseudospectral Methods
- Walter Gautschi, The Interplay Between Classical Analysis and (Numerical) Linear Algebra, §2.1
- Art B. Owen, Monte Carlo Theory, Methods and Examples, §7.2