Metamath Proof Explorer


Theorem stoweid

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. (Contributed by Glauco Siliprandi, 20-Apr-2017)

Ref Expression
Hypotheses stoweid.1 _ t F
stoweid.2 t φ
stoweid.3 K = topGen ran .
stoweid.4 φ J Comp
stoweid.5 T = J
stoweid.6 C = J Cn K
stoweid.7 φ A C
stoweid.8 φ f A g A t T f t + g t A
stoweid.9 φ f A g A t T f t g t A
stoweid.10 φ x t T x A
stoweid.11 φ r T t T r t h A h r h t
stoweid.12 φ F C
stoweid.13 φ E +
Assertion stoweid φ f A t T f t F t < E

Proof

Step Hyp Ref Expression
1 stoweid.1 _ t F
2 stoweid.2 t φ
3 stoweid.3 K = topGen ran .
4 stoweid.4 φ J Comp
5 stoweid.5 T = J
6 stoweid.6 C = J Cn K
7 stoweid.7 φ A C
8 stoweid.8 φ f A g A t T f t + g t A
9 stoweid.9 φ f A g A t T f t g t A
10 stoweid.10 φ x t T x A
11 stoweid.11 φ r T t T r t h A h r h t
12 stoweid.12 φ F C
13 stoweid.13 φ E +
14 simpr φ T = T =
15 10 ralrimiva φ x t T x A
16 1re 1
17 id x = 1 x = 1
18 17 mpteq2dv x = 1 t T x = t T 1
19 18 eleq1d x = 1 t T x A t T 1 A
20 19 rspccv x t T x A 1 t T 1 A
21 15 16 20 mpisyl φ t T 1 A
22 21 adantr φ T = t T 1 A
23 14 22 stoweidlem9 φ T = f A t T f t F t < if E 1 4 E 1 4
24 nfv f φ
25 nfv f ¬ T =
26 24 25 nfan f φ ¬ T =
27 nfv t ¬ T =
28 2 27 nfan t φ ¬ T =
29 eqid t T F t sup ran F < = t T F t sup ran F <
30 4 adantr φ ¬ T = J Comp
31 7 adantr φ ¬ T = A C
32 8 3adant1r φ ¬ T = f A g A t T f t + g t A
33 9 3adant1r φ ¬ T = f A g A t T f t g t A
34 10 adantlr φ ¬ T = x t T x A
35 11 adantlr φ ¬ T = r T t T r t h A h r h t
36 12 adantr φ ¬ T = F C
37 4re 4
38 4pos 0 < 4
39 37 38 elrpii 4 +
40 39 a1i φ 4 +
41 40 rpreccld φ 1 4 +
42 13 41 ifcld φ if E 1 4 E 1 4 +
43 42 adantr φ ¬ T = if E 1 4 E 1 4 +
44 neqne ¬ T = T
45 44 adantl φ ¬ T = T
46 13 rpred φ E
47 4ne0 4 0
48 37 47 rereccli 1 4
49 48 a1i φ 1 4
50 46 49 ifcld φ if E 1 4 E 1 4
51 3re 3
52 3ne0 3 0
53 51 52 rereccli 1 3
54 53 a1i φ 1 3
55 13 rpxrd φ E *
56 41 rpxrd φ 1 4 *
57 xrmin2 E * 1 4 * if E 1 4 E 1 4 1 4
58 55 56 57 syl2anc φ if E 1 4 E 1 4 1 4
59 3lt4 3 < 4
60 3pos 0 < 3
61 51 37 60 38 ltrecii 3 < 4 1 4 < 1 3
62 59 61 mpbi 1 4 < 1 3
63 62 a1i φ 1 4 < 1 3
64 50 49 54 58 63 lelttrd φ if E 1 4 E 1 4 < 1 3
65 64 adantr φ ¬ T = if E 1 4 E 1 4 < 1 3
66 1 26 28 29 3 5 30 6 31 32 33 34 35 36 43 45 65 stoweidlem62 φ ¬ T = f A t T f t F t < if E 1 4 E 1 4
67 23 66 pm2.61dan φ f A t T f t F t < if E 1 4 E 1 4
68 nfv t f A
69 2 68 nfan t φ f A
70 xrmin1 E * 1 4 * if E 1 4 E 1 4 E
71 55 56 70 syl2anc φ if E 1 4 E 1 4 E
72 71 ad2antrr φ f A t T if E 1 4 E 1 4 E
73 7 ad2antrr φ f A t T A C
74 simplr φ f A t T f A
75 73 74 sseldd φ f A t T f C
76 3 5 6 75 fcnre φ f A t T f : T
77 simpr φ f A t T t T
78 76 77 jca φ f A t T f : T t T
79 ffvelrn f : T t T f t
80 recn f t f t
81 78 79 80 3syl φ f A t T f t
82 12 ad2antrr φ f A t T F C
83 3 5 6 82 fcnre φ f A t T F : T
84 83 77 jca φ f A t T F : T t T
85 ffvelrn F : T t T F t
86 recn F t F t
87 84 85 86 3syl φ f A t T F t
88 81 87 subcld φ f A t T f t F t
89 88 abscld φ f A t T f t F t
90 16 37 47 3pm3.2i 1 4 4 0
91 redivcl 1 4 4 0 1 4
92 90 91 mp1i φ 1 4
93 46 92 ifcld φ if E 1 4 E 1 4
94 93 ad2antrr φ f A t T if E 1 4 E 1 4
95 46 ad2antrr φ f A t T E
96 ltletr f t F t if E 1 4 E 1 4 E f t F t < if E 1 4 E 1 4 if E 1 4 E 1 4 E f t F t < E
97 89 94 95 96 syl3anc φ f A t T f t F t < if E 1 4 E 1 4 if E 1 4 E 1 4 E f t F t < E
98 72 97 mpan2d φ f A t T f t F t < if E 1 4 E 1 4 f t F t < E
99 69 98 ralimdaa φ f A t T f t F t < if E 1 4 E 1 4 t T f t F t < E
100 99 reximdva φ f A t T f t F t < if E 1 4 E 1 4 f A t T f t F t < E
101 67 100 mpd φ f A t T f t F t < E