9256
|
1 |
theory HahnBanach = HahnBanachLemmas: text_raw {* \smallskip\\ *} (* from ~/Pub/TYPES99/HB/HahnBanach.thy *)
|
8084
|
2 |
|
9256
|
3 |
theorem HahnBanach:
|
|
4 |
"is_vectorspace E \\<Longrightarrow> is_subspace F E \\<Longrightarrow> is_seminorm E p
|
|
5 |
\\<Longrightarrow> is_linearform F f \\<Longrightarrow> \\<forall>x \\<in> F. f x \\<le> p x
|
|
6 |
\\<Longrightarrow> \\<exists>h. is_linearform E h \\<and> (\\<forall>x \\<in> F. h x = f x) \\<and> (\\<forall>x \\<in> E. h x \\<le> p x)"
|
|
7 |
-- {* Let $E$ be a vector space, $F$ a subspace of $E$, $p$ a seminorm on $E$, *}
|
|
8 |
-- {* and $f$ a linear form on $F$ such that $f$ is bounded by $p$, *}
|
|
9 |
-- {* then $f$ can be extended to a linear form $h$ on $E$ in a norm-preserving way. \skp *}
|
9035
|
10 |
proof -
|
8084
|
11 |
assume "is_vectorspace E" "is_subspace F E" "is_seminorm E p"
|
9256
|
12 |
and "is_linearform F f" "\\<forall>x \\<in> F. f x \\<le> p x"
|
|
13 |
-- {* Assume the context of the theorem. \skp *}
|
9035
|
14 |
def M == "norm_pres_extensions E p F f"
|
9256
|
15 |
-- {* Define $M$ as the set of all norm-preserving extensions of $F$. \skp *}
|
9035
|
16 |
{
|
9256
|
17 |
fix c assume "c \\<in> chain M" "\\<exists>x. x \\<in> c"
|
|
18 |
have "\\<Union>c \\<in> M"
|
|
19 |
txt {* Show that every non-empty chain $c$ of $M$ has an upper bound in $M$: *}
|
|
20 |
txt {* $\Union c$ is greater than any element of the chain $c$, so it suffices to show $\Union c \in M$. *}
|
9035
|
21 |
proof (unfold M_def, rule norm_pres_extensionI)
|
8084
|
22 |
show "EX (H::'a set) h::'a => real. graph H h = Union c
|
|
23 |
& is_linearform H h
|
|
24 |
& is_subspace H E
|
|
25 |
& is_subspace F H
|
|
26 |
& graph F f <= graph H h
|
9035
|
27 |
& (ALL x::'a:H. h x <= p x)"
|
|
28 |
proof (intro exI conjI)
|
|
29 |
let ?H = "domain (Union c)"
|
|
30 |
let ?h = "funct (Union c)"
|
8084
|
31 |
|
9035
|
32 |
show a: "graph ?H ?h = Union c"
|
|
33 |
proof (rule graph_domain_funct)
|
|
34 |
fix x y z assume "(x, y) : Union c" "(x, z) : Union c"
|
|
35 |
show "z = y" by (rule sup_definite)
|
|
36 |
qed
|
|
37 |
show "is_linearform ?H ?h"
|
|
38 |
by (simp! add: sup_lf a)
|
9256
|
39 |
show "is_subspace ?H E" thm sup_subE [OF _ _ _ a]
|
|
40 |
by (rule sup_subE [OF _ _ _ a]) (simp !)+
|
|
41 |
(* FIXME by (rule sup_subE, rule a) (simp!)+; *)
|
9035
|
42 |
show "is_subspace F ?H"
|
|
43 |
by (rule sup_supF [OF _ _ _ a]) (simp!)+
|
9256
|
44 |
(* FIXME by (rule sup_supF, rule a) (simp!)+ *)
|
9035
|
45 |
show "graph F f <= graph ?H ?h"
|
|
46 |
by (rule sup_ext [OF _ _ _ a]) (simp!)+
|
9256
|
47 |
(* FIXME by (rule sup_ext, rule a) (simp!)+*)
|
9035
|
48 |
show "ALL x::'a:?H. ?h x <= p x"
|
|
49 |
by (rule sup_norm_pres [OF _ _ a]) (simp!)+
|
9256
|
50 |
(* FIXME by (rule sup_norm_pres, rule a) (simp!)+ *)
|
9035
|
51 |
qed
|
|
52 |
qed
|
9256
|
53 |
|
9035
|
54 |
}
|
9256
|
55 |
hence "\\<exists>g \\<in> M. \\<forall>x \\<in> M. g \\<subseteq> x \\<longrightarrow> g = x"
|
|
56 |
txt {* With Zorn's Lemma we can conclude that there is a maximal element in $M$.\skp *}
|
9035
|
57 |
proof (rule Zorn's_Lemma)
|
|
58 |
txt {* We show that $M$ is non-empty: *}
|
|
59 |
have "graph F f : norm_pres_extensions E p F f"
|
|
60 |
proof (rule norm_pres_extensionI2)
|
|
61 |
have "is_vectorspace F" ..
|
|
62 |
thus "is_subspace F F" ..
|
|
63 |
qed (blast!)+
|
|
64 |
thus "graph F f : M" by (simp!)
|
|
65 |
qed
|
|
66 |
thus ?thesis
|
|
67 |
proof
|
9256
|
68 |
fix g assume "g \\<in> M" "\\<forall>x \\<in> M. g \\<subseteq> x \\<longrightarrow> g = x"
|
|
69 |
-- {* We consider such a maximal element $g \in M$. \skp *}
|
9035
|
70 |
show ?thesis
|
8109
|
71 |
obtain H h where "graph H h = g" "is_linearform H h"
|
9256
|
72 |
"is_subspace H E" "is_subspace F H" "graph F f \\<subseteq> graph H h"
|
|
73 |
"\\<forall>x \\<in> H. h x \\<le> p x"
|
|
74 |
txt {* $g$ is a norm-preserving extension of $f$, in other words: *}
|
|
75 |
txt {* $g$ is the graph of some linear form $h$ defined on a subspace $H$ of $E$, *}
|
|
76 |
txt {* and $h$ is an extension of $f$ that is again bounded by $p$. \skp *}
|
9035
|
77 |
proof -
|
8084
|
78 |
have "EX H h. graph H h = g & is_linearform H h
|
|
79 |
& is_subspace H E & is_subspace F H
|
|
80 |
& graph F f <= graph H h
|
9035
|
81 |
& (ALL x:H. h x <= p x)" by (simp! add: norm_pres_extension_D)
|
|
82 |
thus ?thesis by (elim exE conjE) rule
|
|
83 |
qed
|
|
84 |
have h: "is_vectorspace H" ..
|
9256
|
85 |
have "H = E"
|
|
86 |
-- {* We show that $h$ is defined on whole $E$ by classical contradiction. \skp *}
|
9035
|
87 |
proof (rule classical)
|
9256
|
88 |
assume "H \\<noteq> E"
|
|
89 |
-- {* Assume $h$ is not defined on whole $E$. Then show that $h$ can be extended *}
|
|
90 |
-- {* in a norm-preserving way to a function $h'$ with the graph $g'$. \skp *}
|
|
91 |
have "\\<exists>g' \\<in> M. g \\<subseteq> g' \\<and> g \\<noteq> g'"
|
|
92 |
obtain x' where "x' \\<in> E" "x' \\<notin> H"
|
|
93 |
txt {* Pick $x' \in E \setminus H$. \skp *}
|
9035
|
94 |
proof -
|
9256
|
95 |
have "EX x':E. x'~:H"
|
9035
|
96 |
proof (rule set_less_imp_diff_not_empty)
|
|
97 |
have "H <= E" ..
|
|
98 |
thus "H < E" ..
|
|
99 |
qed
|
|
100 |
thus ?thesis by blast
|
|
101 |
qed
|
9256
|
102 |
have x': "x' ~= \<zero>"
|
9035
|
103 |
proof (rule classical)
|
9256
|
104 |
presume "x' = \<zero>"
|
|
105 |
with h have "x':H" by simp
|
9035
|
106 |
thus ?thesis by contradiction
|
|
107 |
qed blast
|
9256
|
108 |
def H' == "H + lin x'"
|
|
109 |
-- {* Define $H'$ as the direct sum of $H$ and the linear closure of $x'$. \skp *}
|
9035
|
110 |
show ?thesis
|
9256
|
111 |
obtain xi where "\\<forall>y \\<in> H. - p (y + x') - h y \\<le> xi
|
|
112 |
\\<and> xi \\<le> p (y + x') - h y" sorry
|
|
113 |
-- {* Pick a real number $\xi$ that fulfills certain inequations; this will *}
|
|
114 |
-- {* be used to establish that $h'$ is a norm-preserving extension of $h$. \skp *}
|
|
115 |
def h' == "\\<lambda>x. let (y,a) = \\<epsilon>(y,a). x = y + a \<prod> x' \\<and> y \\<in> H
|
9035
|
116 |
in (h y) + a * xi"
|
9256
|
117 |
-- {* Define the extension $h'$ of $h$ to $H'$ using $\xi$. \skp *}
|
9035
|
118 |
show ?thesis
|
|
119 |
proof
|
9256
|
120 |
show "g \\<subseteq> graph H' h' \\<and> g \\<noteq> graph H' h'"
|
|
121 |
txt {* Show that $h'$ is an extension of $h$ \dots \skp *}
|
|
122 |
proof
|
|
123 |
show "g <= graph H' h'"
|
9035
|
124 |
proof -
|
9256
|
125 |
have "graph H h <= graph H' h'"
|
9035
|
126 |
proof (rule graph_extI)
|
|
127 |
fix t assume "t:H"
|
9256
|
128 |
have "(SOME (y, a). t = y + a \<prod> x' & y : H)
|
|
129 |
= (t, #0)"
|
|
130 |
by (rule decomp_H0_H [OF _ _ _ _ _ x'])
|
|
131 |
thus "h t = h' t" by (simp! add: Let_def)
|
9035
|
132 |
next
|
9256
|
133 |
show "H <= H'"
|
9035
|
134 |
proof (rule subspace_subset)
|
9256
|
135 |
show "is_subspace H H'"
|
|
136 |
proof (unfold H'_def, rule subspace_vs_sum1)
|
9035
|
137 |
show "is_vectorspace H" ..
|
9256
|
138 |
show "is_vectorspace (lin x')" ..
|
9035
|
139 |
qed
|
|
140 |
qed
|
|
141 |
qed
|
|
142 |
thus ?thesis by (simp!)
|
|
143 |
qed
|
9256
|
144 |
show "g ~= graph H' h'"
|
9035
|
145 |
proof -
|
9256
|
146 |
have "graph H h ~= graph H' h'"
|
9035
|
147 |
proof
|
9256
|
148 |
assume e: "graph H h = graph H' h'"
|
|
149 |
have "x' : H'"
|
|
150 |
proof (unfold H'_def, rule vs_sumI)
|
|
151 |
show "x' = \<zero> + x'" by (simp!)
|
|
152 |
from h show "\<zero> : H" ..
|
|
153 |
show "x' : lin x'" by (rule x_lin_x)
|
9035
|
154 |
qed
|
9256
|
155 |
hence "(x', h' x') : graph H' h'" ..
|
|
156 |
with e have "(x', h' x') : graph H h" by simp
|
|
157 |
hence "x' : H" ..
|
9035
|
158 |
thus False by contradiction
|
|
159 |
qed
|
|
160 |
thus ?thesis by (simp!)
|
|
161 |
qed
|
|
162 |
qed
|
9256
|
163 |
show "graph H' h' \\<in> M"
|
|
164 |
txt {* and $h'$ is norm-preserving. \skp *}
|
|
165 |
proof -
|
|
166 |
have "graph H' h' : norm_pres_extensions E p F f"
|
9035
|
167 |
proof (rule norm_pres_extensionI2)
|
9256
|
168 |
show "is_linearform H' h'"
|
|
169 |
by (rule h0_lf [OF _ _ _ _ _ _ x']) (simp!)+
|
|
170 |
show "is_subspace H' E"
|
|
171 |
by (unfold H'_def) (rule vs_sum_subspace [OF _ lin_subspace])
|
9035
|
172 |
have "is_subspace F H" .
|
|
173 |
also from h lin_vs
|
9256
|
174 |
have [fold H'_def]: "is_subspace H (H + lin x')" ..
|
9035
|
175 |
finally (subspace_trans [OF _ h])
|
9256
|
176 |
show f_h': "is_subspace F H'" .
|
8084
|
177 |
|
9256
|
178 |
show "graph F f <= graph H' h'"
|
9035
|
179 |
proof (rule graph_extI)
|
|
180 |
fix x assume "x:F"
|
|
181 |
have "f x = h x" ..
|
|
182 |
also have " ... = h x + #0 * xi" by simp
|
|
183 |
also have "... = (let (y,a) = (x, #0) in h y + a * xi)"
|
|
184 |
by (simp add: Let_def)
|
|
185 |
also have
|
9256
|
186 |
"(x, #0) = (SOME (y, a). x = y + a (*) x' & y : H)"
|
|
187 |
by (rule decomp_H0_H [RS sym, OF _ _ _ _ _ x']) (simp!)+
|
9035
|
188 |
also have
|
9256
|
189 |
"(let (y,a) = (SOME (y,a). x = y + a (*) x' & y : H)
|
8084
|
190 |
in h y + a * xi)
|
9256
|
191 |
= h' x" by (simp!)
|
|
192 |
finally show "f x = h' x" .
|
9035
|
193 |
next
|
9256
|
194 |
from f_h' show "F <= H'" ..
|
9035
|
195 |
qed
|
8084
|
196 |
|
9256
|
197 |
show "ALL x:H'. h' x <= p x"
|
|
198 |
by (rule h0_norm_pres [OF _ _ _ _ x'])
|
9035
|
199 |
qed
|
9256
|
200 |
thus "graph H' h' : M" by (simp!)
|
9035
|
201 |
qed
|
|
202 |
qed
|
|
203 |
qed
|
|
204 |
qed
|
9256
|
205 |
hence "\\<not>(\\<forall>x \\<in> M. g \\<subseteq> x \\<longrightarrow> g = x)" by simp
|
|
206 |
-- {* So the graph $g$ of $h$ cannot be maximal. Contradiction! \skp *}
|
|
207 |
thus "H = E" by contradiction
|
|
208 |
qed
|
|
209 |
thus "\\<exists>h. is_linearform E h \\<and> (\\<forall>x \\<in> F. h x = f x)
|
|
210 |
\\<and> (\\<forall>x \\<in> E. h x \\<le> p x)"
|
9035
|
211 |
proof (intro exI conjI)
|
|
212 |
assume eq: "H = E"
|
|
213 |
from eq show "is_linearform E h" by (simp!)
|
|
214 |
show "ALL x:F. h x = f x"
|
|
215 |
proof (intro ballI, rule sym)
|
|
216 |
fix x assume "x:F" show "f x = h x " ..
|
|
217 |
qed
|
|
218 |
from eq show "ALL x:E. h x <= p x" by (force!)
|
|
219 |
qed
|
|
220 |
qed
|
|
221 |
qed
|
9256
|
222 |
qed text_raw {* \smallskip\\ *}
|
9035
|
223 |
end |