author | wenzelm |
Mon, 28 Dec 2015 01:26:34 +0100 | |
changeset 61944 | 5d06ecfdb472 |
parent 61810 | 3c5040d5694a |
child 61969 | e01015e49041 |
permissions | -rw-r--r-- |
60812 | 1 |
(* Title: HOL/Multivariate_Analysis/Uniform_Limit.thy |
2 |
Author: Christoph Traut, TU München |
|
3 |
Author: Fabian Immler, TU München |
|
4 |
*) |
|
5 |
||
6 |
section \<open>Uniform Limit and Uniform Convergence\<close> |
|
7 |
||
8 |
theory Uniform_Limit |
|
9 |
imports Topology_Euclidean_Space |
|
10 |
begin |
|
11 |
||
12 |
definition uniformly_on :: "'a set \<Rightarrow> ('a \<Rightarrow> 'b::metric_space) \<Rightarrow> ('a \<Rightarrow> 'b) filter" |
|
13 |
where "uniformly_on S l = (INF e:{0 <..}. principal {f. \<forall>x\<in>S. dist (f x) (l x) < e})" |
|
14 |
||
15 |
abbreviation |
|
16 |
"uniform_limit S f l \<equiv> filterlim f (uniformly_on S l)" |
|
17 |
||
61531
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
18 |
definition uniformly_convergent_on where |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
19 |
"uniformly_convergent_on X f \<longleftrightarrow> (\<exists>l. uniform_limit X f l sequentially)" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
20 |
|
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
21 |
definition uniformly_Cauchy_on where |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
22 |
"uniformly_Cauchy_on X f \<longleftrightarrow> (\<forall>e>0. \<exists>M. \<forall>x\<in>X. \<forall>(m::nat)\<ge>M. \<forall>n\<ge>M. dist (f m x) (f n x) < e)" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
23 |
|
60812 | 24 |
lemma uniform_limit_iff: |
25 |
"uniform_limit S f l F \<longleftrightarrow> (\<forall>e>0. \<forall>\<^sub>F n in F. \<forall>x\<in>S. dist (f n x) (l x) < e)" |
|
26 |
unfolding filterlim_iff uniformly_on_def |
|
27 |
by (subst eventually_INF_base) |
|
28 |
(fastforce |
|
29 |
simp: eventually_principal uniformly_on_def |
|
30 |
intro: bexI[where x="min a b" for a b] |
|
61810 | 31 |
elim: eventually_mono)+ |
60812 | 32 |
|
33 |
lemma uniform_limitD: |
|
34 |
"uniform_limit S f l F \<Longrightarrow> e > 0 \<Longrightarrow> \<forall>\<^sub>F n in F. \<forall>x\<in>S. dist (f n x) (l x) < e" |
|
35 |
by (simp add: uniform_limit_iff) |
|
36 |
||
37 |
lemma uniform_limitI: |
|
38 |
"(\<And>e. e > 0 \<Longrightarrow> \<forall>\<^sub>F n in F. \<forall>x\<in>S. dist (f n x) (l x) < e) \<Longrightarrow> uniform_limit S f l F" |
|
39 |
by (simp add: uniform_limit_iff) |
|
40 |
||
41 |
lemma uniform_limit_sequentially_iff: |
|
42 |
"uniform_limit S f l sequentially \<longleftrightarrow> (\<forall>e>0. \<exists>N. \<forall>n\<ge>N. \<forall>x \<in> S. dist (f n x) (l x) < e)" |
|
43 |
unfolding uniform_limit_iff eventually_sequentially .. |
|
44 |
||
45 |
lemma uniform_limit_at_iff: |
|
46 |
"uniform_limit S f l (at x) \<longleftrightarrow> |
|
47 |
(\<forall>e>0. \<exists>d>0. \<forall>z. 0 < dist z x \<and> dist z x < d \<longrightarrow> (\<forall>x\<in>S. dist (f z x) (l x) < e))" |
|
48 |
unfolding uniform_limit_iff eventually_at2 .. |
|
49 |
||
50 |
lemma uniform_limit_at_le_iff: |
|
51 |
"uniform_limit S f l (at x) \<longleftrightarrow> |
|
52 |
(\<forall>e>0. \<exists>d>0. \<forall>z. 0 < dist z x \<and> dist z x < d \<longrightarrow> (\<forall>x\<in>S. dist (f z x) (l x) \<le> e))" |
|
53 |
unfolding uniform_limit_iff eventually_at2 |
|
54 |
by (fastforce dest: spec[where x = "e / 2" for e]) |
|
55 |
||
56 |
lemma swap_uniform_limit: |
|
57 |
assumes f: "\<forall>\<^sub>F n in F. (f n ---> g n) (at x within S)" |
|
58 |
assumes g: "(g ---> l) F" |
|
59 |
assumes uc: "uniform_limit S f h F" |
|
60 |
assumes "\<not>trivial_limit F" |
|
61 |
shows "(h ---> l) (at x within S)" |
|
62 |
proof (rule tendstoI) |
|
63 |
fix e :: real |
|
64 |
def e' \<equiv> "e/3" |
|
65 |
assume "0 < e" |
|
66 |
then have "0 < e'" by (simp add: e'_def) |
|
61222 | 67 |
from uniform_limitD[OF uc \<open>0 < e'\<close>] |
60812 | 68 |
have "\<forall>\<^sub>F n in F. \<forall>x\<in>S. dist (h x) (f n x) < e'" |
69 |
by (simp add: dist_commute) |
|
70 |
moreover |
|
71 |
from f |
|
72 |
have "\<forall>\<^sub>F n in F. \<forall>\<^sub>F x in at x within S. dist (g n) (f n x) < e'" |
|
61222 | 73 |
by eventually_elim (auto dest!: tendstoD[OF _ \<open>0 < e'\<close>] simp: dist_commute) |
60812 | 74 |
moreover |
61222 | 75 |
from tendstoD[OF g \<open>0 < e'\<close>] have "\<forall>\<^sub>F x in F. dist l (g x) < e'" |
60812 | 76 |
by (simp add: dist_commute) |
77 |
ultimately |
|
78 |
have "\<forall>\<^sub>F _ in F. \<forall>\<^sub>F x in at x within S. dist (h x) l < e" |
|
79 |
proof eventually_elim |
|
80 |
case (elim n) |
|
81 |
note fh = elim(1) |
|
82 |
note gl = elim(3) |
|
83 |
have "\<forall>\<^sub>F x in at x within S. x \<in> S" |
|
84 |
by (auto simp: eventually_at_filter) |
|
85 |
with elim(2) |
|
86 |
show ?case |
|
87 |
proof eventually_elim |
|
88 |
case (elim x) |
|
61222 | 89 |
from fh[rule_format, OF \<open>x \<in> S\<close>] elim(1) |
60812 | 90 |
have "dist (h x) (g n) < e' + e'" |
91 |
by (rule dist_triangle_lt[OF add_strict_mono]) |
|
92 |
from dist_triangle_lt[OF add_strict_mono, OF this gl] |
|
93 |
show ?case by (simp add: e'_def) |
|
94 |
qed |
|
95 |
qed |
|
96 |
thus "\<forall>\<^sub>F x in at x within S. dist (h x) l < e" |
|
61222 | 97 |
using eventually_happens by (metis \<open>\<not>trivial_limit F\<close>) |
60812 | 98 |
qed |
99 |
||
100 |
lemma |
|
101 |
tendsto_uniform_limitI: |
|
102 |
assumes "uniform_limit S f l F" |
|
103 |
assumes "x \<in> S" |
|
104 |
shows "((\<lambda>y. f y x) ---> l x) F" |
|
105 |
using assms |
|
61810 | 106 |
by (auto intro!: tendstoI simp: eventually_mono dest!: uniform_limitD) |
60812 | 107 |
|
108 |
lemma uniform_limit_theorem: |
|
109 |
assumes c: "\<forall>\<^sub>F n in F. continuous_on A (f n)" |
|
110 |
assumes ul: "uniform_limit A f l F" |
|
111 |
assumes "\<not> trivial_limit F" |
|
112 |
shows "continuous_on A l" |
|
113 |
unfolding continuous_on_def |
|
114 |
proof safe |
|
115 |
fix x assume "x \<in> A" |
|
116 |
then have "\<forall>\<^sub>F n in F. (f n ---> f n x) (at x within A)" "((\<lambda>n. f n x) ---> l x) F" |
|
117 |
using c ul |
|
61810 | 118 |
by (auto simp: continuous_on_def eventually_mono tendsto_uniform_limitI) |
60812 | 119 |
then show "(l ---> l x) (at x within A)" |
120 |
by (rule swap_uniform_limit) fact+ |
|
121 |
qed |
|
122 |
||
61531
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
123 |
lemma uniformly_Cauchy_onI: |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
124 |
assumes "\<And>e. e > 0 \<Longrightarrow> \<exists>M. \<forall>x\<in>X. \<forall>m\<ge>M. \<forall>n\<ge>M. dist (f m x) (f n x) < e" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
125 |
shows "uniformly_Cauchy_on X f" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
126 |
using assms unfolding uniformly_Cauchy_on_def by blast |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
127 |
|
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
128 |
lemma uniformly_Cauchy_onI': |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
129 |
assumes "\<And>e. e > 0 \<Longrightarrow> \<exists>M. \<forall>x\<in>X. \<forall>m\<ge>M. \<forall>n>m. dist (f m x) (f n x) < e" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
130 |
shows "uniformly_Cauchy_on X f" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
131 |
proof (rule uniformly_Cauchy_onI) |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
132 |
fix e :: real assume e: "e > 0" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
133 |
from assms[OF this] obtain M |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
134 |
where M: "\<And>x m n. x \<in> X \<Longrightarrow> m \<ge> M \<Longrightarrow> n > m \<Longrightarrow> dist (f m x) (f n x) < e" by fast |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
135 |
{ |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
136 |
fix x m n assume x: "x \<in> X" and m: "m \<ge> M" and n: "n \<ge> M" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
137 |
with M[OF this(1,2), of n] M[OF this(1,3), of m] e have "dist (f m x) (f n x) < e" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
138 |
by (cases m n rule: linorder_cases) (simp_all add: dist_commute) |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
139 |
} |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
140 |
thus "\<exists>M. \<forall>x\<in>X. \<forall>m\<ge>M. \<forall>n\<ge>M. dist (f m x) (f n x) < e" by fast |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
141 |
qed |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
142 |
|
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
143 |
lemma uniformly_Cauchy_imp_Cauchy: |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
144 |
"uniformly_Cauchy_on X f \<Longrightarrow> x \<in> X \<Longrightarrow> Cauchy (\<lambda>n. f n x)" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
145 |
unfolding Cauchy_def uniformly_Cauchy_on_def by fast |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
146 |
|
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
147 |
lemma uniform_limit_cong: |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
148 |
fixes f g :: "'a \<Rightarrow> 'b \<Rightarrow> ('c :: metric_space)" and h i :: "'b \<Rightarrow> 'c" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
149 |
assumes "eventually (\<lambda>y. \<forall>x\<in>X. f y x = g y x) F" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
150 |
assumes "\<And>x. x \<in> X \<Longrightarrow> h x = i x" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
151 |
shows "uniform_limit X f h F \<longleftrightarrow> uniform_limit X g i F" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
152 |
proof - |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
153 |
{ |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
154 |
fix f g :: "'a \<Rightarrow> 'b \<Rightarrow> 'c" and h i :: "'b \<Rightarrow> 'c" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
155 |
assume C: "uniform_limit X f h F" and A: "eventually (\<lambda>y. \<forall>x\<in>X. f y x = g y x) F" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
156 |
and B: "\<And>x. x \<in> X \<Longrightarrow> h x = i x" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
157 |
{ |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
158 |
fix e ::real assume "e > 0" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
159 |
with C have "eventually (\<lambda>y. \<forall>x\<in>X. dist (f y x) (h x) < e) F" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
160 |
unfolding uniform_limit_iff by blast |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
161 |
with A have "eventually (\<lambda>y. \<forall>x\<in>X. dist (g y x) (i x) < e) F" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
162 |
by eventually_elim (insert B, simp_all) |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
163 |
} |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
164 |
hence "uniform_limit X g i F" unfolding uniform_limit_iff by blast |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
165 |
} note A = this |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
166 |
show ?thesis by (rule iffI) (erule A; insert assms; simp add: eq_commute)+ |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
167 |
qed |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
168 |
|
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
169 |
lemma uniform_limit_cong': |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
170 |
fixes f g :: "'a \<Rightarrow> 'b \<Rightarrow> ('c :: metric_space)" and h i :: "'b \<Rightarrow> 'c" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
171 |
assumes "\<And>y x. x \<in> X \<Longrightarrow> f y x = g y x" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
172 |
assumes "\<And>x. x \<in> X \<Longrightarrow> h x = i x" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
173 |
shows "uniform_limit X f h F \<longleftrightarrow> uniform_limit X g i F" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
174 |
using assms by (intro uniform_limit_cong always_eventually) blast+ |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
175 |
|
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
176 |
lemma uniformly_convergent_uniform_limit_iff: |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
177 |
"uniformly_convergent_on X f \<longleftrightarrow> uniform_limit X f (\<lambda>x. lim (\<lambda>n. f n x)) sequentially" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
178 |
proof |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
179 |
assume "uniformly_convergent_on X f" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
180 |
then obtain l where l: "uniform_limit X f l sequentially" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
181 |
unfolding uniformly_convergent_on_def by blast |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
182 |
from l have "uniform_limit X f (\<lambda>x. lim (\<lambda>n. f n x)) sequentially \<longleftrightarrow> |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
183 |
uniform_limit X f l sequentially" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
184 |
by (intro uniform_limit_cong' limI tendsto_uniform_limitI[of f X l]) simp_all |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
185 |
also note l |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
186 |
finally show "uniform_limit X f (\<lambda>x. lim (\<lambda>n. f n x)) sequentially" . |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
187 |
qed (auto simp: uniformly_convergent_on_def) |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
188 |
|
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
189 |
lemma uniformly_convergentI: "uniform_limit X f l sequentially \<Longrightarrow> uniformly_convergent_on X f" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
190 |
unfolding uniformly_convergent_on_def by blast |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
191 |
|
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
192 |
lemma Cauchy_uniformly_convergent: |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
193 |
fixes f :: "nat \<Rightarrow> 'a \<Rightarrow> 'b :: complete_space" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
194 |
assumes "uniformly_Cauchy_on X f" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
195 |
shows "uniformly_convergent_on X f" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
196 |
unfolding uniformly_convergent_uniform_limit_iff uniform_limit_iff |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
197 |
proof safe |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
198 |
let ?f = "\<lambda>x. lim (\<lambda>n. f n x)" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
199 |
fix e :: real assume e: "e > 0" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
200 |
hence "e/2 > 0" by simp |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
201 |
with assms obtain N where N: "\<And>x m n. x \<in> X \<Longrightarrow> m \<ge> N \<Longrightarrow> n \<ge> N \<Longrightarrow> dist (f m x) (f n x) < e/2" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
202 |
unfolding uniformly_Cauchy_on_def by fast |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
203 |
show "eventually (\<lambda>n. \<forall>x\<in>X. dist (f n x) (?f x) < e) sequentially" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
204 |
using eventually_ge_at_top[of N] |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
205 |
proof eventually_elim |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
206 |
fix n assume n: "n \<ge> N" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
207 |
show "\<forall>x\<in>X. dist (f n x) (?f x) < e" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
208 |
proof |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
209 |
fix x assume x: "x \<in> X" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
210 |
with assms have "(\<lambda>n. f n x) ----> ?f x" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
211 |
by (auto dest!: Cauchy_convergent uniformly_Cauchy_imp_Cauchy simp: convergent_LIMSEQ_iff) |
61808 | 212 |
with \<open>e/2 > 0\<close> have "eventually (\<lambda>m. m \<ge> N \<and> dist (f m x) (?f x) < e/2) sequentially" |
61531
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
213 |
by (intro tendstoD eventually_conj eventually_ge_at_top) |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
214 |
then obtain m where m: "m \<ge> N" "dist (f m x) (?f x) < e/2" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
215 |
unfolding eventually_at_top_linorder by blast |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
216 |
have "dist (f n x) (?f x) \<le> dist (f n x) (f m x) + dist (f m x) (?f x)" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
217 |
by (rule dist_triangle) |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
218 |
also from x n have "... < e/2 + e/2" by (intro add_strict_mono N m) |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
219 |
finally show "dist (f n x) (?f x) < e" by simp |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
220 |
qed |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
221 |
qed |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
222 |
qed |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
223 |
|
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
224 |
lemma uniformly_convergent_imp_convergent: |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
225 |
"uniformly_convergent_on X f \<Longrightarrow> x \<in> X \<Longrightarrow> convergent (\<lambda>n. f n x)" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
226 |
unfolding uniformly_convergent_on_def convergent_def |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
227 |
by (auto dest: tendsto_uniform_limitI) |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
228 |
|
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
229 |
lemma weierstrass_m_test_ev: |
60812 | 230 |
fixes f :: "_ \<Rightarrow> _ \<Rightarrow> _ :: banach" |
61531
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
231 |
assumes "eventually (\<lambda>n. \<forall>x\<in>A. norm (f n x) \<le> M n) sequentially" |
60812 | 232 |
assumes "summable M" |
233 |
shows "uniform_limit A (\<lambda>n x. \<Sum>i<n. f i x) (\<lambda>x. suminf (\<lambda>i. f i x)) sequentially" |
|
234 |
proof (rule uniform_limitI) |
|
235 |
fix e :: real |
|
236 |
assume "0 < e" |
|
61222 | 237 |
from suminf_exist_split[OF \<open>0 < e\<close> \<open>summable M\<close>] |
60812 | 238 |
have "\<forall>\<^sub>F k in sequentially. norm (\<Sum>i. M (i + k)) < e" |
239 |
by (auto simp: eventually_sequentially) |
|
61531
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
240 |
with eventually_all_ge_at_top[OF assms(1)] |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
241 |
show "\<forall>\<^sub>F n in sequentially. \<forall>x\<in>A. dist (\<Sum>i<n. f i x) (\<Sum>i. f i x) < e" |
60812 | 242 |
proof eventually_elim |
243 |
case (elim k) |
|
244 |
show ?case |
|
245 |
proof safe |
|
246 |
fix x assume "x \<in> A" |
|
247 |
have "\<exists>N. \<forall>n\<ge>N. norm (f n x) \<le> M n" |
|
61531
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
248 |
using assms(1) \<open>x \<in> A\<close> by (force simp: eventually_at_top_linorder) |
60812 | 249 |
hence summable_norm_f: "summable (\<lambda>n. norm (f n x))" |
61222 | 250 |
by(rule summable_norm_comparison_test[OF _ \<open>summable M\<close>]) |
60812 | 251 |
have summable_f: "summable (\<lambda>n. f n x)" |
252 |
using summable_norm_cancel[OF summable_norm_f] . |
|
253 |
have summable_norm_f_plus_k: "summable (\<lambda>i. norm (f (i + k) x))" |
|
254 |
using summable_ignore_initial_segment[OF summable_norm_f] |
|
255 |
by auto |
|
256 |
have summable_M_plus_k: "summable (\<lambda>i. M (i + k))" |
|
61222 | 257 |
using summable_ignore_initial_segment[OF \<open>summable M\<close>] |
60812 | 258 |
by auto |
259 |
||
260 |
have "dist (\<Sum>i<k. f i x) (\<Sum>i. f i x) = norm ((\<Sum>i. f i x) - (\<Sum>i<k. f i x))" |
|
261 |
using dist_norm dist_commute by (subst dist_commute) |
|
262 |
also have "... = norm (\<Sum>i. f (i + k) x)" |
|
263 |
using suminf_minus_initial_segment[OF summable_f, where k=k] by simp |
|
264 |
also have "... \<le> (\<Sum>i. norm (f (i + k) x))" |
|
265 |
using summable_norm[OF summable_norm_f_plus_k] . |
|
266 |
also have "... \<le> (\<Sum>i. M (i + k))" |
|
267 |
by (rule suminf_le[OF _ summable_norm_f_plus_k summable_M_plus_k]) |
|
61531
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
268 |
(insert elim(1) \<open>x \<in> A\<close>, simp) |
60812 | 269 |
finally show "dist (\<Sum>i<k. f i x) (\<Sum>i. f i x) < e" |
270 |
using elim by auto |
|
271 |
qed |
|
272 |
qed |
|
273 |
qed |
|
274 |
||
61531
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
275 |
lemma weierstrass_m_test: |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
276 |
fixes f :: "_ \<Rightarrow> _ \<Rightarrow> _ :: banach" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
277 |
assumes "\<And>n x. x \<in> A \<Longrightarrow> norm (f n x) \<le> M n" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
278 |
assumes "summable M" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
279 |
shows "uniform_limit A (\<lambda>n x. \<Sum>i<n. f i x) (\<lambda>x. suminf (\<lambda>i. f i x)) sequentially" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
280 |
using assms by (intro weierstrass_m_test_ev always_eventually) auto |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
281 |
|
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
282 |
lemma weierstrass_m_test'_ev: |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
283 |
fixes f :: "_ \<Rightarrow> _ \<Rightarrow> _ :: banach" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
284 |
assumes "eventually (\<lambda>n. \<forall>x\<in>A. norm (f n x) \<le> M n) sequentially" "summable M" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
285 |
shows "uniformly_convergent_on A (\<lambda>n x. \<Sum>i<n. f i x)" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
286 |
unfolding uniformly_convergent_on_def by (rule exI, rule weierstrass_m_test_ev[OF assms]) |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
287 |
|
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
288 |
lemma weierstrass_m_test': |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
289 |
fixes f :: "_ \<Rightarrow> _ \<Rightarrow> _ :: banach" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
290 |
assumes "\<And>n x. x \<in> A \<Longrightarrow> norm (f n x) \<le> M n" "summable M" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
291 |
shows "uniformly_convergent_on A (\<lambda>n x. \<Sum>i<n. f i x)" |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
292 |
unfolding uniformly_convergent_on_def by (rule exI, rule weierstrass_m_test[OF assms]) |
ab2e862263e7
Rounding function, uniform limits, cotangent, binomial identities
eberlm
parents:
61222
diff
changeset
|
293 |
|
60812 | 294 |
lemma uniform_limit_eq_rhs: "uniform_limit X f l F \<Longrightarrow> l = m \<Longrightarrow> uniform_limit X f m F" |
295 |
by simp |
|
296 |
||
297 |
named_theorems uniform_limit_intros "introduction rules for uniform_limit" |
|
61222 | 298 |
setup \<open> |
60812 | 299 |
Global_Theory.add_thms_dynamic (@{binding uniform_limit_eq_intros}, |
300 |
fn context => |
|
301 |
Named_Theorems.get (Context.proof_of context) @{named_theorems uniform_limit_intros} |
|
302 |
|> map_filter (try (fn thm => @{thm uniform_limit_eq_rhs} OF [thm]))) |
|
61222 | 303 |
\<close> |
60812 | 304 |
|
305 |
lemma (in bounded_linear) uniform_limit[uniform_limit_intros]: |
|
306 |
assumes "uniform_limit X g l F" |
|
307 |
shows "uniform_limit X (\<lambda>a b. f (g a b)) (\<lambda>a. f (l a)) F" |
|
308 |
proof (rule uniform_limitI) |
|
309 |
fix e::real |
|
310 |
from pos_bounded obtain K |
|
311 |
where K: "\<And>x y. dist (f x) (f y) \<le> K * dist x y" "K > 0" |
|
312 |
by (auto simp: ac_simps dist_norm diff[symmetric]) |
|
61222 | 313 |
assume "0 < e" with \<open>K > 0\<close> have "e / K > 0" by simp |
60812 | 314 |
from uniform_limitD[OF assms this] |
315 |
show "\<forall>\<^sub>F n in F. \<forall>x\<in>X. dist (f (g n x)) (f (l x)) < e" |
|
316 |
by eventually_elim (metis le_less_trans mult.commute pos_less_divide_eq K) |
|
317 |
qed |
|
318 |
||
319 |
lemmas bounded_linear_uniform_limit_intros[uniform_limit_intros] = |
|
320 |
bounded_linear.uniform_limit[OF bounded_linear_Im] |
|
321 |
bounded_linear.uniform_limit[OF bounded_linear_Re] |
|
322 |
bounded_linear.uniform_limit[OF bounded_linear_cnj] |
|
323 |
bounded_linear.uniform_limit[OF bounded_linear_fst] |
|
324 |
bounded_linear.uniform_limit[OF bounded_linear_snd] |
|
325 |
bounded_linear.uniform_limit[OF bounded_linear_zero] |
|
326 |
bounded_linear.uniform_limit[OF bounded_linear_of_real] |
|
327 |
bounded_linear.uniform_limit[OF bounded_linear_inner_left] |
|
328 |
bounded_linear.uniform_limit[OF bounded_linear_inner_right] |
|
329 |
bounded_linear.uniform_limit[OF bounded_linear_divide] |
|
330 |
bounded_linear.uniform_limit[OF bounded_linear_scaleR_right] |
|
331 |
bounded_linear.uniform_limit[OF bounded_linear_mult_left] |
|
332 |
bounded_linear.uniform_limit[OF bounded_linear_mult_right] |
|
333 |
bounded_linear.uniform_limit[OF bounded_linear_scaleR_left] |
|
334 |
||
335 |
lemmas uniform_limit_uminus[uniform_limit_intros] = |
|
336 |
bounded_linear.uniform_limit[OF bounded_linear_minus[OF bounded_linear_ident]] |
|
337 |
||
338 |
lemma uniform_limit_add[uniform_limit_intros]: |
|
339 |
fixes f g::"'a \<Rightarrow> 'b \<Rightarrow> 'c::real_normed_vector" |
|
340 |
assumes "uniform_limit X f l F" |
|
341 |
assumes "uniform_limit X g m F" |
|
342 |
shows "uniform_limit X (\<lambda>a b. f a b + g a b) (\<lambda>a. l a + m a) F" |
|
343 |
proof (rule uniform_limitI) |
|
344 |
fix e::real |
|
345 |
assume "0 < e" |
|
346 |
hence "0 < e / 2" by simp |
|
347 |
from |
|
348 |
uniform_limitD[OF assms(1) this] |
|
349 |
uniform_limitD[OF assms(2) this] |
|
350 |
show "\<forall>\<^sub>F n in F. \<forall>x\<in>X. dist (f n x + g n x) (l x + m x) < e" |
|
351 |
by eventually_elim (simp add: dist_triangle_add_half) |
|
352 |
qed |
|
353 |
||
354 |
lemma uniform_limit_minus[uniform_limit_intros]: |
|
355 |
fixes f g::"'a \<Rightarrow> 'b \<Rightarrow> 'c::real_normed_vector" |
|
356 |
assumes "uniform_limit X f l F" |
|
357 |
assumes "uniform_limit X g m F" |
|
358 |
shows "uniform_limit X (\<lambda>a b. f a b - g a b) (\<lambda>a. l a - m a) F" |
|
359 |
unfolding diff_conv_add_uminus |
|
360 |
by (rule uniform_limit_intros assms)+ |
|
361 |
||
362 |
lemma (in bounded_bilinear) bounded_uniform_limit[uniform_limit_intros]: |
|
363 |
assumes "uniform_limit X f l F" |
|
364 |
assumes "uniform_limit X g m F" |
|
365 |
assumes "bounded (m ` X)" |
|
366 |
assumes "bounded (l ` X)" |
|
367 |
shows "uniform_limit X (\<lambda>a b. prod (f a b) (g a b)) (\<lambda>a. prod (l a) (m a)) F" |
|
368 |
proof (rule uniform_limitI) |
|
369 |
fix e::real |
|
370 |
from pos_bounded obtain K where K: |
|
371 |
"0 < K" "\<And>a b. norm (prod a b) \<le> norm a * norm b * K" |
|
372 |
by auto |
|
373 |
hence "sqrt (K*4) > 0" by simp |
|
374 |
||
375 |
from assms obtain Km Kl |
|
376 |
where Km: "Km > 0" "\<And>x. x \<in> X \<Longrightarrow> norm (m x) \<le> Km" |
|
377 |
and Kl: "Kl > 0" "\<And>x. x \<in> X \<Longrightarrow> norm (l x) \<le> Kl" |
|
378 |
by (auto simp: bounded_pos) |
|
379 |
hence "K * Km * 4 > 0" "K * Kl * 4 > 0" |
|
61222 | 380 |
using \<open>K > 0\<close> |
60812 | 381 |
by simp_all |
382 |
assume "0 < e" |
|
383 |
||
384 |
hence "sqrt e > 0" by simp |
|
61222 | 385 |
from uniform_limitD[OF assms(1) divide_pos_pos[OF this \<open>sqrt (K*4) > 0\<close>]] |
386 |
uniform_limitD[OF assms(2) divide_pos_pos[OF this \<open>sqrt (K*4) > 0\<close>]] |
|
387 |
uniform_limitD[OF assms(1) divide_pos_pos[OF \<open>e > 0\<close> \<open>K * Km * 4 > 0\<close>]] |
|
388 |
uniform_limitD[OF assms(2) divide_pos_pos[OF \<open>e > 0\<close> \<open>K * Kl * 4 > 0\<close>]] |
|
60812 | 389 |
show "\<forall>\<^sub>F n in F. \<forall>x\<in>X. dist (prod (f n x) (g n x)) (prod (l x) (m x)) < e" |
390 |
proof eventually_elim |
|
391 |
case (elim n) |
|
392 |
show ?case |
|
393 |
proof safe |
|
394 |
fix x assume "x \<in> X" |
|
395 |
have "dist (prod (f n x) (g n x)) (prod (l x) (m x)) \<le> |
|
396 |
norm (prod (f n x - l x) (g n x - m x)) + |
|
397 |
norm (prod (f n x - l x) (m x)) + |
|
398 |
norm (prod (l x) (g n x - m x))" |
|
399 |
by (auto simp: dist_norm prod_diff_prod intro: order_trans norm_triangle_ineq add_mono) |
|
400 |
also note K(2)[of "f n x - l x" "g n x - m x"] |
|
61222 | 401 |
also from elim(1)[THEN bspec, OF \<open>_ \<in> X\<close>, unfolded dist_norm] |
60812 | 402 |
have "norm (f n x - l x) \<le> sqrt e / sqrt (K * 4)" |
403 |
by simp |
|
61222 | 404 |
also from elim(2)[THEN bspec, OF \<open>_ \<in> X\<close>, unfolded dist_norm] |
60812 | 405 |
have "norm (g n x - m x) \<le> sqrt e / sqrt (K * 4)" |
406 |
by simp |
|
407 |
also have "sqrt e / sqrt (K * 4) * (sqrt e / sqrt (K * 4)) * K = e / 4" |
|
61222 | 408 |
using \<open>K > 0\<close> \<open>e > 0\<close> by auto |
60812 | 409 |
also note K(2)[of "f n x - l x" "m x"] |
410 |
also note K(2)[of "l x" "g n x - m x"] |
|
61222 | 411 |
also from elim(3)[THEN bspec, OF \<open>_ \<in> X\<close>, unfolded dist_norm] |
60812 | 412 |
have "norm (f n x - l x) \<le> e / (K * Km * 4)" |
413 |
by simp |
|
61222 | 414 |
also from elim(4)[THEN bspec, OF \<open>_ \<in> X\<close>, unfolded dist_norm] |
60812 | 415 |
have "norm (g n x - m x) \<le> e / (K * Kl * 4)" |
416 |
by simp |
|
61222 | 417 |
also note Kl(2)[OF \<open>_ \<in> X\<close>] |
418 |
also note Km(2)[OF \<open>_ \<in> X\<close>] |
|
60812 | 419 |
also have "e / (K * Km * 4) * Km * K = e / 4" |
61222 | 420 |
using \<open>K > 0\<close> \<open>Km > 0\<close> by simp |
60812 | 421 |
also have " Kl * (e / (K * Kl * 4)) * K = e / 4" |
61222 | 422 |
using \<open>K > 0\<close> \<open>Kl > 0\<close> by simp |
423 |
also have "e / 4 + e / 4 + e / 4 < e" using \<open>e > 0\<close> by simp |
|
60812 | 424 |
finally show "dist (prod (f n x) (g n x)) (prod (l x) (m x)) < e" |
61222 | 425 |
using \<open>K > 0\<close> \<open>Kl > 0\<close> \<open>Km > 0\<close> \<open>e > 0\<close> |
60812 | 426 |
by (simp add: algebra_simps mult_right_mono divide_right_mono) |
427 |
qed |
|
428 |
qed |
|
429 |
qed |
|
430 |
||
431 |
lemmas bounded_bilinear_bounded_uniform_limit_intros[uniform_limit_intros] = |
|
432 |
bounded_bilinear.bounded_uniform_limit[OF Inner_Product.bounded_bilinear_inner] |
|
433 |
bounded_bilinear.bounded_uniform_limit[OF Real_Vector_Spaces.bounded_bilinear_mult] |
|
434 |
bounded_bilinear.bounded_uniform_limit[OF Real_Vector_Spaces.bounded_bilinear_scaleR] |
|
435 |
||
436 |
lemma metric_uniform_limit_imp_uniform_limit: |
|
437 |
assumes f: "uniform_limit S f a F" |
|
438 |
assumes le: "eventually (\<lambda>x. \<forall>y\<in>S. dist (g x y) (b y) \<le> dist (f x y) (a y)) F" |
|
439 |
shows "uniform_limit S g b F" |
|
440 |
proof (rule uniform_limitI) |
|
441 |
fix e :: real assume "0 < e" |
|
442 |
from uniform_limitD[OF f this] le |
|
443 |
show "\<forall>\<^sub>F x in F. \<forall>y\<in>S. dist (g x y) (b y) < e" |
|
444 |
by eventually_elim force |
|
445 |
qed |
|
446 |
||
447 |
lemma uniform_limit_null_comparison: |
|
448 |
assumes "\<forall>\<^sub>F x in F. \<forall>a\<in>S. norm (f x a) \<le> g x a" |
|
449 |
assumes "uniform_limit S g (\<lambda>_. 0) F" |
|
450 |
shows "uniform_limit S f (\<lambda>_. 0) F" |
|
451 |
using assms(2) |
|
452 |
proof (rule metric_uniform_limit_imp_uniform_limit) |
|
453 |
show "\<forall>\<^sub>F x in F. \<forall>y\<in>S. dist (f x y) 0 \<le> dist (g x y) 0" |
|
61810 | 454 |
using assms(1) by (rule eventually_mono) (force simp add: dist_norm) |
60812 | 455 |
qed |
456 |
||
457 |
lemma uniform_limit_on_union: |
|
458 |
"uniform_limit I f g F \<Longrightarrow> uniform_limit J f g F \<Longrightarrow> uniform_limit (I \<union> J) f g F" |
|
459 |
by (auto intro!: uniform_limitI dest!: uniform_limitD elim: eventually_elim2) |
|
460 |
||
461 |
lemma uniform_limit_on_empty: |
|
462 |
"uniform_limit {} f g F" |
|
463 |
by (auto intro!: uniform_limitI) |
|
464 |
||
465 |
lemma uniform_limit_on_UNION: |
|
466 |
assumes "finite S" |
|
467 |
assumes "\<And>s. s \<in> S \<Longrightarrow> uniform_limit (h s) f g F" |
|
468 |
shows "uniform_limit (UNION S h) f g F" |
|
469 |
using assms |
|
470 |
by induct (auto intro: uniform_limit_on_empty uniform_limit_on_union) |
|
471 |
||
472 |
lemma uniform_limit_on_Union: |
|
473 |
assumes "finite I" |
|
474 |
assumes "\<And>J. J \<in> I \<Longrightarrow> uniform_limit J f g F" |
|
475 |
shows "uniform_limit (Union I) f g F" |
|
476 |
by (metis SUP_identity_eq assms uniform_limit_on_UNION) |
|
477 |
||
478 |
lemma uniform_limit_on_subset: |
|
479 |
"uniform_limit J f g F \<Longrightarrow> I \<subseteq> J \<Longrightarrow> uniform_limit I f g F" |
|
61810 | 480 |
by (auto intro!: uniform_limitI dest!: uniform_limitD intro: eventually_mono) |
61552
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
481 |
|
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
482 |
lemma uniformly_convergent_add: |
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
483 |
"uniformly_convergent_on A f \<Longrightarrow> uniformly_convergent_on A g\<Longrightarrow> |
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
484 |
uniformly_convergent_on A (\<lambda>k x. f k x + g k x :: 'a :: {real_normed_algebra})" |
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
485 |
unfolding uniformly_convergent_on_def by (blast dest: uniform_limit_add) |
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
486 |
|
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
487 |
lemma uniformly_convergent_minus: |
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
488 |
"uniformly_convergent_on A f \<Longrightarrow> uniformly_convergent_on A g\<Longrightarrow> |
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
489 |
uniformly_convergent_on A (\<lambda>k x. f k x - g k x :: 'a :: {real_normed_algebra})" |
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
490 |
unfolding uniformly_convergent_on_def by (blast dest: uniform_limit_minus) |
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
491 |
|
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
492 |
lemma uniformly_convergent_mult: |
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
493 |
"uniformly_convergent_on A f \<Longrightarrow> |
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
494 |
uniformly_convergent_on A (\<lambda>k x. c * f k x :: 'a :: {real_normed_algebra})" |
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
495 |
unfolding uniformly_convergent_on_def |
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
496 |
by (blast dest: bounded_linear_uniform_limit_intros(13)) |
980dd46a03fb
Added binomial identities to CONTRIBUTORS; small lemmas on of_int/pochhammer
eberlm
parents:
61531
diff
changeset
|
497 |
|
60812 | 498 |
end |