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 โŠข ๐พ = ( topGen โ€˜ ran (,) )
stowei.2 โŠข ๐ฝ โˆˆ Comp
stowei.3 โŠข ๐‘‡ = โˆช ๐ฝ
stowei.4 โŠข ๐ถ = ( ๐ฝ Cn ๐พ )
stowei.5 โŠข ๐ด โІ ๐ถ
stowei.6 โŠข ( ( ๐‘“ โˆˆ ๐ด โˆง ๐‘” โˆˆ ๐ด ) โ†’ ( ๐‘ก โˆˆ ๐‘‡ โ†ฆ ( ( ๐‘“ โ€˜ ๐‘ก ) + ( ๐‘” โ€˜ ๐‘ก ) ) ) โˆˆ ๐ด )
stowei.7 โŠข ( ( ๐‘“ โˆˆ ๐ด โˆง ๐‘” โˆˆ ๐ด ) โ†’ ( ๐‘ก โˆˆ ๐‘‡ โ†ฆ ( ( ๐‘“ โ€˜ ๐‘ก ) ยท ( ๐‘” โ€˜ ๐‘ก ) ) ) โˆˆ ๐ด )
stowei.8 โŠข ( ๐‘ฅ โˆˆ โ„ โ†’ ( ๐‘ก โˆˆ ๐‘‡ โ†ฆ ๐‘ฅ ) โˆˆ ๐ด )
stowei.9 โŠข ( ( ๐‘Ÿ โˆˆ ๐‘‡ โˆง ๐‘ก โˆˆ ๐‘‡ โˆง ๐‘Ÿ โ‰  ๐‘ก ) โ†’ โˆƒ โ„Ž โˆˆ ๐ด ( โ„Ž โ€˜ ๐‘Ÿ ) โ‰  ( โ„Ž โ€˜ ๐‘ก ) )
stowei.10 โŠข ๐น โˆˆ ๐ถ
stowei.11 โŠข ๐ธ โˆˆ โ„+
Assertion stowei โˆƒ ๐‘“ โˆˆ ๐ด โˆ€ ๐‘ก โˆˆ ๐‘‡ ( abs โ€˜ ( ( ๐‘“ โ€˜ ๐‘ก ) โˆ’ ( ๐น โ€˜ ๐‘ก ) ) ) < ๐ธ

Proof

Step Hyp Ref Expression
1 stowei.1 โŠข ๐พ = ( topGen โ€˜ ran (,) )
2 stowei.2 โŠข ๐ฝ โˆˆ Comp
3 stowei.3 โŠข ๐‘‡ = โˆช ๐ฝ
4 stowei.4 โŠข ๐ถ = ( ๐ฝ Cn ๐พ )
5 stowei.5 โŠข ๐ด โІ ๐ถ
6 stowei.6 โŠข ( ( ๐‘“ โˆˆ ๐ด โˆง ๐‘” โˆˆ ๐ด ) โ†’ ( ๐‘ก โˆˆ ๐‘‡ โ†ฆ ( ( ๐‘“ โ€˜ ๐‘ก ) + ( ๐‘” โ€˜ ๐‘ก ) ) ) โˆˆ ๐ด )
7 stowei.7 โŠข ( ( ๐‘“ โˆˆ ๐ด โˆง ๐‘” โˆˆ ๐ด ) โ†’ ( ๐‘ก โˆˆ ๐‘‡ โ†ฆ ( ( ๐‘“ โ€˜ ๐‘ก ) ยท ( ๐‘” โ€˜ ๐‘ก ) ) ) โˆˆ ๐ด )
8 stowei.8 โŠข ( ๐‘ฅ โˆˆ โ„ โ†’ ( ๐‘ก โˆˆ ๐‘‡ โ†ฆ ๐‘ฅ ) โˆˆ ๐ด )
9 stowei.9 โŠข ( ( ๐‘Ÿ โˆˆ ๐‘‡ โˆง ๐‘ก โˆˆ ๐‘‡ โˆง ๐‘Ÿ โ‰  ๐‘ก ) โ†’ โˆƒ โ„Ž โˆˆ ๐ด ( โ„Ž โ€˜ ๐‘Ÿ ) โ‰  ( โ„Ž โ€˜ ๐‘ก ) )
10 stowei.10 โŠข ๐น โˆˆ ๐ถ
11 stowei.11 โŠข ๐ธ โˆˆ โ„+
12 nfcv โŠข โ„ฒ ๐‘ก ๐น
13 nftru โŠข โ„ฒ ๐‘ก โŠค
14 2 a1i โŠข ( โŠค โ†’ ๐ฝ โˆˆ Comp )
15 5 a1i โŠข ( โŠค โ†’ ๐ด โІ ๐ถ )
16 6 3adant1 โŠข ( ( โŠค โˆง ๐‘“ โˆˆ ๐ด โˆง ๐‘” โˆˆ ๐ด ) โ†’ ( ๐‘ก โˆˆ ๐‘‡ โ†ฆ ( ( ๐‘“ โ€˜ ๐‘ก ) + ( ๐‘” โ€˜ ๐‘ก ) ) ) โˆˆ ๐ด )
17 7 3adant1 โŠข ( ( โŠค โˆง ๐‘“ โˆˆ ๐ด โˆง ๐‘” โˆˆ ๐ด ) โ†’ ( ๐‘ก โˆˆ ๐‘‡ โ†ฆ ( ( ๐‘“ โ€˜ ๐‘ก ) ยท ( ๐‘” โ€˜ ๐‘ก ) ) ) โˆˆ ๐ด )
18 8 adantl โŠข ( ( โŠค โˆง ๐‘ฅ โˆˆ โ„ ) โ†’ ( ๐‘ก โˆˆ ๐‘‡ โ†ฆ ๐‘ฅ ) โˆˆ ๐ด )
19 9 adantl โŠข ( ( โŠค โˆง ( ๐‘Ÿ โˆˆ ๐‘‡ โˆง ๐‘ก โˆˆ ๐‘‡ โˆง ๐‘Ÿ โ‰  ๐‘ก ) ) โ†’ โˆƒ โ„Ž โˆˆ ๐ด ( โ„Ž โ€˜ ๐‘Ÿ ) โ‰  ( โ„Ž โ€˜ ๐‘ก ) )
20 10 a1i โŠข ( โŠค โ†’ ๐น โˆˆ ๐ถ )
21 11 a1i โŠข ( โŠค โ†’ ๐ธ โˆˆ โ„+ )
22 12 13 1 14 3 4 15 16 17 18 19 20 21 stoweid โŠข ( โŠค โ†’ โˆƒ ๐‘“ โˆˆ ๐ด โˆ€ ๐‘ก โˆˆ ๐‘‡ ( abs โ€˜ ( ( ๐‘“ โ€˜ ๐‘ก ) โˆ’ ( ๐น โ€˜ ๐‘ก ) ) ) < ๐ธ )
23 22 mptru โŠข โˆƒ ๐‘“ โˆˆ ๐ด โˆ€ ๐‘ก โˆˆ ๐‘‡ ( abs โ€˜ ( ( ๐‘“ โ€˜ ๐‘ก ) โˆ’ ( ๐น โ€˜ ๐‘ก ) ) ) < ๐ธ