src/HOL/HahnBanach/HahnBanach.thy
author wenzelm
Mon, 16 Mar 2009 18:24:30 +0100
changeset 30549 d2d7874648bd
parent 29291 d3cc5398bad5
permissions -rw-r--r--
simplified method setup;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
     1
(*  Title:      HOL/Real/HahnBanach/HahnBanach.thy
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
     2
    Author:     Gertrud Bauer, TU Munich
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
     3
*)
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
     4
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
     5
header {* The Hahn-Banach Theorem *}
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
     6
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
     7
theory HahnBanach
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
     8
imports HahnBanachLemmas
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
     9
begin
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
    10
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
    11
text {*
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    12
  We present the proof of two different versions of the Hahn-Banach
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
    13
  Theorem, closely following \cite[\S36]{Heuser:1986}.
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
    14
*}
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
    15
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
    16
subsection {* The Hahn-Banach Theorem for vector spaces *}
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
    17
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
    18
text {*
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    19
  \textbf{Hahn-Banach Theorem.} Let @{text F} be a subspace of a real
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    20
  vector space @{text E}, let @{text p} be a semi-norm on @{text E},
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    21
  and @{text f} be a linear form defined on @{text F} such that @{text
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    22
  f} is bounded by @{text p}, i.e.  @{text "\<forall>x \<in> F. f x \<le> p x"}.  Then
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    23
  @{text f} can be extended to a linear form @{text h} on @{text E}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    24
  such that @{text h} is norm-preserving, i.e. @{text h} is also
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    25
  bounded by @{text p}.
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    26
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    27
  \bigskip
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    28
  \textbf{Proof Sketch.}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    29
  \begin{enumerate}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    30
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    31
  \item Define @{text M} as the set of norm-preserving extensions of
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    32
  @{text f} to subspaces of @{text E}. The linear forms in @{text M}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    33
  are ordered by domain extension.
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
    34
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    35
  \item We show that every non-empty chain in @{text M} has an upper
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    36
  bound in @{text M}.
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    37
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    38
  \item With Zorn's Lemma we conclude that there is a maximal function
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    39
  @{text g} in @{text M}.
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    40
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    41
  \item The domain @{text H} of @{text g} is the whole space @{text
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    42
  E}, as shown by classical contradiction:
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    43
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    44
  \begin{itemize}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    45
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    46
  \item Assuming @{text g} is not defined on whole @{text E}, it can
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    47
  still be extended in a norm-preserving way to a super-space @{text
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    48
  H'} of @{text H}.
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    49
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    50
  \item Thus @{text g} can not be maximal. Contradiction!
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    51
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    52
  \end{itemize}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    53
  \end{enumerate}
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
    54
*}
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
    55
9256
f9a6670427fb completed TYPES version of HahnBanach;
bauerg
parents: 9035
diff changeset
    56
theorem HahnBanach:
27611
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
    57
  assumes E: "vectorspace E" and "subspace F E"
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
    58
    and "seminorm E p" and "linearform F f"
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    59
  assumes fp: "\<forall>x \<in> F. f x \<le> p x"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    60
  shows "\<exists>h. linearform E h \<and> (\<forall>x \<in> F. h x = f x) \<and> (\<forall>x \<in> E. h x \<le> p x)"
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    61
    -- {* Let @{text E} be a vector space, @{text F} a subspace of @{text E}, @{text p} a seminorm on @{text E}, *}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    62
    -- {* and @{text f} a linear form on @{text F} such that @{text f} is bounded by @{text p}, *}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    63
    -- {* then @{text f} can be extended to a linear form @{text h} on @{text E} in a norm-preserving way. \skp *}
9035
371f023d3dbd removed explicit terminator (";");
wenzelm
parents: 9013
diff changeset
    64
proof -
29234
60f7fb56f8cd More porting to new locales.
ballarin
parents: 28823
diff changeset
    65
  interpret vectorspace E by fact
60f7fb56f8cd More porting to new locales.
ballarin
parents: 28823
diff changeset
    66
  interpret subspace F E by fact
60f7fb56f8cd More porting to new locales.
ballarin
parents: 28823
diff changeset
    67
  interpret seminorm E p by fact
60f7fb56f8cd More porting to new locales.
ballarin
parents: 28823
diff changeset
    68
  interpret linearform F f by fact
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
    69
  def M \<equiv> "norm_pres_extensions E p F f"
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
    70
  then have M: "M = \<dots>" by (simp only:)
27611
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
    71
  from E have F: "vectorspace F" ..
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
    72
  note FE = `F \<unlhd> E`
9035
371f023d3dbd removed explicit terminator (";");
wenzelm
parents: 9013
diff changeset
    73
  {
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    74
    fix c assume cM: "c \<in> chain M" and ex: "\<exists>x. x \<in> c"
9503
wenzelm
parents: 9475
diff changeset
    75
    have "\<Union>c \<in> M"
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    76
      -- {* Show that every non-empty chain @{text c} of @{text M} has an upper bound in @{text M}: *}
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    77
      -- {* @{text "\<Union>c"} is greater than any element of the chain @{text c}, so it suffices to show @{text "\<Union>c \<in> M"}. *}
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
    78
      unfolding M_def
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
    79
    proof (rule norm_pres_extensionI)
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    80
      let ?H = "domain (\<Union>c)"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    81
      let ?h = "funct (\<Union>c)"
8084
c3790c6b4470 small changes;
bauerg
parents: 7978
diff changeset
    82
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    83
      have a: "graph ?H ?h = \<Union>c"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    84
      proof (rule graph_domain_funct)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    85
        fix x y z assume "(x, y) \<in> \<Union>c" and "(x, z) \<in> \<Union>c"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    86
        with M_def cM show "z = y" by (rule sup_definite)
9035
371f023d3dbd removed explicit terminator (";");
wenzelm
parents: 9013
diff changeset
    87
      qed
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    88
      moreover from M cM a have "linearform ?H ?h"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    89
        by (rule sup_lf)
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
    90
      moreover from a M cM ex FE E have "?H \<unlhd> E"
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    91
        by (rule sup_subE)
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
    92
      moreover from a M cM ex FE have "F \<unlhd> ?H"
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    93
        by (rule sup_supF)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    94
      moreover from a M cM ex have "graph F f \<subseteq> graph ?H ?h"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    95
        by (rule sup_ext)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    96
      moreover from a M cM have "\<forall>x \<in> ?H. ?h x \<le> p x"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    97
        by (rule sup_norm_pres)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    98
      ultimately show "\<exists>H h. \<Union>c = graph H h
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
    99
          \<and> linearform H h
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   100
          \<and> H \<unlhd> E
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   101
          \<and> F \<unlhd> H
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   102
          \<and> graph F f \<subseteq> graph H h
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   103
          \<and> (\<forall>x \<in> H. h x \<le> p x)" by blast
9035
371f023d3dbd removed explicit terminator (";");
wenzelm
parents: 9013
diff changeset
   104
    qed
371f023d3dbd removed explicit terminator (";");
wenzelm
parents: 9013
diff changeset
   105
  }
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   106
  then have "\<exists>g \<in> M. \<forall>x \<in> M. g \<subseteq> x \<longrightarrow> g = x"
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   107
  -- {* With Zorn's Lemma we can conclude that there is a maximal element in @{text M}. \skp *}
9035
371f023d3dbd removed explicit terminator (";");
wenzelm
parents: 9013
diff changeset
   108
  proof (rule Zorn's_Lemma)
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   109
      -- {* We show that @{text M} is non-empty: *}
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   110
    show "graph F f \<in> M"
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   111
      unfolding M_def
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   112
    proof (rule norm_pres_extensionI2)
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   113
      show "linearform F f" by fact
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   114
      show "F \<unlhd> E" by fact
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   115
      from F show "F \<unlhd> F" by (rule vectorspace.subspace_refl)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   116
      show "graph F f \<subseteq> graph F f" ..
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   117
      show "\<forall>x\<in>F. f x \<le> p x" by fact
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   118
    qed
9035
371f023d3dbd removed explicit terminator (";");
wenzelm
parents: 9013
diff changeset
   119
  qed
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   120
  then obtain g where gM: "g \<in> M" and gx: "\<forall>x \<in> M. g \<subseteq> x \<longrightarrow> g = x"
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   121
    by blast
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   122
  from gM obtain H h where
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   123
      g_rep: "g = graph H h"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   124
    and linearform: "linearform H h"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   125
    and HE: "H \<unlhd> E" and FH: "F \<unlhd> H"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   126
    and graphs: "graph F f \<subseteq> graph H h"
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   127
    and hp: "\<forall>x \<in> H. h x \<le> p x" unfolding M_def ..
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   128
      -- {* @{text g} is a norm-preserving extension of @{text f}, in other words: *}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   129
      -- {* @{text g} is the graph of some linear form @{text h} defined on a subspace @{text H} of @{text E}, *}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   130
      -- {* and @{text h} is an extension of @{text f} that is again bounded by @{text p}. \skp *}
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   131
  from HE E have H: "vectorspace H"
13547
wenzelm
parents: 13515
diff changeset
   132
    by (rule subspace.vectorspace)
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   133
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   134
  have HE_eq: "H = E"
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   135
    -- {* We show that @{text h} is defined on whole @{text E} by classical contradiction. \skp *}
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   136
  proof (rule classical)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   137
    assume neq: "H \<noteq> E"
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   138
      -- {* Assume @{text h} is not defined on whole @{text E}. Then show that @{text h} can be extended *}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   139
      -- {* in a norm-preserving way to a function @{text h'} with the graph @{text g'}. \skp *}
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   140
    have "\<exists>g' \<in> M. g \<subseteq> g' \<and> g \<noteq> g'"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   141
    proof -
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   142
      from HE have "H \<subseteq> E" ..
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   143
      with neq obtain x' where x'E: "x' \<in> E" and "x' \<notin> H" by blast
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   144
      obtain x': "x' \<noteq> 0"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   145
      proof
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   146
        show "x' \<noteq> 0"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   147
        proof
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   148
          assume "x' = 0"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   149
          with H have "x' \<in> H" by (simp only: vectorspace.zero)
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   150
          with `x' \<notin> H` show False by contradiction
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   151
        qed
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   152
      qed
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   153
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   154
      def H' \<equiv> "H + lin x'"
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   155
        -- {* Define @{text H'} as the direct sum of @{text H} and the linear closure of @{text x'}. \skp *}
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   156
      have HH': "H \<unlhd> H'"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   157
      proof (unfold H'_def)
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   158
        from x'E have "vectorspace (lin x')" ..
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   159
        with H show "H \<unlhd> H + lin x'" ..
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   160
      qed
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   161
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   162
      obtain xi where
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   163
        xi: "\<forall>y \<in> H. - p (y + x') - h y \<le> xi
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   164
          \<and> xi \<le> p (y + x') - h y"
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   165
        -- {* Pick a real number @{text \<xi>} that fulfills certain inequations; this will *}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   166
        -- {* be used to establish that @{text h'} is a norm-preserving extension of @{text h}.
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   167
           \label{ex-xi-use}\skp *}
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   168
      proof -
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   169
        from H have "\<exists>xi. \<forall>y \<in> H. - p (y + x') - h y \<le> xi
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   170
            \<and> xi \<le> p (y + x') - h y"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   171
        proof (rule ex_xi)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   172
          fix u v assume u: "u \<in> H" and v: "v \<in> H"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   173
          with HE have uE: "u \<in> E" and vE: "v \<in> E" by auto
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   174
          from H u v linearform have "h v - h u = h (v - u)"
13547
wenzelm
parents: 13515
diff changeset
   175
            by (simp add: linearform.diff)
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   176
          also from hp and H u v have "\<dots> \<le> p (v - u)"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   177
            by (simp only: vectorspace.diff_closed)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   178
          also from x'E uE vE have "v - u = x' + - x' + v + - u"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   179
            by (simp add: diff_eq1)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   180
          also from x'E uE vE have "\<dots> = v + x' + - (u + x')"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   181
            by (simp add: add_ac)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   182
          also from x'E uE vE have "\<dots> = (v + x') - (u + x')"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   183
            by (simp add: diff_eq1)
13547
wenzelm
parents: 13515
diff changeset
   184
          also from x'E uE vE E have "p \<dots> \<le> p (v + x') + p (u + x')"
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   185
            by (simp add: diff_subadditive)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   186
          finally have "h v - h u \<le> p (v + x') + p (u + x')" .
13547
wenzelm
parents: 13515
diff changeset
   187
          then show "- p (u + x') - h u \<le> p (v + x') - h v" by simp
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   188
        qed
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   189
        then show thesis by (blast intro: that)
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   190
      qed
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   191
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   192
      def h' \<equiv> "\<lambda>x. let (y, a) =
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   193
          SOME (y, a). x = y + a \<cdot> x' \<and> y \<in> H in h y + a * xi"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   194
        -- {* Define the extension @{text h'} of @{text h} to @{text H'} using @{text \<xi>}. \skp *}
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   195
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   196
      have "g \<subseteq> graph H' h' \<and> g \<noteq> graph H' h'"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   197
        -- {* @{text h'} is an extension of @{text h} \dots \skp *}
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   198
      proof
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   199
        show "g \<subseteq> graph H' h'"
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   200
        proof -
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   201
          have  "graph H h \<subseteq> graph H' h'"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   202
          proof (rule graph_extI)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   203
            fix t assume t: "t \<in> H"
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   204
            from E HE t have "(SOME (y, a). t = y + a \<cdot> x' \<and> y \<in> H) = (t, 0)"
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   205
	      using `x' \<notin> H` `x' \<in> E` `x' \<noteq> 0` by (rule decomp_H'_H)
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   206
            with h'_def show "h t = h' t" by (simp add: Let_def)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   207
          next
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   208
            from HH' show "H \<subseteq> H'" ..
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   209
          qed
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   210
          with g_rep show ?thesis by (simp only:)
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   211
        qed
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   212
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   213
        show "g \<noteq> graph H' h'"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   214
        proof -
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   215
          have "graph H h \<noteq> graph H' h'"
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   216
          proof
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   217
            assume eq: "graph H h = graph H' h'"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   218
            have "x' \<in> H'"
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   219
	      unfolding H'_def
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   220
            proof
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   221
              from H show "0 \<in> H" by (rule vectorspace.zero)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   222
              from x'E show "x' \<in> lin x'" by (rule x_lin_x)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   223
              from x'E show "x' = 0 + x'" by simp
9261
879e0f0cd047 removed sorry;
bauerg
parents: 9256
diff changeset
   224
            qed
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   225
            then have "(x', h' x') \<in> graph H' h'" ..
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   226
            with eq have "(x', h' x') \<in> graph H h" by (simp only:)
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   227
            then have "x' \<in> H" ..
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   228
            with `x' \<notin> H` show False by contradiction
9035
371f023d3dbd removed explicit terminator (";");
wenzelm
parents: 9013
diff changeset
   229
          qed
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   230
          with g_rep show ?thesis by simp
9035
371f023d3dbd removed explicit terminator (";");
wenzelm
parents: 9013
diff changeset
   231
        qed
9256
f9a6670427fb completed TYPES version of HahnBanach;
bauerg
parents: 9035
diff changeset
   232
      qed
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   233
      moreover have "graph H' h' \<in> M"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   234
        -- {* and @{text h'} is norm-preserving. \skp *}
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   235
      proof (unfold M_def)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   236
        show "graph H' h' \<in> norm_pres_extensions E p F f"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   237
        proof (rule norm_pres_extensionI2)
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   238
          show "linearform H' h'"
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   239
	    using h'_def H'_def HE linearform `x' \<notin> H` `x' \<in> E` `x' \<noteq> 0` E
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   240
	    by (rule h'_lf)
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   241
          show "H' \<unlhd> E"
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   242
	  unfolding H'_def
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   243
          proof
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   244
            show "H \<unlhd> E" by fact
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   245
            show "vectorspace E" by fact
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   246
            from x'E show "lin x' \<unlhd> E" ..
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   247
          qed
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   248
          from H `F \<unlhd> H` HH' show FH': "F \<unlhd> H'"
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   249
            by (rule vectorspace.subspace_trans)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   250
          show "graph F f \<subseteq> graph H' h'"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   251
          proof (rule graph_extI)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   252
            fix x assume x: "x \<in> F"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   253
            with graphs have "f x = h x" ..
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   254
            also have "\<dots> = h x + 0 * xi" by simp
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   255
            also have "\<dots> = (let (y, a) = (x, 0) in h y + a * xi)"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   256
              by (simp add: Let_def)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   257
            also have "(x, 0) =
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   258
                (SOME (y, a). x = y + a \<cdot> x' \<and> y \<in> H)"
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   259
	      using E HE
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   260
            proof (rule decomp_H'_H [symmetric])
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   261
              from FH x show "x \<in> H" ..
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   262
              from x' show "x' \<noteq> 0" .
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   263
	      show "x' \<notin> H" by fact
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   264
	      show "x' \<in> E" by fact
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   265
            qed
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   266
            also have
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   267
              "(let (y, a) = (SOME (y, a). x = y + a \<cdot> x' \<and> y \<in> H)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   268
              in h y + a * xi) = h' x" by (simp only: h'_def)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   269
            finally show "f x = h' x" .
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   270
          next
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   271
            from FH' show "F \<subseteq> H'" ..
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   272
          qed
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   273
          show "\<forall>x \<in> H'. h' x \<le> p x"
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   274
	    using h'_def H'_def `x' \<notin> H` `x' \<in> E` `x' \<noteq> 0` E HE
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   275
	      `seminorm E p` linearform and hp xi
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   276
	    by (rule h'_norm_pres)
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   277
        qed
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   278
      qed
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   279
      ultimately show ?thesis ..
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   280
    qed
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   281
    then have "\<not> (\<forall>x \<in> M. g \<subseteq> x \<longrightarrow> g = x)" by simp
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   282
      -- {* So the graph @{text g} of @{text h} cannot be maximal. Contradiction! \skp *}
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   283
    with gx show "H = E" by contradiction
9035
371f023d3dbd removed explicit terminator (";");
wenzelm
parents: 9013
diff changeset
   284
  qed
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   285
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   286
  from HE_eq and linearform have "linearform E h"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   287
    by (simp only:)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   288
  moreover have "\<forall>x \<in> F. h x = f x"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   289
  proof
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   290
    fix x assume "x \<in> F"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   291
    with graphs have "f x = h x" ..
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   292
    then show "h x = f x" ..
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   293
  qed
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   294
  moreover from HE_eq and hp have "\<forall>x \<in> E. h x \<le> p x"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   295
    by (simp only:)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   296
  ultimately show ?thesis by blast
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   297
qed
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   298
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   299
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   300
subsection  {* Alternative formulation *}
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   301
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   302
text {*
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   303
  The following alternative formulation of the Hahn-Banach
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   304
  Theorem\label{abs-HahnBanach} uses the fact that for a real linear
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   305
  form @{text f} and a seminorm @{text p} the following inequations
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   306
  are equivalent:\footnote{This was shown in lemma @{thm [source]
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   307
  abs_ineq_iff} (see page \pageref{abs-ineq-iff}).}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   308
  \begin{center}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   309
  \begin{tabular}{lll}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   310
  @{text "\<forall>x \<in> H. \<bar>h x\<bar> \<le> p x"} & and &
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   311
  @{text "\<forall>x \<in> H. h x \<le> p x"} \\
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   312
  \end{tabular}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   313
  \end{center}
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   314
*}
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   315
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   316
theorem abs_HahnBanach:
27611
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   317
  assumes E: "vectorspace E" and FE: "subspace F E"
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   318
    and lf: "linearform F f" and sn: "seminorm E p"
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   319
  assumes fp: "\<forall>x \<in> F. \<bar>f x\<bar> \<le> p x"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   320
  shows "\<exists>g. linearform E g
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   321
    \<and> (\<forall>x \<in> F. g x = f x)
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   322
    \<and> (\<forall>x \<in> E. \<bar>g x\<bar> \<le> p x)"
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   323
proof -
29234
60f7fb56f8cd More porting to new locales.
ballarin
parents: 28823
diff changeset
   324
  interpret vectorspace E by fact
60f7fb56f8cd More porting to new locales.
ballarin
parents: 28823
diff changeset
   325
  interpret subspace F E by fact
60f7fb56f8cd More porting to new locales.
ballarin
parents: 28823
diff changeset
   326
  interpret linearform F f by fact
60f7fb56f8cd More porting to new locales.
ballarin
parents: 28823
diff changeset
   327
  interpret seminorm E p by fact
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   328
  have "\<exists>g. linearform E g \<and> (\<forall>x \<in> F. g x = f x) \<and> (\<forall>x \<in> E. g x \<le> p x)"
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   329
    using E FE sn lf
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   330
  proof (rule HahnBanach)
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   331
    show "\<forall>x \<in> F. f x \<le> p x"
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   332
      using FE E sn lf and fp by (rule abs_ineq_iff [THEN iffD1])
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   333
  qed
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   334
  then obtain g where lg: "linearform E g" and *: "\<forall>x \<in> F. g x = f x"
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   335
      and **: "\<forall>x \<in> E. g x \<le> p x" by blast
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   336
  have "\<forall>x \<in> E. \<bar>g x\<bar> \<le> p x"
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   337
    using _ E sn lg **
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   338
  proof (rule abs_ineq_iff [THEN iffD2])
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   339
    show "E \<unlhd> E" ..
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   340
  qed
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   341
  with lg * show ?thesis by blast
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   342
qed
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   343
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   344
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   345
subsection {* The Hahn-Banach Theorem for normed spaces *}
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   346
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   347
text {*
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   348
  Every continuous linear form @{text f} on a subspace @{text F} of a
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   349
  norm space @{text E}, can be extended to a continuous linear form
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   350
  @{text g} on @{text E} such that @{text "\<parallel>f\<parallel> = \<parallel>g\<parallel>"}.
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   351
*}
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   352
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   353
theorem norm_HahnBanach:
27611
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   354
  fixes V and norm ("\<parallel>_\<parallel>")
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   355
  fixes B defines "\<And>V f. B V f \<equiv> {0} \<union> {\<bar>f x\<bar> / \<parallel>x\<parallel> | x. x \<noteq> 0 \<and> x \<in> V}"
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   356
  fixes fn_norm ("\<parallel>_\<parallel>\<hyphen>_" [0, 1000] 999)
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   357
  defines "\<And>V f. \<parallel>f\<parallel>\<hyphen>V \<equiv> \<Squnion>(B V f)"
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   358
  assumes E_norm: "normed_vectorspace E norm" and FE: "subspace F E"
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   359
    and linearform: "linearform F f" and "continuous F norm f"
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   360
  shows "\<exists>g. linearform E g
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   361
     \<and> continuous E norm g
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   362
     \<and> (\<forall>x \<in> F. g x = f x)
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   363
     \<and> \<parallel>g\<parallel>\<hyphen>E = \<parallel>f\<parallel>\<hyphen>F"
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   364
proof -
29234
60f7fb56f8cd More porting to new locales.
ballarin
parents: 28823
diff changeset
   365
  interpret normed_vectorspace E norm by fact
60f7fb56f8cd More porting to new locales.
ballarin
parents: 28823
diff changeset
   366
  interpret normed_vectorspace_with_fn_norm E norm B fn_norm
27611
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   367
    by (auto simp: B_def fn_norm_def) intro_locales
29234
60f7fb56f8cd More porting to new locales.
ballarin
parents: 28823
diff changeset
   368
  interpret subspace F E by fact
60f7fb56f8cd More porting to new locales.
ballarin
parents: 28823
diff changeset
   369
  interpret linearform F f by fact
60f7fb56f8cd More porting to new locales.
ballarin
parents: 28823
diff changeset
   370
  interpret continuous F norm f by fact
28823
dcbef866c9e2 tuned unfold_locales invocation
haftmann
parents: 27612
diff changeset
   371
  have E: "vectorspace E" by intro_locales
dcbef866c9e2 tuned unfold_locales invocation
haftmann
parents: 27612
diff changeset
   372
  have F: "vectorspace F" by rule intro_locales
14214
5369d671f100 Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents: 13547
diff changeset
   373
  have F_norm: "normed_vectorspace F norm"
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   374
    using FE E_norm by (rule subspace_normed_vs)
13547
wenzelm
parents: 13515
diff changeset
   375
  have ge_zero: "0 \<le> \<parallel>f\<parallel>\<hyphen>F"
27611
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   376
    by (rule normed_vectorspace_with_fn_norm.fn_norm_ge_zero
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   377
      [OF normed_vectorspace_with_fn_norm.intro,
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   378
       OF F_norm `continuous F norm f` , folded B_def fn_norm_def])
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   379
  txt {* We define a function @{text p} on @{text E} as follows:
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   380
    @{text "p x = \<parallel>f\<parallel> \<cdot> \<parallel>x\<parallel>"} *}
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   381
  def p \<equiv> "\<lambda>x. \<parallel>f\<parallel>\<hyphen>F * \<parallel>x\<parallel>"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   382
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   383
  txt {* @{text p} is a seminorm on @{text E}: *}
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   384
  have q: "seminorm E p"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   385
  proof
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   386
    fix x y a assume x: "x \<in> E" and y: "y \<in> E"
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   387
    
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   388
    txt {* @{text p} is positive definite: *}
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   389
    have "0 \<le> \<parallel>f\<parallel>\<hyphen>F" by (rule ge_zero)
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   390
    moreover from x have "0 \<le> \<parallel>x\<parallel>" ..
14710
247615bfffb8 replaced Aux.thy by RealLemmas.thy
bauerg
parents: 14334
diff changeset
   391
    ultimately show "0 \<le> p x"  
247615bfffb8 replaced Aux.thy by RealLemmas.thy
bauerg
parents: 14334
diff changeset
   392
      by (simp add: p_def zero_le_mult_iff)
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   393
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   394
    txt {* @{text p} is absolutely homogenous: *}
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   395
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   396
    show "p (a \<cdot> x) = \<bar>a\<bar> * p x"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   397
    proof -
13547
wenzelm
parents: 13515
diff changeset
   398
      have "p (a \<cdot> x) = \<parallel>f\<parallel>\<hyphen>F * \<parallel>a \<cdot> x\<parallel>" by (simp only: p_def)
wenzelm
parents: 13515
diff changeset
   399
      also from x have "\<parallel>a \<cdot> x\<parallel> = \<bar>a\<bar> * \<parallel>x\<parallel>" by (rule abs_homogenous)
wenzelm
parents: 13515
diff changeset
   400
      also have "\<parallel>f\<parallel>\<hyphen>F * (\<bar>a\<bar> * \<parallel>x\<parallel>) = \<bar>a\<bar> * (\<parallel>f\<parallel>\<hyphen>F * \<parallel>x\<parallel>)" by simp
wenzelm
parents: 13515
diff changeset
   401
      also have "\<dots> = \<bar>a\<bar> * p x" by (simp only: p_def)
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   402
      finally show ?thesis .
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   403
    qed
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   404
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   405
    txt {* Furthermore, @{text p} is subadditive: *}
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   406
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   407
    show "p (x + y) \<le> p x + p y"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   408
    proof -
13547
wenzelm
parents: 13515
diff changeset
   409
      have "p (x + y) = \<parallel>f\<parallel>\<hyphen>F * \<parallel>x + y\<parallel>" by (simp only: p_def)
14710
247615bfffb8 replaced Aux.thy by RealLemmas.thy
bauerg
parents: 14334
diff changeset
   410
      also have a: "0 \<le> \<parallel>f\<parallel>\<hyphen>F" by (rule ge_zero)
247615bfffb8 replaced Aux.thy by RealLemmas.thy
bauerg
parents: 14334
diff changeset
   411
      from x y have "\<parallel>x + y\<parallel> \<le> \<parallel>x\<parallel> + \<parallel>y\<parallel>" ..
247615bfffb8 replaced Aux.thy by RealLemmas.thy
bauerg
parents: 14334
diff changeset
   412
      with a have " \<parallel>f\<parallel>\<hyphen>F * \<parallel>x + y\<parallel> \<le> \<parallel>f\<parallel>\<hyphen>F * (\<parallel>x\<parallel> + \<parallel>y\<parallel>)"
247615bfffb8 replaced Aux.thy by RealLemmas.thy
bauerg
parents: 14334
diff changeset
   413
        by (simp add: mult_left_mono)
14334
6137d24eef79 tweaking of lemmas in RealDef, RealOrd
paulson
parents: 14291
diff changeset
   414
      also have "\<dots> = \<parallel>f\<parallel>\<hyphen>F * \<parallel>x\<parallel> + \<parallel>f\<parallel>\<hyphen>F * \<parallel>y\<parallel>" by (simp only: right_distrib)
13547
wenzelm
parents: 13515
diff changeset
   415
      also have "\<dots> = p x + p y" by (simp only: p_def)
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   416
      finally show ?thesis .
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   417
    qed
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   418
  qed
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   419
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   420
  txt {* @{text f} is bounded by @{text p}. *}
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   421
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   422
  have "\<forall>x \<in> F. \<bar>f x\<bar> \<le> p x"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   423
  proof
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   424
    fix x assume "x \<in> F"
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   425
    with `continuous F norm f` and linearform
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   426
    show "\<bar>f x\<bar> \<le> p x"
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   427
      unfolding p_def by (rule normed_vectorspace_with_fn_norm.fn_norm_le_cong
27611
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   428
        [OF normed_vectorspace_with_fn_norm.intro,
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   429
         OF F_norm, folded B_def fn_norm_def])
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   430
  qed
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   431
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   432
  txt {* Using the fact that @{text p} is a seminorm and @{text f} is bounded
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   433
    by @{text p} we can apply the Hahn-Banach Theorem for real vector
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   434
    spaces. So @{text f} can be extended in a norm-preserving way to
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   435
    some function @{text g} on the whole vector space @{text E}. *}
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   436
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   437
  with E FE linearform q obtain g where
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   438
      linearformE: "linearform E g"
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   439
    and a: "\<forall>x \<in> F. g x = f x"
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   440
    and b: "\<forall>x \<in> E. \<bar>g x\<bar> \<le> p x"
17589
58eeffd73be1 renamed rules to iprover
nipkow
parents: 16417
diff changeset
   441
    by (rule abs_HahnBanach [elim_format]) iprover
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   442
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   443
  txt {* We furthermore have to show that @{text g} is also continuous: *}
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   444
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   445
  have g_cont: "continuous E norm g" using linearformE
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   446
  proof
9503
wenzelm
parents: 9475
diff changeset
   447
    fix x assume "x \<in> E"
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   448
    with b show "\<bar>g x\<bar> \<le> \<parallel>f\<parallel>\<hyphen>F * \<parallel>x\<parallel>"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   449
      by (simp only: p_def)
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   450
  qed
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   451
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   452
  txt {* To complete the proof, we show that @{text "\<parallel>g\<parallel> = \<parallel>f\<parallel>"}. *}
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   453
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   454
  have "\<parallel>g\<parallel>\<hyphen>E = \<parallel>f\<parallel>\<hyphen>F"
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   455
  proof (rule order_antisym)
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   456
    txt {*
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   457
      First we show @{text "\<parallel>g\<parallel> \<le> \<parallel>f\<parallel>"}.  The function norm @{text
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   458
      "\<parallel>g\<parallel>"} is defined as the smallest @{text "c \<in> \<real>"} such that
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   459
      \begin{center}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   460
      \begin{tabular}{l}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   461
      @{text "\<forall>x \<in> E. \<bar>g x\<bar> \<le> c \<cdot> \<parallel>x\<parallel>"}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   462
      \end{tabular}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   463
      \end{center}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   464
      \noindent Furthermore holds
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   465
      \begin{center}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   466
      \begin{tabular}{l}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   467
      @{text "\<forall>x \<in> E. \<bar>g x\<bar> \<le> \<parallel>f\<parallel> \<cdot> \<parallel>x\<parallel>"}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   468
      \end{tabular}
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   469
      \end{center}
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   470
    *}
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   471
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   472
    have "\<forall>x \<in> E. \<bar>g x\<bar> \<le> \<parallel>f\<parallel>\<hyphen>F * \<parallel>x\<parallel>"
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   473
    proof
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   474
      fix x assume "x \<in> E"
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   475
      with b show "\<bar>g x\<bar> \<le> \<parallel>f\<parallel>\<hyphen>F * \<parallel>x\<parallel>"
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   476
        by (simp only: p_def)
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   477
    qed
15206
09d78ec709c7 Modified locales: improved implementation of "includes".
ballarin
parents: 14710
diff changeset
   478
    from g_cont this ge_zero
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   479
    show "\<parallel>g\<parallel>\<hyphen>E \<le> \<parallel>f\<parallel>\<hyphen>F"
13547
wenzelm
parents: 13515
diff changeset
   480
      by (rule fn_norm_least [of g, folded B_def fn_norm_def])
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   481
13515
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   482
    txt {* The other direction is achieved by a similar argument. *}
a6a7025fd7e8 updated to use locales (still some rough edges);
wenzelm
parents: 12018
diff changeset
   483
13547
wenzelm
parents: 13515
diff changeset
   484
    show "\<parallel>f\<parallel>\<hyphen>F \<le> \<parallel>g\<parallel>\<hyphen>E"
27611
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   485
    proof (rule normed_vectorspace_with_fn_norm.fn_norm_least
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   486
	[OF normed_vectorspace_with_fn_norm.intro,
2c01c0bdb385 Removed uses of context element includes.
ballarin
parents: 23378
diff changeset
   487
	 OF F_norm, folded B_def fn_norm_def])
13547
wenzelm
parents: 13515
diff changeset
   488
      show "\<forall>x \<in> F. \<bar>f x\<bar> \<le> \<parallel>g\<parallel>\<hyphen>E * \<parallel>x\<parallel>"
wenzelm
parents: 13515
diff changeset
   489
      proof
wenzelm
parents: 13515
diff changeset
   490
	fix x assume x: "x \<in> F"
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   491
	from a x have "g x = f x" ..
27612
d3eb431db035 modernized specifications and proofs;
wenzelm
parents: 27611
diff changeset
   492
	then have "\<bar>f x\<bar> = \<bar>g x\<bar>" by (simp only:)
15206
09d78ec709c7 Modified locales: improved implementation of "includes".
ballarin
parents: 14710
diff changeset
   493
	also from g_cont
13547
wenzelm
parents: 13515
diff changeset
   494
	have "\<dots> \<le> \<parallel>g\<parallel>\<hyphen>E * \<parallel>x\<parallel>"
29291
d3cc5398bad5 avoid implicit use of prems;
wenzelm
parents: 29252
diff changeset
   495
	proof (rule fn_norm_le_cong [OF _ linearformE, folded B_def fn_norm_def])
13547
wenzelm
parents: 13515
diff changeset
   496
	  from FE x show "x \<in> E" ..
wenzelm
parents: 13515
diff changeset
   497
	qed
wenzelm
parents: 13515
diff changeset
   498
	finally show "\<bar>f x\<bar> \<le> \<parallel>g\<parallel>\<hyphen>E * \<parallel>x\<parallel>" .
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   499
      qed
13547
wenzelm
parents: 13515
diff changeset
   500
      show "0 \<le> \<parallel>g\<parallel>\<hyphen>E"
15206
09d78ec709c7 Modified locales: improved implementation of "includes".
ballarin
parents: 14710
diff changeset
   501
	using g_cont
13547
wenzelm
parents: 13515
diff changeset
   502
	by (rule fn_norm_ge_zero [of g, folded B_def fn_norm_def])
23378
1d138d6bb461 tuned proofs: avoid implicit prems;
wenzelm
parents: 19984
diff changeset
   503
      show "continuous F norm f" by fact
10687
c186279eecea tuned HOL/Real/HahnBanach;
wenzelm
parents: 10387
diff changeset
   504
    qed
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   505
  qed
13547
wenzelm
parents: 13515
diff changeset
   506
  with linearformE a g_cont show ?thesis by blast
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   507
qed
9374
153853af318b - xsymbols for
bauerg
parents: 9261
diff changeset
   508
9475
b24516d96847 adapted obtain;
wenzelm
parents: 9394
diff changeset
   509
end