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 = topGen ran .
stowei.2 J Comp
stowei.3 T = J
stowei.4 C = J Cn K
stowei.5 A C
stowei.6 f A g A t T f t + g t A
stowei.7 f A g A t T f t g t A
stowei.8 x t T x A
stowei.9 r T t T r t h A h r h t
stowei.10 F C
stowei.11 E +
Assertion stowei f A t T f t F t < E

Proof

Step Hyp Ref Expression
1 stowei.1 K = topGen ran .
2 stowei.2 J Comp
3 stowei.3 T = J
4 stowei.4 C = J Cn K
5 stowei.5 A C
6 stowei.6 f A g A t T f t + g t A
7 stowei.7 f A g A t T f t g t A
8 stowei.8 x t T x A
9 stowei.9 r T t T r t h A h r h t
10 stowei.10 F C
11 stowei.11 E +
12 nfcv _ t F
13 nftru t
14 2 a1i J Comp
15 5 a1i A C
16 6 3adant1 f A g A t T f t + g t A
17 7 3adant1 f A g A t T f t g t A
18 8 adantl x t T x A
19 9 adantl r T t T r t h A h r h t
20 10 a1i F C
21 11 a1i E +
22 12 13 1 14 3 4 15 16 17 18 19 20 21 stoweid f A t T f t F t < E
23 22 mptru f A t T f t F t < E