-
Notifications
You must be signed in to change notification settings - Fork 297
/
unform_limits_of_holomorphic.lean
1129 lines (1079 loc) · 42.3 KB
/
unform_limits_of_holomorphic.lean
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import analysis.complex.cauchy_integral
import analysis.analytic.basic
import analysis.calculus.parametric_interval_integral
import data.complex.basic
open topological_space set measure_theory interval_integral metric filter function
open_locale interval real nnreal ennreal topological_space big_operators
noncomputable theory
universes u v
variables {E : Type u} [normed_group E] [normed_space ℂ E] [measurable_space E] [borel_space E]
[second_countable_topology E] [complete_space E]
namespace complex
lemma has_cauchy_integral_form {R : ℝ} {z w : ℂ} (hR : 0 < R ) (hw : w ∈ ball z R)
{f : ℂ → E} (hd : differentiable_on ℂ f (closed_ball z R)) :
f w = (1/(2 • π • I)) • ∫ (θ : ℝ) in 0..2 * π,
((R * exp (θ * I) * I) / (z + R * exp (θ * I) - w) : ℂ) • f (z + R * exp (θ * I)) :=
begin
set s : set ℂ := ⊥,
have hs: s.countable, by {simp_rw s, simp, },
have := circle_integral_sub_inv_smul_of_differentiable_on_off_countable hs hw hd.continuous_on _,
simp_rw circle_integral at this,
simp_rw deriv_circle_map at this,
simp_rw circle_map at this,
simp at this,
have rel2 : ∀ (θ : ℝ), (↑R * exp (↑θ * I) * I) • (z + ↑R * exp (↑θ * I) - w)⁻¹ =
(↑R * exp (↑θ * I) * I)/(z + ↑R * exp (↑θ * I) - w), by {simp, intro θ, field_simp,},
simp_rw ← smul_assoc at this,
simp_rw rel2 at this,
simp only [this, one_div, nat.cast_bit0, real_smul, nsmul_eq_mul, nat.cast_one],
simp_rw ← smul_assoc,
simp only [algebra.id.smul_eq_mul, nat.cast_bit0, real_smul, nsmul_eq_mul, of_real_mul,
of_real_one, nat.cast_one, of_real_bit0],
simp_rw ← mul_assoc,
have hn : (2 * ↑π * I) ≠ 0,
by {simp only [of_real_eq_zero, false_or, ne.def, bit0_eq_zero, one_ne_zero, mul_eq_zero],
simp only [real.pi_ne_zero, I_ne_zero, not_false_iff, or_self],},
have tt := inv_mul_cancel hn,
simp_rw ← mul_assoc at tt,
simp only [tt,one_smul],
intros x hx,
simp at hx,
apply hd.differentiable_at,
simp_rw metric.mem_nhds_iff,
have hxx : x ∈ ball z R, by {simp [hx]},
have := exists_ball_subset_ball hxx,
obtain ⟨ε, hε, hB⟩ := this,
refine ⟨ε, hε, _ ⟩,
intros y hy,
have hbb : ball z R ⊆ closed_ball z R, by {exact ball_subset_closed_ball},
apply hbb,
apply hB,
apply hy,
end
def cauchy_disk_function (R : ℝ) (z : ℂ) (f : ℂ → E) (w : ℂ) : (ℝ → E) := λ θ,
(1/(2 • π • I)) • ((R * exp (θ * I) * I) / (z + R * exp (θ * I) - w) : ℂ) • f (z + R * exp (θ * I))
lemma cauchy_disk_function_cont_on_ICC (R : ℝ) (hR: 0 < R) (f : ℂ → E) (z w : ℂ)
(hf : continuous_on f (closed_ball z R) )
(hw : w ∈ ball z R):
continuous_on (cauchy_disk_function R z f w) [0, 2*π] :=
begin
rw cauchy_disk_function,
have c1: continuous_on (coe : ℝ → ℂ) ⊤, by {apply continuous_of_real.continuous_on },
simp only [one_div, nat.cast_bit0, real_smul, nsmul_eq_mul, nat.cast_one],
apply continuous_on.smul,
exact continuous_const.continuous_on,
apply continuous_on.smul,
apply continuous_on.div,
apply continuous_on.mul,
apply continuous_on.mul,
apply continuous_const.continuous_on,
apply continuous_on.cexp,
apply continuous_on.mul,
apply continuous_on.comp,
apply c1,
apply continuous_on_id,
simp only [top_eq_univ, subset_univ, preimage_id'],
apply continuous_const.continuous_on,
apply continuous_const.continuous_on,
apply continuous_on.sub,
apply continuous_on.add,
apply continuous_const.continuous_on,
apply continuous_on.mul,
apply continuous_const.continuous_on,
apply continuous_on.cexp,
apply continuous_on.mul,
apply continuous_on.comp,
apply c1,
apply continuous_on_id,
simp only [top_eq_univ, subset_univ, preimage_id'],
apply continuous_const.continuous_on,
have c2: continuous_on (λ x: ℝ, w) [0,2*π], by {apply continuous_const.continuous_on,},
apply c2,
intros x hx,
by_contradiction hc,
simp only [mem_ball] at hw,
simp_rw dist_eq_norm at hw,
have hc' : (w : ℂ)-z = R * exp (↑x * I), by {rw sub_eq_zero at hc,
simp only [←hc, add_sub_cancel'],},
simp_rw hc' at hw,
simp only [abs_of_real, abs_exp_of_real_mul_I, mul_one, abs_mul, norm_eq_abs] at hw,
rw abs_lt at hw,
simp only [lt_self_iff_false, and_false] at hw,
apply hw,
apply continuous_on.comp,
apply hf,
apply continuous_on.add,
apply continuous_const.continuous_on,
apply continuous_on.mul,
apply continuous_const.continuous_on,
apply continuous_on.cexp,
apply continuous_on.mul,
apply continuous_on.comp,
apply c1,
apply continuous_on_id,
simp only [top_eq_univ, subset_univ, preimage_id'],
apply continuous_const.continuous_on,
intros q hq,
simp only [mem_closed_ball, mem_preimage, dist_eq_norm, abs_of_real, abs_exp_of_real_mul_I,
add_sub_cancel', mul_one, abs_mul, norm_eq_abs, abs_of_pos hR],
end
lemma cauchy_disk_function_cont_on (R : ℝ) (hR: 0 < R) (f : ℂ → E) (z w : ℂ)
(hf : continuous_on f (closed_ball z R))
(hw : w ∈ ball z R):
continuous_on (cauchy_disk_function R z f w) (Ι 0 (2 * π)) :=
begin
have := cauchy_disk_function_cont_on_ICC R hR f z w hf hw,
apply this.mono,
rw interval_oc_of_le (real.two_pi_pos.le),
rw interval_of_le (real.two_pi_pos.le),
exact Ioc_subset_Icc_self,
end
def fbound (R : ℝ) (z : ℂ) (θ : ℝ): (ℂ → ℂ) :=
λ w, (1/(2 • π • I)) • ((R * exp (θ * I) * I) / (z + (R) * exp (θ * I) - w)^2 : ℂ)
def fbound' (R : ℝ) (z : ℂ): (ℂ × ℝ → ℂ) :=
λ w, (1/(2 • π • I)) • ((R * exp (w.2 * I) * I) / (z + (R) * exp (w.2 * I) - w.1)^2 : ℂ)
lemma a1: 1 ≤ (2 : ℝ)⁻¹ → false :=
begin
intro h,
rw one_le_inv_iff at h,
have h2 := h.2,
simp only at h2,
linarith,
end
instance : has_set_prod (set ℂ) (set ℝ) (set (ℂ × ℝ )) := infer_instance
lemma fbounded' (R r : ℝ) (hR: 0 < R) (hr : r < R) (hr' : 0 ≤ r) (z : ℂ) :
∃ (x : ((closed_ball z r) ×ˢ (interval 0 (2*π)) : set (ℂ × ℝ)) ),
∀ (y : ((closed_ball z r) ×ˢ (interval 0 (2*π)) : set (ℂ × ℝ)) ),
complex.abs (fbound' R z y) ≤ complex.abs(fbound' R z x):=
begin
have cts: continuous_on (complex.abs ∘ (fbound' R z ))
( ((closed_ball z r) ×ˢ (interval 0 (2*π))) : set (ℂ × ℝ)),
by {simp_rw fbound',
have c1:= continuous_abs, have c2: continuous_on abs ⊤, by {apply continuous.continuous_on c1},
apply continuous_on.comp c2,
apply continuous_on.smul,
apply continuous_const.continuous_on,
apply continuous_on.div,
apply continuous.continuous_on,
apply continuous.mul,
apply continuous.mul,
apply continuous_const,
apply continuous.cexp,
apply continuous.mul,
apply continuous.comp,
apply continuous_of_real,
apply continuous_snd,
apply continuous_const,
apply continuous_const,
apply continuous_on.pow,
apply continuous_on.sub,
apply continuous_on.add,
apply continuous_const.continuous_on,
apply continuous_on.mul,
apply continuous_const.continuous_on,
apply continuous_on.cexp,
apply continuous_on.mul,
apply continuous.continuous_on,
rw metric.continuous_iff,
intros b ε hε,
use ε,
simp only [hε, true_and, prod.forall],
intros a b1 hab1,
rw prod.dist_eq at hab1,
simp only [max_lt_iff] at hab1,
simp_rw dist_eq_norm at *,
have hab2 := hab1.2,
simp only [top_eq_univ, gt_iff_lt, norm_eq_abs] at *,
norm_cast,
apply hab2,
apply continuous_const.continuous_on,
apply continuous.continuous_on,
apply continuous_fst,
intros x hx,
by_contradiction,
rw ← abs_eq_zero at h,
simp only [nat.succ_pos', abs_eq_zero, top_eq_univ, mem_closed_ball, mem_prod,
pow_eq_zero_iff] at *,
have hc' : (x.1 : ℂ)-z = R * exp (x.2 * I), by {rw sub_eq_zero at h,
rw ← h,
simp only [add_sub_cancel'],},
have hx1 := hx.1,
rw dist_eq_norm at hx1,
rw hc' at hx1,
simp only [abs_of_real, abs_exp_of_real_mul_I, mul_one, abs_mul, norm_eq_abs] at hx1,
have hrr : 0 ≤ R, by {apply hR.le},
rw ← abs_eq_self at hrr,
simp_rw hrr at hx1,
linarith [hrr, hr],
simp only [preimage_univ, top_eq_univ, subset_univ],},
have comp : is_compact ( ((closed_ball z r) ×ˢ (interval 0 (2*π))) : set (ℂ × ℝ)),
by {apply is_compact.prod,
exact proper_space.is_compact_closed_ball z r,
apply is_compact_interval,},
have none : ( ((closed_ball z r) ×ˢ (interval 0 (2*π))) : set (ℂ × ℝ)).nonempty ,
by {apply nonempty.prod,
simp only [hr', zero_le_mul_left, nonempty_closed_ball, zero_lt_bit0, zero_lt_one, inv_pos],
simp only [nonempty_interval], },
have := is_compact.exists_forall_ge comp none cts,
simp at *,
apply this,
end
/--Derivative of cauchy disk function w.r.t. `w`-/
def cauchy_disk_function' (R : ℝ) (z : ℂ) (f : ℂ → E) (w : ℂ) : (ℝ → E) := λ θ, (1/(2 • π • I)) •
((R * exp (θ * I) * I) / (z + R * exp (θ * I) - w)^2 : ℂ) • f (z + R * exp (θ * I))
lemma cauchy_disk_function_cont'_ICC (R : ℝ) (hR: 0 < R) (f : ℂ → E) (z w : ℂ)
(hf : continuous_on f (closed_ball z R) ) (hw : w ∈ ball z R):
continuous_on (cauchy_disk_function' R z f w) [0,2*π] :=
begin
have c1: continuous_on (coe : ℝ → ℂ) ⊤, by {apply continuous_of_real.continuous_on },
simp_rw cauchy_disk_function',
apply continuous_on.smul,
exact continuous_const.continuous_on,
apply continuous_on.smul,
apply continuous_on.div,
apply continuous_on.mul,
apply continuous_on.mul,
apply continuous_const.continuous_on,
apply continuous_on.cexp,
apply continuous_on.mul,
apply continuous_on.comp,
apply c1,
apply continuous_on_id,
simp only [top_eq_univ, subset_univ, preimage_id'],
apply continuous_const.continuous_on,
apply continuous_const.continuous_on,
apply continuous_on.pow,
apply continuous_on.sub,
apply continuous_on.add,
apply continuous_const.continuous_on,
apply continuous_on.mul,
apply continuous_const.continuous_on,
apply continuous_on.cexp,
apply continuous_on.mul,
apply continuous_on.comp,
apply c1,
apply continuous_on_id,
simp only [top_eq_univ, subset_univ, preimage_id'],
apply continuous_const.continuous_on,
have c2: continuous_on (λ x: ℝ, w) [0,2*π], by {apply continuous_const.continuous_on,},
apply c2,
intros x hx,
apply pow_ne_zero,
by_contradiction hc,
simp only [mem_ball] at hw,
simp_rw dist_eq_norm at hw,
have hc' : (w : ℂ)-z = R * exp (↑x * I), by {rw sub_eq_zero at hc,
simp only [←hc, add_sub_cancel'],},
simp_rw hc' at hw,
simp only [abs_of_real, abs_exp_of_real_mul_I, mul_one, abs_mul, norm_eq_abs] at hw,
rw abs_lt at hw,
simp only [lt_self_iff_false, and_false] at hw,
apply hw,
apply continuous_on.comp,
apply hf,
apply continuous_on.add,
apply continuous_const.continuous_on,
apply continuous_on.mul,
apply continuous_const.continuous_on,
apply continuous_on.cexp,
apply continuous_on.mul,
apply continuous_on.comp,
apply c1,
apply continuous_on_id,
simp only [top_eq_univ, subset_univ, preimage_id'],
apply continuous_const.continuous_on,
intros q hq,
simp only [mem_closed_ball, mem_preimage, dist_eq_norm, abs_of_real, abs_exp_of_real_mul_I,
add_sub_cancel', mul_one, abs_mul, norm_eq_abs, abs_of_pos hR],
end
lemma cauchy_disk_function_cont'_on (R : ℝ) (hR: 0 < R) (f : ℂ → E) (z w : ℂ)
(hf : continuous_on f (closed_ball z R) ) (hw : w ∈ ball z R):
continuous_on (cauchy_disk_function' R z f w) (Ι 0 (2*π)) :=
begin
have := cauchy_disk_function_cont'_ICC R hR f z w hf hw,
apply this.mono,
rw interval_oc_of_le (real.two_pi_pos.le),
rw interval_of_le (real.two_pi_pos.le),
exact Ioc_subset_Icc_self,
end
/--Cauchy integral from of a function at `z` in a disk of radius `R`-/
def cauchy_disk_form (R : ℝ) (z : ℂ) (f : ℂ → E) : (ℂ → E) :=
λ w, ∫ (θ : ℝ) in 0..2 * π, (cauchy_disk_function R z f w θ)
/--Derivative of cauchy_disk_form-/
def cauchy_disk_form' (R : ℝ) (z : ℂ) (f : ℂ → E) : (ℂ → E) :=
λ w, ∫ (θ : ℝ) in 0..2 * π, (cauchy_disk_function' R z f w θ)
lemma bound_cts (R : ℝ) (hR: 0 < R) (z a: ℂ) (b : ℝ) (f : ℂ → ℂ)
(hf : continuous_on f (closed_ball z R)) :
continuous_on (λ (r : ℝ), (complex.abs ( fbound R z b a))*complex.abs (f(z+R*exp(r*I))))
[0, 2*π] :=
begin
apply continuous_on.mul,
apply continuous_const.continuous_on,
apply continuous_on.comp,
have cabs: continuous_on abs ⊤, by {apply continuous_abs.continuous_on,},
apply cabs,
apply continuous_on.comp,
apply hf,
apply continuous_on.add,
apply continuous_const.continuous_on,
apply continuous_on.mul,
apply continuous_const.continuous_on,
apply continuous_on.cexp,
apply continuous_on.mul,
apply continuous_on.comp,
have c1: continuous_on (coe : ℝ → ℂ) ⊤, by {apply continuous_of_real.continuous_on },
apply c1,
apply continuous_on_id,
simp only [top_eq_univ, subset_univ, preimage_id'],
apply continuous_const.continuous_on,
intros q hq,
simp only [mem_closed_ball, mem_preimage],
rw dist_eq_norm,
simp only [abs_of_real, abs_exp_of_real_mul_I, add_sub_cancel', mul_one, abs_mul, norm_eq_abs],
rw abs_of_pos hR,
simp only [preimage_univ, top_eq_univ, subset_univ],
end
lemma half_ball_sub (R: ℝ) (hR: 0 < R) (z : ℂ) : ball z (2⁻¹*R) ⊆ ball z R :=
begin
apply ball_subset_ball,
rw mul_le_iff_le_one_left hR,
apply inv_le_one,
linarith,
end
lemma cauchy_disk_function'_bound (R r : ℝ) (hR: 0 < R) (hr : r < R) (hr' : 0 ≤ r) (z : ℂ)
(f : ℂ → ℂ) (x : ℂ) (hx : x ∈ ball z r) (hf : continuous_on f (closed_ball z R)):
∃ (boun : ℝ → ℝ) (ε : ℝ), 0 < ε ∧ ball x ε ⊆ ball z R ∧
(∀ᵐ t ∂volume, t ∈ Ι 0 (2 * π) → ∀ y ∈ ball x ε, ∥cauchy_disk_function' R z f y t∥ ≤ boun t) ∧
continuous_on boun [0, 2*π]:=
begin
have HBB:= ball_subset_ball hr.le,
have h2R: 0 < 2*R, by {linarith,},
have fbb := fbounded' R r hR hr hr' z,
have ball:=exists_ball_subset_ball hx,
obtain ⟨ε', hε', H⟩:= ball,
simp at fbb,
obtain ⟨ a, b, hab⟩ :=fbb,
set bound : ℝ → ℝ := λ r, (complex.abs ( fbound R z b a))*complex.abs (f(z+R*exp(r*I))) ,
use bound,
use ε',
simp only [gt_iff_lt] at hε',
simp only [hε', true_and, mem_ball, norm_eq_abs],
have h_ball : ball x ε' ⊆ ball z R,
by {apply subset.trans H HBB, },
simp only [h_ball, true_and],
split,
rw filter.eventually_iff_exists_mem,
use ⊤,
simp,
intros y hy v hv,
have hvv: v ∈ ball x ε', by {simp, apply hv},
have hvz : v ∈ ball z r, by {apply H, apply hvv,},
simp only [bound, fbound', cauchy_disk_function', fbound, one_div, abs_of_real,
abs_exp_of_real_mul_I, mem_ball, mul_one, algebra.id.smul_eq_mul, abs_I, nat.cast_bit0, real_smul,
abs_mul, nsmul_eq_mul, abs_div, zero_lt_bit0, abs_inv, zero_lt_mul_left, nat.cast_one, abs_two,
abs_pow,zero_lt_one] at *,
have hyy : y ∈ [0,2*π ], by {apply Ioc_subset_Icc_self, apply hy,},
have hab2:= hab.2 v y hvz.le hyy,
have abp : 0 ≤ complex.abs (f(z+R*exp(y*I))), by {apply abs_nonneg},
have := mul_le_mul_of_nonneg_right hab2 abp,
simp only at this,
simp_rw ← mul_assoc,
apply this,
have cts := bound_cts R hR z a b f hf,
simp only [bound, fbound, one_div, abs_of_real, abs_exp_of_real_mul_I, mem_ball, mul_one,
algebra.id.smul_eq_mul, abs_I, nat.cast_bit0, real_smul, abs_mul, nsmul_eq_mul, abs_div,
zero_lt_bit0, abs_inv, zero_lt_mul_left, nat.cast_one, abs_two, abs_pow,zero_lt_one] at *,
apply cts,
end
lemma cauchy_disk_function_has_deriv_at (R : ℝ) (z : ℂ) (f : ℂ → ℂ) :
∀ t : ℝ, t ∈ Ι 0 (2 * π) → ∀ y ∈ ball z R,
has_deriv_at (λ y, (cauchy_disk_function R z f) y t) ((cauchy_disk_function' R z f) y t) y :=
begin
simp only [true_and, mem_ball, top_eq_univ, univ_mem, mem_univ, forall_true_left],
intros y hy x hx,
simp_rw [cauchy_disk_function, cauchy_disk_function'],
simp only [one_div, algebra.id.smul_eq_mul, nat.cast_bit0, real_smul, nsmul_eq_mul, nat.cast_one],
simp_rw ← mul_assoc,
apply has_deriv_at.mul_const,
apply has_deriv_at.const_mul,
simp_rw div_eq_mul_inv,
apply has_deriv_at.const_mul,
have H : has_deriv_at (λ (y_1 : ℂ), (z + ↑R * exp (↑y * I) - y_1)) (-1 ) x,
by {apply has_deriv_at.const_sub, apply has_deriv_at_id,},
have dnz : ((z + ↑R * exp (↑y * I) - x) ) ≠ 0,
by {by_contradiction hc,
simp_rw dist_eq_norm at hx,
have hc' : (x : ℂ)-z = R * exp (↑y * I),
by {rw sub_eq_zero at hc,
simp only [← hc, add_sub_cancel'],},
simp only [hc',abs_of_real, abs_exp_of_real_mul_I, mul_one, abs_mul, norm_eq_abs, abs_lt,
lt_self_iff_false, and_false] at hx,
apply hx,},
have := has_deriv_at.inv H dnz,
simp only [one_div, neg_neg] at this,
apply this,
end
lemma ae_cauchy_disk_function_has_deriv_at (R : ℝ) (z : ℂ) (f : ℂ → ℂ) :
∀ᵐ t ∂volume, t ∈ Ι 0 (2 * π) → ∀ y ∈ ball z R,
has_deriv_at (λ y, (cauchy_disk_function R z f) y t) ((cauchy_disk_function' R z f) y t) y :=
begin
rw filter.eventually_iff_exists_mem,
use ⊤,
simp only [true_and, top_eq_univ, univ_mem, mem_univ, forall_true_left],
apply cauchy_disk_function_has_deriv_at
end
lemma cauchy_disk_form_differentiable_on (R r: ℝ) (hR: 0 < R) (hr : r < R) (hr' : 0 ≤ r) (z : ℂ)
(f : ℂ → ℂ) (hf : continuous_on f (closed_ball z R)) :
differentiable_on ℂ (cauchy_disk_form R z f) (ball z r) :=
begin
rw cauchy_disk_form,
simp_rw cauchy_disk_function,
rw differentiable_on,
simp_rw differentiable_within_at,
have HBB:= ball_subset_ball hr.le,
intros x hx,
have h4R: 0 < (4⁻¹*R), by {apply mul_pos, rw inv_pos, linarith, apply hR,},
set F : ℂ → ℝ → ℂ := λ w, (λ θ, (cauchy_disk_function R z f w θ)),
set F' : ℂ → ℝ → ℂ := cauchy_disk_function' R z f,
have hF_meas : ∀ᶠ y in 𝓝 x, ae_measurable (F y) (volume.restrict (Ι 0 (2 * π))) ,
by {simp_rw F, rw filter.eventually_iff_exists_mem,
have BALL := exists_ball_subset_ball hx,
obtain ⟨ε', He, HB⟩ := BALL,
use (ball x ε'),
have hm := metric.ball_mem_nhds x He,
simp only [hm, true_and, mem_ball],
intros y hy,
have hmea : measurable_set (Ι 0 (2 * π)), by {exact measurable_set_interval_oc,},
have := continuous_on.ae_measurable (cauchy_disk_function_cont_on R hR f z y hf _) hmea,
apply this,
apply HBB,
apply HB,
simp only [hy, mem_ball],},
have hF_int : interval_integrable (F x) volume 0 (2 * π),
by {simp_rw F,
have cts := cauchy_disk_function_cont_on_ICC R hR f z x hf,
have hxx: x ∈ ball z R, by {apply HBB, apply hx,},
have ctss:= cts hxx,
have := continuous_on.interval_integrable ctss,
apply this,
apply_instance,},
have hF'_meas : ae_measurable (F' x) (volume.restrict (Ι 0 (2 * π))) ,
by {simp_rw F',
have hmea: measurable_set (Ι 0 (2 * π)), by {exact measurable_set_interval_oc,},
have := continuous_on.ae_measurable (cauchy_disk_function_cont'_on R hR f z x hf _) hmea,
apply this,
apply HBB,
apply hx,},
have BOU := cauchy_disk_function'_bound R r hR hr hr' z f x hx hf,
obtain ⟨bound, ε, hε ,h_ball, h_boun, hcts⟩:= BOU,
have h_bound : ∀ᵐ t ∂volume, t ∈ Ι 0 (2 * π) → ∀ y ∈ ball x ε , ∥F' y t∥ ≤ bound t,
by {simp_rw F',
apply h_boun,},
have bound_integrable : interval_integrable bound volume 0 (2 * π) ,
by {apply continuous_on.interval_integrable, apply hcts,},
have h_diff : ∀ᵐ t ∂volume, t ∈ Ι 0 (2 * π) → ∀ y ∈ ball x ε, has_deriv_at (λ y, F y t) (F' y t) y,
by {simp_rw [F, F', cauchy_disk_function, cauchy_disk_function'],
have := ae_cauchy_disk_function_has_deriv_at R z f,
simp_rw [cauchy_disk_function, cauchy_disk_function'] at this,
rw filter.eventually_iff_exists_mem at *,
obtain ⟨ S , hS, HH⟩ := this,
use S,
use hS,
intros y hSy hy x hx,
have hxz: x ∈ ball z R, by {apply h_ball, apply hx},
apply HH y hSy hy x hxz,},
have := interval_integral.has_deriv_at_integral_of_dominated_loc_of_deriv_le hε hF_meas hF_int hF'_meas
h_bound bound_integrable h_diff,
simp_rw F at this,
simp_rw cauchy_disk_function at this,
simp_rw has_deriv_at at this,
simp_rw has_deriv_at_filter at this,
simp_rw has_fderiv_within_at,
simp at *,
have h3:= this.2,
let der := (interval_integral (F' x) 0 (2 * π) volume),
let DER := continuous_linear_map.smul_right (1 : ℂ →L[ℂ] ℂ) der,
use DER,
simp_rw [DER, der],
have this2:= (has_fderiv_at_filter.mono h3),
apply this2,
rw nhds_within,
simp only [inf_le_left],
end
lemma cauchy_disk_function_sub (R : ℝ) (f g : ℂ → ℂ) (z w : ℂ) : ∀ θ : ℝ,
complex.abs (((cauchy_disk_function R z f w ) θ)-((cauchy_disk_function R z g w) θ)) =
complex.abs (cauchy_disk_function R z (f -g) w θ) :=
begin
intro θ,
simp only [cauchy_disk_function, one_div, nat.cast_bit0, real_smul, nsmul_eq_mul, nat.cast_one,
pi.sub_apply, abs_of_real, abs_exp_of_real_mul_I, mul_one, algebra.id.smul_eq_mul, abs_I, abs_mul,
abs_div, abs_inv, abs_two, ← mul_assoc],
ring_nf,
simp only [abs_mul, abs_of_real, abs_exp_of_real_mul_I, mul_one, abs_I, abs_mul, abs_inv, abs_two],
end
lemma cauchy_disk_function_sub_bound (R : ℝ) (hR: 0 < R) (f : ℂ → ℂ) (z w : ℂ) (r : ℝ)
(h: ∀ (x : closed_ball z R), (complex.abs (f x) ≤ abs r)) : ∀ θ : ℝ,
complex.abs (cauchy_disk_function R z f w θ) ≤
complex.abs (cauchy_disk_function R z (λ x, r) w θ) :=
begin
intro θ,
simp [cauchy_disk_function, one_div, abs_of_real, abs_exp_of_real_mul_I, mul_one,
algebra.id.smul_eq_mul, abs_I, nat.cast_bit0, real_smul, abs_mul, nsmul_eq_mul, abs_div, abs_inv,
nat.cast_one, abs_two, ←mul_assoc],
apply monotone_mul_left_of_nonneg,
apply mul_nonneg,
simp_rw inv_nonneg,
apply mul_nonneg,
linarith,
apply _root_.abs_nonneg,
apply div_nonneg,
apply _root_.abs_nonneg,
apply complex.abs_nonneg,
rw abs_of_real at h,
simp at h,
apply h,
simp only [dist_eq_norm, abs_of_real, abs_exp_of_real_mul_I, add_sub_cancel', mul_one, abs_mul,
norm_eq_abs ,abs_of_pos hR],
end
lemma cauchy_disk_function_int (R : ℝ) (hR: 0 < R) (F : ℂ → ℂ) (z : ℂ)
(F_cts : continuous_on (F ) (closed_ball z R))
(w : ball z R): integrable (cauchy_disk_function R z F w) (volume.restrict (Ioc 0 (2*π))) :=
begin
apply integrable_on.integrable,
rw ← interval_integrable_iff_integrable_Ioc_of_le,
apply continuous_on.interval_integrable,
have hw := w.property,
simp only [mem_ball, subtype.val_eq_coe] at hw,
have := cauchy_disk_function_cont_on_ICC R hR F z w F_cts,
simp only [mem_ball] at this,
have hc:= this hw,
apply hc,
simp only [zero_le_mul_left, zero_lt_bit0, zero_lt_one],
linarith [real.pi_pos],
end
lemma cauchy_disk_function_int_abs (R : ℝ) (hR: 0 < R) (F : ℂ → ℂ) (z : ℂ)
(F_cts : continuous_on (F ) (closed_ball z R))
(w : ball z R) :
integrable (complex.abs ∘ (cauchy_disk_function R z F w)) (volume.restrict (Ioc 0 (2*π))) :=
begin
apply integrable_on.integrable,
rw ← interval_integrable_iff_integrable_Ioc_of_le,
apply continuous_on.interval_integrable,
apply continuous_on.comp,
have cabs: continuous_on abs ⊤, by {apply continuous_abs.continuous_on,},
apply cabs,
have hw := w.property,
simp only [mem_ball, subtype.val_eq_coe] at hw,
have := cauchy_disk_function_cont_on_ICC R hR F z w F_cts,
simp only [mem_ball] at this,
have hc:= this hw,
apply hc,
simp only [preimage_univ, top_eq_univ, subset_univ],
linarith [real.pi_pos],
end
lemma abs_aux (x : ℂ) (r : ℝ) (h : ∃ (b : ℂ), complex.abs (x-b)+ complex.abs(b) ≤ r) :
complex.abs(x) ≤ r :=
begin
obtain ⟨b, hb⟩ := h,
have hs: (x -b) + b = x , by {simp only [sub_add_cancel],},
rw ← hs,
apply le_trans _ hb,
exact (x - b).abs_add b,
end
lemma auxfind (x y z: ℂ) (h : complex.abs x ≤ complex.abs y) :
(complex.abs x) ≤ (complex.abs z) + (complex.abs y) :=
begin
have := le_add_of_le_of_nonpos h (abs_nonneg z),
rw add_comm,
apply this,
end
lemma u1 (R : ℝ) (hR: 0 < R) (F : ℕ → ℂ → ℂ) (f : ℂ → ℂ) (z : ℂ)
(hlim : tendsto_uniformly_on F f filter.at_top (closed_ball z R)) (w : ball z R) :
∀ (a : ℝ), tendsto (λ n, ((cauchy_disk_function R z (F n) w)) a)
at_top (𝓝 (((cauchy_disk_function R z f w)) a)) :=
begin
rw metric.tendsto_uniformly_on_iff at hlim,
simp only [metric.tendsto_nhds, dist_comm, cauchy_disk_function],
simp only [one_div, algebra.id.smul_eq_mul, gt_iff_lt, mem_closed_ball, nat.cast_bit0, real_smul,
ge_iff_le, nsmul_eq_mul, nat.cast_one, eventually_at_top] at *,
intros y ε hε,
set r : ℂ := ((2 * (↑π * I))⁻¹ * (↑R * exp (↑y * I) * I / (z + ↑R * exp (↑y * I) - ↑w))),
have hr: 0 < ∥ r ∥, by {simp only [abs_of_real, abs_exp_of_real_mul_I, mul_one, abs_I, abs_mul,
abs_div, abs_inv, abs_two, norm_eq_abs],
rw div_eq_inv_mul,
apply mul_pos,
rw inv_eq_one_div,
rw one_div_pos,
apply mul_pos,
linarith,
simp only [_root_.abs_pos, ne.def],
apply real.pi_ne_zero,
apply mul_pos,
rw inv_pos,
rw abs_pos,
have hw:=w.property,
simp only [mem_ball, subtype.val_eq_coe] at hw,
by_contradiction hc,
simp_rw dist_eq_norm at hw,
have hc' : (w : ℂ)-z = R * exp (↑y * I), by {rw sub_eq_zero at hc,
rw ← hc, simp only [add_sub_cancel'],},
simp_rw hc' at hw,
simp only [abs_of_real, abs_exp_of_real_mul_I, mul_one, abs_mul, norm_eq_abs] at hw,
rw abs_lt at hw,
simp at hw,
apply hw,
simp only [_root_.abs_pos, ne.def],
by_contradiction hrr,
rw hrr at hR,
simp only [lt_self_iff_false] at hR,
apply hR,},
have hr': ∥ r ∥ ≠ 0, by {linarith,},
let e:= (∥ r ∥)⁻¹ * (ε/2),
have he: 0 < e, by {simp_rw e, apply mul_pos,
apply inv_pos.2 hr, apply div_pos, apply hε, linarith,},
have h_lim2:= hlim e he,
obtain ⟨a, ha⟩ := h_lim2,
use a,
intros b hb,
simp only,
simp_rw dist_eq_norm at *,
simp_rw ← mul_sub,
have hg: ∥(2 * (↑π * I))⁻¹ * (↑R * exp (↑y * I) * I / (z + ↑R * exp (↑y * I) - ↑w) *
(f (z + ↑R * exp (↑y * I)) - F b (z + ↑R * exp (↑y * I))))∥ =
∥(2 * (↑π * I))⁻¹ * (↑R * exp (↑y * I) * I / (z + ↑R * exp (↑y * I) - ↑w)) ∥ *
∥ (f (z + ↑R * exp (↑y * I)) - F b (z + ↑R * exp (↑y * I)))∥,
by {simp only [abs_of_real, abs_exp_of_real_mul_I, mul_one, abs_I,
abs_mul, abs_div, abs_inv, abs_two, norm_eq_abs], ring_nf,},
rw hg,
simp_rw ← r,
have haa := ha b hb,
have hab := haa (z + ↑R * exp (↑y * I)),
simp only [abs_of_real, abs_exp_of_real_mul_I, add_sub_cancel',
mul_one, abs_mul, norm_eq_abs] at hab,
have triv : |R| ≤ R, by {rw abs_of_pos hR,},
have hab2 := hab triv,
have haav : ∥ r ∥ * ∥f (z + ↑R * exp (↑y * I)) - F b (z + ↑R * exp (↑y * I))∥ < ∥ r ∥ * e,
by {apply mul_lt_mul_of_pos_left hab2 hr,},
simp_rw e at haav,
apply lt_trans haav,
rw div_eq_inv_mul,
simp_rw ← mul_assoc,
simp_rw [mul_inv_cancel hr'],
simp only [one_mul],
rw mul_lt_iff_lt_one_left,
rw inv_eq_one_div,
linarith,
apply hε,
end
lemma sum_ite_eq_extract {α : Type*} [decidable_eq α] (s : finset α) (b : s) (f : s → ℂ) :
∑ n, f n = f b + ∑ n, ite (n = b) 0 (f n) :=
begin
simp_rw ← tsum_fintype,
apply tsum_ite_eq_extract,
simp only at *,
apply (has_sum_fintype f).summable,
end
def bound2 (R : ℝ) (F : ℕ → ℂ → ℂ) (f : ℂ → ℂ) (z : ℂ) (w : ball z R) (a : ℕ) : ℝ → ℝ :=
λ θ, (∑ (i : finset.range (a+1) ),complex.abs ((cauchy_disk_function R z (F i) w) θ)) +
complex.abs ((cauchy_disk_function R z (λ x, 1) w) θ) +
complex.abs ((cauchy_disk_function R z f w) θ)
lemma bound2_int (R : ℝ) (hR: 0 < R) (F : ℕ → ℂ → ℂ) (f : ℂ → ℂ) (z : ℂ) (w : ball z R) (a : ℕ)
(F_cts : ∀ n, continuous_on (F n) (closed_ball z R)) (hf : continuous_on f (closed_ball z R)) :
integrable (bound2 R F f z w a) (volume.restrict (Ioc 0 (2*π))) :=
begin
rw bound2,
apply integrable.add,
apply integrable.add,
apply integrable_finset_sum,
simp only [finset.mem_attach, forall_true_left, finset.univ_eq_attach],
intro i,
apply cauchy_disk_function_int_abs,
apply hR,
apply F_cts,
apply cauchy_disk_function_int_abs,
apply hR,
apply continuous_const.continuous_on,
apply cauchy_disk_function_int_abs,
apply hR,
apply hf,
end
lemma int_uniform_lim_eq_lim_of_int (R : ℝ) (hR: 0 < R) (F : ℕ → ℂ → ℂ) (f : ℂ → ℂ) (z : ℂ)
(F_cts : ∀ n, continuous_on (F n) (closed_ball z R))
(hlim : tendsto_uniformly_on F f filter.at_top (closed_ball z R) ) (w : ball z R) :
tendsto (λn, ∫ (θ : ℝ) in 0..2 * π, (cauchy_disk_function R z (F n) w) θ)
at_top (𝓝 $ ∫ (θ : ℝ) in 0..2 * π, (cauchy_disk_function R z f w) θ) :=
begin
have f_cont: continuous_on f (closed_ball z R) ,
by {apply tendsto_uniformly_on.continuous_on hlim, simp only [ge_iff_le, eventually_at_top],
use 1,
intros b hb, apply F_cts,},
have F_measurable : ∀ n,
ae_measurable (cauchy_disk_function R z (F n) w) (volume.restrict (Ioc 0 (2*π))),
by {intro n,
have:= cauchy_disk_function_int R hR (F n) z (F_cts n) w,
apply this.ae_measurable, },
have h_lim'' : ∀ (a : ℝ), tendsto (λ n, ((cauchy_disk_function R z (F n) w)) a)
at_top (𝓝 (((cauchy_disk_function R z f w)) a)),
by {apply u1 R hR F f z hlim},
have h_lim' : ∀ᵐ a ∂(volume.restrict (Ioc 0 (2*π))),
tendsto (λ n, ((cauchy_disk_function R z (F n) w)) a)
at_top (𝓝 (((cauchy_disk_function R z f w)) a)),
by {simp only [h_lim'', eventually_true],},
rw metric.tendsto_uniformly_on_iff at hlim,
simp only [gt_iff_lt, ge_iff_le, eventually_at_top] at hlim,
have hlimb:= hlim 1 (zero_lt_one),
obtain ⟨ a, ha⟩ :=hlimb,
set bound : ℝ → ℝ :=λ θ, (∑ (i : finset.range (a+1) ),
complex.abs ((cauchy_disk_function R z (F i) w) θ))
+ complex.abs ((cauchy_disk_function R z (λ x, 1) w) θ) +
complex.abs ((cauchy_disk_function R z f w) θ),
have h_bound : ∀ n, ∀ᵐ a ∂(volume.restrict (Ioc 0 (2*π))),
∥(cauchy_disk_function R z (F n) w) a∥ ≤ bound a,
by {intro n,
rw ae_restrict_iff' at *,
rw eventually_iff_exists_mem,
use ⊤,
simp only [true_and, and_imp, mem_Ioc,
top_eq_univ, univ_mem, mem_univ, forall_true_left, norm_eq_abs],
intros y hyl hyu,
by_cases (n ≤ a),
simp_rw bound,
have:= sum_ite_eq_extract (finset.range (a+1)) ⟨n, by {simp [h],linarith}⟩
(λ (i : finset.range (a+1) ),complex.abs ((cauchy_disk_function R z (F i) w) y)),
simp only [and_imp, mem_Ioc,
add_zero,
mem_closed_ball,
int.coe_nat_add,
ge_iff_le,
int.coe_nat_one,
zero_add,
finset.univ_eq_attach,
finset.mem_range,
subtype.coe_mk,
zero_lt_one,
neg_zero] at *,
norm_cast at *,
simp_rw this,
rw add_assoc,
rw add_assoc,
simp only [le_add_iff_nonneg_right],
apply add_nonneg,
apply finset.sum_nonneg,
intros i hi,
simp only,
rw ← dite_eq_ite,
by_cases H : i = ⟨n, by {simp only [finset.mem_range],linarith}⟩,
simp only [H, dite_eq_ite, if_true, eq_self_iff_true],
simp only [dif_neg H],
apply abs_nonneg,
simp only [add_nonneg, abs_nonneg],
simp only [not_le] at h,
apply abs_aux ((cauchy_disk_function R z (F n) w) y) (bound y),
use cauchy_disk_function R z f ↑w y,
rw cauchy_disk_function_sub,
simp_rw bound,
simp only [add_le_add_iff_right, finset.univ_eq_attach],
have := cauchy_disk_function_sub_bound R hR ((F n) - f) z w 1,
have haan:= ha n h.le,
simp only [of_real_one, abs_one, pi.sub_apply] at this,
simp_rw dist_eq_norm at *,
simp only [norm_eq_abs] at haan,
have haf: ∀ (x : closed_ball z R), abs (F n x - f x) ≤ 1,
by {intro x, rw abs_sub_comm, apply (haan x.1 x.property).le,},
have h5:= this haf,
have h6:= h5 y,
refine le_add_of_nonneg_of_le _ h6,
apply finset.sum_nonneg,
intros i hi,
apply abs_nonneg,
all_goals {simp only [measurable_set_Ioc]},},
have bound_integrable : integrable bound (volume.restrict (Ioc 0 (2*π))),
by {have := bound2_int R hR F f z w a F_cts f_cont,
simp_rw bound,
rw bound2 at this,
apply this,},
have := tendsto_integral_of_dominated_convergence bound F_measurable bound_integrable
h_bound h_lim',
have pi: 0 ≤ 2*π , by {apply real.two_pi_pos.le},
simp_rw integral_of_le pi,
apply this,
end
lemma abs_norm (x : ℂ) : norm( abs x)= abs x :=
begin
rw real.norm_eq_abs,
apply abs_abs,
end
lemma auxlefind {a b c r s t : ℝ} (ha : a < r ) (hb : b < s) (hc : c < t) : a+b +c< r+s+t :=
begin
linarith,
end
lemma auxff (a b r : ℝ) (hr : 0 < r) : a < b*r → r⁻¹ *a < b :=
begin
exact (inv_mul_lt_iff' hr).mpr,
end
lemma auxfals (a : ℂ) : abs a < 0 → false :=
begin
have := abs_nonneg a,
intro ha,
linarith,
end
lemma aux2 (a b c d e f r: ℂ) (ε : ℝ) (hε: 0 < ε) (h1: abs (a- b) < 8⁻¹*abs(r)*ε)
(h2 :abs (c- d) < 8⁻¹*abs(r)*ε ) (h3 :(abs r)⁻¹ * abs ((b- d)- (e-f)) < (2/3)*ε) :
(abs r)⁻¹ * abs ((a-b) - (c-d) + (b-d) - (e-f) ) < ε :=
begin
have h4: abs (((a-b) - (c-d)) + (b-d) - (e-f) ) ≤ abs ((a-b) - (c-d)) + abs ((b-d) - (e-f)),
by {set x : ℂ := (a-b) - (c-d),
set y: ℂ :=((b-d) - (e-f)),
have := abs_add x y,
convert this,
simp_rw y,
ring_nf,},
have h5: abs (a - b - (c - d)) ≤ abs (a -b)+ abs (c-d),
by {have:= complex.abs_sub_le (a-b) 0 (c-d),
simp only [zero_sub, sub_zero, neg_sub] at this,
have hcd :abs (c-d)= abs (d-c), by {apply complex.abs_sub_comm,},
rw hcd,
apply this,},
have h6 :(abs r)⁻¹ * abs (((a-b) - (c-d)) + (b-d) - (e-f) ) ≤
(abs r)⁻¹ *abs (a -b)+ (abs r)⁻¹* abs (c-d)+ (abs r)⁻¹ * abs ((b-d) - (e-f)),
by {ring_nf, apply mul_mono_nonneg, rw inv_nonneg, apply abs_nonneg,
apply le_trans h4, simp_rw ← add_assoc, simp only [h5, add_le_add_iff_right],},
have hr : 0 < abs r,
by {by_contradiction h,
simp only [abs_pos, not_not] at h,
rw h at h1,
simp only [zero_mul, abs_zero, mul_zero] at h1,
apply auxfals (a-b) h1,},
have h11: (abs(r))⁻¹* abs (a-b) < (8⁻¹*ε ),
by {have:= auxff (abs (a-b)) (8⁻¹*ε) (abs r) hr,
apply this, have e1: 8⁻¹* (abs r) *ε = 8⁻¹* ε* (abs r),
by {ring_nf,},
rw ← e1,
apply h1,},
have h22: (abs(r))⁻¹* abs (c-d) < (8⁻¹*ε), by {
have:= auxff (abs (c-d)) (8⁻¹*ε) (abs r) hr,
apply this,
have e1: 8⁻¹* (abs r) *ε = 8⁻¹* ε* (abs r),
by {ring_nf,},
rw ← e1,
apply h2,},
have h7 := auxlefind h11 h22 h3,
have h8 := lt_of_le_of_lt h6 h7,
apply lt_trans h8,
ring_exp,
linarith,
end
lemma aux3 (a b c d r: ℂ) (ε : ℝ) (hε : 0 < ε )
(h : ∃ (x y : ℂ), abs ( a- y) < 8⁻¹*abs(r)*ε ∧ abs (b -x) < 8⁻¹*abs(r)*ε ∧
(abs r)⁻¹ *abs ((y -x)- (c -d) ) < 8⁻¹*ε) :
(abs r)⁻¹ *abs ((a-b )- (c-d)) < (2/3)*ε :=
begin
obtain ⟨x, y , h1,h2, h3⟩:= h,
have hr : 0 < abs r,
by {by_contradiction h,
simp only [abs_pos, not_not] at h,
rw h at h1,
simp only [zero_mul, abs_zero, mul_zero] at h1,
apply auxfals (a-y) h1, },
have h33: (abs r)⁻¹ * abs ((c -d) - (y -x)) < 8⁻¹*ε,
by {have : abs ((c -d) - (y -x)) = abs ((y -x)- (c -d) ),
by { rw abs_sub_comm,},
rw this,
apply h3,},
have h5 : abs ((a-b )- (c-d)) = abs (( (a-y) -(b-x) )- ((c-d)-(y-x))) ,
by {ring_nf,},
rw h5,
have h6: (abs r)⁻¹ *abs (( (a-y) -(b-x) )- ((c-d)-(y-x))) ≤ (abs r)⁻¹ * abs (a-y) +
(abs r)⁻¹ * abs(b-x)+ (abs r)⁻¹ * abs ((c-d) -(y-x)),
by {ring_nf,
apply mul_mono_nonneg,
rw inv_nonneg,
apply abs_nonneg,
have h4: abs (((a-y) - (b-x)) + -((c-d) - (y-x)) ) ≤ abs ((a-y) - (b-x)) + abs ((c-d) - (y-x)),
by {set X : ℂ := (a-y) - (b-x),
set Y : ℂ :=-((c-d) - (y-x)),
have := complex.abs_add X Y,
have ho : abs (c - d - (y - x)) = abs Y, by {simp_rw Y, rw abs_neg,},
rw ho,
convert this,},
have h44 : abs ((a-y) - (b-x)) ≤ abs (a-y) + abs (b-x),
by {have := complex.abs_sub_le (a-y) 0 (b-x),
simp only [zero_sub, sub_zero, neg_sub] at this,
have hcd : abs (b-x)= abs (x-b), by {apply complex.abs_sub_comm,},
rw hcd,
apply this,},
apply le_trans h4,
simp_rw ← add_assoc,
simp only [h44, add_le_add_iff_right],},
have h11 : (abs r)⁻¹ * abs ( a- y) < 8⁻¹*ε, by {
have:= auxff (abs (a-y)) (8⁻¹*ε) (abs r) hr,
apply this,
have e1 : 8⁻¹* (abs r) *ε = 8⁻¹* ε* (abs r),
by {ring_nf,},
rw ← e1,
apply h1,},
have h22: (abs r)⁻¹ * abs ( b- x) < 8⁻¹*ε, by {
have:= auxff (abs (b-x)) (8⁻¹*ε) (abs r) hr,
apply this,
have e1: 8⁻¹* (abs r) *ε = 8⁻¹* ε* (abs r),
by {ring_nf,},
rw ← e1,
apply h2,},
have h7 := auxlefind h11 h22 h33,
have h8 := lt_of_le_of_lt h6 h7,
apply lt_trans h8,
field_simp,
linarith,
end
lemma auxfin (a b c d e f r: ℂ) (ε : ℝ) (hε: 0 < ε) (h1: abs (a- b) < 8⁻¹*abs(r)*ε)
(h2 :abs (c- d) < 8⁻¹*abs(r)*ε )
(h : ∃ (x y : ℂ), abs ( b- y) < 8⁻¹*abs(r)*ε ∧ abs (d-x) < 8⁻¹*abs(r)*ε ∧
(abs r)⁻¹ *abs ((y -x)- (e -f) ) < 8⁻¹*ε) :
(abs r)⁻¹ * abs ((a-b) - (c-d) + (b-d) - (e-f) ) < ε :=
begin
apply aux2 ,
apply hε,
apply h1,
apply h2,
apply aux3,
apply hε,
obtain ⟨x,y,hxy⟩:= h,
use x,
use y,
apply hxy,
end
lemma unif_lim_of_diff_is_cts (F : ℕ → ℂ → ℂ) (f : ℂ → ℂ) (z : ℂ) (R : ℝ)
(hdiff : ∀ (n : ℕ), differentiable_on ℂ (F n) (closed_ball z R))
(hlim : tendsto_uniformly_on F f filter.at_top (closed_ball z R)) :
continuous_on f (closed_ball z R) :=
begin
have F_cts : ∀ n, continuous_on (F n) (closed_ball z R),
by {intro n, apply (hdiff n).continuous_on,},
apply tendsto_uniformly_on.continuous_on hlim,
simp only [ge_iff_le, eventually_at_top],