src/HOL/Multivariate_Analysis/Operator_Norm.thy
author hoelzl
Fri, 14 Dec 2012 15:46:01 +0100
changeset 50526 899c9c4e4a4c
parent 44133 691c52e900ca
child 51475 ebf9d4fd00ba
permissions -rw-r--r--
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
41959
b460124855b8 tuned headers;
wenzelm
parents: 38642
diff changeset
     1
(*  Title:      HOL/Multivariate_Analysis/Operator_Norm.thy
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
     2
    Author:     Amine Chaieb, University of Cambridge
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
     3
*)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
     4
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
     5
header {* Operator Norm *}
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
     6
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
     7
theory Operator_Norm
44133
691c52e900ca split Linear_Algebra.thy from Euclidean_Space.thy
huffman
parents: 41959
diff changeset
     8
imports Linear_Algebra
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
     9
begin
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    10
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    11
definition "onorm f = Sup {norm (f x)| x. norm x = 1}"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    12
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    13
lemma norm_bound_generalize:
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
    14
  fixes f:: "'a::euclidean_space \<Rightarrow> 'b::euclidean_space"
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    15
  assumes lf: "linear f"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    16
  shows "(\<forall>x. norm x = 1 \<longrightarrow> norm (f x) \<le> b) \<longleftrightarrow> (\<forall>x. norm (f x) \<le> b * norm x)" (is "?lhs \<longleftrightarrow> ?rhs")
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    17
proof-
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    18
  {assume H: ?rhs
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
    19
    {fix x :: "'a" assume x: "norm x = 1"
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    20
      from H[rule_format, of x] x have "norm (f x) \<le> b" by simp}
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    21
    then have ?lhs by blast }
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    22
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    23
  moreover
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    24
  {assume H: ?lhs
50526
899c9c4e4a4c Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents: 44133
diff changeset
    25
    have bp: "b \<ge> 0"
899c9c4e4a4c Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents: 44133
diff changeset
    26
      apply -
899c9c4e4a4c Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents: 44133
diff changeset
    27
      apply(rule order_trans [OF norm_ge_zero])
899c9c4e4a4c Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents: 44133
diff changeset
    28
      apply(rule H[rule_format, of "SOME x::'a. x \<in> Basis"])
899c9c4e4a4c Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents: 44133
diff changeset
    29
      by (auto intro: SOME_Basis norm_Basis)
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
    30
    {fix x :: "'a"
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    31
      {assume "x = 0"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    32
        then have "norm (f x) \<le> b * norm x" by (simp add: linear_0[OF lf] bp)}
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    33
      moreover
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    34
      {assume x0: "x \<noteq> 0"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    35
        hence n0: "norm x \<noteq> 0" by (metis norm_eq_zero)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    36
        let ?c = "1/ norm x"
36593
fb69c8cd27bd define linear algebra concepts using scaleR instead of (op *s); generalized many lemmas, though a few theorems that used to work on type int^'n are a bit less general
huffman
parents: 36581
diff changeset
    37
        have "norm (?c *\<^sub>R x) = 1" using x0 by (simp add: n0)
fb69c8cd27bd define linear algebra concepts using scaleR instead of (op *s); generalized many lemmas, though a few theorems that used to work on type int^'n are a bit less general
huffman
parents: 36581
diff changeset
    38
        with H have "norm (f (?c *\<^sub>R x)) \<le> b" by blast
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    39
        hence "?c * norm (f x) \<le> b"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    40
          by (simp add: linear_cmul[OF lf])
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    41
        hence "norm (f x) \<le> b * norm x"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    42
          using n0 norm_ge_zero[of x] by (auto simp add: field_simps)}
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    43
      ultimately have "norm (f x) \<le> b * norm x" by blast}
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    44
    then have ?rhs by blast}
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    45
  ultimately show ?thesis by blast
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    46
qed
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
    47
 
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    48
lemma onorm:
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
    49
  fixes f:: "'a::euclidean_space \<Rightarrow> 'b::euclidean_space"
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    50
  assumes lf: "linear f"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    51
  shows "norm (f x) <= onorm f * norm x"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    52
  and "\<forall>x. norm (f x) <= b * norm x \<Longrightarrow> onorm f <= b"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    53
proof-
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    54
  {
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    55
    let ?S = "{norm (f x) |x. norm x = 1}"
50526
899c9c4e4a4c Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents: 44133
diff changeset
    56
    have "norm (f (SOME i. i \<in> Basis)) \<in> ?S"
899c9c4e4a4c Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents: 44133
diff changeset
    57
      by (auto intro!: exI[of _ "SOME i. i \<in> Basis"] norm_Basis SOME_Basis)
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
    58
    hence Se: "?S \<noteq> {}" by auto
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    59
    from linear_bounded[OF lf] have b: "\<exists> b. ?S *<= b"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    60
      unfolding norm_bound_generalize[OF lf, symmetric] by (auto simp add: setle_def)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    61
    {from Sup[OF Se b, unfolded onorm_def[symmetric]]
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    62
      show "norm (f x) <= onorm f * norm x"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    63
        apply -
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    64
        apply (rule spec[where x = x])
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    65
        unfolding norm_bound_generalize[OF lf, symmetric]
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    66
        by (auto simp add: isLub_def isUb_def leastP_def setge_def setle_def)}
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    67
    {
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    68
      show "\<forall>x. norm (f x) <= b * norm x \<Longrightarrow> onorm f <= b"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    69
        using Sup[OF Se b, unfolded onorm_def[symmetric]]
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    70
        unfolding norm_bound_generalize[OF lf, symmetric]
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    71
        by (auto simp add: isLub_def isUb_def leastP_def setge_def setle_def)}
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    72
  }
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    73
qed
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    74
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
    75
lemma onorm_pos_le: assumes lf: "linear (f::'n::euclidean_space \<Rightarrow> 'm::euclidean_space)" shows "0 <= onorm f"
50526
899c9c4e4a4c Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents: 44133
diff changeset
    76
  using order_trans[OF norm_ge_zero onorm(1)[OF lf, of "SOME i. i \<in> Basis"]] 
899c9c4e4a4c Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents: 44133
diff changeset
    77
  by (simp add: SOME_Basis)
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    78
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
    79
lemma onorm_eq_0: assumes lf: "linear (f::'a::euclidean_space \<Rightarrow> 'b::euclidean_space)"
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    80
  shows "onorm f = 0 \<longleftrightarrow> (\<forall>x. f x = 0)"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    81
  using onorm[OF lf]
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    82
  apply (auto simp add: onorm_pos_le)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    83
  apply atomize
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    84
  apply (erule allE[where x="0::real"])
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    85
  using onorm_pos_le[OF lf]
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    86
  apply arith
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    87
  done
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    88
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
    89
lemma onorm_const: "onorm(\<lambda>x::'a::euclidean_space. (y::'b::euclidean_space)) = norm y"
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    90
proof-
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
    91
  let ?f = "\<lambda>x::'a. (y::'b)"
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    92
  have th: "{norm (?f x)| x. norm x = 1} = {norm y}"
50526
899c9c4e4a4c Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents: 44133
diff changeset
    93
    by (auto simp: SOME_Basis intro!: exI[of _ "SOME i. i \<in> Basis"])
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    94
  show ?thesis
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    95
    unfolding onorm_def th
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    96
    apply (rule Sup_unique) by (simp_all  add: setle_def)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    97
qed
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
    98
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
    99
lemma onorm_pos_lt: assumes lf: "linear (f::'a::euclidean_space \<Rightarrow> 'b::euclidean_space)"
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   100
  shows "0 < onorm f \<longleftrightarrow> ~(\<forall>x. f x = 0)"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   101
  unfolding onorm_eq_0[OF lf, symmetric]
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   102
  using onorm_pos_le[OF lf] by arith
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   103
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   104
lemma onorm_compose:
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
   105
  assumes lf: "linear (f::'n::euclidean_space \<Rightarrow> 'm::euclidean_space)"
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
   106
  and lg: "linear (g::'k::euclidean_space \<Rightarrow> 'n::euclidean_space)"
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   107
  shows "onorm (f o g) <= onorm f * onorm g"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   108
  apply (rule onorm(2)[OF linear_compose[OF lg lf], rule_format])
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   109
  unfolding o_def
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   110
  apply (subst mult_assoc)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   111
  apply (rule order_trans)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   112
  apply (rule onorm(1)[OF lf])
38642
8fa437809c67 dropped type classes mult_mono and mult_mono1; tuned names of technical rule duplicates
haftmann
parents: 37489
diff changeset
   113
  apply (rule mult_left_mono)
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   114
  apply (rule onorm(1)[OF lg])
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   115
  apply (rule onorm_pos_le[OF lf])
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   116
  done
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   117
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
   118
lemma onorm_neg_lemma: assumes lf: "linear (f::'a::euclidean_space \<Rightarrow> 'b::euclidean_space)"
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   119
  shows "onorm (\<lambda>x. - f x) \<le> onorm f"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   120
  using onorm[OF linear_compose_neg[OF lf]] onorm[OF lf]
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   121
  unfolding norm_minus_cancel by metis
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   122
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
   123
lemma onorm_neg: assumes lf: "linear (f::'a::euclidean_space \<Rightarrow> 'b::euclidean_space)"
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   124
  shows "onorm (\<lambda>x. - f x) = onorm f"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   125
  using onorm_neg_lemma[OF lf] onorm_neg_lemma[OF linear_compose_neg[OF lf]]
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   126
  by simp
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   127
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   128
lemma onorm_triangle:
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
   129
  assumes lf: "linear (f::'n::euclidean_space \<Rightarrow> 'm::euclidean_space)" and lg: "linear g"
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   130
  shows "onorm (\<lambda>x. f x + g x) <= onorm f + onorm g"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   131
  apply(rule onorm(2)[OF linear_compose_add[OF lf lg], rule_format])
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   132
  apply (rule order_trans)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   133
  apply (rule norm_triangle_ineq)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   134
  apply (simp add: distrib)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   135
  apply (rule add_mono)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   136
  apply (rule onorm(1)[OF lf])
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   137
  apply (rule onorm(1)[OF lg])
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   138
  done
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   139
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
   140
lemma onorm_triangle_le: "linear (f::'n::euclidean_space \<Rightarrow> 'm::euclidean_space) \<Longrightarrow> linear g \<Longrightarrow> onorm(f) + onorm(g) <= e
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   141
  \<Longrightarrow> onorm(\<lambda>x. f x + g x) <= e"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   142
  apply (rule order_trans)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   143
  apply (rule onorm_triangle)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   144
  apply assumption+
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   145
  done
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   146
37489
44e42d392c6e Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents: 36593
diff changeset
   147
lemma onorm_triangle_lt: "linear (f::'n::euclidean_space \<Rightarrow> 'm::euclidean_space) \<Longrightarrow> linear g \<Longrightarrow> onorm(f) + onorm(g) < e
36581
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   148
  ==> onorm(\<lambda>x. f x + g x) < e"
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   149
  apply (rule order_le_less_trans)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   150
  apply (rule onorm_triangle)
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   151
  by assumption+
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   152
bbea7f52e8e1 move operator norm stuff to new theory file
huffman
parents:
diff changeset
   153
end