paulson@13957
|
1 |
(* Title : CLim.thy
|
paulson@13957
|
2 |
Author : Jacques D. Fleuriot
|
paulson@13957
|
3 |
Copyright : 2001 University of Edinburgh
|
paulson@14469
|
4 |
Conversion to Isar and new proofs by Lawrence C Paulson, 2004
|
paulson@13957
|
5 |
*)
|
paulson@13957
|
6 |
|
paulson@14469
|
7 |
header{*Limits, Continuity and Differentiation for Complex Functions*}
|
paulson@14469
|
8 |
|
paulson@14405
|
9 |
theory CLim = CSeries:
|
paulson@14405
|
10 |
|
paulson@14405
|
11 |
(*not in simpset?*)
|
paulson@14405
|
12 |
declare hypreal_epsilon_not_zero [simp]
|
paulson@14405
|
13 |
|
paulson@14405
|
14 |
(*??generalize*)
|
paulson@14405
|
15 |
lemma lemma_complex_mult_inverse_squared [simp]:
|
paulson@14405
|
16 |
"x \<noteq> (0::complex) \<Longrightarrow> (x * inverse(x) ^ 2) = inverse x"
|
paulson@14469
|
17 |
by (simp add: numeral_2_eq_2)
|
paulson@14405
|
18 |
|
paulson@14405
|
19 |
text{*Changing the quantified variable. Install earlier?*}
|
obua@14738
|
20 |
lemma all_shift: "(\<forall>x::'a::comm_ring_1. P x) = (\<forall>x. P (x-a))";
|
paulson@14405
|
21 |
apply auto
|
paulson@14405
|
22 |
apply (drule_tac x="x+a" in spec)
|
paulson@14405
|
23 |
apply (simp add: diff_minus add_assoc)
|
paulson@14405
|
24 |
done
|
paulson@14405
|
25 |
|
paulson@14405
|
26 |
lemma complex_add_minus_iff [simp]: "(x + - a = (0::complex)) = (x=a)"
|
paulson@14405
|
27 |
by (simp add: diff_eq_eq diff_minus [symmetric])
|
paulson@14405
|
28 |
|
paulson@14405
|
29 |
lemma complex_add_eq_0_iff [iff]: "(x+y = (0::complex)) = (y = -x)"
|
paulson@14405
|
30 |
apply auto
|
paulson@14405
|
31 |
apply (drule sym [THEN diff_eq_eq [THEN iffD2]], auto)
|
paulson@14405
|
32 |
done
|
paulson@13957
|
33 |
|
paulson@13957
|
34 |
constdefs
|
paulson@13957
|
35 |
|
paulson@14405
|
36 |
CLIM :: "[complex=>complex,complex,complex] => bool"
|
paulson@13957
|
37 |
("((_)/ -- (_)/ --C> (_))" [60, 0, 60] 60)
|
paulson@13957
|
38 |
"f -- a --C> L ==
|
paulson@14405
|
39 |
\<forall>r. 0 < r -->
|
paulson@14405
|
40 |
(\<exists>s. 0 < s & (\<forall>x. (x \<noteq> a & (cmod(x - a) < s)
|
paulson@13957
|
41 |
--> cmod(f x - L) < r)))"
|
paulson@13957
|
42 |
|
paulson@14405
|
43 |
NSCLIM :: "[complex=>complex,complex,complex] => bool"
|
paulson@13957
|
44 |
("((_)/ -- (_)/ --NSC> (_))" [60, 0, 60] 60)
|
paulson@14405
|
45 |
"f -- a --NSC> L == (\<forall>x. (x \<noteq> hcomplex_of_complex a &
|
paulson@14405
|
46 |
x @c= hcomplex_of_complex a
|
paulson@14405
|
47 |
--> ( *fc* f) x @c= hcomplex_of_complex L))"
|
paulson@13957
|
48 |
|
paulson@13957
|
49 |
(* f: C --> R *)
|
paulson@14405
|
50 |
CRLIM :: "[complex=>real,complex,real] => bool"
|
paulson@13957
|
51 |
("((_)/ -- (_)/ --CR> (_))" [60, 0, 60] 60)
|
paulson@13957
|
52 |
"f -- a --CR> L ==
|
paulson@14405
|
53 |
\<forall>r. 0 < r -->
|
paulson@14405
|
54 |
(\<exists>s. 0 < s & (\<forall>x. (x \<noteq> a & (cmod(x - a) < s)
|
paulson@13957
|
55 |
--> abs(f x - L) < r)))"
|
paulson@13957
|
56 |
|
paulson@14405
|
57 |
NSCRLIM :: "[complex=>real,complex,real] => bool"
|
paulson@13957
|
58 |
("((_)/ -- (_)/ --NSCR> (_))" [60, 0, 60] 60)
|
paulson@14405
|
59 |
"f -- a --NSCR> L == (\<forall>x. (x \<noteq> hcomplex_of_complex a &
|
paulson@14405
|
60 |
x @c= hcomplex_of_complex a
|
paulson@14405
|
61 |
--> ( *fcR* f) x @= hypreal_of_real L))"
|
paulson@13957
|
62 |
|
paulson@13957
|
63 |
|
paulson@14405
|
64 |
isContc :: "[complex=>complex,complex] => bool"
|
paulson@14405
|
65 |
"isContc f a == (f -- a --C> (f a))"
|
paulson@13957
|
66 |
|
paulson@13957
|
67 |
(* NS definition dispenses with limit notions *)
|
paulson@14405
|
68 |
isNSContc :: "[complex=>complex,complex] => bool"
|
paulson@14405
|
69 |
"isNSContc f a == (\<forall>y. y @c= hcomplex_of_complex a -->
|
paulson@13957
|
70 |
( *fc* f) y @c= hcomplex_of_complex (f a))"
|
paulson@13957
|
71 |
|
paulson@14405
|
72 |
isContCR :: "[complex=>real,complex] => bool"
|
paulson@14405
|
73 |
"isContCR f a == (f -- a --CR> (f a))"
|
paulson@13957
|
74 |
|
paulson@13957
|
75 |
(* NS definition dispenses with limit notions *)
|
paulson@14405
|
76 |
isNSContCR :: "[complex=>real,complex] => bool"
|
paulson@14405
|
77 |
"isNSContCR f a == (\<forall>y. y @c= hcomplex_of_complex a -->
|
paulson@13957
|
78 |
( *fcR* f) y @= hypreal_of_real (f a))"
|
paulson@13957
|
79 |
|
paulson@13957
|
80 |
(* differentiation: D is derivative of function f at x *)
|
paulson@14405
|
81 |
cderiv:: "[complex=>complex,complex,complex] => bool"
|
paulson@13957
|
82 |
("(CDERIV (_)/ (_)/ :> (_))" [60, 0, 60] 60)
|
paulson@13957
|
83 |
"CDERIV f x :> D == ((%h. (f(x + h) - f(x))/h) -- 0 --C> D)"
|
paulson@13957
|
84 |
|
paulson@14405
|
85 |
nscderiv :: "[complex=>complex,complex,complex] => bool"
|
paulson@13957
|
86 |
("(NSCDERIV (_)/ (_)/ :> (_))" [60, 0, 60] 60)
|
paulson@14405
|
87 |
"NSCDERIV f x :> D == (\<forall>h \<in> CInfinitesimal - {0}.
|
paulson@13957
|
88 |
(( *fc* f)(hcomplex_of_complex x + h)
|
paulson@13957
|
89 |
- hcomplex_of_complex (f x))/h @c= hcomplex_of_complex D)"
|
paulson@13957
|
90 |
|
paulson@14405
|
91 |
cdifferentiable :: "[complex=>complex,complex] => bool"
|
paulson@14405
|
92 |
(infixl "cdifferentiable" 60)
|
paulson@14405
|
93 |
"f cdifferentiable x == (\<exists>D. CDERIV f x :> D)"
|
paulson@13957
|
94 |
|
paulson@14405
|
95 |
NSCdifferentiable :: "[complex=>complex,complex] => bool"
|
paulson@14405
|
96 |
(infixl "NSCdifferentiable" 60)
|
paulson@14405
|
97 |
"f NSCdifferentiable x == (\<exists>D. NSCDERIV f x :> D)"
|
paulson@13957
|
98 |
|
paulson@13957
|
99 |
|
paulson@14405
|
100 |
isUContc :: "(complex=>complex) => bool"
|
paulson@14405
|
101 |
"isUContc f == (\<forall>r. 0 < r -->
|
paulson@14405
|
102 |
(\<exists>s. 0 < s & (\<forall>x y. cmod(x - y) < s
|
paulson@13957
|
103 |
--> cmod(f x - f y) < r)))"
|
paulson@13957
|
104 |
|
paulson@14405
|
105 |
isNSUContc :: "(complex=>complex) => bool"
|
paulson@14405
|
106 |
"isNSUContc f == (\<forall>x y. x @c= y --> ( *fc* f) x @c= ( *fc* f) y)"
|
paulson@13957
|
107 |
|
paulson@14405
|
108 |
|
paulson@14405
|
109 |
|
paulson@14405
|
110 |
subsection{*Limit of Complex to Complex Function*}
|
paulson@14405
|
111 |
|
paulson@14405
|
112 |
lemma NSCLIM_NSCRLIM_Re: "f -- a --NSC> L ==> (%x. Re(f x)) -- a --NSCR> Re(L)"
|
paulson@14469
|
113 |
by (simp add: NSCLIM_def NSCRLIM_def starfunC_approx_Re_Im_iff
|
paulson@14469
|
114 |
hRe_hcomplex_of_complex)
|
paulson@14405
|
115 |
|
paulson@14469
|
116 |
|
paulson@14469
|
117 |
lemma NSCLIM_NSCRLIM_Im: "f -- a --NSC> L ==> (%x. Im(f x)) -- a --NSCR> Im(L)"
|
paulson@14469
|
118 |
by (simp add: NSCLIM_def NSCRLIM_def starfunC_approx_Re_Im_iff
|
paulson@14469
|
119 |
hIm_hcomplex_of_complex)
|
paulson@14405
|
120 |
|
paulson@14405
|
121 |
lemma CLIM_NSCLIM:
|
paulson@14405
|
122 |
"f -- x --C> L ==> f -- x --NSC> L"
|
paulson@14469
|
123 |
apply (simp add: CLIM_def NSCLIM_def capprox_def, auto)
|
paulson@14405
|
124 |
apply (rule_tac z = xa in eq_Abs_hcomplex)
|
paulson@14405
|
125 |
apply (auto simp add: hcomplex_of_complex_def starfunC hcomplex_diff
|
paulson@14405
|
126 |
CInfinitesimal_hcmod_iff hcmod Infinitesimal_FreeUltrafilterNat_iff)
|
paulson@14405
|
127 |
apply (rule bexI, rule_tac [2] lemma_hyprel_refl, safe)
|
paulson@14405
|
128 |
apply (drule_tac x = u in spec, auto)
|
paulson@14405
|
129 |
apply (drule_tac x = s in spec, auto, ultra)
|
paulson@14405
|
130 |
apply (drule sym, auto)
|
paulson@14405
|
131 |
done
|
paulson@14405
|
132 |
|
paulson@14405
|
133 |
lemma eq_Abs_hcomplex_ALL:
|
paulson@14405
|
134 |
"(\<forall>t. P t) = (\<forall>X. P (Abs_hcomplex(hcomplexrel `` {X})))"
|
paulson@14405
|
135 |
apply auto
|
paulson@14405
|
136 |
apply (rule_tac z = t in eq_Abs_hcomplex, auto)
|
paulson@14405
|
137 |
done
|
paulson@14405
|
138 |
|
paulson@14405
|
139 |
lemma lemma_CLIM:
|
paulson@14405
|
140 |
"\<forall>s. 0 < s --> (\<exists>xa. xa \<noteq> x &
|
paulson@14405
|
141 |
cmod (xa - x) < s & r \<le> cmod (f xa - L))
|
paulson@14405
|
142 |
==> \<forall>(n::nat). \<exists>xa. xa \<noteq> x &
|
paulson@14405
|
143 |
cmod(xa - x) < inverse(real(Suc n)) & r \<le> cmod(f xa - L)"
|
paulson@14405
|
144 |
apply clarify
|
paulson@14405
|
145 |
apply (cut_tac n1 = n in real_of_nat_Suc_gt_zero [THEN positive_imp_inverse_positive], auto)
|
paulson@14405
|
146 |
done
|
paulson@14405
|
147 |
|
paulson@14405
|
148 |
|
paulson@14405
|
149 |
lemma lemma_skolemize_CLIM2:
|
paulson@14405
|
150 |
"\<forall>s. 0 < s --> (\<exists>xa. xa \<noteq> x &
|
paulson@14405
|
151 |
cmod (xa - x) < s & r \<le> cmod (f xa - L))
|
paulson@14405
|
152 |
==> \<exists>X. \<forall>(n::nat). X n \<noteq> x &
|
paulson@14405
|
153 |
cmod(X n - x) < inverse(real(Suc n)) & r \<le> cmod(f (X n) - L)"
|
paulson@14405
|
154 |
apply (drule lemma_CLIM)
|
paulson@14405
|
155 |
apply (drule choice, blast)
|
paulson@14405
|
156 |
done
|
paulson@14405
|
157 |
|
paulson@14405
|
158 |
lemma lemma_csimp:
|
paulson@14405
|
159 |
"\<forall>n. X n \<noteq> x &
|
paulson@14405
|
160 |
cmod (X n - x) < inverse (real(Suc n)) &
|
paulson@14405
|
161 |
r \<le> cmod (f (X n) - L) ==>
|
paulson@14405
|
162 |
\<forall>n. cmod (X n - x) < inverse (real(Suc n))"
|
paulson@14405
|
163 |
by auto
|
paulson@14405
|
164 |
|
paulson@14405
|
165 |
lemma NSCLIM_CLIM:
|
paulson@14405
|
166 |
"f -- x --NSC> L ==> f -- x --C> L"
|
paulson@14469
|
167 |
apply (simp add: CLIM_def NSCLIM_def)
|
paulson@14405
|
168 |
apply (rule ccontr)
|
paulson@14469
|
169 |
apply (auto simp add: eq_Abs_hcomplex_ALL starfunC
|
paulson@14469
|
170 |
CInfinitesimal_capprox_minus [symmetric] hcomplex_diff
|
paulson@14469
|
171 |
CInfinitesimal_hcmod_iff hcomplex_of_complex_def
|
paulson@14469
|
172 |
Infinitesimal_FreeUltrafilterNat_iff hcmod)
|
paulson@14405
|
173 |
apply (simp add: linorder_not_less)
|
paulson@14405
|
174 |
apply (drule lemma_skolemize_CLIM2, safe)
|
paulson@14405
|
175 |
apply (drule_tac x = X in spec, auto)
|
paulson@14405
|
176 |
apply (drule lemma_csimp [THEN complex_seq_to_hcomplex_CInfinitesimal])
|
paulson@14469
|
177 |
apply (simp add: CInfinitesimal_hcmod_iff hcomplex_of_complex_def
|
paulson@14469
|
178 |
Infinitesimal_FreeUltrafilterNat_iff hcomplex_diff hcmod, blast)
|
paulson@14405
|
179 |
apply (drule_tac x = r in spec, clarify)
|
paulson@14405
|
180 |
apply (drule FreeUltrafilterNat_all, ultra, arith)
|
paulson@14405
|
181 |
done
|
paulson@14405
|
182 |
|
paulson@14405
|
183 |
|
paulson@14405
|
184 |
text{*First key result*}
|
paulson@14405
|
185 |
theorem CLIM_NSCLIM_iff: "(f -- x --C> L) = (f -- x --NSC> L)"
|
paulson@14405
|
186 |
by (blast intro: CLIM_NSCLIM NSCLIM_CLIM)
|
paulson@14405
|
187 |
|
paulson@14405
|
188 |
|
paulson@14405
|
189 |
subsection{*Limit of Complex to Real Function*}
|
paulson@14405
|
190 |
|
paulson@14405
|
191 |
lemma CRLIM_NSCRLIM: "f -- x --CR> L ==> f -- x --NSCR> L"
|
paulson@14469
|
192 |
apply (simp add: CRLIM_def NSCRLIM_def capprox_def, auto)
|
paulson@14405
|
193 |
apply (rule_tac z = xa in eq_Abs_hcomplex)
|
paulson@14469
|
194 |
apply (auto simp add: hcomplex_of_complex_def starfunCR hcomplex_diff
|
paulson@14469
|
195 |
CInfinitesimal_hcmod_iff hcmod hypreal_diff
|
paulson@14469
|
196 |
Infinitesimal_FreeUltrafilterNat_iff
|
paulson@14469
|
197 |
Infinitesimal_approx_minus [symmetric] hypreal_of_real_def)
|
paulson@14405
|
198 |
apply (rule bexI, rule_tac [2] lemma_hyprel_refl, safe)
|
paulson@14405
|
199 |
apply (drule_tac x = u in spec, auto)
|
paulson@14405
|
200 |
apply (drule_tac x = s in spec, auto, ultra)
|
paulson@14405
|
201 |
apply (drule sym, auto)
|
paulson@14405
|
202 |
done
|
paulson@14405
|
203 |
|
paulson@14405
|
204 |
lemma lemma_CRLIM:
|
paulson@14405
|
205 |
"\<forall>s. 0 < s --> (\<exists>xa. xa \<noteq> x &
|
paulson@14405
|
206 |
cmod (xa - x) < s & r \<le> abs (f xa - L))
|
paulson@14405
|
207 |
==> \<forall>(n::nat). \<exists>xa. xa \<noteq> x &
|
paulson@14405
|
208 |
cmod(xa - x) < inverse(real(Suc n)) & r \<le> abs (f xa - L)"
|
paulson@14405
|
209 |
apply clarify
|
paulson@14405
|
210 |
apply (cut_tac n1 = n in real_of_nat_Suc_gt_zero [THEN positive_imp_inverse_positive], auto)
|
paulson@14405
|
211 |
done
|
paulson@14405
|
212 |
|
paulson@14405
|
213 |
lemma lemma_skolemize_CRLIM2:
|
paulson@14405
|
214 |
"\<forall>s. 0 < s --> (\<exists>xa. xa \<noteq> x &
|
paulson@14405
|
215 |
cmod (xa - x) < s & r \<le> abs (f xa - L))
|
paulson@14405
|
216 |
==> \<exists>X. \<forall>(n::nat). X n \<noteq> x &
|
paulson@14405
|
217 |
cmod(X n - x) < inverse(real(Suc n)) & r \<le> abs (f (X n) - L)"
|
paulson@14405
|
218 |
apply (drule lemma_CRLIM)
|
paulson@14405
|
219 |
apply (drule choice, blast)
|
paulson@14405
|
220 |
done
|
paulson@14405
|
221 |
|
paulson@14405
|
222 |
lemma lemma_crsimp:
|
paulson@14405
|
223 |
"\<forall>n. X n \<noteq> x &
|
paulson@14405
|
224 |
cmod (X n - x) < inverse (real(Suc n)) &
|
paulson@14405
|
225 |
r \<le> abs (f (X n) - L) ==>
|
paulson@14405
|
226 |
\<forall>n. cmod (X n - x) < inverse (real(Suc n))"
|
paulson@14405
|
227 |
by auto
|
paulson@14405
|
228 |
|
paulson@14405
|
229 |
lemma NSCRLIM_CRLIM: "f -- x --NSCR> L ==> f -- x --CR> L"
|
paulson@14469
|
230 |
apply (simp add: CRLIM_def NSCRLIM_def capprox_def)
|
paulson@14405
|
231 |
apply (rule ccontr)
|
paulson@14405
|
232 |
apply (auto simp add: eq_Abs_hcomplex_ALL starfunCR hcomplex_diff
|
paulson@14405
|
233 |
hcomplex_of_complex_def hypreal_diff CInfinitesimal_hcmod_iff
|
paulson@14405
|
234 |
hcmod Infinitesimal_approx_minus [symmetric]
|
paulson@14405
|
235 |
Infinitesimal_FreeUltrafilterNat_iff)
|
paulson@14405
|
236 |
apply (simp add: linorder_not_less)
|
paulson@14405
|
237 |
apply (drule lemma_skolemize_CRLIM2, safe)
|
paulson@14405
|
238 |
apply (drule_tac x = X in spec, auto)
|
paulson@14405
|
239 |
apply (drule lemma_crsimp [THEN complex_seq_to_hcomplex_CInfinitesimal])
|
paulson@14405
|
240 |
apply (simp add: CInfinitesimal_hcmod_iff hcomplex_of_complex_def
|
paulson@14405
|
241 |
Infinitesimal_FreeUltrafilterNat_iff hcomplex_diff hcmod)
|
paulson@14405
|
242 |
apply (auto simp add: hypreal_of_real_def hypreal_diff)
|
paulson@14405
|
243 |
apply (drule_tac x = r in spec, clarify)
|
paulson@14405
|
244 |
apply (drule FreeUltrafilterNat_all, ultra)
|
paulson@14405
|
245 |
done
|
paulson@14405
|
246 |
|
paulson@14405
|
247 |
text{*Second key result*}
|
paulson@14405
|
248 |
theorem CRLIM_NSCRLIM_iff: "(f -- x --CR> L) = (f -- x --NSCR> L)"
|
paulson@14405
|
249 |
by (blast intro: CRLIM_NSCRLIM NSCRLIM_CRLIM)
|
paulson@14405
|
250 |
|
paulson@14405
|
251 |
(** get this result easily now **)
|
paulson@14405
|
252 |
lemma CLIM_CRLIM_Re: "f -- a --C> L ==> (%x. Re(f x)) -- a --CR> Re(L)"
|
paulson@14405
|
253 |
by (auto dest: NSCLIM_NSCRLIM_Re simp add: CLIM_NSCLIM_iff CRLIM_NSCRLIM_iff [symmetric])
|
paulson@14405
|
254 |
|
paulson@14405
|
255 |
lemma CLIM_CRLIM_Im: "f -- a --C> L ==> (%x. Im(f x)) -- a --CR> Im(L)"
|
paulson@14405
|
256 |
by (auto dest: NSCLIM_NSCRLIM_Im simp add: CLIM_NSCLIM_iff CRLIM_NSCRLIM_iff [symmetric])
|
paulson@14405
|
257 |
|
paulson@14405
|
258 |
lemma CLIM_cnj: "f -- a --C> L ==> (%x. cnj (f x)) -- a --C> cnj L"
|
paulson@14469
|
259 |
by (simp add: CLIM_def complex_cnj_diff [symmetric])
|
paulson@14405
|
260 |
|
paulson@14405
|
261 |
lemma CLIM_cnj_iff: "((%x. cnj (f x)) -- a --C> cnj L) = (f -- a --C> L)"
|
paulson@14469
|
262 |
by (simp add: CLIM_def complex_cnj_diff [symmetric])
|
paulson@14405
|
263 |
|
paulson@14405
|
264 |
(*** NSLIM_add hence CLIM_add *)
|
paulson@14405
|
265 |
|
paulson@14405
|
266 |
lemma NSCLIM_add:
|
paulson@14405
|
267 |
"[| f -- x --NSC> l; g -- x --NSC> m |]
|
paulson@14405
|
268 |
==> (%x. f(x) + g(x)) -- x --NSC> (l + m)"
|
paulson@14405
|
269 |
by (auto simp: NSCLIM_def intro!: capprox_add)
|
paulson@14405
|
270 |
|
paulson@14405
|
271 |
lemma CLIM_add:
|
paulson@14405
|
272 |
"[| f -- x --C> l; g -- x --C> m |]
|
paulson@14405
|
273 |
==> (%x. f(x) + g(x)) -- x --C> (l + m)"
|
paulson@14405
|
274 |
by (simp add: CLIM_NSCLIM_iff NSCLIM_add)
|
paulson@14405
|
275 |
|
paulson@14405
|
276 |
(*** NSLIM_mult hence CLIM_mult *)
|
paulson@14405
|
277 |
|
paulson@14405
|
278 |
lemma NSCLIM_mult:
|
paulson@14405
|
279 |
"[| f -- x --NSC> l; g -- x --NSC> m |]
|
paulson@14405
|
280 |
==> (%x. f(x) * g(x)) -- x --NSC> (l * m)"
|
paulson@14405
|
281 |
by (auto simp add: NSCLIM_def intro!: capprox_mult_CFinite)
|
paulson@14405
|
282 |
|
paulson@14405
|
283 |
lemma CLIM_mult:
|
paulson@14405
|
284 |
"[| f -- x --C> l; g -- x --C> m |]
|
paulson@14405
|
285 |
==> (%x. f(x) * g(x)) -- x --C> (l * m)"
|
paulson@14405
|
286 |
by (simp add: CLIM_NSCLIM_iff NSCLIM_mult)
|
paulson@14405
|
287 |
|
paulson@14405
|
288 |
(*** NSCLIM_const and CLIM_const ***)
|
paulson@14405
|
289 |
|
paulson@14405
|
290 |
lemma NSCLIM_const [simp]: "(%x. k) -- x --NSC> k"
|
paulson@14405
|
291 |
by (simp add: NSCLIM_def)
|
paulson@14405
|
292 |
|
paulson@14405
|
293 |
lemma CLIM_const [simp]: "(%x. k) -- x --C> k"
|
paulson@14405
|
294 |
by (simp add: CLIM_def)
|
paulson@14405
|
295 |
|
paulson@14405
|
296 |
(*** NSCLIM_minus and CLIM_minus ***)
|
paulson@14405
|
297 |
|
paulson@14405
|
298 |
lemma NSCLIM_minus: "f -- a --NSC> L ==> (%x. -f(x)) -- a --NSC> -L"
|
paulson@14405
|
299 |
by (simp add: NSCLIM_def)
|
paulson@14405
|
300 |
|
paulson@14405
|
301 |
lemma CLIM_minus: "f -- a --C> L ==> (%x. -f(x)) -- a --C> -L"
|
paulson@14405
|
302 |
by (simp add: CLIM_NSCLIM_iff NSCLIM_minus)
|
paulson@14405
|
303 |
|
paulson@14405
|
304 |
(*** NSCLIM_diff hence CLIM_diff ***)
|
paulson@14405
|
305 |
|
paulson@14405
|
306 |
lemma NSCLIM_diff:
|
paulson@14405
|
307 |
"[| f -- x --NSC> l; g -- x --NSC> m |]
|
paulson@14405
|
308 |
==> (%x. f(x) - g(x)) -- x --NSC> (l - m)"
|
paulson@14469
|
309 |
by (simp add: diff_minus NSCLIM_add NSCLIM_minus)
|
paulson@14405
|
310 |
|
paulson@14405
|
311 |
lemma CLIM_diff:
|
paulson@14405
|
312 |
"[| f -- x --C> l; g -- x --C> m |]
|
paulson@14405
|
313 |
==> (%x. f(x) - g(x)) -- x --C> (l - m)"
|
paulson@14405
|
314 |
by (simp add: CLIM_NSCLIM_iff NSCLIM_diff)
|
paulson@14405
|
315 |
|
paulson@14405
|
316 |
(*** NSCLIM_inverse and hence CLIM_inverse *)
|
paulson@14405
|
317 |
|
paulson@14405
|
318 |
lemma NSCLIM_inverse:
|
paulson@14405
|
319 |
"[| f -- a --NSC> L; L \<noteq> 0 |]
|
paulson@14405
|
320 |
==> (%x. inverse(f(x))) -- a --NSC> (inverse L)"
|
paulson@14469
|
321 |
apply (simp add: NSCLIM_def, clarify)
|
paulson@14405
|
322 |
apply (drule spec)
|
paulson@14469
|
323 |
apply (force simp add: hcomplex_of_complex_capprox_inverse)
|
paulson@14405
|
324 |
done
|
paulson@14405
|
325 |
|
paulson@14405
|
326 |
lemma CLIM_inverse:
|
paulson@14405
|
327 |
"[| f -- a --C> L; L \<noteq> 0 |]
|
paulson@14405
|
328 |
==> (%x. inverse(f(x))) -- a --C> (inverse L)"
|
paulson@14405
|
329 |
by (simp add: CLIM_NSCLIM_iff NSCLIM_inverse)
|
paulson@14405
|
330 |
|
paulson@14405
|
331 |
(*** NSCLIM_zero, CLIM_zero, etc. ***)
|
paulson@14405
|
332 |
|
paulson@14405
|
333 |
lemma NSCLIM_zero: "f -- a --NSC> l ==> (%x. f(x) - l) -- a --NSC> 0"
|
paulson@14469
|
334 |
apply (simp add: diff_minus)
|
paulson@14405
|
335 |
apply (rule_tac a1 = l in right_minus [THEN subst])
|
paulson@14469
|
336 |
apply (rule NSCLIM_add, auto)
|
paulson@14405
|
337 |
done
|
paulson@14405
|
338 |
|
paulson@14405
|
339 |
lemma CLIM_zero: "f -- a --C> l ==> (%x. f(x) - l) -- a --C> 0"
|
paulson@14405
|
340 |
by (simp add: CLIM_NSCLIM_iff NSCLIM_zero)
|
paulson@14405
|
341 |
|
paulson@14405
|
342 |
lemma NSCLIM_zero_cancel: "(%x. f(x) - l) -- x --NSC> 0 ==> f -- x --NSC> l"
|
paulson@14405
|
343 |
by (drule_tac g = "%x. l" and m = l in NSCLIM_add, auto)
|
paulson@14405
|
344 |
|
paulson@14405
|
345 |
lemma CLIM_zero_cancel: "(%x. f(x) - l) -- x --C> 0 ==> f -- x --C> l"
|
paulson@14405
|
346 |
by (drule_tac g = "%x. l" and m = l in CLIM_add, auto)
|
paulson@14405
|
347 |
|
paulson@14405
|
348 |
(*** NSCLIM_not zero and hence CLIM_not_zero ***)
|
paulson@14405
|
349 |
|
paulson@14405
|
350 |
lemma NSCLIM_not_zero: "k \<noteq> 0 ==> ~ ((%x. k) -- x --NSC> 0)"
|
paulson@14405
|
351 |
apply (auto simp del: hcomplex_of_complex_zero simp add: NSCLIM_def)
|
paulson@14405
|
352 |
apply (rule_tac x = "hcomplex_of_complex x + hcomplex_of_hypreal epsilon" in exI)
|
paulson@14405
|
353 |
apply (auto intro: CInfinitesimal_add_capprox_self [THEN capprox_sym]
|
paulson@14405
|
354 |
simp del: hcomplex_of_complex_zero)
|
paulson@14405
|
355 |
done
|
paulson@14405
|
356 |
|
paulson@14405
|
357 |
(* [| k \<noteq> 0; (%x. k) -- x --NSC> 0 |] ==> R *)
|
paulson@14405
|
358 |
lemmas NSCLIM_not_zeroE = NSCLIM_not_zero [THEN notE, standard]
|
paulson@14405
|
359 |
|
paulson@14405
|
360 |
lemma CLIM_not_zero: "k \<noteq> 0 ==> ~ ((%x. k) -- x --C> 0)"
|
paulson@14405
|
361 |
by (simp add: CLIM_NSCLIM_iff NSCLIM_not_zero)
|
paulson@14405
|
362 |
|
paulson@14405
|
363 |
(*** NSCLIM_const hence CLIM_const ***)
|
paulson@14405
|
364 |
|
paulson@14405
|
365 |
lemma NSCLIM_const_eq: "(%x. k) -- x --NSC> L ==> k = L"
|
paulson@14405
|
366 |
apply (rule ccontr)
|
paulson@14405
|
367 |
apply (drule NSCLIM_zero)
|
paulson@14405
|
368 |
apply (rule NSCLIM_not_zeroE [of "k-L"], auto)
|
paulson@14405
|
369 |
done
|
paulson@14405
|
370 |
|
paulson@14405
|
371 |
lemma CLIM_const_eq: "(%x. k) -- x --C> L ==> k = L"
|
paulson@14405
|
372 |
by (simp add: CLIM_NSCLIM_iff NSCLIM_const_eq)
|
paulson@14405
|
373 |
|
paulson@14405
|
374 |
(*** NSCLIM and hence CLIM are unique ***)
|
paulson@14405
|
375 |
|
paulson@14405
|
376 |
lemma NSCLIM_unique: "[| f -- x --NSC> L; f -- x --NSC> M |] ==> L = M"
|
paulson@14405
|
377 |
apply (drule NSCLIM_minus)
|
paulson@14405
|
378 |
apply (drule NSCLIM_add, assumption)
|
paulson@14405
|
379 |
apply (auto dest!: NSCLIM_const_eq [symmetric])
|
paulson@14405
|
380 |
done
|
paulson@14405
|
381 |
|
paulson@14405
|
382 |
lemma CLIM_unique: "[| f -- x --C> L; f -- x --C> M |] ==> L = M"
|
paulson@14405
|
383 |
by (simp add: CLIM_NSCLIM_iff NSCLIM_unique)
|
paulson@14405
|
384 |
|
paulson@14405
|
385 |
(*** NSCLIM_mult_zero and CLIM_mult_zero ***)
|
paulson@14405
|
386 |
|
paulson@14405
|
387 |
lemma NSCLIM_mult_zero:
|
paulson@14405
|
388 |
"[| f -- x --NSC> 0; g -- x --NSC> 0 |] ==> (%x. f(x)*g(x)) -- x --NSC> 0"
|
paulson@14405
|
389 |
by (drule NSCLIM_mult, auto)
|
paulson@14405
|
390 |
|
paulson@14405
|
391 |
lemma CLIM_mult_zero:
|
paulson@14405
|
392 |
"[| f -- x --C> 0; g -- x --C> 0 |] ==> (%x. f(x)*g(x)) -- x --C> 0"
|
paulson@14405
|
393 |
by (drule CLIM_mult, auto)
|
paulson@14405
|
394 |
|
paulson@14405
|
395 |
(*** NSCLIM_self hence CLIM_self ***)
|
paulson@14405
|
396 |
|
paulson@14405
|
397 |
lemma NSCLIM_self: "(%x. x) -- a --NSC> a"
|
paulson@14405
|
398 |
by (auto simp add: NSCLIM_def intro: starfunC_Idfun_capprox)
|
paulson@14405
|
399 |
|
paulson@14405
|
400 |
lemma CLIM_self: "(%x. x) -- a --C> a"
|
paulson@14405
|
401 |
by (simp add: CLIM_NSCLIM_iff NSCLIM_self)
|
paulson@14405
|
402 |
|
paulson@14405
|
403 |
(** another equivalence result **)
|
paulson@14405
|
404 |
lemma NSCLIM_NSCRLIM_iff:
|
paulson@14405
|
405 |
"(f -- x --NSC> L) = ((%y. cmod(f y - L)) -- x --NSCR> 0)"
|
paulson@14405
|
406 |
apply (auto simp add: NSCLIM_def NSCRLIM_def CInfinitesimal_capprox_minus [symmetric] CInfinitesimal_hcmod_iff)
|
paulson@14405
|
407 |
apply (auto dest!: spec)
|
paulson@14405
|
408 |
apply (rule_tac [!] z = xa in eq_Abs_hcomplex)
|
paulson@14405
|
409 |
apply (auto simp add: hcomplex_diff starfunC starfunCR hcomplex_of_complex_def hcmod mem_infmal_iff)
|
paulson@14405
|
410 |
done
|
paulson@14405
|
411 |
|
paulson@14405
|
412 |
(** much, much easier standard proof **)
|
paulson@14405
|
413 |
lemma CLIM_CRLIM_iff: "(f -- x --C> L) = ((%y. cmod(f y - L)) -- x --CR> 0)"
|
paulson@14405
|
414 |
by (simp add: CLIM_def CRLIM_def)
|
paulson@14405
|
415 |
|
paulson@14405
|
416 |
(* so this is nicer nonstandard proof *)
|
paulson@14405
|
417 |
lemma NSCLIM_NSCRLIM_iff2:
|
paulson@14405
|
418 |
"(f -- x --NSC> L) = ((%y. cmod(f y - L)) -- x --NSCR> 0)"
|
paulson@14469
|
419 |
by (simp add: CRLIM_NSCRLIM_iff [symmetric] CLIM_CRLIM_iff CLIM_NSCLIM_iff [symmetric])
|
paulson@14405
|
420 |
|
paulson@14405
|
421 |
lemma NSCLIM_NSCRLIM_Re_Im_iff:
|
paulson@14405
|
422 |
"(f -- a --NSC> L) = ((%x. Re(f x)) -- a --NSCR> Re(L) &
|
paulson@14405
|
423 |
(%x. Im(f x)) -- a --NSCR> Im(L))"
|
paulson@14405
|
424 |
apply (auto intro: NSCLIM_NSCRLIM_Re NSCLIM_NSCRLIM_Im)
|
paulson@14405
|
425 |
apply (auto simp add: NSCLIM_def NSCRLIM_def)
|
paulson@14405
|
426 |
apply (auto dest!: spec)
|
paulson@14405
|
427 |
apply (rule_tac z = x in eq_Abs_hcomplex)
|
paulson@14469
|
428 |
apply (simp add: capprox_approx_iff starfunC hcomplex_of_complex_def starfunCR hypreal_of_real_def)
|
paulson@14405
|
429 |
done
|
paulson@14405
|
430 |
|
paulson@14405
|
431 |
lemma CLIM_CRLIM_Re_Im_iff:
|
paulson@14405
|
432 |
"(f -- a --C> L) = ((%x. Re(f x)) -- a --CR> Re(L) &
|
paulson@14405
|
433 |
(%x. Im(f x)) -- a --CR> Im(L))"
|
paulson@14405
|
434 |
by (simp add: CLIM_NSCLIM_iff CRLIM_NSCRLIM_iff NSCLIM_NSCRLIM_Re_Im_iff)
|
paulson@14405
|
435 |
|
paulson@14405
|
436 |
|
paulson@14405
|
437 |
subsection{*Continuity*}
|
paulson@14405
|
438 |
|
paulson@14405
|
439 |
lemma isNSContcD:
|
paulson@14405
|
440 |
"[| isNSContc f a; y @c= hcomplex_of_complex a |]
|
paulson@14405
|
441 |
==> ( *fc* f) y @c= hcomplex_of_complex (f a)"
|
paulson@14405
|
442 |
by (simp add: isNSContc_def)
|
paulson@14405
|
443 |
|
paulson@14405
|
444 |
lemma isNSContc_NSCLIM: "isNSContc f a ==> f -- a --NSC> (f a) "
|
paulson@14405
|
445 |
by (simp add: isNSContc_def NSCLIM_def)
|
paulson@14405
|
446 |
|
paulson@14405
|
447 |
lemma NSCLIM_isNSContc:
|
paulson@14405
|
448 |
"f -- a --NSC> (f a) ==> isNSContc f a"
|
paulson@14405
|
449 |
apply (simp add: isNSContc_def NSCLIM_def, auto)
|
paulson@14405
|
450 |
apply (case_tac "y = hcomplex_of_complex a", auto)
|
paulson@14405
|
451 |
done
|
paulson@14405
|
452 |
|
paulson@14405
|
453 |
text{*Nonstandard continuity can be defined using NS Limit in
|
paulson@14405
|
454 |
similar fashion to standard definition of continuity*}
|
paulson@14405
|
455 |
|
paulson@14405
|
456 |
lemma isNSContc_NSCLIM_iff: "(isNSContc f a) = (f -- a --NSC> (f a))"
|
paulson@14405
|
457 |
by (blast intro: isNSContc_NSCLIM NSCLIM_isNSContc)
|
paulson@14405
|
458 |
|
paulson@14405
|
459 |
lemma isNSContc_CLIM_iff: "(isNSContc f a) = (f -- a --C> (f a))"
|
paulson@14405
|
460 |
by (simp add: CLIM_NSCLIM_iff isNSContc_NSCLIM_iff)
|
paulson@14405
|
461 |
|
paulson@14405
|
462 |
(*** key result for continuity ***)
|
paulson@14405
|
463 |
lemma isNSContc_isContc_iff: "(isNSContc f a) = (isContc f a)"
|
paulson@14405
|
464 |
by (simp add: isContc_def isNSContc_CLIM_iff)
|
paulson@14405
|
465 |
|
paulson@14405
|
466 |
lemma isContc_isNSContc: "isContc f a ==> isNSContc f a"
|
paulson@14405
|
467 |
by (erule isNSContc_isContc_iff [THEN iffD2])
|
paulson@14405
|
468 |
|
paulson@14405
|
469 |
lemma isNSContc_isContc: "isNSContc f a ==> isContc f a"
|
paulson@14405
|
470 |
by (erule isNSContc_isContc_iff [THEN iffD1])
|
paulson@14405
|
471 |
|
paulson@14405
|
472 |
|
paulson@14405
|
473 |
text{*Alternative definition of continuity*}
|
paulson@14405
|
474 |
lemma NSCLIM_h_iff: "(f -- a --NSC> L) = ((%h. f(a + h)) -- 0 --NSC> L)"
|
paulson@14405
|
475 |
apply (simp add: NSCLIM_def, auto)
|
paulson@14405
|
476 |
apply (drule_tac x = "hcomplex_of_complex a + x" in spec)
|
paulson@14405
|
477 |
apply (drule_tac [2] x = "- hcomplex_of_complex a + x" in spec, safe, simp)
|
paulson@14405
|
478 |
apply (rule mem_cinfmal_iff [THEN iffD2, THEN CInfinitesimal_add_capprox_self [THEN capprox_sym]])
|
paulson@14405
|
479 |
apply (rule_tac [4] capprox_minus_iff2 [THEN iffD1])
|
paulson@14405
|
480 |
prefer 3 apply (simp add: compare_rls hcomplex_add_commute)
|
paulson@14405
|
481 |
apply (rule_tac [2] z = x in eq_Abs_hcomplex)
|
paulson@14405
|
482 |
apply (rule_tac [4] z = x in eq_Abs_hcomplex)
|
paulson@14405
|
483 |
apply (auto simp add: starfunC hcomplex_of_complex_def hcomplex_minus hcomplex_add)
|
paulson@14405
|
484 |
done
|
paulson@14405
|
485 |
|
paulson@14405
|
486 |
lemma NSCLIM_isContc_iff:
|
paulson@14405
|
487 |
"(f -- a --NSC> f a) = ((%h. f(a + h)) -- 0 --NSC> f a)"
|
paulson@14405
|
488 |
by (rule NSCLIM_h_iff)
|
paulson@14405
|
489 |
|
paulson@14405
|
490 |
lemma CLIM_isContc_iff: "(f -- a --C> f a) = ((%h. f(a + h)) -- 0 --C> f(a))"
|
paulson@14405
|
491 |
by (simp add: CLIM_NSCLIM_iff NSCLIM_isContc_iff)
|
paulson@14405
|
492 |
|
paulson@14405
|
493 |
lemma isContc_iff: "(isContc f x) = ((%h. f(x + h)) -- 0 --C> f(x))"
|
paulson@14405
|
494 |
by (simp add: isContc_def CLIM_isContc_iff)
|
paulson@14405
|
495 |
|
paulson@14405
|
496 |
lemma isContc_add:
|
paulson@14405
|
497 |
"[| isContc f a; isContc g a |] ==> isContc (%x. f(x) + g(x)) a"
|
paulson@14405
|
498 |
by (auto intro: capprox_add simp add: isNSContc_isContc_iff [symmetric] isNSContc_def)
|
paulson@14405
|
499 |
|
paulson@14405
|
500 |
lemma isContc_mult:
|
paulson@14405
|
501 |
"[| isContc f a; isContc g a |] ==> isContc (%x. f(x) * g(x)) a"
|
paulson@14405
|
502 |
by (auto intro!: starfunC_mult_CFinite_capprox
|
paulson@14405
|
503 |
simp del: starfunC_mult [symmetric]
|
paulson@14405
|
504 |
simp add: isNSContc_isContc_iff [symmetric] isNSContc_def)
|
paulson@14405
|
505 |
|
paulson@14405
|
506 |
|
paulson@14405
|
507 |
lemma isContc_o: "[| isContc f a; isContc g (f a) |] ==> isContc (g o f) a"
|
paulson@14469
|
508 |
by (simp add: isNSContc_isContc_iff [symmetric] isNSContc_def starfunC_o [symmetric])
|
paulson@14405
|
509 |
|
paulson@14405
|
510 |
lemma isContc_o2:
|
paulson@14405
|
511 |
"[| isContc f a; isContc g (f a) |] ==> isContc (%x. g (f x)) a"
|
paulson@14405
|
512 |
by (auto dest: isContc_o simp add: o_def)
|
paulson@14405
|
513 |
|
paulson@14405
|
514 |
lemma isNSContc_minus: "isNSContc f a ==> isNSContc (%x. - f x) a"
|
paulson@14405
|
515 |
by (simp add: isNSContc_def)
|
paulson@14405
|
516 |
|
paulson@14405
|
517 |
lemma isContc_minus: "isContc f a ==> isContc (%x. - f x) a"
|
paulson@14405
|
518 |
by (simp add: isNSContc_isContc_iff [symmetric] isNSContc_minus)
|
paulson@14405
|
519 |
|
paulson@14405
|
520 |
lemma isContc_inverse:
|
paulson@14405
|
521 |
"[| isContc f x; f x \<noteq> 0 |] ==> isContc (%x. inverse (f x)) x"
|
paulson@14405
|
522 |
by (simp add: isContc_def CLIM_inverse)
|
paulson@14405
|
523 |
|
paulson@14405
|
524 |
lemma isNSContc_inverse:
|
paulson@14405
|
525 |
"[| isNSContc f x; f x \<noteq> 0 |] ==> isNSContc (%x. inverse (f x)) x"
|
paulson@14405
|
526 |
by (auto intro: isContc_inverse simp add: isNSContc_isContc_iff)
|
paulson@14405
|
527 |
|
paulson@14405
|
528 |
lemma isContc_diff:
|
paulson@14405
|
529 |
"[| isContc f a; isContc g a |] ==> isContc (%x. f(x) - g(x)) a"
|
paulson@14469
|
530 |
apply (simp add: diff_minus)
|
paulson@14405
|
531 |
apply (auto intro: isContc_add isContc_minus)
|
paulson@14405
|
532 |
done
|
paulson@14405
|
533 |
|
paulson@14405
|
534 |
lemma isContc_const [simp]: "isContc (%x. k) a"
|
paulson@14405
|
535 |
by (simp add: isContc_def)
|
paulson@14405
|
536 |
|
paulson@14405
|
537 |
lemma isNSContc_const [simp]: "isNSContc (%x. k) a"
|
paulson@14405
|
538 |
by (simp add: isNSContc_def)
|
paulson@14405
|
539 |
|
paulson@14405
|
540 |
|
paulson@14405
|
541 |
subsection{*Functions from Complex to Reals*}
|
paulson@14405
|
542 |
|
paulson@14405
|
543 |
lemma isNSContCRD:
|
paulson@14405
|
544 |
"[| isNSContCR f a; y @c= hcomplex_of_complex a |]
|
paulson@14405
|
545 |
==> ( *fcR* f) y @= hypreal_of_real (f a)"
|
paulson@14405
|
546 |
by (simp add: isNSContCR_def)
|
paulson@14405
|
547 |
|
paulson@14405
|
548 |
lemma isNSContCR_NSCRLIM: "isNSContCR f a ==> f -- a --NSCR> (f a) "
|
paulson@14405
|
549 |
by (simp add: isNSContCR_def NSCRLIM_def)
|
paulson@14405
|
550 |
|
paulson@14405
|
551 |
lemma NSCRLIM_isNSContCR: "f -- a --NSCR> (f a) ==> isNSContCR f a"
|
paulson@14405
|
552 |
apply (auto simp add: isNSContCR_def NSCRLIM_def)
|
paulson@14405
|
553 |
apply (case_tac "y = hcomplex_of_complex a", auto)
|
paulson@14405
|
554 |
done
|
paulson@14405
|
555 |
|
paulson@14405
|
556 |
lemma isNSContCR_NSCRLIM_iff: "(isNSContCR f a) = (f -- a --NSCR> (f a))"
|
paulson@14405
|
557 |
by (blast intro: isNSContCR_NSCRLIM NSCRLIM_isNSContCR)
|
paulson@14405
|
558 |
|
paulson@14405
|
559 |
lemma isNSContCR_CRLIM_iff: "(isNSContCR f a) = (f -- a --CR> (f a))"
|
paulson@14405
|
560 |
by (simp add: CRLIM_NSCRLIM_iff isNSContCR_NSCRLIM_iff)
|
paulson@14405
|
561 |
|
paulson@14405
|
562 |
(*** another key result for continuity ***)
|
paulson@14405
|
563 |
lemma isNSContCR_isContCR_iff: "(isNSContCR f a) = (isContCR f a)"
|
paulson@14405
|
564 |
by (simp add: isContCR_def isNSContCR_CRLIM_iff)
|
paulson@14405
|
565 |
|
paulson@14405
|
566 |
lemma isContCR_isNSContCR: "isContCR f a ==> isNSContCR f a"
|
paulson@14405
|
567 |
by (erule isNSContCR_isContCR_iff [THEN iffD2])
|
paulson@14405
|
568 |
|
paulson@14405
|
569 |
lemma isNSContCR_isContCR: "isNSContCR f a ==> isContCR f a"
|
paulson@14405
|
570 |
by (erule isNSContCR_isContCR_iff [THEN iffD1])
|
paulson@14405
|
571 |
|
paulson@14405
|
572 |
lemma isNSContCR_cmod [simp]: "isNSContCR cmod (a)"
|
paulson@14405
|
573 |
by (auto intro: capprox_hcmod_approx
|
paulson@14405
|
574 |
simp add: starfunCR_cmod hcmod_hcomplex_of_complex [symmetric]
|
paulson@14405
|
575 |
isNSContCR_def)
|
paulson@14405
|
576 |
|
paulson@14405
|
577 |
lemma isContCR_cmod [simp]: "isContCR cmod (a)"
|
paulson@14469
|
578 |
by (simp add: isNSContCR_isContCR_iff [symmetric])
|
paulson@14405
|
579 |
|
paulson@14405
|
580 |
lemma isContc_isContCR_Re: "isContc f a ==> isContCR (%x. Re (f x)) a"
|
paulson@14405
|
581 |
by (simp add: isContc_def isContCR_def CLIM_CRLIM_Re)
|
paulson@14405
|
582 |
|
paulson@14405
|
583 |
lemma isContc_isContCR_Im: "isContc f a ==> isContCR (%x. Im (f x)) a"
|
paulson@14405
|
584 |
by (simp add: isContc_def isContCR_def CLIM_CRLIM_Im)
|
paulson@14405
|
585 |
|
paulson@14405
|
586 |
|
paulson@14405
|
587 |
subsection{*Derivatives*}
|
paulson@14405
|
588 |
|
paulson@14405
|
589 |
lemma CDERIV_iff: "(CDERIV f x :> D) = ((%h. (f(x + h) - f(x))/h) -- 0 --C> D)"
|
paulson@14405
|
590 |
by (simp add: cderiv_def)
|
paulson@14405
|
591 |
|
paulson@14405
|
592 |
lemma CDERIV_NSC_iff:
|
paulson@14405
|
593 |
"(CDERIV f x :> D) = ((%h. (f(x + h) - f(x))/h) -- 0 --NSC> D)"
|
paulson@14405
|
594 |
by (simp add: cderiv_def CLIM_NSCLIM_iff)
|
paulson@14405
|
595 |
|
paulson@14405
|
596 |
lemma CDERIVD: "CDERIV f x :> D ==> (%h. (f(x + h) - f(x))/h) -- 0 --C> D"
|
paulson@14405
|
597 |
by (simp add: cderiv_def)
|
paulson@14405
|
598 |
|
paulson@14405
|
599 |
lemma NSC_DERIVD: "CDERIV f x :> D ==> (%h. (f(x + h) - f(x))/h) -- 0 --NSC> D"
|
paulson@14405
|
600 |
by (simp add: cderiv_def CLIM_NSCLIM_iff)
|
paulson@14405
|
601 |
|
paulson@14405
|
602 |
text{*Uniqueness*}
|
paulson@14405
|
603 |
lemma CDERIV_unique: "[| CDERIV f x :> D; CDERIV f x :> E |] ==> D = E"
|
paulson@14405
|
604 |
by (simp add: cderiv_def CLIM_unique)
|
paulson@14405
|
605 |
|
paulson@14405
|
606 |
(*** uniqueness: a nonstandard proof ***)
|
paulson@14405
|
607 |
lemma NSCDeriv_unique: "[| NSCDERIV f x :> D; NSCDERIV f x :> E |] ==> D = E"
|
paulson@14405
|
608 |
apply (simp add: nscderiv_def)
|
paulson@14405
|
609 |
apply (auto dest!: bspec [where x = "hcomplex_of_hypreal epsilon"]
|
paulson@14405
|
610 |
intro!: inj_hcomplex_of_complex [THEN injD] dest: capprox_trans3)
|
paulson@14405
|
611 |
done
|
paulson@14405
|
612 |
|
paulson@14405
|
613 |
|
paulson@14405
|
614 |
subsection{* Differentiability*}
|
paulson@14405
|
615 |
|
paulson@14405
|
616 |
lemma CDERIV_CLIM_iff:
|
paulson@14405
|
617 |
"((%h. (f(a + h) - f(a))/h) -- 0 --C> D) =
|
paulson@14405
|
618 |
((%x. (f(x) - f(a)) / (x - a)) -- a --C> D)"
|
paulson@14405
|
619 |
apply (simp add: CLIM_def)
|
paulson@14405
|
620 |
apply (rule_tac f=All in arg_cong)
|
paulson@14405
|
621 |
apply (rule ext)
|
paulson@14405
|
622 |
apply (rule imp_cong)
|
paulson@14405
|
623 |
apply (rule refl)
|
paulson@14405
|
624 |
apply (rule_tac f=Ex in arg_cong)
|
paulson@14405
|
625 |
apply (rule ext)
|
paulson@14405
|
626 |
apply (rule conj_cong)
|
paulson@14405
|
627 |
apply (rule refl)
|
paulson@14405
|
628 |
apply (rule trans)
|
paulson@14405
|
629 |
apply (rule all_shift [where a=a], simp)
|
paulson@14405
|
630 |
done
|
paulson@14405
|
631 |
|
paulson@14405
|
632 |
lemma CDERIV_iff2:
|
paulson@14405
|
633 |
"(CDERIV f x :> D) = ((%z. (f(z) - f(x)) / (z - x)) -- x --C> D)"
|
paulson@14405
|
634 |
by (simp add: cderiv_def CDERIV_CLIM_iff)
|
paulson@14405
|
635 |
|
paulson@14405
|
636 |
|
paulson@14405
|
637 |
subsection{* Equivalence of NS and Standard Differentiation*}
|
paulson@14405
|
638 |
|
paulson@14405
|
639 |
(*** first equivalence ***)
|
paulson@14405
|
640 |
lemma NSCDERIV_NSCLIM_iff:
|
paulson@14405
|
641 |
"(NSCDERIV f x :> D) = ((%h. (f(x + h) - f(x))/h) -- 0 --NSC> D)"
|
paulson@14405
|
642 |
apply (simp add: nscderiv_def NSCLIM_def, auto)
|
paulson@14405
|
643 |
apply (drule_tac x = xa in bspec)
|
paulson@14405
|
644 |
apply (rule_tac [3] ccontr)
|
paulson@14405
|
645 |
apply (drule_tac [3] x = h in spec)
|
paulson@14405
|
646 |
apply (auto simp add: mem_cinfmal_iff starfunC_lambda_cancel)
|
paulson@14405
|
647 |
done
|
paulson@14405
|
648 |
|
paulson@14405
|
649 |
(*** 2nd equivalence ***)
|
paulson@14405
|
650 |
lemma NSCDERIV_NSCLIM_iff2:
|
paulson@14405
|
651 |
"(NSCDERIV f x :> D) = ((%z. (f(z) - f(x)) / (z - x)) -- x --NSC> D)"
|
paulson@14405
|
652 |
by (simp add: NSCDERIV_NSCLIM_iff CDERIV_CLIM_iff CLIM_NSCLIM_iff [symmetric])
|
paulson@14405
|
653 |
|
paulson@14405
|
654 |
lemma NSCDERIV_iff2:
|
paulson@14405
|
655 |
"(NSCDERIV f x :> D) =
|
paulson@14405
|
656 |
(\<forall>xa. xa \<noteq> hcomplex_of_complex x & xa @c= hcomplex_of_complex x -->
|
paulson@14405
|
657 |
( *fc* (%z. (f z - f x) / (z - x))) xa @c= hcomplex_of_complex D)"
|
paulson@14405
|
658 |
by (simp add: NSCDERIV_NSCLIM_iff2 NSCLIM_def)
|
paulson@14405
|
659 |
|
paulson@14405
|
660 |
lemma NSCDERIV_CDERIV_iff: "(NSCDERIV f x :> D) = (CDERIV f x :> D)"
|
paulson@14405
|
661 |
by (simp add: cderiv_def NSCDERIV_NSCLIM_iff CLIM_NSCLIM_iff)
|
paulson@14405
|
662 |
|
paulson@14405
|
663 |
lemma NSCDERIV_isNSContc: "NSCDERIV f x :> D ==> isNSContc f x"
|
paulson@14405
|
664 |
apply (auto simp add: nscderiv_def isNSContc_NSCLIM_iff NSCLIM_def diff_minus)
|
paulson@14405
|
665 |
apply (drule capprox_minus_iff [THEN iffD1])
|
paulson@14405
|
666 |
apply (subgoal_tac "xa + - (hcomplex_of_complex x) \<noteq> 0")
|
paulson@14405
|
667 |
prefer 2 apply (simp add: compare_rls)
|
paulson@14405
|
668 |
apply (drule_tac x = "- hcomplex_of_complex x + xa" in bspec)
|
paulson@14405
|
669 |
prefer 2 apply (simp add: hcomplex_add_assoc [symmetric])
|
paulson@14405
|
670 |
apply (auto simp add: mem_cinfmal_iff [symmetric] hcomplex_add_commute)
|
paulson@14405
|
671 |
apply (drule_tac c = "xa + - hcomplex_of_complex x" in capprox_mult1)
|
paulson@14405
|
672 |
apply (auto intro: CInfinitesimal_subset_CFinite [THEN subsetD]
|
paulson@14405
|
673 |
simp add: mult_assoc)
|
paulson@14405
|
674 |
apply (drule_tac x3 = D in
|
paulson@14405
|
675 |
CFinite_hcomplex_of_complex [THEN [2] CInfinitesimal_CFinite_mult,
|
paulson@14405
|
676 |
THEN mem_cinfmal_iff [THEN iffD1]])
|
paulson@14405
|
677 |
apply (blast intro: capprox_trans mult_commute [THEN subst] capprox_minus_iff [THEN iffD2])
|
paulson@14405
|
678 |
done
|
paulson@14405
|
679 |
|
paulson@14405
|
680 |
lemma CDERIV_isContc: "CDERIV f x :> D ==> isContc f x"
|
paulson@14405
|
681 |
by (simp add: NSCDERIV_CDERIV_iff [symmetric] isNSContc_isContc_iff [symmetric] NSCDERIV_isNSContc)
|
paulson@14405
|
682 |
|
paulson@14405
|
683 |
text{* Differentiation rules for combinations of functions follow by clear,
|
paulson@14405
|
684 |
straightforard algebraic manipulations*}
|
paulson@14405
|
685 |
|
paulson@14405
|
686 |
(* use simple constant nslimit theorem *)
|
paulson@14405
|
687 |
lemma NSCDERIV_const [simp]: "(NSCDERIV (%x. k) x :> 0)"
|
paulson@14405
|
688 |
by (simp add: NSCDERIV_NSCLIM_iff)
|
paulson@14405
|
689 |
|
paulson@14405
|
690 |
lemma CDERIV_const [simp]: "(CDERIV (%x. k) x :> 0)"
|
paulson@14405
|
691 |
by (simp add: NSCDERIV_CDERIV_iff [symmetric])
|
paulson@14405
|
692 |
|
paulson@14405
|
693 |
lemma NSCDERIV_add:
|
paulson@14405
|
694 |
"[| NSCDERIV f x :> Da; NSCDERIV g x :> Db |]
|
paulson@14405
|
695 |
==> NSCDERIV (%x. f x + g x) x :> Da + Db"
|
paulson@14405
|
696 |
apply (simp add: NSCDERIV_NSCLIM_iff NSCLIM_def, clarify)
|
paulson@14405
|
697 |
apply (auto dest!: spec simp add: add_divide_distrib diff_minus)
|
paulson@14405
|
698 |
apply (drule_tac b = "hcomplex_of_complex Da" and d = "hcomplex_of_complex Db" in capprox_add)
|
paulson@14405
|
699 |
apply (auto simp add: add_ac)
|
paulson@14405
|
700 |
done
|
paulson@14405
|
701 |
|
paulson@14405
|
702 |
lemma CDERIV_add:
|
paulson@14405
|
703 |
"[| CDERIV f x :> Da; CDERIV g x :> Db |]
|
paulson@14405
|
704 |
==> CDERIV (%x. f x + g x) x :> Da + Db"
|
paulson@14405
|
705 |
by (simp add: NSCDERIV_add NSCDERIV_CDERIV_iff [symmetric])
|
paulson@14405
|
706 |
|
paulson@14405
|
707 |
|
paulson@14405
|
708 |
subsection{*Lemmas for Multiplication*}
|
paulson@14405
|
709 |
|
paulson@14405
|
710 |
lemma lemma_nscderiv1: "((a::hcomplex)*b) - (c*d) = (b*(a - c)) + (c*(b - d))"
|
paulson@14405
|
711 |
by (simp add: right_diff_distrib)
|
paulson@14405
|
712 |
|
paulson@14405
|
713 |
lemma lemma_nscderiv2:
|
paulson@14405
|
714 |
"[| (x + y) / z = hcomplex_of_complex D + yb; z \<noteq> 0;
|
paulson@14405
|
715 |
z : CInfinitesimal; yb : CInfinitesimal |]
|
paulson@14405
|
716 |
==> x + y @c= 0"
|
paulson@14405
|
717 |
apply (frule_tac c1 = z in hcomplex_mult_right_cancel [THEN iffD2], assumption)
|
paulson@14405
|
718 |
apply (erule_tac V = " (x + y) / z = hcomplex_of_complex D + yb" in thin_rl)
|
paulson@14405
|
719 |
apply (auto intro!: CInfinitesimal_CFinite_mult2 CFinite_add
|
paulson@14405
|
720 |
simp add: mem_cinfmal_iff [symmetric])
|
paulson@14405
|
721 |
apply (erule CInfinitesimal_subset_CFinite [THEN subsetD])
|
paulson@14405
|
722 |
done
|
paulson@14405
|
723 |
|
paulson@14405
|
724 |
lemma NSCDERIV_mult:
|
paulson@14405
|
725 |
"[| NSCDERIV f x :> Da; NSCDERIV g x :> Db |]
|
paulson@14405
|
726 |
==> NSCDERIV (%x. f x * g x) x :> (Da * g(x)) + (Db * f(x))"
|
paulson@14405
|
727 |
apply (simp add: NSCDERIV_NSCLIM_iff NSCLIM_def, clarify)
|
paulson@14405
|
728 |
apply (auto dest!: spec
|
paulson@14405
|
729 |
simp add: starfunC_lambda_cancel lemma_nscderiv1)
|
paulson@14405
|
730 |
apply (simp (no_asm) add: add_divide_distrib)
|
paulson@14405
|
731 |
apply (drule bex_CInfinitesimal_iff2 [THEN iffD2])+
|
paulson@14405
|
732 |
apply (auto simp del: times_divide_eq_right simp add: times_divide_eq_right [symmetric])
|
paulson@14405
|
733 |
apply (simp add: diff_minus)
|
paulson@14405
|
734 |
apply (drule_tac D = Db in lemma_nscderiv2)
|
paulson@14405
|
735 |
apply (drule_tac [4]
|
paulson@14405
|
736 |
capprox_minus_iff [THEN iffD2, THEN bex_CInfinitesimal_iff2 [THEN iffD2]])
|
paulson@14405
|
737 |
apply (auto intro!: capprox_add_mono1 simp add: left_distrib right_distrib mult_commute add_assoc)
|
paulson@14405
|
738 |
apply (rule_tac b1 = "hcomplex_of_complex Db * hcomplex_of_complex (f x) " in add_commute [THEN subst])
|
paulson@14405
|
739 |
apply (auto intro!: CInfinitesimal_add_capprox_self2 [THEN capprox_sym]
|
paulson@14405
|
740 |
CInfinitesimal_add CInfinitesimal_mult
|
paulson@14405
|
741 |
CInfinitesimal_hcomplex_of_complex_mult
|
paulson@14405
|
742 |
CInfinitesimal_hcomplex_of_complex_mult2
|
paulson@14405
|
743 |
simp add: hcomplex_add_assoc [symmetric])
|
paulson@14405
|
744 |
done
|
paulson@14405
|
745 |
|
paulson@14405
|
746 |
lemma CDERIV_mult:
|
paulson@14405
|
747 |
"[| CDERIV f x :> Da; CDERIV g x :> Db |]
|
paulson@14405
|
748 |
==> CDERIV (%x. f x * g x) x :> (Da * g(x)) + (Db * f(x))"
|
paulson@14405
|
749 |
by (simp add: NSCDERIV_mult NSCDERIV_CDERIV_iff [symmetric])
|
paulson@14405
|
750 |
|
paulson@14405
|
751 |
lemma NSCDERIV_cmult: "NSCDERIV f x :> D ==> NSCDERIV (%x. c * f x) x :> c*D"
|
paulson@14405
|
752 |
apply (simp add: times_divide_eq_right [symmetric] NSCDERIV_NSCLIM_iff
|
paulson@14469
|
753 |
minus_mult_right right_distrib [symmetric] diff_minus
|
paulson@14405
|
754 |
del: times_divide_eq_right minus_mult_right [symmetric])
|
paulson@14405
|
755 |
apply (erule NSCLIM_const [THEN NSCLIM_mult])
|
paulson@14405
|
756 |
done
|
paulson@14405
|
757 |
|
paulson@14405
|
758 |
lemma CDERIV_cmult: "CDERIV f x :> D ==> CDERIV (%x. c * f x) x :> c*D"
|
paulson@14405
|
759 |
by (simp add: NSCDERIV_cmult NSCDERIV_CDERIV_iff [symmetric])
|
paulson@14405
|
760 |
|
paulson@14405
|
761 |
lemma NSCDERIV_minus: "NSCDERIV f x :> D ==> NSCDERIV (%x. -(f x)) x :> -D"
|
paulson@14469
|
762 |
apply (simp add: NSCDERIV_NSCLIM_iff diff_minus)
|
paulson@14405
|
763 |
apply (rule_tac t = "f x" in minus_minus [THEN subst])
|
paulson@14405
|
764 |
apply (simp (no_asm_simp) add: minus_add_distrib [symmetric]
|
paulson@14405
|
765 |
del: minus_add_distrib minus_minus)
|
paulson@14405
|
766 |
apply (erule NSCLIM_minus)
|
paulson@14405
|
767 |
done
|
paulson@14405
|
768 |
|
paulson@14405
|
769 |
lemma CDERIV_minus: "CDERIV f x :> D ==> CDERIV (%x. -(f x)) x :> -D"
|
paulson@14405
|
770 |
by (simp add: NSCDERIV_minus NSCDERIV_CDERIV_iff [symmetric])
|
paulson@14405
|
771 |
|
paulson@14405
|
772 |
lemma NSCDERIV_add_minus:
|
paulson@14405
|
773 |
"[| NSCDERIV f x :> Da; NSCDERIV g x :> Db |]
|
paulson@14405
|
774 |
==> NSCDERIV (%x. f x + -g x) x :> Da + -Db"
|
paulson@14405
|
775 |
by (blast dest: NSCDERIV_add NSCDERIV_minus)
|
paulson@14405
|
776 |
|
paulson@14405
|
777 |
lemma CDERIV_add_minus:
|
paulson@14405
|
778 |
"[| CDERIV f x :> Da; CDERIV g x :> Db |]
|
paulson@14405
|
779 |
==> CDERIV (%x. f x + -g x) x :> Da + -Db"
|
paulson@14405
|
780 |
by (blast dest: CDERIV_add CDERIV_minus)
|
paulson@14405
|
781 |
|
paulson@14405
|
782 |
lemma NSCDERIV_diff:
|
paulson@14405
|
783 |
"[| NSCDERIV f x :> Da; NSCDERIV g x :> Db |]
|
paulson@14405
|
784 |
==> NSCDERIV (%x. f x - g x) x :> Da - Db"
|
paulson@14469
|
785 |
by (simp add: diff_minus NSCDERIV_add_minus)
|
paulson@14405
|
786 |
|
paulson@14405
|
787 |
lemma CDERIV_diff:
|
paulson@14405
|
788 |
"[| CDERIV f x :> Da; CDERIV g x :> Db |]
|
paulson@14405
|
789 |
==> CDERIV (%x. f x - g x) x :> Da - Db"
|
paulson@14469
|
790 |
by (simp add: diff_minus CDERIV_add_minus)
|
paulson@14405
|
791 |
|
paulson@14405
|
792 |
|
paulson@14405
|
793 |
subsection{*Chain Rule*}
|
paulson@14405
|
794 |
|
paulson@14405
|
795 |
(* lemmas *)
|
paulson@14405
|
796 |
lemma NSCDERIV_zero:
|
paulson@14405
|
797 |
"[| NSCDERIV g x :> D;
|
paulson@14405
|
798 |
( *fc* g) (hcomplex_of_complex(x) + xa) = hcomplex_of_complex(g x);
|
paulson@14405
|
799 |
xa : CInfinitesimal; xa \<noteq> 0
|
paulson@14405
|
800 |
|] ==> D = 0"
|
paulson@14405
|
801 |
apply (simp add: nscderiv_def)
|
paulson@14405
|
802 |
apply (drule bspec, auto)
|
paulson@14405
|
803 |
done
|
paulson@14405
|
804 |
|
paulson@14405
|
805 |
lemma NSCDERIV_capprox:
|
paulson@14405
|
806 |
"[| NSCDERIV f x :> D; h: CInfinitesimal; h \<noteq> 0 |]
|
paulson@14405
|
807 |
==> ( *fc* f) (hcomplex_of_complex(x) + h) - hcomplex_of_complex(f x) @c= 0"
|
paulson@14405
|
808 |
apply (simp add: nscderiv_def mem_cinfmal_iff [symmetric])
|
paulson@14405
|
809 |
apply (rule CInfinitesimal_ratio)
|
paulson@14405
|
810 |
apply (rule_tac [3] capprox_hcomplex_of_complex_CFinite, auto)
|
paulson@14405
|
811 |
done
|
paulson@14405
|
812 |
|
paulson@14405
|
813 |
|
paulson@14405
|
814 |
(*--------------------------------------------------*)
|
paulson@14405
|
815 |
(* from one version of differentiability *)
|
paulson@14405
|
816 |
(* *)
|
paulson@14405
|
817 |
(* f(x) - f(a) *)
|
paulson@14405
|
818 |
(* --------------- @= Db *)
|
paulson@14405
|
819 |
(* x - a *)
|
paulson@14405
|
820 |
(* -------------------------------------------------*)
|
paulson@14405
|
821 |
|
paulson@14405
|
822 |
lemma NSCDERIVD1:
|
paulson@14405
|
823 |
"[| NSCDERIV f (g x) :> Da;
|
paulson@14405
|
824 |
( *fc* g) (hcomplex_of_complex(x) + xa) \<noteq> hcomplex_of_complex (g x);
|
paulson@14405
|
825 |
( *fc* g) (hcomplex_of_complex(x) + xa) @c= hcomplex_of_complex (g x)|]
|
paulson@14405
|
826 |
==> (( *fc* f) (( *fc* g) (hcomplex_of_complex(x) + xa))
|
paulson@14405
|
827 |
- hcomplex_of_complex (f (g x))) /
|
paulson@14405
|
828 |
(( *fc* g) (hcomplex_of_complex(x) + xa) - hcomplex_of_complex (g x))
|
paulson@14405
|
829 |
@c= hcomplex_of_complex (Da)"
|
paulson@14469
|
830 |
by (simp add: NSCDERIV_NSCLIM_iff2 NSCLIM_def)
|
paulson@14405
|
831 |
|
paulson@14405
|
832 |
(*--------------------------------------------------*)
|
paulson@14405
|
833 |
(* from other version of differentiability *)
|
paulson@14405
|
834 |
(* *)
|
paulson@14405
|
835 |
(* f(x + h) - f(x) *)
|
paulson@14405
|
836 |
(* ----------------- @= Db *)
|
paulson@14405
|
837 |
(* h *)
|
paulson@14405
|
838 |
(*--------------------------------------------------*)
|
paulson@14405
|
839 |
|
paulson@14405
|
840 |
lemma NSCDERIVD2:
|
paulson@14405
|
841 |
"[| NSCDERIV g x :> Db; xa: CInfinitesimal; xa \<noteq> 0 |]
|
paulson@14405
|
842 |
==> (( *fc* g) (hcomplex_of_complex x + xa) - hcomplex_of_complex(g x)) / xa
|
paulson@14405
|
843 |
@c= hcomplex_of_complex (Db)"
|
paulson@14469
|
844 |
by (simp add: NSCDERIV_NSCLIM_iff NSCLIM_def mem_cinfmal_iff starfunC_lambda_cancel)
|
paulson@14405
|
845 |
|
paulson@14405
|
846 |
lemma lemma_complex_chain: "(z::hcomplex) \<noteq> 0 ==> x*y = (x*inverse(z))*(z*y)"
|
paulson@14405
|
847 |
by auto
|
paulson@14405
|
848 |
|
paulson@14405
|
849 |
|
paulson@14405
|
850 |
text{*Chain rule*}
|
paulson@14405
|
851 |
theorem NSCDERIV_chain:
|
paulson@14405
|
852 |
"[| NSCDERIV f (g x) :> Da; NSCDERIV g x :> Db |]
|
paulson@14405
|
853 |
==> NSCDERIV (f o g) x :> Da * Db"
|
paulson@14405
|
854 |
apply (simp (no_asm_simp) add: NSCDERIV_NSCLIM_iff NSCLIM_def mem_cinfmal_iff [symmetric])
|
paulson@14405
|
855 |
apply safe
|
paulson@14405
|
856 |
apply (frule_tac f = g in NSCDERIV_capprox)
|
paulson@14405
|
857 |
apply (auto simp add: starfunC_lambda_cancel2 starfunC_o [symmetric])
|
paulson@14405
|
858 |
apply (case_tac "( *fc* g) (hcomplex_of_complex (x) + xa) = hcomplex_of_complex (g x) ")
|
paulson@14405
|
859 |
apply (drule_tac g = g in NSCDERIV_zero)
|
paulson@14405
|
860 |
apply (auto simp add: hcomplex_divide_def)
|
paulson@14405
|
861 |
apply (rule_tac z1 = "( *fc* g) (hcomplex_of_complex (x) + xa) - hcomplex_of_complex (g x) " and y1 = "inverse xa" in lemma_complex_chain [THEN ssubst])
|
paulson@14405
|
862 |
apply (simp (no_asm_simp))
|
paulson@14405
|
863 |
apply (rule capprox_mult_hcomplex_of_complex)
|
paulson@14405
|
864 |
apply (auto intro!: NSCDERIVD1 intro: capprox_minus_iff [THEN iffD2]
|
paulson@14430
|
865 |
simp add: diff_minus [symmetric] divide_inverse [symmetric])
|
paulson@14405
|
866 |
apply (blast intro: NSCDERIVD2)
|
paulson@14405
|
867 |
done
|
paulson@14405
|
868 |
|
paulson@14405
|
869 |
text{*standard version*}
|
paulson@14405
|
870 |
lemma CDERIV_chain:
|
paulson@14405
|
871 |
"[| CDERIV f (g x) :> Da; CDERIV g x :> Db |]
|
paulson@14405
|
872 |
==> CDERIV (f o g) x :> Da * Db"
|
paulson@14405
|
873 |
by (simp add: NSCDERIV_CDERIV_iff [symmetric] NSCDERIV_chain)
|
paulson@14405
|
874 |
|
paulson@14405
|
875 |
lemma CDERIV_chain2:
|
paulson@14405
|
876 |
"[| CDERIV f (g x) :> Da; CDERIV g x :> Db |]
|
paulson@14405
|
877 |
==> CDERIV (%x. f (g x)) x :> Da * Db"
|
paulson@14405
|
878 |
by (auto dest: CDERIV_chain simp add: o_def)
|
paulson@14405
|
879 |
|
paulson@14405
|
880 |
|
paulson@14405
|
881 |
subsection{* Differentiation of Natural Number Powers*}
|
paulson@14405
|
882 |
|
paulson@14405
|
883 |
lemma NSCDERIV_Id [simp]: "NSCDERIV (%x. x) x :> 1"
|
paulson@14405
|
884 |
by (simp add: NSCDERIV_NSCLIM_iff NSCLIM_def)
|
paulson@14405
|
885 |
|
paulson@14405
|
886 |
lemma CDERIV_Id [simp]: "CDERIV (%x. x) x :> 1"
|
paulson@14405
|
887 |
by (simp add: NSCDERIV_CDERIV_iff [symmetric])
|
paulson@14405
|
888 |
|
paulson@14405
|
889 |
lemmas isContc_Id = CDERIV_Id [THEN CDERIV_isContc, standard]
|
paulson@14405
|
890 |
|
paulson@14405
|
891 |
text{*derivative of linear multiplication*}
|
paulson@14405
|
892 |
lemma CDERIV_cmult_Id [simp]: "CDERIV (op * c) x :> c"
|
paulson@14405
|
893 |
by (cut_tac c = c and x = x in CDERIV_Id [THEN CDERIV_cmult], simp)
|
paulson@14405
|
894 |
|
paulson@14405
|
895 |
lemma NSCDERIV_cmult_Id [simp]: "NSCDERIV (op * c) x :> c"
|
paulson@14405
|
896 |
by (simp add: NSCDERIV_CDERIV_iff)
|
paulson@14405
|
897 |
|
paulson@14405
|
898 |
lemma CDERIV_pow [simp]:
|
paulson@14405
|
899 |
"CDERIV (%x. x ^ n) x :> (complex_of_real (real n)) * (x ^ (n - Suc 0))"
|
paulson@14405
|
900 |
apply (induct_tac "n")
|
paulson@14405
|
901 |
apply (drule_tac [2] CDERIV_Id [THEN CDERIV_mult])
|
paulson@14405
|
902 |
apply (auto simp add: complex_of_real_add [symmetric] left_distrib real_of_nat_Suc)
|
paulson@14405
|
903 |
apply (case_tac "n")
|
paulson@14405
|
904 |
apply (auto simp add: mult_ac add_commute)
|
paulson@14405
|
905 |
done
|
paulson@14405
|
906 |
|
paulson@14405
|
907 |
text{*Nonstandard version*}
|
paulson@14405
|
908 |
lemma NSCDERIV_pow:
|
paulson@14405
|
909 |
"NSCDERIV (%x. x ^ n) x :> complex_of_real (real n) * (x ^ (n - 1))"
|
paulson@14405
|
910 |
by (simp add: NSCDERIV_CDERIV_iff)
|
paulson@14405
|
911 |
|
paulson@14405
|
912 |
lemma lemma_CDERIV_subst:
|
paulson@14405
|
913 |
"[|CDERIV f x :> D; D = E|] ==> CDERIV f x :> E"
|
paulson@14405
|
914 |
by auto
|
paulson@14405
|
915 |
|
paulson@14405
|
916 |
(*used once, in NSCDERIV_inverse*)
|
paulson@14405
|
917 |
lemma CInfinitesimal_add_not_zero:
|
paulson@14405
|
918 |
"[| h: CInfinitesimal; x \<noteq> 0 |] ==> hcomplex_of_complex x + h \<noteq> 0"
|
paulson@14405
|
919 |
apply clarify
|
paulson@14405
|
920 |
apply (drule equals_zero_I, auto)
|
paulson@14405
|
921 |
done
|
paulson@14405
|
922 |
|
paulson@14405
|
923 |
text{*Can't relax the premise @{term "x \<noteq> 0"}: it isn't continuous at zero*}
|
paulson@14405
|
924 |
lemma NSCDERIV_inverse:
|
paulson@14405
|
925 |
"x \<noteq> 0 ==> NSCDERIV (%x. inverse(x)) x :> (- (inverse x ^ 2))"
|
paulson@14405
|
926 |
apply (simp add: nscderiv_def Ball_def, clarify)
|
paulson@14405
|
927 |
apply (frule CInfinitesimal_add_not_zero [where x=x])
|
paulson@14469
|
928 |
apply (auto simp add: starfunC_inverse_inverse diff_minus
|
paulson@14405
|
929 |
simp del: minus_mult_left [symmetric] minus_mult_right [symmetric])
|
paulson@14405
|
930 |
apply (simp add: hcomplex_add_commute numeral_2_eq_2 inverse_add
|
paulson@14405
|
931 |
inverse_mult_distrib [symmetric] inverse_minus_eq [symmetric]
|
paulson@14405
|
932 |
add_ac mult_ac
|
paulson@14405
|
933 |
del: inverse_minus_eq inverse_mult_distrib minus_mult_right [symmetric] minus_mult_left [symmetric])
|
paulson@14405
|
934 |
apply (simp only: mult_assoc [symmetric] right_distrib)
|
paulson@14405
|
935 |
apply (rule_tac y = " inverse (- hcomplex_of_complex x * hcomplex_of_complex x) " in capprox_trans)
|
paulson@14405
|
936 |
apply (rule inverse_add_CInfinitesimal_capprox2)
|
paulson@14405
|
937 |
apply (auto dest!: hcomplex_of_complex_CFinite_diff_CInfinitesimal
|
paulson@14405
|
938 |
intro: CFinite_mult
|
paulson@14405
|
939 |
simp add: inverse_minus_eq [symmetric])
|
paulson@14405
|
940 |
apply (rule CInfinitesimal_CFinite_mult2, auto)
|
paulson@14405
|
941 |
done
|
paulson@14405
|
942 |
|
paulson@14405
|
943 |
lemma CDERIV_inverse:
|
paulson@14405
|
944 |
"x \<noteq> 0 ==> CDERIV (%x. inverse(x)) x :> (-(inverse x ^ 2))"
|
paulson@14405
|
945 |
by (simp add: NSCDERIV_inverse NSCDERIV_CDERIV_iff [symmetric]
|
paulson@14405
|
946 |
del: complexpow_Suc)
|
paulson@14405
|
947 |
|
paulson@14405
|
948 |
|
paulson@14405
|
949 |
subsection{*Derivative of Reciprocals (Function @{term inverse})*}
|
paulson@14405
|
950 |
|
paulson@14405
|
951 |
lemma CDERIV_inverse_fun:
|
paulson@14405
|
952 |
"[| CDERIV f x :> d; f(x) \<noteq> 0 |]
|
paulson@14405
|
953 |
==> CDERIV (%x. inverse(f x)) x :> (- (d * inverse(f(x) ^ 2)))"
|
paulson@14405
|
954 |
apply (rule mult_commute [THEN subst])
|
paulson@14405
|
955 |
apply (simp (no_asm_simp) add: minus_mult_left power_inverse del: complexpow_Suc minus_mult_left [symmetric])
|
paulson@14405
|
956 |
apply (fold o_def)
|
paulson@14405
|
957 |
apply (blast intro!: CDERIV_chain CDERIV_inverse)
|
paulson@14405
|
958 |
done
|
paulson@14405
|
959 |
|
paulson@14405
|
960 |
lemma NSCDERIV_inverse_fun:
|
paulson@14405
|
961 |
"[| NSCDERIV f x :> d; f(x) \<noteq> 0 |]
|
paulson@14405
|
962 |
==> NSCDERIV (%x. inverse(f x)) x :> (- (d * inverse(f(x) ^ 2)))"
|
paulson@14405
|
963 |
by (simp add: NSCDERIV_CDERIV_iff CDERIV_inverse_fun del: complexpow_Suc)
|
paulson@14405
|
964 |
|
paulson@14405
|
965 |
|
paulson@14405
|
966 |
subsection{* Derivative of Quotient*}
|
paulson@14405
|
967 |
|
paulson@14405
|
968 |
lemma CDERIV_quotient:
|
paulson@14405
|
969 |
"[| CDERIV f x :> d; CDERIV g x :> e; g(x) \<noteq> 0 |]
|
paulson@14405
|
970 |
==> CDERIV (%y. f(y) / (g y)) x :> (d*g(x) - (e*f(x))) / (g(x) ^ 2)"
|
paulson@14469
|
971 |
apply (simp add: diff_minus)
|
paulson@14405
|
972 |
apply (drule_tac f = g in CDERIV_inverse_fun)
|
paulson@14405
|
973 |
apply (drule_tac [2] CDERIV_mult, assumption+)
|
paulson@14430
|
974 |
apply (simp add: divide_inverse right_distrib power_inverse minus_mult_left
|
paulson@14430
|
975 |
mult_ac
|
paulson@14430
|
976 |
del: minus_mult_right [symmetric] minus_mult_left [symmetric]
|
paulson@14430
|
977 |
complexpow_Suc)
|
paulson@14405
|
978 |
done
|
paulson@14405
|
979 |
|
paulson@14405
|
980 |
lemma NSCDERIV_quotient:
|
paulson@14405
|
981 |
"[| NSCDERIV f x :> d; NSCDERIV g x :> e; g(x) \<noteq> 0 |]
|
paulson@14405
|
982 |
==> NSCDERIV (%y. f(y) / (g y)) x :> (d*g(x) - (e*f(x))) / (g(x) ^ 2)"
|
paulson@14405
|
983 |
by (simp add: NSCDERIV_CDERIV_iff CDERIV_quotient del: complexpow_Suc)
|
paulson@14405
|
984 |
|
paulson@14405
|
985 |
|
paulson@14405
|
986 |
subsection{*Caratheodory Formulation of Derivative at a Point: Standard Proof*}
|
paulson@14405
|
987 |
|
paulson@14405
|
988 |
lemma CLIM_equal:
|
paulson@14405
|
989 |
"[| \<forall>x. x \<noteq> a --> (f x = g x) |] ==> (f -- a --C> l) = (g -- a --C> l)"
|
paulson@14405
|
990 |
by (simp add: CLIM_def complex_add_minus_iff)
|
paulson@14405
|
991 |
|
paulson@14405
|
992 |
lemma CLIM_trans:
|
paulson@14405
|
993 |
"[| (%x. f(x) + -g(x)) -- a --C> 0; g -- a --C> l |] ==> f -- a --C> l"
|
paulson@14405
|
994 |
apply (drule CLIM_add, assumption)
|
paulson@14405
|
995 |
apply (simp add: complex_add_assoc)
|
paulson@14405
|
996 |
done
|
paulson@14405
|
997 |
|
paulson@14405
|
998 |
lemma CARAT_CDERIV:
|
paulson@14405
|
999 |
"(CDERIV f x :> l) =
|
paulson@14405
|
1000 |
(\<exists>g. (\<forall>z. f z - f x = g z * (z - x)) & isContc g x & g x = l)"
|
paulson@14405
|
1001 |
apply safe
|
paulson@14405
|
1002 |
apply (rule_tac x = "%z. if z=x then l else (f (z) - f (x)) / (z-x)" in exI)
|
paulson@14405
|
1003 |
apply (auto simp add: mult_assoc isContc_iff CDERIV_iff)
|
paulson@14405
|
1004 |
apply (rule_tac [!] CLIM_equal [THEN iffD1], auto)
|
paulson@14405
|
1005 |
done
|
paulson@14405
|
1006 |
|
paulson@14405
|
1007 |
|
paulson@14405
|
1008 |
lemma CARAT_NSCDERIV:
|
paulson@14405
|
1009 |
"NSCDERIV f x :> l ==>
|
paulson@14405
|
1010 |
\<exists>g. (\<forall>z. f z - f x = g z * (z - x)) & isNSContc g x & g x = l"
|
paulson@14469
|
1011 |
by (simp add: NSCDERIV_CDERIV_iff isNSContc_isContc_iff CARAT_CDERIV)
|
paulson@14405
|
1012 |
|
paulson@14405
|
1013 |
(* FIXME tidy! How about a NS proof? *)
|
paulson@14405
|
1014 |
lemma CARAT_CDERIVD:
|
paulson@14405
|
1015 |
"(\<forall>z. f z - f x = g z * (z - x)) & isNSContc g x & g x = l
|
paulson@14405
|
1016 |
==> NSCDERIV f x :> l"
|
paulson@14405
|
1017 |
apply (simp only: NSCDERIV_iff2)
|
paulson@14405
|
1018 |
apply (tactic {*(auto_tac (claset(),
|
paulson@14405
|
1019 |
simpset() delsimprocs field_cancel_factor
|
paulson@14405
|
1020 |
addsimps [thm"NSCDERIV_iff2"])) *})
|
paulson@14405
|
1021 |
apply (simp add: isNSContc_def)
|
paulson@14405
|
1022 |
done
|
paulson@14405
|
1023 |
|
paulson@14405
|
1024 |
ML
|
paulson@14405
|
1025 |
{*
|
paulson@14405
|
1026 |
val complex_add_minus_iff = thm "complex_add_minus_iff";
|
paulson@14405
|
1027 |
val complex_add_eq_0_iff = thm "complex_add_eq_0_iff";
|
paulson@14405
|
1028 |
val NSCLIM_NSCRLIM_Re = thm "NSCLIM_NSCRLIM_Re";
|
paulson@14405
|
1029 |
val NSCLIM_NSCRLIM_Im = thm "NSCLIM_NSCRLIM_Im";
|
paulson@14405
|
1030 |
val CLIM_NSCLIM = thm "CLIM_NSCLIM";
|
paulson@14405
|
1031 |
val eq_Abs_hcomplex_ALL = thm "eq_Abs_hcomplex_ALL";
|
paulson@14405
|
1032 |
val lemma_CLIM = thm "lemma_CLIM";
|
paulson@14405
|
1033 |
val lemma_skolemize_CLIM2 = thm "lemma_skolemize_CLIM2";
|
paulson@14405
|
1034 |
val lemma_csimp = thm "lemma_csimp";
|
paulson@14405
|
1035 |
val NSCLIM_CLIM = thm "NSCLIM_CLIM";
|
paulson@14405
|
1036 |
val CLIM_NSCLIM_iff = thm "CLIM_NSCLIM_iff";
|
paulson@14405
|
1037 |
val CRLIM_NSCRLIM = thm "CRLIM_NSCRLIM";
|
paulson@14405
|
1038 |
val lemma_CRLIM = thm "lemma_CRLIM";
|
paulson@14405
|
1039 |
val lemma_skolemize_CRLIM2 = thm "lemma_skolemize_CRLIM2";
|
paulson@14405
|
1040 |
val lemma_crsimp = thm "lemma_crsimp";
|
paulson@14405
|
1041 |
val NSCRLIM_CRLIM = thm "NSCRLIM_CRLIM";
|
paulson@14405
|
1042 |
val CRLIM_NSCRLIM_iff = thm "CRLIM_NSCRLIM_iff";
|
paulson@14405
|
1043 |
val CLIM_CRLIM_Re = thm "CLIM_CRLIM_Re";
|
paulson@14405
|
1044 |
val CLIM_CRLIM_Im = thm "CLIM_CRLIM_Im";
|
paulson@14405
|
1045 |
val CLIM_cnj = thm "CLIM_cnj";
|
paulson@14405
|
1046 |
val CLIM_cnj_iff = thm "CLIM_cnj_iff";
|
paulson@14405
|
1047 |
val NSCLIM_add = thm "NSCLIM_add";
|
paulson@14405
|
1048 |
val CLIM_add = thm "CLIM_add";
|
paulson@14405
|
1049 |
val NSCLIM_mult = thm "NSCLIM_mult";
|
paulson@14405
|
1050 |
val CLIM_mult = thm "CLIM_mult";
|
paulson@14405
|
1051 |
val NSCLIM_const = thm "NSCLIM_const";
|
paulson@14405
|
1052 |
val CLIM_const = thm "CLIM_const";
|
paulson@14405
|
1053 |
val NSCLIM_minus = thm "NSCLIM_minus";
|
paulson@14405
|
1054 |
val CLIM_minus = thm "CLIM_minus";
|
paulson@14405
|
1055 |
val NSCLIM_diff = thm "NSCLIM_diff";
|
paulson@14405
|
1056 |
val CLIM_diff = thm "CLIM_diff";
|
paulson@14405
|
1057 |
val NSCLIM_inverse = thm "NSCLIM_inverse";
|
paulson@14405
|
1058 |
val CLIM_inverse = thm "CLIM_inverse";
|
paulson@14405
|
1059 |
val NSCLIM_zero = thm "NSCLIM_zero";
|
paulson@14405
|
1060 |
val CLIM_zero = thm "CLIM_zero";
|
paulson@14405
|
1061 |
val NSCLIM_zero_cancel = thm "NSCLIM_zero_cancel";
|
paulson@14405
|
1062 |
val CLIM_zero_cancel = thm "CLIM_zero_cancel";
|
paulson@14405
|
1063 |
val NSCLIM_not_zero = thm "NSCLIM_not_zero";
|
paulson@14405
|
1064 |
val NSCLIM_not_zeroE = thms "NSCLIM_not_zeroE";
|
paulson@14405
|
1065 |
val CLIM_not_zero = thm "CLIM_not_zero";
|
paulson@14405
|
1066 |
val NSCLIM_const_eq = thm "NSCLIM_const_eq";
|
paulson@14405
|
1067 |
val CLIM_const_eq = thm "CLIM_const_eq";
|
paulson@14405
|
1068 |
val NSCLIM_unique = thm "NSCLIM_unique";
|
paulson@14405
|
1069 |
val CLIM_unique = thm "CLIM_unique";
|
paulson@14405
|
1070 |
val NSCLIM_mult_zero = thm "NSCLIM_mult_zero";
|
paulson@14405
|
1071 |
val CLIM_mult_zero = thm "CLIM_mult_zero";
|
paulson@14405
|
1072 |
val NSCLIM_self = thm "NSCLIM_self";
|
paulson@14405
|
1073 |
val CLIM_self = thm "CLIM_self";
|
paulson@14405
|
1074 |
val NSCLIM_NSCRLIM_iff = thm "NSCLIM_NSCRLIM_iff";
|
paulson@14405
|
1075 |
val CLIM_CRLIM_iff = thm "CLIM_CRLIM_iff";
|
paulson@14405
|
1076 |
val NSCLIM_NSCRLIM_iff2 = thm "NSCLIM_NSCRLIM_iff2";
|
paulson@14405
|
1077 |
val NSCLIM_NSCRLIM_Re_Im_iff = thm "NSCLIM_NSCRLIM_Re_Im_iff";
|
paulson@14405
|
1078 |
val CLIM_CRLIM_Re_Im_iff = thm "CLIM_CRLIM_Re_Im_iff";
|
paulson@14405
|
1079 |
val isNSContcD = thm "isNSContcD";
|
paulson@14405
|
1080 |
val isNSContc_NSCLIM = thm "isNSContc_NSCLIM";
|
paulson@14405
|
1081 |
val NSCLIM_isNSContc = thm "NSCLIM_isNSContc";
|
paulson@14405
|
1082 |
val isNSContc_NSCLIM_iff = thm "isNSContc_NSCLIM_iff";
|
paulson@14405
|
1083 |
val isNSContc_CLIM_iff = thm "isNSContc_CLIM_iff";
|
paulson@14405
|
1084 |
val isNSContc_isContc_iff = thm "isNSContc_isContc_iff";
|
paulson@14405
|
1085 |
val isContc_isNSContc = thm "isContc_isNSContc";
|
paulson@14405
|
1086 |
val isNSContc_isContc = thm "isNSContc_isContc";
|
paulson@14405
|
1087 |
val NSCLIM_h_iff = thm "NSCLIM_h_iff";
|
paulson@14405
|
1088 |
val NSCLIM_isContc_iff = thm "NSCLIM_isContc_iff";
|
paulson@14405
|
1089 |
val CLIM_isContc_iff = thm "CLIM_isContc_iff";
|
paulson@14405
|
1090 |
val isContc_iff = thm "isContc_iff";
|
paulson@14405
|
1091 |
val isContc_add = thm "isContc_add";
|
paulson@14405
|
1092 |
val isContc_mult = thm "isContc_mult";
|
paulson@14405
|
1093 |
val isContc_o = thm "isContc_o";
|
paulson@14405
|
1094 |
val isContc_o2 = thm "isContc_o2";
|
paulson@14405
|
1095 |
val isNSContc_minus = thm "isNSContc_minus";
|
paulson@14405
|
1096 |
val isContc_minus = thm "isContc_minus";
|
paulson@14405
|
1097 |
val isContc_inverse = thm "isContc_inverse";
|
paulson@14405
|
1098 |
val isNSContc_inverse = thm "isNSContc_inverse";
|
paulson@14405
|
1099 |
val isContc_diff = thm "isContc_diff";
|
paulson@14405
|
1100 |
val isContc_const = thm "isContc_const";
|
paulson@14405
|
1101 |
val isNSContc_const = thm "isNSContc_const";
|
paulson@14405
|
1102 |
val isNSContCRD = thm "isNSContCRD";
|
paulson@14405
|
1103 |
val isNSContCR_NSCRLIM = thm "isNSContCR_NSCRLIM";
|
paulson@14405
|
1104 |
val NSCRLIM_isNSContCR = thm "NSCRLIM_isNSContCR";
|
paulson@14405
|
1105 |
val isNSContCR_NSCRLIM_iff = thm "isNSContCR_NSCRLIM_iff";
|
paulson@14405
|
1106 |
val isNSContCR_CRLIM_iff = thm "isNSContCR_CRLIM_iff";
|
paulson@14405
|
1107 |
val isNSContCR_isContCR_iff = thm "isNSContCR_isContCR_iff";
|
paulson@14405
|
1108 |
val isContCR_isNSContCR = thm "isContCR_isNSContCR";
|
paulson@14405
|
1109 |
val isNSContCR_isContCR = thm "isNSContCR_isContCR";
|
paulson@14405
|
1110 |
val isNSContCR_cmod = thm "isNSContCR_cmod";
|
paulson@14405
|
1111 |
val isContCR_cmod = thm "isContCR_cmod";
|
paulson@14405
|
1112 |
val isContc_isContCR_Re = thm "isContc_isContCR_Re";
|
paulson@14405
|
1113 |
val isContc_isContCR_Im = thm "isContc_isContCR_Im";
|
paulson@14405
|
1114 |
val CDERIV_iff = thm "CDERIV_iff";
|
paulson@14405
|
1115 |
val CDERIV_NSC_iff = thm "CDERIV_NSC_iff";
|
paulson@14405
|
1116 |
val CDERIVD = thm "CDERIVD";
|
paulson@14405
|
1117 |
val NSC_DERIVD = thm "NSC_DERIVD";
|
paulson@14405
|
1118 |
val CDERIV_unique = thm "CDERIV_unique";
|
paulson@14405
|
1119 |
val NSCDeriv_unique = thm "NSCDeriv_unique";
|
paulson@14405
|
1120 |
val CDERIV_CLIM_iff = thm "CDERIV_CLIM_iff";
|
paulson@14405
|
1121 |
val CDERIV_iff2 = thm "CDERIV_iff2";
|
paulson@14405
|
1122 |
val NSCDERIV_NSCLIM_iff = thm "NSCDERIV_NSCLIM_iff";
|
paulson@14405
|
1123 |
val NSCDERIV_NSCLIM_iff2 = thm "NSCDERIV_NSCLIM_iff2";
|
paulson@14405
|
1124 |
val NSCDERIV_iff2 = thm "NSCDERIV_iff2";
|
paulson@14405
|
1125 |
val NSCDERIV_CDERIV_iff = thm "NSCDERIV_CDERIV_iff";
|
paulson@14405
|
1126 |
val NSCDERIV_isNSContc = thm "NSCDERIV_isNSContc";
|
paulson@14405
|
1127 |
val CDERIV_isContc = thm "CDERIV_isContc";
|
paulson@14405
|
1128 |
val NSCDERIV_const = thm "NSCDERIV_const";
|
paulson@14405
|
1129 |
val CDERIV_const = thm "CDERIV_const";
|
paulson@14405
|
1130 |
val NSCDERIV_add = thm "NSCDERIV_add";
|
paulson@14405
|
1131 |
val CDERIV_add = thm "CDERIV_add";
|
paulson@14405
|
1132 |
val lemma_nscderiv1 = thm "lemma_nscderiv1";
|
paulson@14405
|
1133 |
val lemma_nscderiv2 = thm "lemma_nscderiv2";
|
paulson@14405
|
1134 |
val NSCDERIV_mult = thm "NSCDERIV_mult";
|
paulson@14405
|
1135 |
val CDERIV_mult = thm "CDERIV_mult";
|
paulson@14405
|
1136 |
val NSCDERIV_cmult = thm "NSCDERIV_cmult";
|
paulson@14405
|
1137 |
val CDERIV_cmult = thm "CDERIV_cmult";
|
paulson@14405
|
1138 |
val NSCDERIV_minus = thm "NSCDERIV_minus";
|
paulson@14405
|
1139 |
val CDERIV_minus = thm "CDERIV_minus";
|
paulson@14405
|
1140 |
val NSCDERIV_add_minus = thm "NSCDERIV_add_minus";
|
paulson@14405
|
1141 |
val CDERIV_add_minus = thm "CDERIV_add_minus";
|
paulson@14405
|
1142 |
val NSCDERIV_diff = thm "NSCDERIV_diff";
|
paulson@14405
|
1143 |
val CDERIV_diff = thm "CDERIV_diff";
|
paulson@14405
|
1144 |
val NSCDERIV_zero = thm "NSCDERIV_zero";
|
paulson@14405
|
1145 |
val NSCDERIV_capprox = thm "NSCDERIV_capprox";
|
paulson@14405
|
1146 |
val NSCDERIVD1 = thm "NSCDERIVD1";
|
paulson@14405
|
1147 |
val NSCDERIVD2 = thm "NSCDERIVD2";
|
paulson@14405
|
1148 |
val lemma_complex_chain = thm "lemma_complex_chain";
|
paulson@14405
|
1149 |
val NSCDERIV_chain = thm "NSCDERIV_chain";
|
paulson@14405
|
1150 |
val CDERIV_chain = thm "CDERIV_chain";
|
paulson@14405
|
1151 |
val CDERIV_chain2 = thm "CDERIV_chain2";
|
paulson@14405
|
1152 |
val NSCDERIV_Id = thm "NSCDERIV_Id";
|
paulson@14405
|
1153 |
val CDERIV_Id = thm "CDERIV_Id";
|
paulson@14405
|
1154 |
val isContc_Id = thms "isContc_Id";
|
paulson@14405
|
1155 |
val CDERIV_cmult_Id = thm "CDERIV_cmult_Id";
|
paulson@14405
|
1156 |
val NSCDERIV_cmult_Id = thm "NSCDERIV_cmult_Id";
|
paulson@14405
|
1157 |
val CDERIV_pow = thm "CDERIV_pow";
|
paulson@14405
|
1158 |
val NSCDERIV_pow = thm "NSCDERIV_pow";
|
paulson@14405
|
1159 |
val lemma_CDERIV_subst = thm "lemma_CDERIV_subst";
|
paulson@14405
|
1160 |
val CInfinitesimal_add_not_zero = thm "CInfinitesimal_add_not_zero";
|
paulson@14405
|
1161 |
val NSCDERIV_inverse = thm "NSCDERIV_inverse";
|
paulson@14405
|
1162 |
val CDERIV_inverse = thm "CDERIV_inverse";
|
paulson@14405
|
1163 |
val CDERIV_inverse_fun = thm "CDERIV_inverse_fun";
|
paulson@14405
|
1164 |
val NSCDERIV_inverse_fun = thm "NSCDERIV_inverse_fun";
|
paulson@14405
|
1165 |
val lemma_complex_mult_inverse_squared = thm "lemma_complex_mult_inverse_squared";
|
paulson@14405
|
1166 |
val CDERIV_quotient = thm "CDERIV_quotient";
|
paulson@14405
|
1167 |
val NSCDERIV_quotient = thm "NSCDERIV_quotient";
|
paulson@14405
|
1168 |
val CLIM_equal = thm "CLIM_equal";
|
paulson@14405
|
1169 |
val CLIM_trans = thm "CLIM_trans";
|
paulson@14405
|
1170 |
val CARAT_CDERIV = thm "CARAT_CDERIV";
|
paulson@14405
|
1171 |
val CARAT_NSCDERIV = thm "CARAT_NSCDERIV";
|
paulson@14405
|
1172 |
val CARAT_CDERIVD = thm "CARAT_CDERIVD";
|
paulson@14405
|
1173 |
*}
|
paulson@14405
|
1174 |
|
paulson@14405
|
1175 |
end
|