# 斯通–魏尔斯特拉斯定理

**斯通–魏尔斯特拉斯定理**是分析学的一个结果，它断言：在紧豪斯多夫空间（不同点有不相交开邻域的空间）\( X \) 上，实值连续函数代数 \( C(X) \) 的任一包含常数并分离点的子代数，都在一致（上确界）范数下于 \( C(X) \) 中稠密<sup>[1](https://ncatlab.org/nlab/show/Stone-Weierstrass%2Btheorem)</sup>。它推广了经典的魏尔斯特拉斯逼近定理，后者断言多项式在紧区间上的连续函数中一致稠密<sup>[2](https://people.math.harvard.edu/~shlomo/docs/Real_Variables.pdf)</sup>。马歇尔·斯通（Marshall Stone）于1937年证明了一般版本，并认识到多项式的极少性质对该结果是本质的<sup>[3](https://wiki.math.ntnu.no/_media/ma8106/2020v/stoneweierstrass.pdf)</sup>。

| 关键事实 | 细节 |
|---|---|
| 设定 | \( X \) 紧豪斯多夫；在逐点运算与上确界范数 \( \|f\| = \sup_{x \in X} \|f(x)\| \) 下，\( C(X) \) 是有单位的交换实巴拿赫代数<sup>[1](https://ncatlab.org/nlab/show/Stone-Weierstrass%2Btheorem)</sup> |
| 实版本 | 包含常数函数 1 且分离点的子代数 \( \mathcal{A} \subseteq C(X \to \mathbb{R}) \) 在 \( C(X \to \mathbb{R}) \) 中稠密<sup>[4](https://terrytao.wordpress.com/2009/03/02/245b-notes-12-continuous-functions-on-locally-compact-hausdorff-spaces/)</sup> |
| 分离点 | 对每对不同的点 \( x_1, x_2 \in X \)，存在 \( f \in \mathcal{A} \) 使 \( f(x_1) \neq f(x_2) \)<sup>[4](https://terrytao.wordpress.com/2009/03/02/245b-notes-12-continuous-functions-on-locally-compact-hausdorff-spaces/)</sup> |
| 特例 | 紧区间 \( [a,b] \) 上的实多项式构成一个有单位且分离点的子代数，因此它们在 \( C([a,b]) \) 中稠密<sup>[5](https://www.isibang.ac.in/~sury/hyderstone.pdf)</sup> |
| 复版本 | 在额外假设该代数对共轭 \( f \mapsto \overline{f} \) 封闭下成立<sup>[4](https://terrytao.wordpress.com/2009/03/02/245b-notes-12-continuous-functions-on-locally-compact-hausdorff-spaces/)</sup> |
| 非单位情形 | 一个不含单位元的闭分离点子代数要么是整个 \( C(S) \)，要么是在单点 \( x_\infty \) 处消失的所有连续函数构成的代数<sup>[2](https://people.math.harvard.edu/~shlomo/docs/Real_Variables.pdf)</sup> |
| 出版 | 斯通，〈广义魏尔斯特拉斯逼近定理〉，《数学杂志》21:4（1948年3月–4月），第167–184页；续于21:5，第237–254页<sup>[6](https://celebratio.org/article/414/)</sup> |

## 陈述与魏尔斯特拉斯特例

设 \( X \) 是紧豪斯多夫空间。实值连续函数的代数 \( C(X) \) 带有逐点加法与乘法以及上确界范数，这使它成为一个有单位的交换实巴拿赫代数<sup>[1](https://ncatlab.org/nlab/show/Stone-Weierstrass%2Btheorem)</sup>。子代数 \( \mathcal{A} \) 是对乘法封闭且包含单位元的向量子空间；如果对任意不同的 \( x, y \in X \)，都有某个 \( f \in \mathcal{A} \) 满足 \( f(x) \neq f(y) \)，则称它**分离点**<sup>[1](https://ncatlab.org/nlab/show/Stone-Weierstrass%2Btheorem)</sup>。

于是定理说，\( \mathcal{A} \) 在 \( C(X) \) 中稠密，当且仅当 \( \mathcal{A} \) 分离点；等价地，一个巴拿赫（闭）子代数的包含映射是恒等映射，当且仅当它分离点<sup>[1](https://ncatlab.org/nlab/show/Stone-Weierstrass%2Btheorem)</sup>。在常见表述中，\( C(X \to \mathbb{R}) \) 的包含常数函数 1 且分离点的子代数稠密<sup>[4](https://terrytao.wordpress.com/2009/03/02/245b-notes-12-continuous-functions-on-locally-compact-hausdorff-spaces/)</sup>。

原来的魏尔斯特拉斯定理是特例 \( X = [a,b] \)：多项式构成一个有单位且分离 \( [a,b] \) 的点的子代数，因此它们在一致拓扑中的闭包是整个 \( C([a,b]) \)<sup>[5](https://www.isibang.ac.in/~sury/hyderstone.pdf)</sup>。斯通的贡献在于看出多项式的特殊结构几乎都无关紧要；任何分离点的连续函数代数都足够<sup>[3](https://wiki.math.ntnu.no/_media/ma8106/2020v/stoneweierstrass.pdf)</sup>。

## 证明思路

标准证明经过一个格命题：代数版本可由函数格版本推出<sup>[5](https://www.isibang.ac.in/~sury/hyderstone.pdf)</sup>。关键步骤表明，一致闭代数包含绝对值，用在 \( [0,1] \) 上无常数项的多项式 \( Q \) 逼近 \( |x| \)；然后 \( Q(f^2) \in \mathcal{A} \) 逼近 \( |f| \)<sup>[2](https://people.math.harvard.edu/~shlomo/docs/Real_Variables.pdf)</sup>。由 \( |f| \in \mathcal{A} \)，恒等式

\[ \max(f,g) = \frac{f+g}{2} + \left|\frac{f-g}{2}\right|, \qquad \min(f,g) = \frac{f+g}{2} - \left|\frac{f-g}{2}\right| \]

表明 \( \mathcal{A} \) 是一个格，即只要 \( f, g \in \mathcal{A} \)，就有 \( \max(f,g) \) 与 \( \min(f,g) \) 属于 \( \mathcal{A} \)<sup>[4](https://terrytao.wordpress.com/2009/03/02/245b-notes-12-continuous-functions-on-locally-compact-hausdorff-spaces/)</sup>。豪斯多夫空间上具有两点插值性质的实值连续函数格，在紧集上一致收敛的拓扑中于连续函数中稠密；对于紧空间上的闭格，仅分离点不够，还需要常数函数（或等价的更强条件）<sup>[2](https://people.math.harvard.edu/~shlomo/docs/Real_Variables.pdf)</sup><sup> • </sup><sup>[15](https://web.math.utk.edu/~freire/teaching/m561f22/Stone_Weierstrass_proof.pdf)</sup>。

\( |x| \) 的逼近最终依赖于 \( \sqrt{1-t} \) 的泰勒级数，更准确地说依赖于二项式系数的可和性，

\[ \sum_{n=0}^{\infty} \left| \binom{1/2}{n} \right| < \infty. \]

<sup>[5](https://www.isibang.ac.in/~sury/hyderstone.pdf)</sup>斯通自己的解说性论述于1948年分两部分发表于《数学杂志》<sup>[6](https://celebratio.org/article/414/)</sup>。马尔维（Mulvey）给出了该定理的一个构造性证明<sup>[1](https://ncatlab.org/nlab/show/Stone-Weierstrass%2Btheorem)</sup>，而格路线给出一个不依赖魏尔斯特拉斯定理的证明，使经典结果成为真正的推论<sup>[7](https://home.iiserb.ac.in/~prahlad/documents/expository/stones_theorem.pdf)</sup>。

## 复版本

如所陈述的定理对复值函数不成立。在闭单位圆盘 \( \mathbb{D} \) 上，在 \( \mathbb{D} \) 上连续且在其内部全纯的函数代数 \( \mathcal{H}(\mathbb{D}) \) 是 \( C(\mathbb{D} \to \mathbb{C}) \) 的一个闭真子代数，并且分离点：由柯西（Cauchy）定理及其逆定理（莫雷拉（Morera）定理），成员资格由围道积分消失来刻画，这保证了该代数的闭性，而 \( z \mapsto z \) 分离所有点<sup>[4](https://terrytao.wordpress.com/2009/03/02/245b-notes-12-continuous-functions-on-locally-compact-hausdorff-spaces/)</sup>。

正确的复版本增加一条公理，即自伴性：\( C(X \to \mathbb{C}) \) 的一个包含常数、分离点且在共轭 \( f \mapsto \overline{f} \) 下封闭的复子代数在 \( C(X \to \mathbb{C}) \) 中稠密<sup>[4](https://terrytao.wordpress.com/2009/03/02/245b-notes-12-continuous-functions-on-locally-compact-hausdorff-spaces/)</sup>。归约是直接的：写 \( f = u + iv \)，实部和虚部 \( u = (f + \overline{f})/2 \) 与 \( v = (f - \overline{f})/(2i) \) 属于实子代数 \( \mathcal{A}_\mathbb{R} \)，它分离点，且对每个点都含有一个在该点不为零的函数，因此实版本分别适用于 \( u \) 和 \( v \)<sup>[8](https://www.jirka.org/ra/html/sec_stoneweier.html)</sup>。

没有自伴性时，情况更微妙。威斯康星大学麦迪逊分校的集合论学家肯尼思·库嫩（Kenneth Kunen）研究了**复斯通–魏尔斯特拉斯性质**（CSWP）：紧空间 \( X \) 具有 CSWP，如果 \( C(X) \) 的每个分离点且包含常数的子代数都稠密。沃尔特·鲁丁（Walter Rudin）证明所有散空间（即没有完美子集的空间）都具有 CSWP，而库嫩描述了一类具有该性质的非散空间；根据鲁丁的另一结果，这类空间不可能可度量化<sup>[9](https://arxiv.org/abs/math/0305076)</sup>。

## 变体

**格版本。** 在紧豪斯多夫空间上，\( C(X, \mathbb{R}) \) 的一个有单位、分离点的实向量子格是一致稠密的：对每个 \( f \in C(X, \mathbb{R}) \) 和 \( \varepsilon > 0 \)，它包含一个在每个点上都与 \( f \) 相差不超过 \( \varepsilon \) 的元素<sup>[10](https://alphabetamath.cc/topology/stone-weierstrass-general)</sup>。

**非单位版本。** 如果代数不包含单位元，结论会改变：对于紧空间 \( S \) 和连续实值函数的分离点代数 \( \mathcal{A} \)，其一致闭包要么是整个 \( C(S) \)，要么是在单点 \( x_\infty \) 处消失的所有连续函数构成的代数<sup>[2](https://people.math.harvard.edu/~shlomo/docs/Real_Variables.pdf)</sup>。等价地，\( C(X \to \mathbb{R}) \) 的一个不含单位元的闭分离点子代数等于 \( \{ f : f(x_0) = 0 \} \)，其中 \( x_0 \in X \) 唯一<sup>[4](https://terrytao.wordpress.com/2009/03/02/245b-notes-12-continuous-functions-on-locally-compact-hausdorff-spaces/)</sup>。

**局部紧空间。** 对于局部紧度量空间 \( X \) 和 \( C_0(X, \mathbb{R}) \)（在无穷远处消失的函数）的闭子代数 \( A \subseteq C_0(X, \mathbb{R}) \)，若 \( A \) 分离点，则要么 \( A = C_0(X, \mathbb{R}) \)，要么存在唯一的 \( x_0 \in X \) 使 \( A = I_{x_0} = \{ f \in C_0(X, \mathbb{R}) : f(x_0) = 0 \} \)；第一种情形恰好当对所有 \( x \) 都有 \( A_x = \mathbb{R} \) 时成立，第二种情形当 \( A_{x_0} = \{0\} \) 时成立<sup>[11](https://mathweb.ucsd.edu/~bdriver/140_F12-S13/Lecture%20Notes/140C_Versions/Math_140C_Ver3.pdf)</sup>。在像 \( \mathbb{R} \) 这样的非紧空间上，一般不可能用较小的函数类作一致逼近，因此局部紧表述使用 \( C_0 \)<sup>[4](https://terrytao.wordpress.com/2009/03/02/245b-notes-12-continuous-functions-on-locally-compact-hausdorff-spaces/)</sup>。

**松弛分离。** 存在一些版本，其中代数不必分离所有点：如果 \( \mathcal{A} \) 分离 \( K \setminus K_0 \) 的点，并且把 \( K_0 \) 的每个点与 \( K \) 的每个点分离开，同时在 \( K \setminus K_0 \) 上满足消失、常数和共轭条件，那么仍可推出在 \( C(K, \mathbb{C}) \) 中稠密<sup>[12](https://arxiv.org/abs/1905.03409)</sup>。

## 应用

该定理把一小类具体函数转化为稠密类，这就是它出现在分析学各处的原因。

**三角多项式。** 圆周 \( \mathbb{R}/\mathbb{Z} \) 上三角多项式 \( x \mapsto \sum_{n=-N}^{N} c_n e^{2\pi i n x} \) 的空间 \( \mathcal{T} \) 在一致拓扑下于 \( C(\mathbb{R}/\mathbb{Z} \to \mathbb{C}) \) 中稠密，并且对所有 \( 0 < p < \infty \) 在 \( L^p \) 中稠密<sup>[4](https://terrytao.wordpress.com/2009/03/02/245b-notes-12-continuous-functions-on-locally-compact-hausdorff-spaces/)</sup>。

**可分性。** 对于紧度量空间 \( X \)，该定理是证明 \( C(X \to \mathbb{C}) \) 与 \( C(X \to \mathbb{R}) \) 可分的基础<sup>[4](https://terrytao.wordpress.com/2009/03/02/245b-notes-12-continuous-functions-on-locally-compact-hausdorff-spaces/)</sup>。

**概率论。** 适当函数类的有限实线性组合在 \( C(\Omega) \) 中稠密，这使它们成为概率测度弱收敛的收敛决定类<sup>[13](https://ndl.ethernet.edu.et/bitstream/123456789/61531/1/95.pdf)</sup>。该定理是证明特征函数刻画随机向量分布律、以及分布律的弱收敛等价于特征函数收敛的工具之一<sup>[12](https://arxiv.org/abs/1905.03409)</sup>。

**大偏差。** 布赖克（Bryc）定理给出一个速率函数为 \( J(x) = \sup_{h \in \mathcal{C}_b(X)} \{ h(x) - \Lambda(h) \} \) 的大偏差原理，当 \( \mathcal{C}_b(X) \) 被任何分离点的实值连续函数代数的上有界部分、或任何良分离类替代时，该定理可推广到任意拓扑空间<sup>[14](https://arxiv.org/abs/0804.2214)</sup>。

**乘积与坐标。** 在紧豪斯多夫空间的乘积 \( X \times Y \) 上，每个 \( f \in C(X \times Y \to \mathbb{R}) \) 都是有限和 \( (x,y) \mapsto \sum_{j=1}^{k} f_j(x) g_j(y) \) 的一致极限；在紧豪斯多夫空间的任意乘积上，每个连续函数都是只依赖有限多个坐标的函数的一致极限<sup>[4](https://terrytao.wordpress.com/2009/03/02/245b-notes-12-continuous-functions-on-locally-compact-hausdorff-spaces/)</sup>。

## References

1. [Stone-Weierstrass theorem, nLab](https://ncatlab.org/nlab/show/Stone-Weierstrass%2Btheorem)
2. [Sternberg, S., Real Variables, Section 1.15: The Stone-Weierstrass theorem, Harvard University](https://people.math.harvard.edu/~shlomo/docs/Real_Variables.pdf)
3. [The Stone-Weierstrass Theorem, NTNU MA8106 notes](https://wiki.math.ntnu.no/_media/ma8106/2020v/stoneweierstrass.pdf)
4. [Tao, T., 245B Notes 12: Continuous functions on locally compact Hausdorff spaces](https://terrytao.wordpress.com/2009/03/02/245b-notes-12-continuous-functions-on-locally-compact-hausdorff-spaces/)
5. [Sury, B., The Stone-Weierstrass theorem, ISI Bangalore](https://www.isibang.ac.in/~sury/hyderstone.pdf)
6. [Marshall Harvey Stone publication list, Celebratio Mathematica](https://celebratio.org/article/414/)
7. [The Stone-Weierstrass theorem, expository notes, IISER Bhopal](https://home.iiserb.ac.in/~prahlad/documents/expository/stones_theorem.pdf)
8. [Jirka, J., Basic Analysis: The Stone–Weierstrass theorem](https://www.jirka.org/ra/html/sec_stoneweier.html)
9. [Kunen, K., The Complex Stone-Weierstrass Property, arXiv:math/0305076](https://arxiv.org/abs/math/0305076)
10. [Stone–Weierstrass in General, Alphabeta Math](https://alphabetamath.cc/topology/stone-weierstrass-general)
11. [Driver, B., Math 140C lecture notes, Section 13.3: Stone-Weierstrass Theorem for Locally Compact X, UCSD](https://mathweb.ucsd.edu/~bdriver/140_F12-S13/Lecture%20Notes/140C_Versions/Math_140C_Ver3.pdf)
12. [Lo, G. S., Flexible versions of the Stone-Weierstrass Theorem in General and Applications to Probability Theory, arXiv:1905.03409](https://arxiv.org/abs/1905.03409)
13. [Appendix A: Probability, convergence-determining classes](https://ndl.ethernet.edu.et/bitstream/123456789/61531/1/95.pdf)
14. [Stone-Weierstrass type theorems for large deviations, arXiv:0804.2214](https://arxiv.org/abs/0804.2214)
15. [Stone Weierstrass Proof.pdf, web.math.utk.edu](https://web.math.utk.edu/~freire/teaching/m561f22/Stone_Weierstrass_proof.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Real analysis

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/stone-weierstrass-theorem

English original: https://www.edgepedia.org/stone-weierstrass-theorem
