Theorem 11.7.12 — Real non-unital Stone–Weierstrass theorem
ProvedLeblRA.real_stone_weierstrassLet be a compact metric space, and let be a real algebra of continuous real-valued functions on , not necessarily containing the constant function . Assume
Then
Equivalently, for every and every , some satisfies for all . This is the real non-unital density result in Lebl’s Theorem 11.7.12.
Formalization Note. The algebra contains zero and is closed under addition, multiplication, and real scalar multiplication. Nowhere-vanishing remains an explicit hypothesis; no single everywhere nonzero element is assumed. Closure is taken in the continuous-function space, where compact-open and uniform convergence agree. Empty compact spaces are allowed.
import Mathlib.Topology.ContinuousMap.StoneWeierstrass import Mathlib.Topology.Algebra.NonUnitalAlgebra import Mathlib.Analysis.Complex.Basic set_option autoImplicit false open Set Filter Topology open scoped ContinuousMapZero open scoped Polynomial
namespace LeblRA
theorem real_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) :
closure (A : Set C(X, ℝ)) = Set.univ := by sorry
end LeblRARead-back
What the Lean code literally says, in plain math · Codex (exact model identifier unavailable in auditor runtime)
Declaration: LeblRA.real_stone_weierstrass
For every type equipped with a metric whose induced topology is compact, and every real vector subspace of the space of continuous real-valued functions on that is closed under pointwise multiplication, suppose that for every with there exists such that , and that for every there exists such that . Then the topological closure of the underlying set of equals all of . The subspace condition means that contains the zero function and is closed under addition and multiplication by every real scalar; membership of the constant function is not assumed and is not excluded. The point-separating function may depend on the pair of distinct points, and the nonvanishing function may depend on the point; neither hypothesis requires a single common witness. Closure is within the continuous function space with its compact-open topology, which here is the topology of uniform convergence, so the conclusion says that for every continuous and every real there exists for which for every . The approximating may depend on and , and no uniqueness or equality is asserted. Empty and singleton metric spaces are included: on the empty space both hypotheses are vacuous and the continuous function space has one element; on a singleton the separation hypothesis is vacuous but the nonvanishing hypothesis still requires a function nonzero at its point. On any nonempty , the zero subspace does not satisfy the nonvanishing hypothesis.
Readback model identifier: unavailable; no actual runtime model identifier was supplied to this auditor.
Confirmed by the mission captain (proposal self-audit).