An approximation result must specify both the allowed approximants and the error being controlled. Matching finitely many values is different from approximating a function everywhere with one error bound. Polynomial approximation on a closed interval provides a model: finitely described functions can approach an arbitrary continuous function uniformly, without assuming that the function has derivatives or a convergent power-series expansion. Lebl, Theorem 11.7.1.
The broader question replaces polynomials with a collection of continuous functions closed under algebraic operations. The relevant issue is which properties of that collection guarantee approximation of every continuous function. This distinguishes a useful approximation family from one that cannot detect some points or cannot approximate nonzero values at a particular point. The six targets follow the real and complex approximation results in §11.7 of Jiří Lebl’s Basic Analysis, Volume II. Source section.
A metric space is a set with a nonnegative, symmetric distance that vanishes exactly when and satisfies the triangle inequality. It is compact if every cover by open sets has a finite subcover. Let be either the real numbers or the complex numbers , and write for the continuous functions from to . Products, sums, and scalar multiplication of functions are taken pointwise. The notation denotes polynomials in one indeterminate with coefficients in , and for real endpoints .
A non-unital function algebra contains the zero function and is closed under these three operations. It need not contain the constant function . It separates points if, whenever , some satisfies . It vanishes nowhere if, for each , some satisfies . The witness may depend on ; one everywhere nonzero function is not specified. A complex algebra is self-adjoint if it contains the pointwise complex conjugate of every member. These conventions retain the source’s non-unital setting. Lebl, Definitions 11.7.5, 11.7.7, and 11.7.15.
Uniform convergence of to means
Here is real absolute value or complex modulus. On compact , the closure in uses this uniform topology; saying that is dense means . Mathlib’s compact-domain convergence interface.
The first four statements supply approximation, normalization, closure, and interpolation results. The final two state density, with the complex result as the goal. No approximation rate or degree bound is prescribed.
Theorem 11.7.1. For and for , respectively,
The real clause requires real coefficients. Complex polynomials are evaluated at the complex embedding of the real argument. Source theorem.
Corollary 11.7.4. For ,
Proposition 11.7.6. For compact metric and either scalar field,
Proposition 11.7.11. For an arbitrary set , without topology, let be an algebra separating points and vanishing nowhere. Then
Both scalar fields belong to this single target. Source proposition.
Theorem 11.7.12. For compact metric ,
Theorem 11.7.16, complex Stone–Weierstrass. For compact metric ,
The density conclusion turns structural conditions on an approximation family into a statement about every continuous target function. Exact interpolation only controls specified values at two points; density controls all points simultaneously to any positive tolerance. The normalized absolute-value result retains a constraint on every approximating polynomial, rather than obtaining normalization only in the limit.
These are established theorems, not open conjectures. Mathlib already has machine-checked polynomial approximation, unital Stone–Weierstrass results, and non-unital algebra infrastructure. The six source-level statements also have standalone proofs checked in the pinned Lean environment. The contribution is an explicit textbook-facing non-unital formulation, with both scalar fields and the source’s normalization and interpolation clauses retained. It is not a claim to the first formalization of Stone–Weierstrass. Polynomial approximation, Stone–Weierstrass library.
Point separation alone does not say that an algebra can approximate a nonzero value everywhere it is requested. A family may distinguish pairs of points while all its members vanish at one fixed point. Nor does interpolation at a pair of points establish a uniform error bound over an entire compact domain. These are distinct quantifier requirements.
Requiring would remove the source’s non-unital case instead of resolving it. Likewise, complex scalar multiplication does not itself impose closure under conjugation. The formal difficulty is to preserve all these distinctions while connecting bundled algebras, continuous maps, and uniform closure. A direct use of the library’s unital theorem has an additional hypothesis that is absent here. Library theorem hypotheses.
Namespace LeblRA uses NonUnitalSubalgebra, ContinuousMap, real and complex polynomials, TendstoUniformly, and topological closure. Domains are arbitrary universe-polymorphic types, with metric and compactness structures only where the source requires them. The interpolation target has neither. Conjugation is the pointwise star operation on complex continuous maps.
The conventional algebra structure includes zero, but not an assumed unit. Empty compact spaces are allowed. Polynomial sequence indices start at zero. The interval approximation theorem permits arbitrary endpoints, including a singleton or an empty interval; the absolute-value corollary assumes and includes . Neither finite-dimensional approximation spaces nor degree bounds are imposed. Replacing density by a finite-domain special case, adding a constant-one hypothesis, or assuming density itself would change the targets.
Reusable infrastructure includes non-unital subalgebras and their closures, polynomial evaluation, compact-domain uniform convergence, and real/complex continuous function spaces. The environment is Lean 4.29.0-rc3 with Mathlib revision 777aaa61dcd2a1258d2b4962dbe983ede4d23b2e. Source-faithful alternative proofs and reusable interfaces between these existing structures are welcome; extra alias definitions are unnecessary. Non-unital algebra structures, topological closures.
777aaa61dcd2a1258d2b4962dbe983ede4d23b2e, 2026. Polynomial approximation, Stone–Weierstrass and zero-preserving continuous maps, non-unital algebra closures.namespace LeblRA
theorem complex_stone_weierstrass {X : Type*} [MetricSpace X] [CompactSpace X]
(A : NonUnitalSubalgebra ℂ C(X, ℂ))
(sep : ∀ x y : X, x ≠ y → ∃ g ∈ A, g x ≠ g y)
(nv : ∀ x : X, ∃ g ∈ A, g x ≠ 0)
(adj : ∀ g ∈ A, star g ∈ A) :
closure (A : Set C(X, ℂ)) = Set.univ := by sorry
end LeblRALet be a compact metric space, and let be a complex algebra of continuous complex-valued functions on , not necessarily containing the constant function . Suppose that
and that is closed under pointwise conjugation:
Then
The conclusion gives uniform approximation of every continuous complex-valued function by members of . This is the full non-unital complex Stone–Weierstrass theorem, Lebl’s Theorem 11.7.16.
Formalization Note. The algebra includes zero but does not assume a unit. Point separation, nowhere-vanishing, and conjugation closure are distinct explicit hypotheses. On continuous complex-valued maps, the Lean star operation is pointwise conjugation. Closure is the uniform closure on the compact domain; empty compact spaces are included.
No open leaves. Every sub-goal is proved or awaiting decomposition.