Metamath Proof Explorer


Theorem stowei

Description: This theorem proves the Stone-Weierstrass theorem for real-valued functions: let J be a compact topology on T , and C be the set of real continuous functions on T . Assume that A is a subalgebra of C (closed under addition and multiplication of functions) containing constant functions and discriminating points (if r and t are distinct points in T , then there exists a function h in A such that h(r) is distinct from h(t) ). Then, for any continuous function F and for any positive real E , there exists a function f in the subalgebra A , such that f approximates F up to E ( E represents the usual ε value). As a classical example, given any a, b reals, the closed interval T = [ a , b ] could be taken, along with the subalgebra A of real polynomials on T , and then use this theorem to easily prove that real polynomials are dense in the standard metric space of continuous functions on [ a , b ] . The proof and lemmas are written following BrosowskiDeutsh p. 89 (through page 92). Some effort is put in avoiding the use of the axiom of choice. The deduction version of this theorem is stoweid : often times it will be better to use stoweid in other proofs (but this version is probably easier to be read and understood). (Contributed by Glauco Siliprandi, 20-Apr-2017)

Ref Expression
Hypotheses stowei.1 K=topGenran.
stowei.2 JComp
stowei.3 T=J
stowei.4 C=JCnK
stowei.5 AC
stowei.6 fAgAtTft+gtA
stowei.7 fAgAtTftgtA
stowei.8 xtTxA
stowei.9 rTtTrthAhrht
stowei.10 FC
stowei.11 E+
Assertion stowei fAtTftFt<E

Proof

Step Hyp Ref Expression
1 stowei.1 K=topGenran.
2 stowei.2 JComp
3 stowei.3 T=J
4 stowei.4 C=JCnK
5 stowei.5 AC
6 stowei.6 fAgAtTft+gtA
7 stowei.7 fAgAtTftgtA
8 stowei.8 xtTxA
9 stowei.9 rTtTrthAhrht
10 stowei.10 FC
11 stowei.11 E+
12 nfcv _tF
13 nftru t
14 2 a1i JComp
15 5 a1i AC
16 6 3adant1 fAgAtTft+gtA
17 7 3adant1 fAgAtTftgtA
18 8 adantl xtTxA
19 9 adantl rTtTrthAhrht
20 10 a1i FC
21 11 a1i E+
22 12 13 1 14 3 4 15 16 17 18 19 20 21 stoweid fAtTftFt<E
23 22 mptru fAtTftFt<E