src/HOL/Analysis/Great_Picard.thy
author paulson <lp15@cam.ac.uk>
Wed, 23 May 2018 21:31:41 +0100
changeset 68257 e6e131577536
parent 68255 009f783d1bac
child 68527 2f4e2aab190a
permissions -rw-r--r--
small tidy-up of Complex_Transcendental
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
     1
section\<open>The Great Picard Theorem and its Applications\<close>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
     2
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
     3
text\<open>Ported from HOL Light (cauchy.ml) by L C Paulson, 2017\<close>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
     4
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
     5
theory Great_Picard
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
     6
  imports Conformal_Mappings Further_Topology
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
     7
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
     8
begin
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
     9
  
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    10
subsection\<open>Schottky's theorem\<close>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    11
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    12
lemma Schottky_lemma0:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    13
  assumes holf: "f holomorphic_on S" and cons: "contractible S" and "a \<in> S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    14
      and f: "\<And>z. z \<in> S \<Longrightarrow> f z \<noteq> 1 \<and> f z \<noteq> -1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    15
  obtains g where "g holomorphic_on S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    16
                  "norm(g a) \<le> 1 + norm(f a) / 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    17
                  "\<And>z. z \<in> S \<Longrightarrow> f z = cos(of_real pi * g z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    18
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    19
  obtain g where holg: "g holomorphic_on S" and g: "norm(g a) \<le> pi + norm(f a)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    20
             and f_eq_cos: "\<And>z. z \<in> S \<Longrightarrow> f z = cos(g z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    21
    using contractible_imp_holomorphic_arccos_bounded [OF assms]
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    22
    by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    23
  show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    24
  proof
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    25
    show "(\<lambda>z. g z / pi) holomorphic_on S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    26
      by (auto intro: holomorphic_intros holg)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    27
    have "3 \<le> pi"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    28
      using pi_approx by force
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    29
    have "3 * norm(g a) \<le> 3 * (pi + norm(f a))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    30
      using g by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    31
    also have "... \<le>  pi * 3 + pi * cmod (f a)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    32
      using \<open>3 \<le> pi\<close> by (simp add: mult_right_mono algebra_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    33
    finally show "cmod (g a / complex_of_real pi) \<le> 1 + cmod (f a) / 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    34
      by (simp add: field_simps norm_divide)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    35
    show "\<And>z. z \<in> S \<Longrightarrow> f z = cos (complex_of_real pi * (g z / complex_of_real pi))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    36
      by (simp add: f_eq_cos)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    37
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    38
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    39
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    40
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    41
lemma Schottky_lemma1:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    42
  fixes n::nat
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    43
  assumes "0 < n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    44
  shows "0 < n + sqrt(real n ^ 2 - 1)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    45
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    46
  have "(n-1)^2 \<le> n^2 - 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    47
    using assms by (simp add: algebra_simps power2_eq_square)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    48
  then have "real (n - 1) \<le> sqrt (real (n\<^sup>2 - 1))"
67719
bffb7482faaa new material on matrices, etc., and consolidating duplicate results about of_nat
paulson <lp15@cam.ac.uk>
parents: 67399
diff changeset
    49
    by (metis of_nat_le_iff of_nat_power real_le_rsqrt)
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    50
  then have "n-1 \<le> sqrt(real n ^ 2 - 1)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    51
    by (simp add: Suc_leI assms of_nat_diff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    52
  then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    53
    using assms by linarith
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    54
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    55
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    56
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    57
lemma Schottky_lemma2:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    58
  fixes x::real
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    59
  assumes "0 \<le> x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    60
  obtains n where "0 < n" "\<bar>x - ln (real n + sqrt ((real n)\<^sup>2 - 1)) / pi\<bar> < 1/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    61
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    62
  obtain n0::nat where "0 < n0" "ln(n0 + sqrt(real n0 ^ 2 - 1)) / pi \<le> x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    63
  proof
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    64
    show "ln(real 1 + sqrt(real 1 ^ 2 - 1))/pi \<le> x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    65
      by (auto simp: assms)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    66
  qed auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    67
  moreover
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    68
  obtain M::nat where "\<And>n. \<lbrakk>0 < n; ln(n + sqrt(real n ^ 2 - 1)) / pi \<le> x\<rbrakk> \<Longrightarrow> n \<le> M"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    69
  proof
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    70
    fix n::nat
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    71
    assume "0 < n" "ln (n + sqrt ((real n)\<^sup>2 - 1)) / pi \<le> x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    72
    then have "ln (n + sqrt ((real n)\<^sup>2 - 1)) \<le> x * pi"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    73
      by (simp add: divide_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    74
    then have *: "exp (ln (n + sqrt ((real n)\<^sup>2 - 1))) \<le> exp (x * pi)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    75
      by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    76
    have 0: "0 \<le> sqrt ((real n)\<^sup>2 - 1)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    77
      using \<open>0 < n\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    78
    have "n + sqrt ((real n)\<^sup>2 - 1) = exp (ln (n + sqrt ((real n)\<^sup>2 - 1)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    79
      by (simp add: Suc_leI \<open>0 < n\<close> add_pos_nonneg real_of_nat_ge_one_iff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    80
    also have "... \<le> exp (x * pi)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    81
      using "*" by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    82
    finally have "real n \<le> exp (x * pi)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    83
      using 0 by linarith
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    84
    then show "n \<le> nat (ceiling (exp(x * pi)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    85
      by linarith
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    86
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    87
  ultimately obtain n where
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    88
     "0 < n" and le_x: "ln(n + sqrt(real n ^ 2 - 1)) / pi \<le> x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    89
             and le_n: "\<And>k. \<lbrakk>0 < k; ln(k + sqrt(real k ^ 2 - 1)) / pi \<le> x\<rbrakk> \<Longrightarrow> k \<le> n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    90
    using bounded_Max_nat [of "\<lambda>n. 0<n \<and> ln (n + sqrt ((real n)\<^sup>2 - 1)) / pi \<le> x"] by metis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    91
  define a where "a \<equiv> ln(n + sqrt(real n ^ 2 - 1)) / pi"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    92
  define b where "b \<equiv> ln (1 + real n + sqrt ((1 + real n)\<^sup>2 - 1)) / pi"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    93
  have le_xa: "a \<le> x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    94
   and le_na: "\<And>k. \<lbrakk>0 < k; ln(k + sqrt(real k ^ 2 - 1)) / pi \<le> x\<rbrakk> \<Longrightarrow> k \<le> n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    95
    using le_x le_n by (auto simp: a_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    96
  moreover have "x < b"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    97
    using le_n [of "Suc n"] by (force simp: b_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    98
  moreover have "b - a < 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
    99
  proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   100
    have "ln (1 + real n + sqrt ((1 + real n)\<^sup>2 - 1)) - ln (real n + sqrt ((real n)\<^sup>2 - 1)) =
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   101
         ln ((1 + real n + sqrt ((1 + real n)\<^sup>2 - 1)) / (real n + sqrt ((real n)\<^sup>2 - 1)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   102
      by (simp add: \<open>0 < n\<close> Schottky_lemma1 add_pos_nonneg ln_div [symmetric])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   103
    also have "... \<le> 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   104
    proof (cases "n = 1")
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   105
      case True
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   106
      have "sqrt 3 \<le> 2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   107
        by (simp add: real_le_lsqrt)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   108
      then have "(2 + sqrt 3) \<le> 4"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   109
        by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   110
      also have "... \<le> exp 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   111
        using exp_ge_add_one_self [of "3::real"] by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   112
      finally have "ln (2 + sqrt 3) \<le> 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   113
        by (metis add_nonneg_nonneg add_pos_nonneg dbl_def dbl_inc_def dbl_inc_simps(3)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   114
            dbl_simps(3) exp_gt_zero ln_exp ln_le_cancel_iff real_sqrt_ge_0_iff zero_le_one zero_less_one)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   115
      then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   116
        by (simp add: True)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   117
    next
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   118
      case False with \<open>0 < n\<close> have "1 < n" "2 \<le> n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   119
        by linarith+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   120
      then have 1: "1 \<le> real n * real n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   121
        by (metis less_imp_le_nat one_le_power power2_eq_square real_of_nat_ge_one_iff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   122
      have *: "4 + (m+2) * 2 \<le> (m+2) * ((m+2) * 3)" for m::nat
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   123
        by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   124
      have "4 + n * 2 \<le> n * (n * 3)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   125
        using * [of "n-2"]  \<open>2 \<le> n\<close>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   126
        by (metis le_add_diff_inverse2)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   127
      then have **: "4 + real n * 2 \<le> real n * (real n * 3)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   128
        by (metis (mono_tags, hide_lams) of_nat_le_iff of_nat_add of_nat_mult of_nat_numeral)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   129
      have "sqrt ((1 + real n)\<^sup>2 - 1) \<le> 2 * sqrt ((real n)\<^sup>2 - 1)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   130
        by (auto simp: real_le_lsqrt power2_eq_square algebra_simps 1 **)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   131
      then
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   132
      have "((1 + real n + sqrt ((1 + real n)\<^sup>2 - 1)) / (real n + sqrt ((real n)\<^sup>2 - 1))) \<le> 2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   133
        using Schottky_lemma1 \<open>0 < n\<close>  by (simp add: divide_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   134
      then have "ln ((1 + real n + sqrt ((1 + real n)\<^sup>2 - 1)) / (real n + sqrt ((real n)\<^sup>2 - 1))) \<le> ln 2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   135
        apply (subst ln_le_cancel_iff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   136
        using Schottky_lemma1 \<open>0 < n\<close> by auto (force simp: divide_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   137
      also have "... \<le> 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   138
        using ln_add_one_self_le_self [of 1] by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   139
      finally show ?thesis .
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   140
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   141
    also have "... < pi"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   142
      using pi_approx by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   143
    finally show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   144
      by (simp add: a_def b_def divide_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   145
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   146
  ultimately have "\<bar>x - a\<bar> < 1/2 \<or> \<bar>x - b\<bar> < 1/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   147
    by (auto simp: abs_if)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   148
  then show thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   149
  proof
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   150
    assume "\<bar>x - a\<bar> < 1 / 2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   151
    then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   152
      by (rule_tac n=n in that) (auto simp: a_def \<open>0 < n\<close>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   153
  next
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   154
    assume "\<bar>x - b\<bar> < 1 / 2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   155
    then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   156
      by (rule_tac n="Suc n" in that) (auto simp: b_def \<open>0 < n\<close>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   157
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   158
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   159
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   160
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   161
lemma Schottky_lemma3:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   162
  fixes z::complex
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   163
  assumes "z \<in> (\<Union>m \<in> Ints. \<Union>n \<in> {0<..}. {Complex m (ln(n + sqrt(real n ^ 2 - 1)) / pi)})
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   164
             \<union> (\<Union>m \<in> Ints. \<Union>n \<in> {0<..}. {Complex m (-ln(n + sqrt(real n ^ 2 - 1)) / pi)})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   165
  shows "cos(pi * cos(pi * z)) = 1 \<or> cos(pi * cos(pi * z)) = -1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   166
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   167
  have sqrt2 [simp]: "complex_of_real (sqrt x) * complex_of_real (sqrt x) = x" if "x \<ge> 0" for x::real
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   168
    by (metis abs_of_nonneg of_real_mult real_sqrt_mult_self that)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   169
  have 1: "\<exists>k. exp (\<i> * (of_int m * complex_of_real pi) -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   170
                 (ln (real n + sqrt ((real n)\<^sup>2 - 1)))) +
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   171
            inverse
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   172
             (exp (\<i> * (of_int m * complex_of_real pi) -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   173
                    (ln (real n + sqrt ((real n)\<^sup>2 - 1))))) = of_int k * 2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   174
         if "n > 0" for m n
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   175
  proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   176
    have eeq: "e \<noteq> 0 \<Longrightarrow> e + inverse e = n*2 \<longleftrightarrow> inverse e^2 - 2 * n*inverse e + 1 = 0" for n e::complex
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   177
      by (auto simp: field_simps power2_eq_square)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   178
    have [simp]: "1 \<le> real n * real n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   179
      by (metis One_nat_def add.commute nat_less_real_le of_nat_1 of_nat_Suc one_le_power power2_eq_square that)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   180
    show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   181
      apply (simp add: eeq)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   182
      using Schottky_lemma1 [OF that]
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   183
      apply (auto simp: eeq exp_diff exp_Euler exp_of_real algebra_simps sin_int_times_real cos_int_times_real)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   184
       apply (rule_tac x="int n" in exI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   185
       apply (auto simp: power2_eq_square algebra_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   186
       apply (rule_tac x="- int n" in exI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   187
      apply (auto simp: power2_eq_square algebra_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   188
      done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   189
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   190
  have 2: "\<exists>k. exp (\<i> * (of_int m * complex_of_real pi) +
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   191
                 (ln (real n + sqrt ((real n)\<^sup>2 - 1)))) +
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   192
            inverse
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   193
             (exp (\<i> * (of_int m * complex_of_real pi) +
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   194
                    (ln (real n + sqrt ((real n)\<^sup>2 - 1))))) = of_int k * 2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   195
            if "n > 0" for m n
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   196
  proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   197
    have eeq: "e \<noteq> 0 \<Longrightarrow> e + inverse e = n*2 \<longleftrightarrow> e^2 - 2 * n*e + 1 = 0" for n e::complex
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   198
      by (auto simp: field_simps power2_eq_square)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   199
    have [simp]: "1 \<le> real n * real n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   200
      by (metis One_nat_def add.commute nat_less_real_le of_nat_1 of_nat_Suc one_le_power power2_eq_square that)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   201
    show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   202
      apply (simp add: eeq)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   203
      using Schottky_lemma1 [OF that]
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   204
      apply (auto simp: exp_add exp_Euler exp_of_real algebra_simps sin_int_times_real cos_int_times_real)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   205
       apply (rule_tac x="int n" in exI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   206
       apply (auto simp: power2_eq_square algebra_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   207
       apply (rule_tac x="- int n" in exI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   208
      apply (auto simp: power2_eq_square algebra_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   209
      done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   210
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   211
  have "\<exists>x. cos (complex_of_real pi * z) = of_int x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   212
    using assms
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   213
    apply safe
65274
db2de50de28e Removed [simp] status for Complex_eq. Also tidied some proofs
paulson <lp15@cam.ac.uk>
parents: 65064
diff changeset
   214
      apply (auto simp: Ints_def cos_exp_eq exp_minus Complex_eq)
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   215
     apply (auto simp: algebra_simps dest: 1 2)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   216
      done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   217
  then have "sin(pi * cos(pi * z)) ^ 2 = 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   218
    by (simp add: Complex_Transcendental.sin_eq_0)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   219
  then have "1 - cos(pi * cos(pi * z)) ^ 2 = 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   220
    by (simp add: sin_squared_eq)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   221
  then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   222
    using power2_eq_1_iff by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   223
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   224
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   225
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   226
theorem Schottky:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   227
  assumes holf: "f holomorphic_on cball 0 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   228
      and nof0: "norm(f 0) \<le> r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   229
      and not01: "\<And>z. z \<in> cball 0 1 \<Longrightarrow> \<not>(f z = 0 \<or> f z = 1)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   230
      and "0 < t" "t < 1" "norm z \<le> t"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   231
    shows "norm(f z) \<le> exp(pi * exp(pi * (2 + 2 * r + 12 * t / (1 - t))))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   232
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   233
  obtain h where holf: "h holomorphic_on cball 0 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   234
             and nh0: "norm (h 0) \<le> 1 + norm(2 * f 0 - 1) / 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   235
             and h:   "\<And>z. z \<in> cball 0 1 \<Longrightarrow> 2 * f z - 1 = cos(of_real pi * h z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   236
  proof (rule Schottky_lemma0 [of "\<lambda>z. 2 * f z - 1" "cball 0 1" 0])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   237
    show "(\<lambda>z. 2 * f z - 1) holomorphic_on cball 0 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   238
      by (intro holomorphic_intros holf)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   239
    show "contractible (cball (0::complex) 1)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   240
      by (auto simp: convex_imp_contractible)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   241
    show "\<And>z. z \<in> cball 0 1 \<Longrightarrow> 2 * f z - 1 \<noteq> 1 \<and> 2 * f z - 1 \<noteq> - 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   242
      using not01 by force
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   243
  qed auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   244
  obtain g where holg: "g holomorphic_on cball 0 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   245
             and ng0:  "norm(g 0) \<le> 1 + norm(h 0) / 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   246
             and g:    "\<And>z. z \<in> cball 0 1 \<Longrightarrow> h z = cos(of_real pi * g z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   247
  proof (rule Schottky_lemma0 [OF holf convex_imp_contractible, of 0])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   248
    show "\<And>z. z \<in> cball 0 1 \<Longrightarrow> h z \<noteq> 1 \<and> h z \<noteq> - 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   249
      using h not01 by fastforce+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   250
  qed auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   251
  have g0_2_f0: "norm(g 0) \<le> 2 + norm(f 0)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   252
  proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   253
    have "cmod (2 * f 0 - 1) \<le> cmod (2 * f 0) + 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   254
      by (metis norm_one norm_triangle_ineq4)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   255
    also have "... \<le> 2 + cmod (f 0) * 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   256
      by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   257
    finally have "1 + norm(2 * f 0 - 1) / 3 \<le> (2 + norm(f 0) - 1) * 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   258
      apply (simp add: divide_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   259
      using norm_ge_zero [of "2 * f 0 - 1"]
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   260
      by linarith
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   261
    with nh0 have "norm(h 0) \<le> (2 + norm(f 0) - 1) * 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   262
      by linarith
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   263
    then have "1 + norm(h 0) / 3 \<le> 2 + norm(f 0)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   264
      by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   265
    with ng0 show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   266
      by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   267
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   268
  have "z \<in> ball 0 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   269
    using assms by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   270
  have norm_g_12: "norm(g z - g 0) \<le> (12 * t) / (1 - t)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   271
  proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   272
    obtain g' where g': "\<And>x. x \<in> cball 0 1 \<Longrightarrow> (g has_field_derivative g' x) (at x within cball 0 1)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   273
      using holg [unfolded holomorphic_on_def field_differentiable_def] by metis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   274
    have int_g': "(g' has_contour_integral g z - g 0) (linepath 0 z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   275
      using contour_integral_primitive [OF g' valid_path_linepath, of 0 z]
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   276
      using \<open>z \<in> ball 0 1\<close> segment_bound1 by fastforce
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   277
    have "cmod (g' w) \<le> 12 / (1 - t)" if "w \<in> closed_segment 0 z" for w
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   278
    proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   279
      have w: "w \<in> ball 0 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   280
        using segment_bound [OF that] \<open>z \<in> ball 0 1\<close> by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   281
      have ttt: "\<And>z. z \<in> frontier (cball 0 1) \<Longrightarrow> 1 - t \<le> dist w z"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   282
        using \<open>norm z \<le> t\<close> segment_bound1 [OF \<open>w \<in> closed_segment 0 z\<close>]
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   283
        apply (simp add: dist_complex_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   284
        by (metis diff_left_mono dist_commute dist_complex_def norm_triangle_ineq2 order_trans)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   285
      have *: "\<lbrakk>\<And>b. (\<exists>w \<in> T \<union> U. w \<in> ball b 1); \<And>x. x \<in> D \<Longrightarrow> g x \<notin> T \<union> U\<rbrakk> \<Longrightarrow> \<nexists>b. ball b 1 \<subseteq> g ` D" for T U D
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   286
        by force
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   287
      have "\<nexists>b. ball b 1 \<subseteq> g ` cball 0 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   288
      proof (rule *)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   289
        show "(\<exists>w \<in> (\<Union>m \<in> Ints. \<Union>n \<in> {0<..}. {Complex m (ln(n + sqrt(real n ^ 2 - 1)) / pi)}) \<union>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   290
                    (\<Union>m \<in> Ints. \<Union>n \<in> {0<..}. {Complex m (-ln(n + sqrt(real n ^ 2 - 1)) / pi)}). w \<in> ball b 1)" for b
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   291
        proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   292
          obtain m where m: "m \<in> \<int>" "\<bar>Re b - m\<bar> \<le> 1/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   293
            by (metis Ints_of_int abs_minus_commute of_int_round_abs_le)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   294
          show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   295
          proof (cases "0::real" "Im b" rule: le_cases)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   296
            case le
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   297
            then obtain n where "0 < n" and n: "\<bar>Im b - ln (n + sqrt ((real n)\<^sup>2 - 1)) / pi\<bar> < 1/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   298
              using Schottky_lemma2 [of "Im b"] by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   299
            have "dist b (Complex m (Im b)) \<le> 1/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   300
              by (metis cancel_comm_monoid_add_class.diff_cancel cmod_eq_Re complex.sel(1) complex.sel(2) dist_norm m(2) minus_complex.code)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   301
            moreover
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   302
            have "dist (Complex m (Im b)) (Complex m (ln (n + sqrt ((real n)\<^sup>2 - 1)) / pi)) < 1/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   303
              using n by (simp add: complex_norm cmod_eq_Re complex_diff dist_norm del: Complex_eq)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   304
            ultimately have "dist b (Complex m (ln (real n + sqrt ((real n)\<^sup>2 - 1)) / pi)) < 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   305
              by (simp add: dist_triangle_lt [of b "Complex m (Im b)"] dist_commute)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   306
            with le m \<open>0 < n\<close> show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   307
              apply (rule_tac x = "Complex m (ln (real n + sqrt ((real n)\<^sup>2 - 1)) / pi)" in bexI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   308
               apply (simp_all del: Complex_eq greaterThan_0)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   309
              by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   310
          next
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   311
            case ge
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   312
            then obtain n where "0 < n" and n: "\<bar>- Im b - ln (real n + sqrt ((real n)\<^sup>2 - 1)) / pi\<bar> < 1/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   313
              using Schottky_lemma2 [of "- Im b"] by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   314
            have "dist b (Complex m (Im b)) \<le> 1/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   315
              by (metis cancel_comm_monoid_add_class.diff_cancel cmod_eq_Re complex.sel(1) complex.sel(2) dist_norm m(2) minus_complex.code)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   316
            moreover
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   317
            have "dist (Complex m (- ln (n + sqrt ((real n)\<^sup>2 - 1)) / pi)) (Complex m (Im b)) < 1/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   318
              using n
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   319
              apply (simp add: complex_norm cmod_eq_Re complex_diff dist_norm del: Complex_eq)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   320
              by (metis add.commute add_uminus_conv_diff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   321
            ultimately have "dist b (Complex m (- ln (real n + sqrt ((real n)\<^sup>2 - 1)) / pi)) < 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   322
              by (simp add: dist_triangle_lt [of b "Complex m (Im b)"] dist_commute)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   323
            with ge m \<open>0 < n\<close> show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   324
              apply (rule_tac x = "Complex m (- ln (real n + sqrt ((real n)\<^sup>2 - 1)) / pi)" in bexI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   325
               apply (simp_all del: Complex_eq greaterThan_0)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   326
              by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   327
          qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   328
        qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   329
        show "g v \<notin> (\<Union>m \<in> Ints. \<Union>n \<in> {0<..}. {Complex m (ln(n + sqrt(real n ^ 2 - 1)) / pi)}) \<union>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   330
                    (\<Union>m \<in> Ints. \<Union>n \<in> {0<..}. {Complex m (-ln(n + sqrt(real n ^ 2 - 1)) / pi)})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   331
             if "v \<in> cball 0 1" for v
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   332
          using not01 [OF that]
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   333
          by (force simp: g [OF that, symmetric] h [OF that, symmetric] dest!: Schottky_lemma3 [of "g v"])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   334
      qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   335
      then have 12: "(1 - t) * cmod (deriv g w) / 12 < 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   336
        using Bloch_general [OF holg _ ttt, of 1] w by force
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   337
      have "g field_differentiable at w within cball 0 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   338
        using holg w by (simp add: holomorphic_on_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   339
      then have "g field_differentiable at w within ball 0 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   340
        using ball_subset_cball field_differentiable_within_subset by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   341
      with w have der_gw: "(g has_field_derivative deriv g w) (at w)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   342
        by (simp add: field_differentiable_within_open [of _ "ball 0 1"] field_differentiable_derivI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   343
      with DERIV_unique [OF der_gw] g' w have "deriv g w = g' w"
66827
c94531b5007d Divided Topology_Euclidean_Space in two, creating new theory Connected. Also deleted some duplicate / variant theorems
paulson <lp15@cam.ac.uk>
parents: 66660
diff changeset
   344
        by (metis open_ball at_within_open ball_subset_cball has_field_derivative_subset subsetCE)
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   345
      then show "cmod (g' w) \<le> 12 / (1 - t)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   346
        using g' 12 \<open>t < 1\<close> by (simp add: field_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   347
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   348
    then have "cmod (g z - g 0) \<le> 12 / (1 - t) * cmod z"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   349
      using has_contour_integral_bound_linepath [OF int_g', of "12/(1 - t)"] assms
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   350
      by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   351
    with \<open>cmod z \<le> t\<close> \<open>t < 1\<close> show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   352
      by (simp add: divide_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   353
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   354
  have fz: "f z = (1 + cos(of_real pi * h z)) / 2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   355
    using h \<open>z \<in> ball 0 1\<close> by (auto simp: field_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   356
  have "cmod (f z) \<le> exp (cmod (complex_of_real pi * h z))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   357
    by (simp add: fz mult.commute norm_cos_plus1_le)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   358
  also have "... \<le> exp (pi * exp (pi * (2 + 2 * r + 12 * t / (1 - t))))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   359
  proof (simp add: norm_mult)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   360
    have "cmod (g z - g 0) \<le> 12 * t / (1 - t)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   361
      using norm_g_12 \<open>t < 1\<close> by (simp add: norm_mult)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   362
    then have "cmod (g z) - cmod (g 0) \<le> 12 * t / (1 - t)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   363
      using norm_triangle_ineq2 order_trans by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   364
    then have *: "cmod (g z) \<le> 2 + 2 * r + 12 * t / (1 - t)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   365
      using g0_2_f0 norm_ge_zero [of "f 0"] nof0
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   366
        by linarith
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   367
    have "cmod (h z) \<le> exp (cmod (complex_of_real pi * g z))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   368
      using \<open>z \<in> ball 0 1\<close> by (simp add: g norm_cos_le)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   369
    also have "... \<le> exp (pi * (2 + 2 * r + 12 * t / (1 - t)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   370
      using \<open>t < 1\<close> nof0 * by (simp add: norm_mult)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   371
    finally show "cmod (h z) \<le> exp (pi * (2 + 2 * r + 12 * t / (1 - t)))" .
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   372
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   373
  finally show ?thesis .
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   374
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   375
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   376
  
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   377
subsection\<open>The Little Picard Theorem\<close>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   378
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   379
lemma Landau_Picard:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   380
  obtains R
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   381
    where "\<And>z. 0 < R z"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   382
          "\<And>f. \<lbrakk>f holomorphic_on cball 0 (R(f 0));
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   383
                 \<And>z. norm z \<le> R(f 0) \<Longrightarrow> f z \<noteq> 0 \<and> f z \<noteq> 1\<rbrakk> \<Longrightarrow> norm(deriv f 0) < 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   384
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   385
  define R where "R \<equiv> \<lambda>z. 3 * exp(pi * exp(pi*(2 + 2 * cmod z + 12)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   386
  show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   387
  proof
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   388
    show Rpos: "\<And>z. 0 < R z"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   389
      by (auto simp: R_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   390
    show "norm(deriv f 0) < 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   391
         if holf: "f holomorphic_on cball 0 (R(f 0))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   392
         and Rf:  "\<And>z. norm z \<le> R(f 0) \<Longrightarrow> f z \<noteq> 0 \<and> f z \<noteq> 1" for f
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   393
    proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   394
      let ?r = "R(f 0)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   395
      define g where "g \<equiv> f \<circ> (\<lambda>z. of_real ?r * z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   396
      have "0 < ?r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   397
        using Rpos by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   398
      have holg: "g holomorphic_on cball 0 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   399
        unfolding g_def
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   400
        apply (intro holomorphic_intros holomorphic_on_compose holomorphic_on_subset [OF holf])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   401
        using Rpos by (auto simp: less_imp_le norm_mult)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   402
      have *: "norm(g z) \<le> exp(pi * exp(pi * (2 + 2 * norm (f 0) + 12 * t / (1 - t))))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   403
           if "0 < t" "t < 1" "norm z \<le> t" for t z
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   404
      proof (rule Schottky [OF holg])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   405
        show "cmod (g 0) \<le> cmod (f 0)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   406
          by (simp add: g_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   407
        show "\<And>z. z \<in> cball 0 1 \<Longrightarrow> \<not> (g z = 0 \<or> g z = 1)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   408
          using Rpos by (simp add: g_def less_imp_le norm_mult Rf)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   409
      qed (auto simp: that)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   410
      have C1: "g holomorphic_on ball 0 (1 / 2)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   411
        by (rule holomorphic_on_subset [OF holg]) auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   412
      have C2: "continuous_on (cball 0 (1 / 2)) g"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   413
        by (meson cball_divide_subset_numeral holg holomorphic_on_imp_continuous_on holomorphic_on_subset)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   414
      have C3: "cmod (g z) \<le> R (f 0) / 3" if "cmod (0 - z) = 1/2" for z
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   415
      proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   416
        have "norm(g z) \<le> exp(pi * exp(pi * (2 + 2 * norm (f 0) + 12)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   417
          using * [of "1/2"] that by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   418
        also have "... = ?r / 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   419
          by (simp add: R_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   420
        finally show ?thesis .
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   421
      qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   422
      then have cmod_g'_le: "cmod (deriv g 0) * 3 \<le> R (f 0) * 2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   423
        using Cauchy_inequality [OF C1 C2 _ C3, of 1] by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   424
      have holf': "f holomorphic_on ball 0 (R(f 0))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   425
        by (rule holomorphic_on_subset [OF holf]) auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   426
      then have fd0: "f field_differentiable at 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   427
        by (rule holomorphic_on_imp_differentiable_at [OF _ open_ball])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   428
           (auto simp: Rpos [of "f 0"])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   429
      have g_eq: "deriv g 0 = of_real ?r * deriv f 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   430
        apply (rule DERIV_imp_deriv)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   431
        apply (simp add: g_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   432
        by (metis DERIV_chain DERIV_cmult_Id fd0 field_differentiable_derivI mult.commute mult_zero_right)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   433
      show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   434
        using cmod_g'_le Rpos [of "f 0"]  by (simp add: g_eq norm_mult)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   435
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   436
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   437
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   438
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   439
lemma little_Picard_01:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   440
  assumes holf: "f holomorphic_on UNIV" and f01: "\<And>z. f z \<noteq> 0 \<and> f z \<noteq> 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   441
  obtains c where "f = (\<lambda>x. c)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   442
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   443
  obtain R
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   444
    where Rpos: "\<And>z. 0 < R z"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   445
      and R:    "\<And>h. \<lbrakk>h holomorphic_on cball 0 (R(h 0));
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   446
                      \<And>z. norm z \<le> R(h 0) \<Longrightarrow> h z \<noteq> 0 \<and> h z \<noteq> 1\<rbrakk> \<Longrightarrow> norm(deriv h 0) < 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   447
    using Landau_Picard by metis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   448
  have contf: "continuous_on UNIV f"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   449
    by (simp add: holf holomorphic_on_imp_continuous_on)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   450
  show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   451
  proof (cases "\<forall>x. deriv f x = 0")
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   452
    case True
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   453
    obtain c where "\<And>x. f(x) = c"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   454
      apply (rule DERIV_zero_connected_constant [OF connected_UNIV open_UNIV finite.emptyI contf])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   455
       apply (metis True DiffE holf holomorphic_derivI open_UNIV, auto)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   456
      done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   457
    then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   458
      using that by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   459
  next
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   460
    case False
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   461
    then obtain w where w: "deriv f w \<noteq> 0" by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   462
    define fw where "fw \<equiv> (f \<circ> (\<lambda>z. w + z / deriv f w))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   463
    have norm_let1: "norm(deriv fw 0) < 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   464
    proof (rule R)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   465
      show "fw holomorphic_on cball 0 (R (fw 0))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   466
        unfolding fw_def
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   467
        by (intro holomorphic_intros holomorphic_on_compose w holomorphic_on_subset [OF holf] subset_UNIV)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   468
      show "fw z \<noteq> 0 \<and> fw z \<noteq> 1" if "cmod z \<le> R (fw 0)" for z
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   469
        using f01 by (simp add: fw_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   470
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   471
    have "(fw has_field_derivative deriv f w * inverse (deriv f w)) (at 0)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   472
      apply (simp add: fw_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   473
      apply (rule DERIV_chain)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   474
      using holf holomorphic_derivI apply force
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   475
      apply (intro derivative_eq_intros w)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   476
          apply (auto simp: field_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   477
      done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   478
    then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   479
      using norm_let1 w by (simp add: DERIV_imp_deriv)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   480
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   481
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   482
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   483
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   484
theorem little_Picard:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   485
  assumes holf: "f holomorphic_on UNIV"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   486
      and "a \<noteq> b" "range f \<inter> {a,b} = {}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   487
    obtains c where "f = (\<lambda>x. c)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   488
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   489
  let ?g = "\<lambda>x. 1/(b - a)*(f x - b) + 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   490
  obtain c where "?g = (\<lambda>x. c)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   491
  proof (rule little_Picard_01)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   492
    show "?g holomorphic_on UNIV"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   493
      by (intro holomorphic_intros holf)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   494
    show "\<And>z. ?g z \<noteq> 0 \<and> ?g z \<noteq> 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   495
      using assms by (auto simp: field_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   496
  qed auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   497
  then have "?g x = c" for x
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   498
    by meson
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   499
  then have "f x = c * (b-a) + a" for x
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   500
    using assms by (auto simp: field_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   501
  then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   502
    using that by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   503
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   504
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   505
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   506
text\<open>A couple of little applications of Little Picard\<close>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   507
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   508
lemma holomorphic_periodic_fixpoint:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   509
  assumes holf: "f holomorphic_on UNIV"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   510
      and "p \<noteq> 0" and per: "\<And>z. f(z + p) = f z"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   511
  obtains x where "f x = x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   512
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   513
  have False if non: "\<And>x. f x \<noteq> x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   514
  proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   515
    obtain c where "(\<lambda>z. f z - z) = (\<lambda>z. c)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   516
    proof (rule little_Picard)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   517
      show "(\<lambda>z. f z - z) holomorphic_on UNIV"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   518
        by (simp add: holf holomorphic_on_diff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   519
      show "range (\<lambda>z. f z - z) \<inter> {p,0} = {}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   520
          using assms non by auto (metis add.commute diff_eq_eq)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   521
      qed (auto simp: assms)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   522
    with per show False
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   523
      by (metis add.commute add_cancel_left_left \<open>p \<noteq> 0\<close> diff_add_cancel)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   524
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   525
  then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   526
    using that by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   527
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   528
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   529
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   530
lemma holomorphic_involution_point:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   531
  assumes holfU: "f holomorphic_on UNIV" and non: "\<And>a. f \<noteq> (\<lambda>x. a + x)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   532
  obtains x where "f(f x) = x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   533
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   534
  { assume non_ff [simp]: "\<And>x. f(f x) \<noteq> x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   535
    then have non_fp [simp]: "f z \<noteq> z" for z
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   536
      by metis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   537
    have holf: "f holomorphic_on X" for X
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   538
      using assms holomorphic_on_subset by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   539
    obtain c where c: "(\<lambda>x. (f(f x) - x)/(f x - x)) = (\<lambda>x. c)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   540
    proof (rule little_Picard_01)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   541
      show "(\<lambda>x. (f(f x) - x)/(f x - x)) holomorphic_on UNIV"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   542
        apply (intro holomorphic_intros holf holomorphic_on_compose [unfolded o_def, OF holf])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   543
        using non_fp by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   544
    qed auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   545
    then obtain "c \<noteq> 0" "c \<noteq> 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   546
      by (metis (no_types, hide_lams) non_ff diff_zero divide_eq_0_iff right_inverse_eq)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   547
    have eq: "f(f x) - c * f x = x*(1 - c)" for x
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   548
      using fun_cong [OF c, of x] by (simp add: field_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   549
    have df_times_dff: "deriv f z * (deriv f (f z) - c) = 1 * (1 - c)" for z
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   550
    proof (rule DERIV_unique)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   551
      show "((\<lambda>x. f (f x) - c * f x) has_field_derivative
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   552
              deriv f z * (deriv f (f z) - c)) (at z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   553
        apply (intro derivative_eq_intros)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   554
            apply (rule DERIV_chain [unfolded o_def, of f])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   555
             apply (auto simp: algebra_simps intro!: holomorphic_derivI [OF holfU])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   556
        done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   557
      show "((\<lambda>x. f (f x) - c * f x) has_field_derivative 1 * (1 - c)) (at z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   558
        by (simp add: eq mult_commute_abs)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   559
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   560
    { fix z::complex
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   561
      obtain k where k: "deriv f \<circ> f = (\<lambda>x. k)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   562
      proof (rule little_Picard)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   563
        show "(deriv f \<circ> f) holomorphic_on UNIV"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   564
          by (meson holfU holomorphic_deriv holomorphic_on_compose holomorphic_on_subset open_UNIV subset_UNIV)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   565
        obtain "deriv f (f x) \<noteq> 0" "deriv f (f x) \<noteq> c"  for x
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   566
          using df_times_dff \<open>c \<noteq> 1\<close> eq_iff_diff_eq_0
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   567
          by (metis lambda_one mult_zero_left mult_zero_right)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   568
        then show "range (deriv f \<circ> f) \<inter> {0,c} = {}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   569
          by force
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   570
      qed (use \<open>c \<noteq> 0\<close> in auto)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   571
      have "\<not> f constant_on UNIV"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   572
        by (meson UNIV_I non_ff constant_on_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   573
      with holf open_mapping_thm have "open(range f)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   574
        by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   575
      obtain l where l: "\<And>x. f x - k * x = l"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   576
      proof (rule DERIV_zero_connected_constant [of UNIV "{}" "\<lambda>x. f x - k * x"], simp_all)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   577
        have "deriv f w - k = 0" for w
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   578
        proof (rule analytic_continuation [OF _ open_UNIV connected_UNIV subset_UNIV, of "\<lambda>z. deriv f z - k" "f z" "range f" w])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   579
          show "(\<lambda>z. deriv f z - k) holomorphic_on UNIV"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   580
            by (intro holomorphic_intros holf open_UNIV)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   581
          show "f z islimpt range f"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   582
            by (metis (no_types, lifting) IntI UNIV_I \<open>open (range f)\<close> image_eqI inf.absorb_iff2 inf_aci(1) islimpt_UNIV islimpt_eq_acc_point open_Int top_greatest)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   583
          show "\<And>z. z \<in> range f \<Longrightarrow> deriv f z - k = 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   584
            by (metis comp_def diff_self image_iff k)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   585
        qed auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   586
        moreover
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   587
        have "((\<lambda>x. f x - k * x) has_field_derivative deriv f x - k) (at x)" for x
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   588
          by (metis DERIV_cmult_Id Deriv.field_differentiable_diff UNIV_I field_differentiable_derivI holf holomorphic_on_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   589
        ultimately
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   590
        show "\<forall>x. ((\<lambda>x. f x - k * x) has_field_derivative 0) (at x)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   591
          by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   592
        show "continuous_on UNIV (\<lambda>x. f x - k * x)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   593
          by (simp add: continuous_on_diff holf holomorphic_on_imp_continuous_on)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   594
      qed (auto simp: connected_UNIV)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   595
      have False
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   596
      proof (cases "k=1")
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   597
        case True
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   598
        then have "\<exists>x. k * x + l \<noteq> a + x" for a
67399
eab6ce8368fa ran isabelle update_op on all sources
nipkow
parents: 66827
diff changeset
   599
          using l non [of a] ext [of f "(+) a"]
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   600
          by (metis add.commute diff_eq_eq)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   601
        with True show ?thesis by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   602
      next
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   603
        case False
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   604
        have "\<And>x. (1 - k) * x \<noteq> f 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   605
          using l [of 0] apply (simp add: algebra_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   606
          by (metis diff_add_cancel l mult.commute non_fp)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   607
        then show False
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   608
          by (metis False eq_iff_diff_eq_0 mult.commute nonzero_mult_div_cancel_right times_divide_eq_right)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   609
      qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   610
    }
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   611
  }
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   612
  then show thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   613
    using that by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   614
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   615
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   616
65823
4f353215888a eliminated suspicious Unicode;
wenzelm
parents: 65274
diff changeset
   617
subsection\<open>The Arzelà--Ascoli theorem\<close>
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   618
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   619
lemma subsequence_diagonalization_lemma:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   620
  fixes P :: "nat \<Rightarrow> (nat \<Rightarrow> 'a) \<Rightarrow> bool"
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   621
  assumes sub: "\<And>i r. \<exists>k. strict_mono (k :: nat \<Rightarrow> nat) \<and> P i (r \<circ> k)"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   622
      and P_P:  "\<And>i r::nat \<Rightarrow> 'a. \<And>k1 k2 N.
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   623
                   \<lbrakk>P i (r \<circ> k1); \<And>j. N \<le> j \<Longrightarrow> \<exists>j'. j \<le> j' \<and> k2 j = k1 j'\<rbrakk> \<Longrightarrow> P i (r \<circ> k2)"
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   624
   obtains k where "strict_mono (k :: nat \<Rightarrow> nat)" "\<And>i. P i (r \<circ> k)"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   625
proof -
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   626
  obtain kk where "\<And>i r. strict_mono (kk i r :: nat \<Rightarrow> nat) \<and> P i (r \<circ> (kk i r))"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   627
    using sub by metis
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   628
  then have sub_kk: "\<And>i r. strict_mono (kk i r)" and P_kk: "\<And>i r. P i (r \<circ> (kk i r))"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   629
    by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   630
  define rr where "rr \<equiv> rec_nat (kk 0 r) (\<lambda>n x. x \<circ> kk (Suc n) (r \<circ> x))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   631
  then have [simp]: "rr 0 = kk 0 r" "\<And>n. rr(Suc n) = rr n \<circ> kk (Suc n) (r \<circ> rr n)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   632
    by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   633
  show thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   634
  proof
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   635
    have sub_rr: "strict_mono (rr i)" for i
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   636
      using sub_kk  by (induction i) (auto simp: strict_mono_def o_def)
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   637
    have P_rr: "P i (r \<circ> rr i)" for i
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   638
      using P_kk  by (induction i) (auto simp: o_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   639
    have "i \<le> i+d \<Longrightarrow> rr i n \<le> rr (i+d) n" for d i n
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   640
    proof (induction d)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   641
      case 0 then show ?case
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   642
        by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   643
    next
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   644
      case (Suc d) then show ?case
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   645
        apply simp
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   646
          using seq_suble [OF sub_kk] order_trans strict_mono_less_eq [OF sub_rr] by blast
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   647
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   648
    then have "\<And>i j n. i \<le> j \<Longrightarrow> rr i n \<le> rr j n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   649
      by (metis le_iff_add)
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   650
    show "strict_mono (\<lambda>n. rr n n)"
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   651
      apply (simp add: strict_mono_Suc_iff)
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   652
      by (meson lessI less_le_trans seq_suble strict_monoD sub_kk sub_rr)
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   653
    have "\<exists>j. i \<le> j \<and> rr (n+d) i = rr n j" for d n i
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   654
      apply (induction d arbitrary: i, auto)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   655
      by (meson order_trans seq_suble sub_kk)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   656
    then have "\<And>m n i. n \<le> m \<Longrightarrow> \<exists>j. i \<le> j \<and> rr m i = rr n j"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   657
      by (metis le_iff_add)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   658
    then show "P i (r \<circ> (\<lambda>n. rr n n))" for i
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   659
      by (meson P_rr P_P)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   660
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   661
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   662
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   663
lemma function_convergent_subsequence:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   664
  fixes f :: "[nat,'a] \<Rightarrow> 'b::{real_normed_vector,heine_borel}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   665
  assumes "countable S" and M: "\<And>n::nat. \<And>x. x \<in> S \<Longrightarrow> norm(f n x) \<le> M"
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   666
   obtains k where "strict_mono (k::nat\<Rightarrow>nat)" "\<And>x. x \<in> S \<Longrightarrow> \<exists>l. (\<lambda>n. f (k n) x) \<longlonglongrightarrow> l"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   667
proof (cases "S = {}")
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   668
  case True
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   669
  then show ?thesis
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   670
    using strict_mono_id that by fastforce
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   671
next
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   672
  case False
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   673
  with \<open>countable S\<close> obtain \<sigma> :: "nat \<Rightarrow> 'a" where \<sigma>: "S = range \<sigma>"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   674
    using uncountable_def by blast
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   675
  obtain k where "strict_mono k" and k: "\<And>i. \<exists>l. (\<lambda>n. (f \<circ> k) n (\<sigma> i)) \<longlonglongrightarrow> l"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   676
  proof (rule subsequence_diagonalization_lemma
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   677
      [of "\<lambda>i r. \<exists>l. ((\<lambda>n. (f \<circ> r) n (\<sigma> i)) \<longlongrightarrow> l) sequentially" id])
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   678
    show "\<exists>k::nat\<Rightarrow>nat. strict_mono k \<and> (\<exists>l. (\<lambda>n. (f \<circ> (r \<circ> k)) n (\<sigma> i)) \<longlonglongrightarrow> l)" for i r
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   679
    proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   680
      have "f (r n) (\<sigma> i) \<in> cball 0 M" for n
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   681
        by (simp add: \<sigma> M)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   682
      then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   683
        using compact_def [of "cball (0::'b) M"] apply simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   684
        apply (drule_tac x="(\<lambda>n. f (r n) (\<sigma> i))" in spec)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   685
        apply (force simp: o_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   686
        done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   687
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   688
    show "\<And>i r k1 k2 N.
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   689
               \<lbrakk>\<exists>l. (\<lambda>n. (f \<circ> (r \<circ> k1)) n (\<sigma> i)) \<longlonglongrightarrow> l; \<And>j. N \<le> j \<Longrightarrow> \<exists>j'\<ge>j. k2 j = k1 j'\<rbrakk>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   690
               \<Longrightarrow> \<exists>l. (\<lambda>n. (f \<circ> (r \<circ> k2)) n (\<sigma> i)) \<longlonglongrightarrow> l"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   691
      apply (simp add: lim_sequentially)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   692
      apply (erule ex_forward all_forward imp_forward)+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   693
        apply auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   694
      by (metis (no_types, hide_lams) le_cases order_trans)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   695
  qed auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   696
  with \<sigma> that show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   697
    by force
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   698
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   699
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   700
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   701
theorem Arzela_Ascoli:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   702
  fixes \<F> :: "[nat,'a::euclidean_space] \<Rightarrow> 'b::{real_normed_vector,heine_borel}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   703
  assumes "compact S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   704
      and M: "\<And>n x. x \<in> S \<Longrightarrow> norm(\<F> n x) \<le> M"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   705
      and equicont:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   706
          "\<And>x e. \<lbrakk>x \<in> S; 0 < e\<rbrakk>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   707
                 \<Longrightarrow> \<exists>d. 0 < d \<and> (\<forall>n y. y \<in> S \<and> norm(x - y) < d \<longrightarrow> norm(\<F> n x - \<F> n y) < e)"
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   708
  obtains g k where "continuous_on S g" "strict_mono (k :: nat \<Rightarrow> nat)"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   709
                    "\<And>e. 0 < e \<Longrightarrow> \<exists>N. \<forall>n x. n \<ge> N \<and> x \<in> S \<longrightarrow> norm(\<F>(k n) x - g x) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   710
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   711
  have UEQ: "\<And>e. 0 < e \<Longrightarrow> \<exists>d. 0 < d \<and> (\<forall>n. \<forall>x \<in> S. \<forall>x' \<in> S. dist x' x < d \<longrightarrow> dist (\<F> n x') (\<F> n x) < e)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   712
    apply (rule compact_uniformly_equicontinuous [OF \<open>compact S\<close>, of "range \<F>"])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   713
    using equicont by (force simp: dist_commute dist_norm)+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   714
  have "continuous_on S g"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   715
       if "\<And>e. 0 < e \<Longrightarrow> \<exists>N. \<forall>n x. n \<ge> N \<and> x \<in> S \<longrightarrow> norm(\<F>(r n) x - g x) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   716
       for g:: "'a \<Rightarrow> 'b" and r :: "nat \<Rightarrow> nat"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   717
  proof (rule uniform_limit_theorem [of _ "\<F> \<circ> r"])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   718
    show "\<forall>\<^sub>F n in sequentially. continuous_on S ((\<F> \<circ> r) n)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   719
      apply (simp add: eventually_sequentially)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   720
      apply (rule_tac x=0 in exI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   721
      using UEQ apply (force simp: continuous_on_iff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   722
      done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   723
    show "uniform_limit S (\<F> \<circ> r) g sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   724
      apply (simp add: uniform_limit_iff eventually_sequentially)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   725
        by (metis dist_norm that)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   726
  qed auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   727
  moreover
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   728
  obtain R where "countable R" "R \<subseteq> S" and SR: "S \<subseteq> closure R"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   729
    by (metis separable that)
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   730
  obtain k where "strict_mono k" and k: "\<And>x. x \<in> R \<Longrightarrow> \<exists>l. (\<lambda>n. \<F> (k n) x) \<longlonglongrightarrow> l"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   731
    apply (rule function_convergent_subsequence [OF \<open>countable R\<close> M])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   732
    using \<open>R \<subseteq> S\<close> apply force+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   733
    done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   734
  then have Cauchy: "Cauchy ((\<lambda>n. \<F> (k n) x))" if "x \<in> R" for x
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   735
    using convergent_eq_Cauchy that by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   736
  have "\<exists>N. \<forall>m n x. N \<le> m \<and> N \<le> n \<and> x \<in> S \<longrightarrow> dist ((\<F> \<circ> k) m x) ((\<F> \<circ> k) n x) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   737
    if "0 < e" for e
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   738
  proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   739
    obtain d where "0 < d"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   740
      and d: "\<And>n. \<forall>x \<in> S. \<forall>x' \<in> S. dist x' x < d \<longrightarrow> dist (\<F> n x') (\<F> n x) < e/3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   741
      by (metis UEQ \<open>0 < e\<close> divide_pos_pos zero_less_numeral)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   742
    obtain T where "T \<subseteq> R" and "finite T" and T: "S \<subseteq> (\<Union>c\<in>T. ball c d)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   743
    proof (rule compactE_image [OF  \<open>compact S\<close>, of R "(\<lambda>x. ball x d)"])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   744
      have "closure R \<subseteq> (\<Union>c\<in>R. ball c d)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   745
        apply clarsimp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   746
        using \<open>0 < d\<close> closure_approachable by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   747
      with SR show "S \<subseteq> (\<Union>c\<in>R. ball c d)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   748
        by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   749
    qed auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   750
    have "\<exists>M. \<forall>m\<ge>M. \<forall>n\<ge>M. dist (\<F> (k m) x) (\<F> (k n) x) < e/3" if "x \<in> R" for x
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   751
      using Cauchy \<open>0 < e\<close> that unfolding Cauchy_def
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   752
      by (metis less_divide_eq_numeral1(1) mult_zero_left)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   753
    then obtain MF where MF: "\<And>x m n. \<lbrakk>x \<in> R; m \<ge> MF x; n \<ge> MF x\<rbrakk> \<Longrightarrow> norm (\<F> (k m) x - \<F> (k n) x) < e/3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   754
      using dist_norm by metis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   755
    have "dist ((\<F> \<circ> k) m x) ((\<F> \<circ> k) n x) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   756
         if m: "Max (MF ` T) \<le> m" and n: "Max (MF ` T) \<le> n" "x \<in> S" for m n x
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   757
    proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   758
      obtain t where "t \<in> T" and t: "x \<in> ball t d"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   759
        using \<open>x \<in> S\<close> T by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   760
      have "norm(\<F> (k m) t - \<F> (k m) x) < e / 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   761
        by (metis \<open>R \<subseteq> S\<close> \<open>T \<subseteq> R\<close> \<open>t \<in> T\<close> d dist_norm mem_ball subset_iff t \<open>x \<in> S\<close>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   762
      moreover
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   763
      have "norm(\<F> (k n) t - \<F> (k n) x) < e / 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   764
        by (metis \<open>R \<subseteq> S\<close> \<open>T \<subseteq> R\<close> \<open>t \<in> T\<close> subsetD d dist_norm mem_ball t \<open>x \<in> S\<close>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   765
      moreover
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   766
      have "norm(\<F> (k m) t - \<F> (k n) t) < e / 3"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   767
      proof (rule MF)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   768
        show "t \<in> R"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   769
          using \<open>T \<subseteq> R\<close> \<open>t \<in> T\<close> by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   770
        show "MF t \<le> m" "MF t \<le> n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   771
          by (meson Max_ge \<open>finite T\<close> \<open>t \<in> T\<close> finite_imageI imageI le_trans m n)+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   772
      qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   773
      ultimately
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   774
      show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   775
        unfolding dist_norm [symmetric] o_def
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   776
          by (metis dist_triangle_third dist_commute)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   777
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   778
    then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   779
      by force
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   780
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   781
  then have "\<exists>g. \<forall>e>0. \<exists>N. \<forall>n\<ge>N. \<forall>x \<in> S. norm(\<F>(k n) x - g x) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   782
    using uniformly_convergent_eq_cauchy [of "\<lambda>x. x \<in> S" "\<F> \<circ> k"]
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   783
    apply (simp add: o_def dist_norm)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   784
    by meson
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   785
  ultimately show thesis
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   786
    by (metis that \<open>strict_mono k\<close>)
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   787
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   788
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   789
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   790
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   791
subsubsection\<open>Montel's theorem\<close>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   792
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   793
text\<open>a sequence of holomorphic functions uniformly bounded
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   794
on compact subsets of an open set S has a subsequence that converges to a
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   795
holomorphic function, and converges \emph{uniformly} on compact subsets of S.\<close>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   796
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   797
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   798
theorem Montel:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   799
  fixes \<F> :: "[nat,complex] \<Rightarrow> complex"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   800
  assumes "open S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   801
      and \<H>: "\<And>h. h \<in> \<H> \<Longrightarrow> h holomorphic_on S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   802
      and bounded: "\<And>K. \<lbrakk>compact K; K \<subseteq> S\<rbrakk> \<Longrightarrow> \<exists>B. \<forall>h \<in> \<H>. \<forall> z \<in> K. norm(h z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   803
      and rng_f: "range \<F> \<subseteq> \<H>"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   804
  obtains g r
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   805
    where "g holomorphic_on S" "strict_mono (r :: nat \<Rightarrow> nat)"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   806
          "\<And>x. x \<in> S \<Longrightarrow> ((\<lambda>n. \<F> (r n) x) \<longlongrightarrow> g x) sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   807
          "\<And>K. \<lbrakk>compact K; K \<subseteq> S\<rbrakk> \<Longrightarrow> uniform_limit K (\<F> \<circ> r) g sequentially"        
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   808
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   809
  obtain K where comK: "\<And>n. compact(K n)" and KS: "\<And>n::nat. K n \<subseteq> S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   810
             and subK: "\<And>X. \<lbrakk>compact X; X \<subseteq> S\<rbrakk> \<Longrightarrow> \<exists>N. \<forall>n\<ge>N. X \<subseteq> K n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   811
    using open_Union_compact_subsets [OF \<open>open S\<close>] by metis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   812
  then have "\<And>i. \<exists>B. \<forall>h \<in> \<H>. \<forall> z \<in> K i. norm(h z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   813
    by (simp add: bounded)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   814
  then obtain B where B: "\<And>i h z. \<lbrakk>h \<in> \<H>; z \<in> K i\<rbrakk> \<Longrightarrow> norm(h z) \<le> B i"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   815
    by metis
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   816
  have *: "\<exists>r g. strict_mono (r::nat\<Rightarrow>nat) \<and> (\<forall>e > 0. \<exists>N. \<forall>n\<ge>N. \<forall>x \<in> K i. norm((\<F> \<circ> r) n x - g x) < e)"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   817
        if "\<And>n. \<F> n \<in> \<H>" for \<F> i
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   818
  proof -
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   819
    obtain g k where "continuous_on (K i) g" "strict_mono (k::nat\<Rightarrow>nat)"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   820
                    "\<And>e. 0 < e \<Longrightarrow> \<exists>N. \<forall>n\<ge>N. \<forall>x \<in> K i. norm(\<F>(k n) x - g x) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   821
    proof (rule Arzela_Ascoli [of "K i" "\<F>" "B i"])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   822
      show "\<exists>d>0. \<forall>n y. y \<in> K i \<and> cmod (z - y) < d \<longrightarrow> cmod (\<F> n z - \<F> n y) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   823
             if z: "z \<in> K i" and "0 < e" for z e
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   824
      proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   825
        obtain r where "0 < r" and r: "cball z r \<subseteq> S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   826
          using z KS [of i] \<open>open S\<close> by (force simp: open_contains_cball)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   827
        have "cball z (2 / 3 * r) \<subseteq> cball z r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   828
          using \<open>0 < r\<close> by (simp add: cball_subset_cball_iff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   829
        then have z23S: "cball z (2 / 3 * r) \<subseteq> S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   830
          using r by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   831
        obtain M where "0 < M" and M: "\<And>n w. dist z w \<le> 2/3 * r \<Longrightarrow> norm(\<F> n w) \<le> M"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   832
        proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   833
          obtain N where N: "\<forall>n\<ge>N. cball z (2/3 * r) \<subseteq> K n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   834
            using subK compact_cball [of z "(2 / 3 * r)"] z23S by force
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   835
          have "cmod (\<F> n w) \<le> \<bar>B N\<bar> + 1" if "dist z w \<le> 2 / 3 * r" for n w
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   836
          proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   837
            have "w \<in> K N"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   838
              using N mem_cball that by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   839
            then have "cmod (\<F> n w) \<le> B N"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   840
              using B \<open>\<And>n. \<F> n \<in> \<H>\<close> by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   841
            also have "... \<le> \<bar>B N\<bar> + 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   842
              by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   843
            finally show ?thesis .
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   844
          qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   845
          then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   846
            by (rule_tac M="\<bar>B N\<bar> + 1" in that) auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   847
        qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   848
        have "cmod (\<F> n z - \<F> n y) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   849
              if "y \<in> K i" and y_near_z: "cmod (z - y) < r/3" "cmod (z - y) < e * r / (6 * M)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   850
              for n y
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   851
        proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   852
          have "((\<lambda>w. \<F> n w / (w - \<xi>)) has_contour_integral
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   853
                    (2 * pi) * \<i> * winding_number (circlepath z (2 / 3 * r)) \<xi> * \<F> n \<xi>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   854
                (circlepath z (2 / 3 * r))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   855
             if "dist \<xi> z < (2 / 3 * r)" for \<xi>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   856
          proof (rule Cauchy_integral_formula_convex_simple)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   857
            have "\<F> n holomorphic_on S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   858
              by (simp add: \<H> \<open>\<And>n. \<F> n \<in> \<H>\<close>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   859
            with z23S show "\<F> n holomorphic_on cball z (2 / 3 * r)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   860
              using holomorphic_on_subset by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   861
          qed (use that \<open>0 < r\<close> in \<open>auto simp: dist_commute\<close>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   862
          then have *: "((\<lambda>w. \<F> n w / (w - \<xi>)) has_contour_integral (2 * pi) * \<i> * \<F> n \<xi>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   863
                     (circlepath z (2 / 3 * r))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   864
             if "dist \<xi> z < (2 / 3 * r)" for \<xi>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   865
            using that by (simp add: winding_number_circlepath dist_norm)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   866
           have y: "((\<lambda>w. \<F> n w / (w - y)) has_contour_integral (2 * pi) * \<i> * \<F> n y)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   867
                 (circlepath z (2 / 3 * r))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   868
             apply (rule *)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   869
             using that \<open>0 < r\<close> by (simp only: dist_norm norm_minus_commute)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   870
           have z: "((\<lambda>w. \<F> n w / (w - z)) has_contour_integral (2 * pi) * \<i> * \<F> n z)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   871
                 (circlepath z (2 / 3 * r))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   872
             apply (rule *)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   873
             using \<open>0 < r\<close> by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   874
           have le_er: "cmod (\<F> n x / (x - y) - \<F> n x / (x - z)) \<le> e / r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   875
                if "cmod (x - z) = r/3 + r/3" for x
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   876
           proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   877
             have "~ (cmod (x - y) < r/3)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   878
               using y_near_z(1) that \<open>M > 0\<close> \<open>r > 0\<close>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   879
               by (metis (full_types) norm_diff_triangle_less norm_minus_commute order_less_irrefl)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   880
             then have r4_le_xy: "r/4 \<le> cmod (x - y)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   881
               using \<open>r > 0\<close> by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   882
             then have neq: "x \<noteq> y" "x \<noteq> z"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   883
               using that \<open>r > 0\<close> by (auto simp: divide_simps norm_minus_commute)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   884
             have leM: "cmod (\<F> n x) \<le> M"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   885
               by (simp add: M dist_commute dist_norm that)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   886
             have "cmod (\<F> n x / (x - y) - \<F> n x / (x - z)) = cmod (\<F> n x) * cmod (1 / (x - y) - 1 / (x - z))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   887
               by (metis (no_types, lifting) divide_inverse mult.left_neutral norm_mult right_diff_distrib')
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   888
             also have "... = cmod (\<F> n x) * cmod ((y - z) / ((x - y) * (x - z)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   889
               using neq by (simp add: divide_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   890
             also have "... = cmod (\<F> n x) * (cmod (y - z) / (cmod(x - y) * (2/3 * r)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   891
               by (simp add: norm_mult norm_divide that)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   892
             also have "... \<le> M * (cmod (y - z) / (cmod(x - y) * (2/3 * r)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   893
               apply (rule mult_mono)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   894
                  apply (rule leM)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   895
                 using \<open>r > 0\<close> \<open>M > 0\<close> neq by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   896
               also have "... < M * ((e * r / (6 * M)) / (cmod(x - y) * (2/3 * r)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   897
                 unfolding mult_less_cancel_left
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   898
                 using y_near_z(2) \<open>M > 0\<close> \<open>r > 0\<close> neq
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   899
                 apply (simp add: field_simps mult_less_0_iff norm_minus_commute)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   900
                 done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   901
             also have "... \<le> e/r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   902
               using \<open>e > 0\<close> \<open>r > 0\<close> r4_le_xy by (simp add: divide_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   903
             finally show ?thesis by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   904
           qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   905
           have "(2 * pi) * cmod (\<F> n y - \<F> n z) = cmod ((2 * pi) * \<i> * \<F> n y - (2 * pi) * \<i> * \<F> n z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   906
             by (simp add: right_diff_distrib [symmetric] norm_mult)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   907
           also have "cmod ((2 * pi) * \<i> * \<F> n y - (2 * pi) * \<i> * \<F> n z) \<le> e / r * (2 * pi * (2 / 3 * r))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   908
             apply (rule has_contour_integral_bound_circlepath [OF has_contour_integral_diff [OF y z], of "e/r"])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   909
             using \<open>e > 0\<close> \<open>r > 0\<close> le_er by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   910
           also have "... = (2 * pi) * e * ((2 / 3))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   911
             using \<open>r > 0\<close> by (simp add: divide_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   912
           finally have "cmod (\<F> n y - \<F> n z) \<le> e * (2 / 3)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   913
             by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   914
           also have "... < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   915
             using \<open>e > 0\<close> by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   916
           finally show ?thesis by (simp add: norm_minus_commute)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   917
        qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   918
        then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   919
          apply (rule_tac x="min (r/3) ((e * r)/(6 * M))" in exI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   920
          using \<open>0 < e\<close> \<open>0 < r\<close> \<open>0 < M\<close> by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   921
      qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   922
      show "\<And>n x.  x \<in> K i \<Longrightarrow> cmod (\<F> n x) \<le> B i"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   923
        using B \<open>\<And>n. \<F> n \<in> \<H>\<close> by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   924
    qed (use comK in \<open>fastforce+\<close>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   925
    then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   926
      by fastforce
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   927
  qed
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   928
  have "\<exists>k g. strict_mono (k::nat\<Rightarrow>nat) \<and> (\<forall>e > 0. \<exists>N. \<forall>n\<ge>N. \<forall>x \<in> K i. norm((\<F> \<circ> r \<circ> k) n x - g x) < e)"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   929
         for i r
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   930
    apply (rule *)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   931
    using rng_f by auto
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   932
  then have **: "\<And>i r. \<exists>k. strict_mono (k::nat\<Rightarrow>nat) \<and> (\<exists>g. \<forall>e>0. \<exists>N. \<forall>n\<ge>N. \<forall>x \<in> K i. norm((\<F> \<circ> (r \<circ> k)) n x - g x) < e)"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   933
    by (force simp: o_assoc)
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   934
  obtain k :: "nat \<Rightarrow> nat" where "strict_mono k"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   935
             and "\<And>i. \<exists>g. \<forall>e>0. \<exists>N. \<forall>n\<ge>N. \<forall>x\<in>K i. cmod ((\<F> \<circ> (id \<circ> k)) n x - g x) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   936
    apply (rule subsequence_diagonalization_lemma [OF **, of id])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   937
     apply (erule ex_forward all_forward imp_forward)+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   938
      apply auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   939
    apply (rule_tac x="max N Na" in exI, fastforce+)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   940
    done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   941
  then have lt_e: "\<And>i. \<exists>g. \<forall>e>0. \<exists>N. \<forall>n\<ge>N. \<forall>x\<in>K i. cmod ((\<F> \<circ> k) n x - g x) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   942
    by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   943
  have "\<exists>l. \<forall>e>0. \<exists>N. \<forall>n\<ge>N. norm(\<F> (k n) z - l) < e" if "z \<in> S" for z
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   944
  proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   945
    obtain G where G: "\<And>i e. e > 0 \<Longrightarrow> \<exists>M. \<forall>n\<ge>M. \<forall>x\<in>K i. cmod ((\<F> \<circ> k) n x - G i x) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   946
      using lt_e by metis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   947
    obtain N where "\<And>n. n \<ge> N \<Longrightarrow> z \<in> K n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   948
      using subK [of "{z}"] that \<open>z \<in> S\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   949
    moreover have "\<And>e. e > 0 \<Longrightarrow> \<exists>M. \<forall>n\<ge>M. \<forall>x\<in>K N. cmod ((\<F> \<circ> k) n x - G N x) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   950
      using G by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   951
    ultimately show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   952
      by (metis comp_apply order_refl)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   953
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   954
  then obtain g where g: "\<And>z e. \<lbrakk>z \<in> S; e > 0\<rbrakk> \<Longrightarrow> \<exists>N. \<forall>n\<ge>N. norm(\<F> (k n) z - g z) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   955
    by metis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   956
  show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   957
  proof
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   958
    show g_lim: "\<And>x. x \<in> S \<Longrightarrow> (\<lambda>n. \<F> (k n) x) \<longlonglongrightarrow> g x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   959
      by (simp add: lim_sequentially g dist_norm)    
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   960
    have dg_le_e: "\<exists>N. \<forall>n\<ge>N. \<forall>x\<in>T. cmod (\<F> (k n) x - g x) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   961
      if T: "compact T" "T \<subseteq> S" and "0 < e" for T e
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   962
    proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   963
      obtain N where N: "\<And>n. n \<ge> N \<Longrightarrow> T \<subseteq> K n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   964
        using subK [OF T] by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   965
      obtain h where h: "\<And>e. e>0 \<Longrightarrow> \<exists>M. \<forall>n\<ge>M. \<forall>x\<in>K N. cmod ((\<F> \<circ> k) n x - h x) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   966
        using lt_e by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   967
      have geq: "g w = h w" if "w \<in> T" for w
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   968
        apply (rule LIMSEQ_unique [of "\<lambda>n. \<F>(k n) w"])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   969
        using \<open>T \<subseteq> S\<close> g_lim that apply blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   970
        using h N that by (force simp: lim_sequentially dist_norm)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   971
      show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   972
        using T h N \<open>0 < e\<close> by (fastforce simp add: geq)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   973
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   974
    then show "\<And>K. \<lbrakk>compact K; K \<subseteq> S\<rbrakk>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   975
         \<Longrightarrow> uniform_limit K (\<F> \<circ> k) g sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   976
      by (simp add: uniform_limit_iff dist_norm eventually_sequentially)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   977
    show "g holomorphic_on S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   978
    proof (rule holomorphic_uniform_sequence [OF \<open>open S\<close> \<H>])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   979
      show "\<And>n. (\<F> \<circ> k) n \<in> \<H>"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   980
        by (simp add: range_subsetD rng_f)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   981
      show "\<exists>d>0. cball z d \<subseteq> S \<and> uniform_limit (cball z d) (\<lambda>n. (\<F> \<circ> k) n) g sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   982
        if "z \<in> S" for z
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   983
      proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   984
        obtain d where d: "d>0" "cball z d \<subseteq> S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   985
          using \<open>open S\<close> \<open>z \<in> S\<close> open_contains_cball by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   986
        then have "uniform_limit (cball z d) (\<F> \<circ> k) g sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   987
          using dg_le_e compact_cball by (auto simp: uniform_limit_iff eventually_sequentially dist_norm)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   988
        with d show ?thesis by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   989
      qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   990
    qed
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
   991
  qed (auto simp: \<open>strict_mono k\<close>)
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   992
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   993
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   994
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   995
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   996
subsection\<open>Some simple but useful cases of Hurwitz's theorem\<close>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   997
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   998
proposition Hurwitz_no_zeros:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
   999
  assumes S: "open S" "connected S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1000
      and holf: "\<And>n::nat. \<F> n holomorphic_on S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1001
      and holg: "g holomorphic_on S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1002
      and ul_g: "\<And>K. \<lbrakk>compact K; K \<subseteq> S\<rbrakk> \<Longrightarrow> uniform_limit K \<F> g sequentially"
66660
bc3584f7ac0c Using the "constant_on" operator
paulson <lp15@cam.ac.uk>
parents: 66447
diff changeset
  1003
      and nonconst: "~ g constant_on S"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1004
      and nz: "\<And>n z. z \<in> S \<Longrightarrow> \<F> n z \<noteq> 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1005
      and "z0 \<in> S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1006
      shows "g z0 \<noteq> 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1007
proof
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1008
  assume g0: "g z0 = 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1009
  obtain h r m
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1010
    where "0 < m" "0 < r" and subS: "ball z0 r \<subseteq> S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1011
      and holh: "h holomorphic_on ball z0 r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1012
      and geq:  "\<And>w. w \<in> ball z0 r \<Longrightarrow> g w = (w - z0)^m * h w"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1013
      and hnz:  "\<And>w. w \<in> ball z0 r \<Longrightarrow> h w \<noteq> 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1014
    by (blast intro: holomorphic_factor_zero_nonconstant [OF holg S \<open>z0 \<in> S\<close> g0 nonconst])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1015
  then have holf0: "\<F> n holomorphic_on ball z0 r" for n
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1016
    by (meson holf holomorphic_on_subset)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1017
  have *: "((\<lambda>z. deriv (\<F> n) z / \<F> n z) has_contour_integral 0) (circlepath z0 (r/2))" for n
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1018
  proof (rule Cauchy_theorem_disc_simple [of _ z0 r])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1019
    show "(\<lambda>z. deriv (\<F> n) z / \<F> n z) holomorphic_on ball z0 r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1020
      apply (intro holomorphic_intros holomorphic_deriv holf holf0 open_ball nz)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1021
      using \<open>ball z0 r \<subseteq> S\<close> by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1022
  qed (use \<open>0 < r\<close> in auto)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1023
  have hol_dg: "deriv g holomorphic_on S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1024
    by (simp add: \<open>open S\<close> holg holomorphic_deriv)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1025
  have "continuous_on (sphere z0 (r/2)) (deriv g)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1026
    apply (intro holomorphic_on_imp_continuous_on holomorphic_on_subset [OF hol_dg])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1027
    using \<open>0 < r\<close> subS by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1028
  then have "compact (deriv g ` (sphere z0 (r/2)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1029
    by (rule compact_continuous_image [OF _ compact_sphere])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1030
  then have bo_dg: "bounded (deriv g ` (sphere z0 (r/2)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1031
    using compact_imp_bounded by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1032
  have "continuous_on (sphere z0 (r/2)) (cmod \<circ> g)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1033
    apply (intro continuous_intros holomorphic_on_imp_continuous_on holomorphic_on_subset [OF holg])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1034
    using \<open>0 < r\<close> subS by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1035
  then have "compact ((cmod \<circ> g) ` sphere z0 (r/2))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1036
    by (rule compact_continuous_image [OF _ compact_sphere])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1037
  moreover have "(cmod \<circ> g) ` sphere z0 (r/2) \<noteq> {}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1038
    using \<open>0 < r\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1039
  ultimately obtain b where b: "b \<in> (cmod \<circ> g) ` sphere z0 (r/2)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1040
                               "\<And>t. t \<in> (cmod \<circ> g) ` sphere z0 (r/2) \<Longrightarrow> b \<le> t"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1041
    using compact_attains_inf [of "(norm \<circ> g) ` (sphere z0 (r/2))"] by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1042
  have "(\<lambda>n. contour_integral (circlepath z0 (r/2)) (\<lambda>z. deriv (\<F> n) z / \<F> n z)) \<longlonglongrightarrow>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1043
        contour_integral (circlepath z0 (r/2)) (\<lambda>z. deriv g z / g z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1044
  proof (rule contour_integral_uniform_limit_circlepath)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1045
    show "\<forall>\<^sub>F n in sequentially. (\<lambda>z. deriv (\<F> n) z / \<F> n z) contour_integrable_on circlepath z0 (r/2)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1046
      using * contour_integrable_on_def eventually_sequentiallyI by meson
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1047
    show "uniform_limit (sphere z0 (r/2)) (\<lambda>n z. deriv (\<F> n) z / \<F> n z) (\<lambda>z. deriv g z / g z) sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1048
    proof (rule uniform_lim_divide [OF _ _ bo_dg])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1049
      show "uniform_limit (sphere z0 (r/2)) (\<lambda>a. deriv (\<F> a)) (deriv g) sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1050
      proof (rule uniform_limitI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1051
        fix e::real
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1052
        assume "0 < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1053
        have *: "dist (deriv (\<F> n) w) (deriv g w) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1054
          if e8: "\<And>x. dist z0 x \<le> 3 * r / 4 \<Longrightarrow> dist (\<F> n x) (g x) * 8 < r * e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1055
          and w: "dist w z0 = r/2"  for n w
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1056
        proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1057
          have "ball w (r/4) \<subseteq> ball z0 r"  "cball w (r/4) \<subseteq> ball z0 r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1058
            using \<open>0 < r\<close> by (simp_all add: ball_subset_ball_iff cball_subset_ball_iff w)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1059
          with subS have wr4_sub: "ball w (r/4) \<subseteq> S" "cball w (r/4) \<subseteq> S" by force+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1060
          moreover
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1061
          have "(\<lambda>z. \<F> n z - g z) holomorphic_on S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1062
            by (intro holomorphic_intros holf holg)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1063
          ultimately have hol: "(\<lambda>z. \<F> n z - g z) holomorphic_on ball w (r/4)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1064
            and cont: "continuous_on (cball w (r / 4)) (\<lambda>z. \<F> n z - g z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1065
            using holomorphic_on_subset by (blast intro: holomorphic_on_imp_continuous_on)+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1066
          have "w \<in> S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1067
            using \<open>0 < r\<close> wr4_sub by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1068
          have "\<And>y. dist w y < r / 4 \<Longrightarrow> dist z0 y \<le> 3 * r / 4"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1069
            apply (rule dist_triangle_le [where z=w])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1070
            using w by (simp add: dist_commute)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1071
          with e8 have in_ball: "\<And>y. y \<in> ball w (r/4) \<Longrightarrow> \<F> n y - g y \<in> ball 0 (r/4 * e/2)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1072
            by (simp add: dist_norm [symmetric])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1073
          have "\<F> n field_differentiable at w"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1074
            by (metis holomorphic_on_imp_differentiable_at \<open>w \<in> S\<close> holf \<open>open S\<close>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1075
          moreover
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1076
          have "g field_differentiable at w"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1077
            using \<open>w \<in> S\<close> \<open>open S\<close> holg holomorphic_on_imp_differentiable_at by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1078
          moreover
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1079
          have "cmod (deriv (\<lambda>w. \<F> n w - g w) w) * 2 \<le> e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1080
            apply (rule Cauchy_higher_deriv_bound [OF hol cont in_ball, of 1, simplified])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1081
            using \<open>r > 0\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1082
          ultimately have "dist (deriv (\<F> n) w) (deriv g w) \<le> e/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1083
            by (simp add: dist_norm)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1084
          then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1085
            using \<open>e > 0\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1086
        qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1087
        have "cball z0 (3 * r / 4) \<subseteq> ball z0 r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1088
          by (simp add: cball_subset_ball_iff \<open>0 < r\<close>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1089
        with subS have "uniform_limit (cball z0 (3 * r/4)) \<F> g sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1090
          by (force intro: ul_g)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1091
        then have "\<forall>\<^sub>F n in sequentially. \<forall>x\<in>cball z0 (3 * r / 4). dist (\<F> n x) (g x) < r / 4 * e / 2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1092
          using \<open>0 < e\<close> \<open>0 < r\<close> by (force simp: intro!: uniform_limitD)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1093
        then show "\<forall>\<^sub>F n in sequentially. \<forall>x \<in> sphere z0 (r/2). dist (deriv (\<F> n) x) (deriv g x) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1094
          apply (simp add: eventually_sequentially)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1095
          apply (elim ex_forward all_forward imp_forward asm_rl)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1096
          using * apply (force simp: dist_commute)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1097
          done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1098
      qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1099
      show "uniform_limit (sphere z0 (r/2)) \<F> g sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1100
      proof (rule uniform_limitI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1101
        fix e::real
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1102
        assume "0 < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1103
        have "sphere z0 (r/2) \<subseteq> ball z0 r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1104
          using \<open>0 < r\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1105
        with subS have "uniform_limit (sphere z0 (r/2)) \<F> g sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1106
          by (force intro: ul_g)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1107
        then show "\<forall>\<^sub>F n in sequentially. \<forall>x \<in> sphere z0 (r/2). dist (\<F> n x) (g x) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1108
          apply (rule uniform_limitD)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1109
          using \<open>0 < e\<close> by force
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1110
      qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1111
      show "b > 0" "\<And>x. x \<in> sphere z0 (r/2) \<Longrightarrow> b \<le> cmod (g x)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1112
        using b \<open>0 < r\<close> by (fastforce simp: geq hnz)+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1113
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1114
  qed (use \<open>0 < r\<close> in auto)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1115
  then have "(\<lambda>n. 0) \<longlonglongrightarrow> contour_integral (circlepath z0 (r/2)) (\<lambda>z. deriv g z / g z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1116
    by (simp add: contour_integral_unique [OF *])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1117
  then have "contour_integral (circlepath z0 (r/2)) (\<lambda>z. deriv g z / g z) = 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1118
    by (simp add: LIMSEQ_const_iff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1119
  moreover
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1120
  have "contour_integral (circlepath z0 (r/2)) (\<lambda>z. deriv g z / g z) =
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1121
        contour_integral (circlepath z0 (r/2)) (\<lambda>z. m / (z - z0) + deriv h z / h z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1122
  proof (rule contour_integral_eq, use \<open>0 < r\<close> in simp)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1123
    fix w
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1124
    assume w: "dist z0 w * 2 = r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1125
    then have w_inb: "w \<in> ball z0 r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1126
      using \<open>0 < r\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1127
    have h_der: "(h has_field_derivative deriv h w) (at w)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1128
      using holh holomorphic_derivI w_inb by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1129
    have "deriv g w = ((of_nat m * h w + deriv h w * (w - z0)) * (w - z0) ^ m) / (w - z0)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1130
         if "r = dist z0 w * 2" "w \<noteq> z0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1131
    proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1132
      have "((\<lambda>w. (w - z0) ^ m * h w) has_field_derivative
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1133
            (m * h w + deriv h w * (w - z0)) * (w - z0) ^ m / (w - z0)) (at w)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1134
        apply (rule derivative_eq_intros h_der refl)+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1135
        using that \<open>m > 0\<close> \<open>0 < r\<close> apply (simp add: divide_simps distrib_right)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1136
        apply (metis Suc_pred mult.commute power_Suc)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1137
        done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1138
      then show ?thesis
68255
009f783d1bac small clean-up of Complex_Analysis_Basics
paulson <lp15@cam.ac.uk>
parents: 67719
diff changeset
  1139
        apply (rule DERIV_imp_deriv [OF DERIV_transform_within_open [where S = "ball z0 r"]])
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1140
        using that \<open>m > 0\<close> \<open>0 < r\<close>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1141
          apply (simp_all add: hnz geq)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1142
        done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1143
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1144
    with \<open>0 < r\<close> \<open>0 < m\<close> w w_inb show "deriv g w / g w = of_nat m / (w - z0) + deriv h w / h w"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1145
      by (auto simp: geq divide_simps hnz)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1146
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1147
  moreover
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1148
  have "contour_integral (circlepath z0 (r/2)) (\<lambda>z. m / (z - z0) + deriv h z / h z) =
65064
a4abec71279a Renamed ii to imaginary_unit in order to free up ii as a variable name. Also replaced some legacy def commands
paulson <lp15@cam.ac.uk>
parents: 65040
diff changeset
  1149
        2 * of_real pi * \<i> * m + 0"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1150
  proof (rule contour_integral_unique [OF has_contour_integral_add])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1151
    show "((\<lambda>x. m / (x - z0)) has_contour_integral 2 * of_real pi * \<i> * m) (circlepath z0 (r/2))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1152
      by (force simp: \<open>0 < r\<close> intro: Cauchy_integral_circlepath_simple)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1153
    show "((\<lambda>x. deriv h x / h x) has_contour_integral 0) (circlepath z0 (r/2))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1154
      apply (rule Cauchy_theorem_disc_simple [of _ z0 r])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1155
      using hnz holh holomorphic_deriv holomorphic_on_divide \<open>0 < r\<close>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1156
         apply force+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1157
      done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1158
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1159
  ultimately show False using \<open>0 < m\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1160
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1161
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1162
corollary Hurwitz_injective:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1163
  assumes S: "open S" "connected S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1164
      and holf: "\<And>n::nat. \<F> n holomorphic_on S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1165
      and holg: "g holomorphic_on S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1166
      and ul_g: "\<And>K. \<lbrakk>compact K; K \<subseteq> S\<rbrakk> \<Longrightarrow> uniform_limit K \<F> g sequentially"
66660
bc3584f7ac0c Using the "constant_on" operator
paulson <lp15@cam.ac.uk>
parents: 66447
diff changeset
  1167
      and nonconst: "~ g constant_on S"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1168
      and inj: "\<And>n. inj_on (\<F> n) S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1169
    shows "inj_on g S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1170
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1171
  have False if z12: "z1 \<in> S" "z2 \<in> S" "z1 \<noteq> z2" "g z2 = g z1" for z1 z2
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1172
  proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1173
    obtain z0 where "z0 \<in> S" and z0: "g z0 \<noteq> g z2"
66660
bc3584f7ac0c Using the "constant_on" operator
paulson <lp15@cam.ac.uk>
parents: 66447
diff changeset
  1174
      using constant_on_def nonconst by blast
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1175
    have "(\<lambda>z. g z - g z1) holomorphic_on S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1176
      by (intro holomorphic_intros holg)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1177
    then obtain r where "0 < r" "ball z2 r \<subseteq> S" "\<And>z. dist z2 z < r \<and> z \<noteq> z2 \<Longrightarrow> g z \<noteq> g z1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1178
      apply (rule isolated_zeros [of "\<lambda>z. g z - g z1" S z2 z0])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1179
      using S \<open>z0 \<in> S\<close> z0 z12 by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1180
    have "g z2 - g z1 \<noteq> 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1181
    proof (rule Hurwitz_no_zeros [of "S - {z1}" "\<lambda>n z. \<F> n z - \<F> n z1" "\<lambda>z. g z - g z1"])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1182
      show "open (S - {z1})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1183
        by (simp add: S open_delete)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1184
      show "connected (S - {z1})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1185
        by (simp add: connected_open_delete [OF S])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1186
      show "\<And>n. (\<lambda>z. \<F> n z - \<F> n z1) holomorphic_on S - {z1}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1187
        by (intro holomorphic_intros holomorphic_on_subset [OF holf]) blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1188
      show "(\<lambda>z. g z - g z1) holomorphic_on S - {z1}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1189
        by (intro holomorphic_intros holomorphic_on_subset [OF holg]) blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1190
      show "uniform_limit K (\<lambda>n z. \<F> n z - \<F> n z1) (\<lambda>z. g z - g z1) sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1191
           if "compact K" "K \<subseteq> S - {z1}" for K
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1192
      proof (rule uniform_limitI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1193
        fix e::real
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1194
        assume "e > 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1195
        have "uniform_limit K \<F> g sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1196
          using that ul_g by fastforce
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1197
        then have K: "\<forall>\<^sub>F n in sequentially. \<forall>x \<in> K. dist (\<F> n x) (g x) < e/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1198
          using \<open>0 < e\<close> by (force simp: intro!: uniform_limitD)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1199
        have "uniform_limit {z1} \<F> g sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1200
          by (simp add: ul_g z12)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1201
        then have "\<forall>\<^sub>F n in sequentially. \<forall>x \<in> {z1}. dist (\<F> n x) (g x) < e/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1202
          using \<open>0 < e\<close> by (force simp: intro!: uniform_limitD)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1203
        then have z1: "\<forall>\<^sub>F n in sequentially. dist (\<F> n z1) (g z1) < e/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1204
          by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1205
        have "\<forall>\<^sub>F n in sequentially. \<forall>x\<in>K. dist (\<F> n x - \<F> n z1) (g x - g z1) < e/2 + e/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1206
          apply (rule eventually_mono [OF eventually_conj [OF K z1]])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1207
          apply (simp add: dist_norm algebra_simps del: divide_const_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1208
          by (metis add.commute dist_commute dist_norm dist_triangle_add_half)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1209
        have "\<forall>\<^sub>F n in sequentially. \<forall>x\<in>K. dist (\<F> n x - \<F> n z1) (g x - g z1) < e/2 + e/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1210
          using eventually_conj [OF K z1]
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1211
          apply (rule eventually_mono)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1212
          by (metis (no_types, hide_lams) diff_add_eq diff_diff_eq2 dist_commute dist_norm dist_triangle_add_half real_sum_of_halves)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1213
        then
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1214
        show "\<forall>\<^sub>F n in sequentially. \<forall>x\<in>K. dist (\<F> n x - \<F> n z1) (g x - g z1) < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1215
          by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1216
      qed
66660
bc3584f7ac0c Using the "constant_on" operator
paulson <lp15@cam.ac.uk>
parents: 66447
diff changeset
  1217
      show "\<not> (\<lambda>z. g z - g z1) constant_on S - {z1}"
bc3584f7ac0c Using the "constant_on" operator
paulson <lp15@cam.ac.uk>
parents: 66447
diff changeset
  1218
        unfolding constant_on_def
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1219
        by (metis Diff_iff \<open>z0 \<in> S\<close> empty_iff insert_iff right_minus_eq z0 z12)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1220
      show "\<And>n z. z \<in> S - {z1} \<Longrightarrow> \<F> n z - \<F> n z1 \<noteq> 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1221
        by (metis DiffD1 DiffD2 eq_iff_diff_eq_0 inj inj_onD insertI1 \<open>z1 \<in> S\<close>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1222
      show "z2 \<in> S - {z1}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1223
        using \<open>z2 \<in> S\<close> \<open>z1 \<noteq> z2\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1224
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1225
    with z12 show False by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1226
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1227
  then show ?thesis by (auto simp: inj_on_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1228
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1229
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1230
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1231
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1232
subsection\<open>The Great Picard theorem\<close>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1233
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1234
lemma GPicard1:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1235
  assumes S: "open S" "connected S" and "w \<in> S" "0 < r" "Y \<subseteq> X"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1236
      and holX: "\<And>h. h \<in> X \<Longrightarrow> h holomorphic_on S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1237
      and X01:  "\<And>h z. \<lbrakk>h \<in> X; z \<in> S\<rbrakk> \<Longrightarrow> h z \<noteq> 0 \<and> h z \<noteq> 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1238
      and r:    "\<And>h. h \<in> Y \<Longrightarrow> norm(h w) \<le> r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1239
  obtains B Z where "0 < B" "open Z" "w \<in> Z" "Z \<subseteq> S" "\<And>h z. \<lbrakk>h \<in> Y; z \<in> Z\<rbrakk> \<Longrightarrow> norm(h z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1240
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1241
  obtain e where "e > 0" and e: "cball w e \<subseteq> S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1242
    using assms open_contains_cball_eq by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1243
  show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1244
  proof
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1245
    show "0 < exp(pi * exp(pi * (2 + 2 * r + 12)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1246
      by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1247
    show "ball w (e / 2) \<subseteq> S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1248
      using e ball_divide_subset_numeral ball_subset_cball by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1249
    show "cmod (h z) \<le> exp (pi * exp (pi * (2 + 2 * r + 12)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1250
         if "h \<in> Y" "z \<in> ball w (e / 2)" for h z
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1251
    proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1252
      have "h \<in> X"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1253
        using \<open>Y \<subseteq> X\<close> \<open>h \<in> Y\<close>  by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1254
      with holX have "h holomorphic_on S" 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1255
        by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1256
      then have "h holomorphic_on cball w e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1257
        by (metis e holomorphic_on_subset)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1258
      then have hol_h_o: "(h \<circ> (\<lambda>z. (w + of_real e * z))) holomorphic_on cball 0 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1259
        apply (intro holomorphic_intros holomorphic_on_compose)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1260
        apply (erule holomorphic_on_subset)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1261
        using that \<open>e > 0\<close> by (auto simp: dist_norm norm_mult)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1262
      have norm_le_r: "cmod ((h \<circ> (\<lambda>z. w + complex_of_real e * z)) 0) \<le> r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1263
        by (auto simp: r \<open>h \<in> Y\<close>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1264
      have le12: "norm (of_real(inverse e) * (z - w)) \<le> 1/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1265
        using that \<open>e > 0\<close> by (simp add: inverse_eq_divide dist_norm norm_minus_commute norm_divide)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1266
      have non01: "\<And>z::complex. cmod z \<le> 1 \<Longrightarrow> h (w + e * z) \<noteq> 0 \<and> h (w + e * z) \<noteq> 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1267
        apply (rule X01 [OF \<open>h \<in> X\<close>])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1268
          apply (rule subsetD [OF e])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1269
        using \<open>0 < e\<close>  by (auto simp: dist_norm norm_mult)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1270
      have "cmod (h z) \<le> cmod (h (w + of_real e * (inverse e * (z - w))))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1271
        using \<open>0 < e\<close> by (simp add: divide_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1272
      also have "... \<le> exp (pi * exp (pi * (14 + 2 * r)))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1273
        using r [OF \<open>h \<in> Y\<close>] Schottky [OF hol_h_o norm_le_r _ _ _ le12] non01 by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1274
      finally
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1275
      show ?thesis by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1276
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1277
  qed (use \<open>e > 0\<close> in auto)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1278
qed 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1279
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1280
lemma GPicard2:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1281
  assumes "S \<subseteq> T" "connected T" "S \<noteq> {}" "open S" "\<And>x. \<lbrakk>x islimpt S; x \<in> T\<rbrakk> \<Longrightarrow> x \<in> S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1282
    shows "S = T"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1283
  by (metis assms open_subset connected_clopen closedin_limpt)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1284
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1285
    
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1286
lemma GPicard3:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1287
  assumes S: "open S" "connected S" "w \<in> S" and "Y \<subseteq> X"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1288
      and holX: "\<And>h. h \<in> X \<Longrightarrow> h holomorphic_on S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1289
      and X01:  "\<And>h z. \<lbrakk>h \<in> X; z \<in> S\<rbrakk> \<Longrightarrow> h z \<noteq> 0 \<and> h z \<noteq> 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1290
      and no_hw_le1: "\<And>h. h \<in> Y \<Longrightarrow> norm(h w) \<le> 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1291
      and "compact K" "K \<subseteq> S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1292
  obtains B where "\<And>h z. \<lbrakk>h \<in> Y; z \<in> K\<rbrakk> \<Longrightarrow> norm(h z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1293
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1294
  define U where "U \<equiv> {z \<in> S. \<exists>B Z. 0 < B \<and> open Z \<and> z \<in> Z \<and> Z \<subseteq> S \<and>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1295
                               (\<forall>h z'. h \<in> Y \<and> z' \<in> Z \<longrightarrow> norm(h z') \<le> B)}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1296
  then have "U \<subseteq> S" by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1297
  have "U = S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1298
  proof (rule GPicard2 [OF \<open>U \<subseteq> S\<close> \<open>connected S\<close>])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1299
    show "U \<noteq> {}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1300
    proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1301
      obtain B Z where "0 < B" "open Z" "w \<in> Z" "Z \<subseteq> S" 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1302
        and  "\<And>h z. \<lbrakk>h \<in> Y; z \<in> Z\<rbrakk> \<Longrightarrow> norm(h z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1303
        apply (rule GPicard1 [OF S zero_less_one \<open>Y \<subseteq> X\<close> holX])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1304
        using no_hw_le1 X01 by force+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1305
      then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1306
        unfolding U_def using \<open>w \<in> S\<close> by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1307
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1308
    show "open U"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1309
      unfolding open_subopen [of U] by (auto simp: U_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1310
    fix v
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1311
    assume v: "v islimpt U" "v \<in> S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1312
    have "~ (\<forall>r>0. \<exists>h\<in>Y. r < cmod (h v))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1313
    proof
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1314
      assume "\<forall>r>0. \<exists>h\<in>Y. r < cmod (h v)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1315
      then have "\<forall>n. \<exists>h\<in>Y. Suc n < cmod (h v)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1316
        by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1317
      then obtain \<F> where FY: "\<And>n. \<F> n \<in> Y" and ltF: "\<And>n. Suc n < cmod (\<F> n v)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1318
        by metis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1319
      define \<G> where "\<G> \<equiv> \<lambda>n z. inverse(\<F> n z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1320
      have hol\<G>: "\<G> n holomorphic_on S" for n
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1321
        apply (simp add: \<G>_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1322
        using FY X01 \<open>Y \<subseteq> X\<close> holX apply (blast intro: holomorphic_on_inverse)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1323
        done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1324
      have \<G>not0: "\<G> n z \<noteq> 0" and \<G>not1: "\<G> n z \<noteq> 1" if "z \<in> S" for n z
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1325
        using FY X01 \<open>Y \<subseteq> X\<close> that by (force simp: \<G>_def)+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1326
      have \<G>_le1: "cmod (\<G> n v) \<le> 1" for n 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1327
        using less_le_trans linear ltF 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1328
        by (fastforce simp add: \<G>_def norm_inverse inverse_le_1_iff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1329
      define W where "W \<equiv> {h. h holomorphic_on S \<and> (\<forall>z \<in> S. h z \<noteq> 0 \<and> h z \<noteq> 1)}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1330
      obtain B Z where "0 < B" "open Z" "v \<in> Z" "Z \<subseteq> S" 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1331
                   and B: "\<And>h z. \<lbrakk>h \<in> range \<G>; z \<in> Z\<rbrakk> \<Longrightarrow> norm(h z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1332
        apply (rule GPicard1 [OF \<open>open S\<close> \<open>connected S\<close> \<open>v \<in> S\<close> zero_less_one, of "range \<G>" W])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1333
        using hol\<G> \<G>not0 \<G>not1 \<G>_le1 by (force simp: W_def)+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1334
      then obtain e where "e > 0" and e: "ball v e \<subseteq> Z"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1335
        by (meson open_contains_ball)
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
  1336
      obtain h j where holh: "h holomorphic_on ball v e" and "strict_mono j"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1337
                   and lim:  "\<And>x. x \<in> ball v e \<Longrightarrow> (\<lambda>n. \<G> (j n) x) \<longlonglongrightarrow> h x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1338
                   and ulim: "\<And>K. \<lbrakk>compact K; K \<subseteq> ball v e\<rbrakk>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1339
                                  \<Longrightarrow> uniform_limit K (\<G> \<circ> j) h sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1340
      proof (rule Montel)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1341
        show "\<And>h. h \<in> range \<G> \<Longrightarrow> h holomorphic_on ball v e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1342
          by (metis \<open>Z \<subseteq> S\<close> e hol\<G> holomorphic_on_subset imageE)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1343
        show "\<And>K. \<lbrakk>compact K; K \<subseteq> ball v e\<rbrakk> \<Longrightarrow> \<exists>B. \<forall>h\<in>range \<G>. \<forall>z\<in>K. cmod (h z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1344
          using B e by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1345
      qed auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1346
      have "h v = 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1347
      proof (rule LIMSEQ_unique)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1348
        show "(\<lambda>n. \<G> (j n) v) \<longlonglongrightarrow> h v"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1349
          using \<open>e > 0\<close> lim by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1350
        have lt_Fj: "real x \<le> cmod (\<F> (j x) v)" for x
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
  1351
          by (metis of_nat_Suc ltF \<open>strict_mono j\<close> add.commute less_eq_real_def less_le_trans nat_le_real_less seq_suble)
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1352
        show "(\<lambda>n. \<G> (j n) v) \<longlonglongrightarrow> 0"
66827
c94531b5007d Divided Topology_Euclidean_Space in two, creating new theory Connected. Also deleted some duplicate / variant theorems
paulson <lp15@cam.ac.uk>
parents: 66660
diff changeset
  1353
        proof (rule Lim_null_comparison [OF eventually_sequentiallyI lim_inverse_n])
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1354
          show "cmod (\<G> (j x) v) \<le> inverse (real x)" if "1 \<le> x" for x
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1355
            using that by (simp add: \<G>_def norm_inverse_le_norm [OF lt_Fj])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1356
        qed        
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1357
      qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1358
      have "h v \<noteq> 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1359
      proof (rule Hurwitz_no_zeros [of "ball v e" "\<G> \<circ> j" h])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1360
        show "\<And>n. (\<G> \<circ> j) n holomorphic_on ball v e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1361
          using \<open>Z \<subseteq> S\<close> e hol\<G> by force
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1362
        show "\<And>n z. z \<in> ball v e \<Longrightarrow> (\<G> \<circ> j) n z \<noteq> 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1363
          using \<G>not0 \<open>Z \<subseteq> S\<close> e by fastforce
66660
bc3584f7ac0c Using the "constant_on" operator
paulson <lp15@cam.ac.uk>
parents: 66447
diff changeset
  1364
        show "\<not> h constant_on ball v e"
bc3584f7ac0c Using the "constant_on" operator
paulson <lp15@cam.ac.uk>
parents: 66447
diff changeset
  1365
        proof (clarsimp simp: constant_on_def)
bc3584f7ac0c Using the "constant_on" operator
paulson <lp15@cam.ac.uk>
parents: 66447
diff changeset
  1366
          fix c
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1367
          have False if "\<And>z. dist v z < e \<Longrightarrow> h z = c"  
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1368
          proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1369
            have "h v = c"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1370
              by (simp add: \<open>0 < e\<close> that)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1371
            obtain y where "y \<in> U" "y \<noteq> v" and y: "dist y v < e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1372
              using v \<open>e > 0\<close> by (auto simp: islimpt_approachable)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1373
            then obtain C T where "y \<in> S" "C > 0" "open T" "y \<in> T" "T \<subseteq> S"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1374
              and "\<And>h z'. \<lbrakk>h \<in> Y; z' \<in> T\<rbrakk> \<Longrightarrow> cmod (h z') \<le> C"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1375
              using \<open>y \<in> U\<close> by (auto simp: U_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1376
            then have le_C: "\<And>n. cmod (\<F> n y) \<le> C"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1377
              using FY by blast                
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1378
            have "\<forall>\<^sub>F n in sequentially. dist (\<G> (j n) y) (h y) < inverse C"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1379
              using uniform_limitD [OF ulim [of "{y}"], of "inverse C"] \<open>C > 0\<close> y
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1380
              by (simp add: dist_commute)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1381
            then obtain n where "dist (\<G> (j n) y) (h y) < inverse C"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1382
              by (meson eventually_at_top_linorder order_refl)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1383
            moreover
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1384
            have "h y = h v"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1385
              by (metis \<open>h v = c\<close> dist_commute that y)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1386
            ultimately have "norm (\<G> (j n) y) < inverse C"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1387
              by (simp add: \<open>h v = 0\<close>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1388
            then have "C < norm (\<F> (j n) y)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1389
              apply (simp add: \<G>_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1390
              by (metis FY X01 \<open>0 < C\<close> \<open>y \<in> S\<close> \<open>Y \<subseteq> X\<close> inverse_less_iff_less norm_inverse subsetD zero_less_norm_iff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1391
            show False
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1392
              using \<open>C < cmod (\<F> (j n) y)\<close> le_C not_less by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1393
          qed
66660
bc3584f7ac0c Using the "constant_on" operator
paulson <lp15@cam.ac.uk>
parents: 66447
diff changeset
  1394
          then show "\<exists>x\<in>ball v e. h x \<noteq> c" by force
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1395
        qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1396
        show "h holomorphic_on ball v e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1397
          by (simp add: holh)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1398
        show "\<And>K. \<lbrakk>compact K; K \<subseteq> ball v e\<rbrakk> \<Longrightarrow> uniform_limit K (\<G> \<circ> j) h sequentially"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1399
          by (simp add: ulim)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1400
      qed (use \<open>e > 0\<close> in auto)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1401
      with \<open>h v = 0\<close> show False by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1402
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1403
    then show "v \<in> U"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1404
      apply (clarsimp simp add: U_def v)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1405
      apply (rule GPicard1[OF \<open>open S\<close> \<open>connected S\<close> \<open>v \<in> S\<close> _ \<open>Y \<subseteq> X\<close> holX])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1406
      using X01 no_hw_le1 apply (meson | force simp: not_less)+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1407
      done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1408
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1409
  have "\<And>x. x \<in> K \<longrightarrow> x \<in> U"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1410
    using \<open>U = S\<close> \<open>K \<subseteq> S\<close> by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1411
  then have "\<And>x. x \<in> K \<longrightarrow> (\<exists>B Z. 0 < B \<and> open Z \<and> x \<in> Z \<and> 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1412
                               (\<forall>h z'. h \<in> Y \<and> z' \<in> Z \<longrightarrow> norm(h z') \<le> B))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1413
    unfolding U_def by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1414
  then obtain F Z where F: "\<And>x. x \<in> K \<Longrightarrow> open (Z x) \<and> x \<in> Z x \<and> 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1415
                               (\<forall>h z'. h \<in> Y \<and> z' \<in> Z x \<longrightarrow> norm(h z') \<le> F x)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1416
    by metis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1417
  then obtain L where "L \<subseteq> K" "finite L" and L: "K \<subseteq> (\<Union>c \<in> L. Z c)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1418
    by (auto intro: compactE_image [OF \<open>compact K\<close>, of K Z])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1419
  then have *: "\<And>x h z'. \<lbrakk>x \<in> L; h \<in> Y \<and> z' \<in> Z x\<rbrakk> \<Longrightarrow> cmod (h z') \<le> F x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1420
    using F by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1421
  have "\<exists>B. \<forall>h z. h \<in> Y \<and> z \<in> K \<longrightarrow> norm(h z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1422
  proof (cases "L = {}")
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1423
    case True with L show ?thesis by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1424
  next
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1425
    case False
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1426
    with \<open>finite L\<close> show ?thesis 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1427
      apply (rule_tac x = "Max (F ` L)" in exI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1428
      apply (simp add: linorder_class.Max_ge_iff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1429
      using * F  by (metis L UN_E subsetD)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1430
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1431
  with that show ?thesis by metis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1432
qed
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
  1433
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
  1434
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1435
lemma GPicard4:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1436
  assumes "0 < k" and holf: "f holomorphic_on (ball 0 k - {0})" 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1437
      and AE: "\<And>e. \<lbrakk>0 < e; e < k\<rbrakk> \<Longrightarrow> \<exists>d. 0 < d \<and> d < e \<and> (\<forall>z \<in> sphere 0 d. norm(f z) \<le> B)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1438
  obtains \<epsilon> where "0 < \<epsilon>" "\<epsilon> < k" "\<And>z. z \<in> ball 0 \<epsilon> - {0} \<Longrightarrow> norm(f z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1439
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1440
  obtain \<epsilon> where "0 < \<epsilon>" "\<epsilon> < k/2" and \<epsilon>: "\<And>z. norm z = \<epsilon> \<Longrightarrow> norm(f z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1441
    using AE [of "k/2"] \<open>0 < k\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1442
  show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1443
  proof
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1444
    show "\<epsilon> < k"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1445
      using \<open>0 < k\<close> \<open>\<epsilon> < k/2\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1446
    show "cmod (f \<xi>) \<le> B" if \<xi>: "\<xi> \<in> ball 0 \<epsilon> - {0}" for \<xi>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1447
    proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1448
      obtain d where "0 < d" "d < norm \<xi>" and d: "\<And>z. norm z = d \<Longrightarrow> norm(f z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1449
        using AE [of "norm \<xi>"] \<open>\<epsilon> < k\<close> \<xi> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1450
      have [simp]: "closure (cball 0 \<epsilon> - ball 0 d) = cball 0 \<epsilon> - ball 0 d"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1451
        by (blast intro!: closure_closed)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1452
      have [simp]: "interior (cball 0 \<epsilon> - ball 0 d) = ball 0 \<epsilon> - cball (0::complex) d"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1453
        using \<open>0 < \<epsilon>\<close> \<open>0 < d\<close> by (simp add: interior_diff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1454
      have *: "norm(f w) \<le> B" if "w \<in> cball 0 \<epsilon> - ball 0 d" for w
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1455
      proof (rule maximum_modulus_frontier [of f "cball 0 \<epsilon> - ball 0 d"])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1456
        show "f holomorphic_on interior (cball 0 \<epsilon> - ball 0 d)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1457
          apply (rule holomorphic_on_subset [OF holf])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1458
          using \<open>\<epsilon> < k\<close> \<open>0 < d\<close> that by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1459
        show "continuous_on (closure (cball 0 \<epsilon> - ball 0 d)) f"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1460
          apply (rule holomorphic_on_imp_continuous_on)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1461
          apply (rule holomorphic_on_subset [OF holf])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1462
          using \<open>0 < d\<close> \<open>\<epsilon> < k\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1463
        show "\<And>z. z \<in> frontier (cball 0 \<epsilon> - ball 0 d) \<Longrightarrow> cmod (f z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1464
          apply (simp add: frontier_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1465
          using \<epsilon> d less_eq_real_def by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1466
      qed (use that in auto)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1467
      show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1468
        using * \<open>d < cmod \<xi>\<close> that by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1469
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1470
  qed (use \<open>0 < \<epsilon>\<close> in auto)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1471
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1472
  
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1473
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1474
lemma GPicard5:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1475
  assumes holf: "f holomorphic_on (ball 0 1 - {0})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1476
      and f01:  "\<And>z. z \<in> ball 0 1 - {0} \<Longrightarrow> f z \<noteq> 0 \<and> f z \<noteq> 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1477
  obtains e B where "0 < e" "e < 1" "0 < B" 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1478
                    "(\<forall>z \<in> ball 0 e - {0}. norm(f z) \<le> B) \<or>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1479
                     (\<forall>z \<in> ball 0 e - {0}. norm(f z) \<ge> B)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1480
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1481
  have [simp]: "1 + of_nat n \<noteq> (0::complex)" for n
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1482
    using of_nat_eq_0_iff by fastforce
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1483
  have [simp]: "cmod (1 + of_nat n) = 1 + of_nat n" for n
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1484
    by (metis norm_of_nat of_nat_Suc)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1485
  have *: "(\<lambda>x::complex. x / of_nat (Suc n)) ` (ball 0 1 - {0}) \<subseteq> ball 0 1 - {0}" for n
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1486
    by (auto simp: norm_divide divide_simps split: if_split_asm)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1487
  define h where "h \<equiv> \<lambda>n z::complex. f (z / (Suc n))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1488
  have holh: "(h n) holomorphic_on ball 0 1 - {0}" for n
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1489
    unfolding h_def
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1490
  proof (rule holomorphic_on_compose_gen [unfolded o_def, OF _ holf *])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1491
    show "(\<lambda>x. x / of_nat (Suc n)) holomorphic_on ball 0 1 - {0}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1492
      by (intro holomorphic_intros) auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1493
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1494
  have h01: "\<And>n z. z \<in> ball 0 1 - {0} \<Longrightarrow> h n z \<noteq> 0 \<and> h n z \<noteq> 1" 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1495
    unfolding h_def
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1496
    apply (rule f01)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1497
    using * by force
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1498
  obtain w where w: "w \<in> ball 0 1 - {0::complex}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1499
    by (rule_tac w = "1/2" in that) auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1500
  consider "infinite {n. norm(h n w) \<le> 1}" | "infinite {n. 1 \<le> norm(h n w)}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1501
    by (metis (mono_tags, lifting) infinite_nat_iff_unbounded_le le_cases mem_Collect_eq)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1502
  then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1503
  proof cases
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1504
    case 1
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
  1505
    with infinite_enumerate obtain r :: "nat \<Rightarrow> nat" 
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
  1506
      where "strict_mono r" and r: "\<And>n. r n \<in> {n. norm(h n w) \<le> 1}"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1507
      by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1508
    obtain B where B: "\<And>j z. \<lbrakk>norm z = 1/2; j \<in> range (h \<circ> r)\<rbrakk> \<Longrightarrow> norm(j z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1509
    proof (rule GPicard3 [OF _ _ w, where K = "sphere 0 (1/2)"])  
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1510
      show "range (h \<circ> r) \<subseteq> 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1511
            {g. g holomorphic_on ball 0 1 - {0} \<and> (\<forall>z\<in>ball 0 1 - {0}. g z \<noteq> 0 \<and> g z \<noteq> 1)}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1512
        apply clarsimp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1513
        apply (intro conjI holomorphic_intros holomorphic_on_compose holh)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1514
        using h01 apply auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1515
        done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1516
      show "connected (ball 0 1 - {0::complex})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1517
        by (simp add: connected_open_delete)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1518
    qed (use r in auto)        
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1519
    have normf_le_B: "cmod(f z) \<le> B" if "norm z = 1 / (2 * (1 + of_nat (r n)))" for z n
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1520
    proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1521
      have *: "\<And>w. norm w = 1/2 \<Longrightarrow> cmod((f (w / (1 + of_nat (r n))))) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1522
        using B by (auto simp: h_def o_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1523
      have half: "norm (z * (1 + of_nat (r n))) = 1/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1524
        by (simp add: norm_mult divide_simps that)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1525
      show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1526
        using * [OF half] by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1527
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1528
    obtain \<epsilon> where "0 < \<epsilon>" "\<epsilon> < 1" "\<And>z. z \<in> ball 0 \<epsilon> - {0} \<Longrightarrow> cmod(f z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1529
    proof (rule GPicard4 [OF zero_less_one holf, of B])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1530
      fix e::real
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1531
      assume "0 < e" "e < 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1532
      obtain n where "(1/e - 2) / 2 < real n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1533
        using reals_Archimedean2 by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1534
      also have "... \<le> r n"
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
  1535
        using \<open>strict_mono r\<close> by (simp add: seq_suble)
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1536
      finally have "(1/e - 2) / 2 < real (r n)" .
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1537
      with \<open>0 < e\<close> have e: "e > 1 / (2 + 2 * real (r n))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1538
        by (simp add: field_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1539
      show "\<exists>d>0. d < e \<and> (\<forall>z\<in>sphere 0 d. cmod (f z) \<le> B)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1540
        apply (rule_tac x="1 / (2 * (1 + of_nat (r n)))" in exI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1541
        using normf_le_B by (simp add: e)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1542
    qed blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1543
    then have \<epsilon>: "cmod (f z) \<le> \<bar>B\<bar> + 1" if "cmod z < \<epsilon>" "z \<noteq> 0" for z
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1544
      using that by fastforce
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1545
    have "0 < \<bar>B\<bar> + 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1546
      by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1547
    then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1548
      apply (rule that [OF \<open>0 < \<epsilon>\<close> \<open>\<epsilon> < 1\<close>])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1549
      using \<epsilon> by auto 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1550
  next
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1551
    case 2
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
  1552
    with infinite_enumerate obtain r :: "nat \<Rightarrow> nat" 
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
  1553
      where "strict_mono r" and r: "\<And>n. r n \<in> {n. norm(h n w) \<ge> 1}"
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1554
      by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1555
    obtain B where B: "\<And>j z. \<lbrakk>norm z = 1/2; j \<in> range (\<lambda>n. inverse \<circ> h (r n))\<rbrakk> \<Longrightarrow> norm(j z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1556
    proof (rule GPicard3 [OF _ _ w, where K = "sphere 0 (1/2)"])  
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1557
      show "range (\<lambda>n. inverse \<circ> h (r n)) \<subseteq> 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1558
            {g. g holomorphic_on ball 0 1 - {0} \<and> (\<forall>z\<in>ball 0 1 - {0}. g z \<noteq> 0 \<and> g z \<noteq> 1)}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1559
        apply clarsimp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1560
        apply (intro conjI holomorphic_intros holomorphic_on_compose_gen [unfolded o_def, OF _ holh] holomorphic_on_compose)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1561
        using h01 apply auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1562
        done
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1563
      show "connected (ball 0 1 - {0::complex})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1564
        by (simp add: connected_open_delete)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1565
      show "\<And>j. j \<in> range (\<lambda>n. inverse \<circ> h (r n)) \<Longrightarrow> cmod (j w) \<le> 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1566
        using r norm_inverse_le_norm by fastforce
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1567
    qed (use r in auto)        
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1568
    have norm_if_le_B: "cmod(inverse (f z)) \<le> B" if "norm z = 1 / (2 * (1 + of_nat (r n)))" for z n
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1569
    proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1570
      have *: "inverse (cmod((f (z / (1 + of_nat (r n)))))) \<le> B" if "norm z = 1/2" for z
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1571
        using B [OF that] by (force simp: norm_inverse h_def)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1572
      have half: "norm (z * (1 + of_nat (r n))) = 1/2"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1573
        by (simp add: norm_mult divide_simps that)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1574
      show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1575
        using * [OF half] by (simp add: norm_inverse)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1576
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1577
    have hol_if: "(inverse \<circ> f) holomorphic_on (ball 0 1 - {0})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1578
      by (metis (no_types, lifting) holf comp_apply f01 holomorphic_on_inverse holomorphic_transform)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1579
    obtain \<epsilon> where "0 < \<epsilon>" "\<epsilon> < 1" and leB: "\<And>z. z \<in> ball 0 \<epsilon> - {0} \<Longrightarrow> cmod((inverse \<circ> f) z) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1580
    proof (rule GPicard4 [OF zero_less_one hol_if, of B])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1581
      fix e::real
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1582
      assume "0 < e" "e < 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1583
      obtain n where "(1/e - 2) / 2 < real n"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1584
        using reals_Archimedean2 by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1585
      also have "... \<le> r n"
66447
a1f5c5c26fa6 Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents: 65823
diff changeset
  1586
        using \<open>strict_mono r\<close> by (simp add: seq_suble)
65040
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1587
      finally have "(1/e - 2) / 2 < real (r n)" .
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1588
      with \<open>0 < e\<close> have e: "e > 1 / (2 + 2 * real (r n))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1589
        by (simp add: field_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1590
      show "\<exists>d>0. d < e \<and> (\<forall>z\<in>sphere 0 d. cmod ((inverse \<circ> f) z) \<le> B)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1591
        apply (rule_tac x="1 / (2 * (1 + of_nat (r n)))" in exI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1592
        using norm_if_le_B by (simp add: e)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1593
    qed blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1594
    have \<epsilon>: "cmod (f z) \<ge> inverse B" and "B > 0" if "cmod z < \<epsilon>" "z \<noteq> 0" for z
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1595
    proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1596
      have "inverse (cmod (f z)) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1597
        using leB that by (simp add: norm_inverse)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1598
      moreover
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1599
      have "f z \<noteq> 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1600
        using \<open>\<epsilon> < 1\<close> f01 that by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1601
      ultimately show "cmod (f z) \<ge> inverse B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1602
        by (simp add: norm_inverse inverse_le_imp_le)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1603
      show "B > 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1604
        using \<open>f z \<noteq> 0\<close> \<open>inverse (cmod (f z)) \<le> B\<close> not_le order.trans by fastforce
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1605
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1606
    then have "B > 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1607
      by (metis \<open>0 < \<epsilon>\<close> dense leI order.asym vector_choose_size)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1608
    then have "inverse B > 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1609
      by (simp add: divide_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1610
    then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1611
      apply (rule that [OF \<open>0 < \<epsilon>\<close> \<open>\<epsilon> < 1\<close>])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1612
      using \<epsilon> by auto 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1613
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1614
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1615
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1616
  
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1617
lemma GPicard6:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1618
  assumes "open M" "z \<in> M" "a \<noteq> 0" and holf: "f holomorphic_on (M - {z})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1619
      and f0a: "\<And>w. w \<in> M - {z} \<Longrightarrow> f w \<noteq> 0 \<and> f w \<noteq> a"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1620
  obtains r where "0 < r" "ball z r \<subseteq> M" 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1621
                  "bounded(f ` (ball z r - {z})) \<or>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1622
                   bounded((inverse \<circ> f) ` (ball z r - {z}))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1623
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1624
  obtain r where "0 < r" and r: "ball z r \<subseteq> M"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1625
    using assms openE by blast 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1626
  let ?g = "\<lambda>w. f (z + of_real r * w) / a"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1627
  obtain e B where "0 < e" "e < 1" "0 < B" 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1628
    and B: "(\<forall>z \<in> ball 0 e - {0}. norm(?g z) \<le> B) \<or> (\<forall>z \<in> ball 0 e - {0}. norm(?g z) \<ge> B)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1629
  proof (rule GPicard5)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1630
    show "?g holomorphic_on ball 0 1 - {0}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1631
      apply (intro holomorphic_intros holomorphic_on_compose_gen [unfolded o_def, OF _ holf])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1632
      using \<open>0 < r\<close> \<open>a \<noteq> 0\<close> r
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1633
      by (auto simp: dist_norm norm_mult subset_eq)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1634
    show "\<And>w. w \<in> ball 0 1 - {0} \<Longrightarrow> f (z + of_real r * w) / a \<noteq> 0 \<and> f (z + of_real r * w) / a \<noteq> 1"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1635
      apply (simp add: divide_simps \<open>a \<noteq> 0\<close>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1636
      apply (rule f0a)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1637
      using \<open>0 < r\<close> r by (auto simp: dist_norm norm_mult subset_eq)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1638
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1639
  show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1640
  proof
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1641
    show "0 < e*r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1642
      by (simp add: \<open>0 < e\<close> \<open>0 < r\<close>)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1643
    have "ball z (e * r) \<subseteq> ball z r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1644
      by (simp add: \<open>0 < r\<close> \<open>e < 1\<close> order.strict_implies_order subset_ball)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1645
    then show "ball z (e * r) \<subseteq> M"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1646
      using r by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1647
    consider "\<And>z. z \<in> ball 0 e - {0} \<Longrightarrow> norm(?g z) \<le> B" | "\<And>z. z \<in> ball 0 e - {0} \<Longrightarrow> norm(?g z) \<ge> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1648
      using B by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1649
    then show "bounded (f ` (ball z (e * r) - {z})) \<or>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1650
          bounded ((inverse \<circ> f) ` (ball z (e * r) - {z}))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1651
    proof cases
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1652
      case 1
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1653
      have "\<lbrakk>dist z w < e * r; w \<noteq> z\<rbrakk> \<Longrightarrow> cmod (f w) \<le> B * norm a" for w
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1654
        using \<open>a \<noteq> 0\<close> \<open>0 < r\<close> 1 [of "(w - z) / r"]
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1655
        by (simp add: norm_divide dist_norm divide_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1656
      then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1657
        by (force simp: intro!: boundedI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1658
    next
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1659
      case 2
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1660
      have "\<lbrakk>dist z w < e * r; w \<noteq> z\<rbrakk> \<Longrightarrow> cmod (f w) \<ge> B * norm a" for w
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1661
        using \<open>a \<noteq> 0\<close> \<open>0 < r\<close> 2 [of "(w - z) / r"]
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1662
        by (simp add: norm_divide dist_norm divide_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1663
      then have "\<lbrakk>dist z w < e * r; w \<noteq> z\<rbrakk> \<Longrightarrow> inverse (cmod (f w)) \<le> inverse (B * norm a)" for w
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1664
        by (metis \<open>0 < B\<close> \<open>a \<noteq> 0\<close> mult_pos_pos norm_inverse norm_inverse_le_norm zero_less_norm_iff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1665
      then show ?thesis 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1666
        by (force simp: norm_inverse intro!: boundedI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1667
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1668
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1669
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1670
  
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1671
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1672
theorem great_Picard:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1673
  assumes "open M" "z \<in> M" "a \<noteq> b" and holf: "f holomorphic_on (M - {z})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1674
      and fab: "\<And>w. w \<in> M - {z} \<Longrightarrow> f w \<noteq> a \<and> f w \<noteq> b"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1675
  obtains l where "(f \<longlongrightarrow> l) (at z) \<or> ((inverse \<circ> f) \<longlongrightarrow> l) (at z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1676
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1677
  obtain r where "0 < r" and zrM: "ball z r \<subseteq> M" 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1678
             and r: "bounded((\<lambda>z. f z - a) ` (ball z r - {z})) \<or>
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1679
                     bounded((inverse \<circ> (\<lambda>z. f z - a)) ` (ball z r - {z}))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1680
  proof (rule GPicard6 [OF \<open>open M\<close> \<open>z \<in> M\<close>])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1681
    show "b - a \<noteq> 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1682
      using assms by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1683
    show "(\<lambda>z. f z - a) holomorphic_on M - {z}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1684
      by (intro holomorphic_intros holf)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1685
  qed (use fab in auto)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1686
  have holfb: "f holomorphic_on ball z r - {z}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1687
    apply (rule holomorphic_on_subset [OF holf])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1688
    using zrM by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1689
  have holfb_i: "(\<lambda>z. inverse(f z - a)) holomorphic_on ball z r - {z}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1690
    apply (intro holomorphic_intros holfb)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1691
    using fab zrM by fastforce
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1692
  show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1693
    using r
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1694
  proof              
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1695
    assume "bounded ((\<lambda>z. f z - a) ` (ball z r - {z}))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1696
    then obtain B where B: "\<And>w. w \<in> (\<lambda>z. f z - a) ` (ball z r - {z}) \<Longrightarrow> norm w \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1697
      by (force simp: bounded_iff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1698
    have "\<forall>\<^sub>F w in at z. cmod (f w - a) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1699
      apply (simp add: eventually_at)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1700
      apply (rule_tac x=r in exI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1701
      using \<open>0 < r\<close> by (auto simp: dist_commute intro!: B)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1702
    then have "\<exists>B. \<forall>\<^sub>F w in at z. cmod (f w) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1703
      apply (rule_tac x="B + norm a" in exI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1704
        apply (erule eventually_mono)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1705
      by (metis add.commute add_le_cancel_right norm_triangle_sub order.trans)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1706
    then obtain g where holg: "g holomorphic_on ball z r" and gf: "\<And>w. w \<in> ball z r - {z} \<Longrightarrow> g w = f w"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1707
      using \<open>0 < r\<close> holomorphic_on_extend_bounded [OF holfb] by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1708
    then have "g \<midarrow>z\<rightarrow> g z"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1709
      apply (simp add: continuous_at [symmetric])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1710
      using \<open>0 < r\<close> centre_in_ball field_differentiable_imp_continuous_at holomorphic_on_imp_differentiable_at by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1711
    then have "(f \<longlongrightarrow> g z) (at z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1712
      apply (rule Lim_transform_within_open [of g "g z" z UNIV "ball z r"])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1713
      using  \<open>0 < r\<close> by (auto simp: gf)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1714
    then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1715
      using that by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1716
  next
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1717
    assume "bounded((inverse \<circ> (\<lambda>z. f z - a)) ` (ball z r - {z}))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1718
    then obtain B where B: "\<And>w. w \<in> (inverse \<circ> (\<lambda>z. f z - a)) ` (ball z r - {z}) \<Longrightarrow> norm w \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1719
      by (force simp: bounded_iff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1720
    have "\<forall>\<^sub>F w in at z. cmod (inverse (f w - a)) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1721
      apply (simp add: eventually_at)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1722
      apply (rule_tac x=r in exI)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1723
      using \<open>0 < r\<close> by (auto simp: dist_commute intro!: B)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1724
    then have "\<exists>B. \<forall>\<^sub>F z in at z. cmod (inverse (f z - a)) \<le> B"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1725
      by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1726
    then obtain g where holg: "g holomorphic_on ball z r" and gf: "\<And>w. w \<in> ball z r - {z} \<Longrightarrow> g w = inverse (f w - a)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1727
      using \<open>0 < r\<close> holomorphic_on_extend_bounded [OF holfb_i] by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1728
    then have gz: "g \<midarrow>z\<rightarrow> g z"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1729
      apply (simp add: continuous_at [symmetric])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1730
      using \<open>0 < r\<close> centre_in_ball field_differentiable_imp_continuous_at holomorphic_on_imp_differentiable_at by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1731
    have gnz: "\<And>w. w \<in> ball z r - {z} \<Longrightarrow> g w \<noteq> 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1732
      using gf fab zrM by fastforce
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1733
    show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1734
    proof (cases "g z = 0")
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1735
      case True
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1736
      have *: "\<lbrakk>g \<noteq> 0; inverse g = f - a\<rbrakk> \<Longrightarrow> g / (1 + a * g) = inverse f" for f g::complex
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1737
        by (auto simp: field_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1738
      have "(inverse \<circ> f) \<midarrow>z\<rightarrow> 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1739
      proof (rule Lim_transform_within_open [of "\<lambda>w. g w / (1 + a * g w)" _ _ UNIV "ball z r"])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1740
        show "(\<lambda>w. g w / (1 + a * g w)) \<midarrow>z\<rightarrow> 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1741
          using True by (auto simp: intro!: tendsto_eq_intros gz)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1742
        show "\<And>x. \<lbrakk>x \<in> ball z r; x \<noteq> z\<rbrakk> \<Longrightarrow> g x / (1 + a * g x) = (inverse \<circ> f) x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1743
          using * gf gnz by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1744
      qed (use \<open>0 < r\<close> in auto)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1745
      with that show ?thesis by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1746
    next
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1747
      case False
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1748
      show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1749
      proof (cases "1 + a * g z = 0")
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1750
        case True
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1751
        have "(f \<longlongrightarrow> 0) (at z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1752
        proof (rule Lim_transform_within_open [of "\<lambda>w. (1 + a * g w) / g w" _ _ _ "ball z r"])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1753
          show "(\<lambda>w. (1 + a * g w) / g w) \<midarrow>z\<rightarrow> 0"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1754
            apply (rule tendsto_eq_intros refl gz \<open>g z \<noteq> 0\<close>)+
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1755
            by (simp add: True)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1756
          show "\<And>x. \<lbrakk>x \<in> ball z r; x \<noteq> z\<rbrakk> \<Longrightarrow> (1 + a * g x) / g x = f x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1757
            using fab fab zrM by (fastforce simp add: gf divide_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1758
        qed (use \<open>0 < r\<close> in auto)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1759
        then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1760
          using that by blast 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1761
      next
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1762
        case False
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1763
        have *: "\<lbrakk>g \<noteq> 0; inverse g = f - a\<rbrakk> \<Longrightarrow> g / (1 + a * g) = inverse f" for f g::complex
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1764
          by (auto simp: field_simps)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1765
        have "(inverse \<circ> f) \<midarrow>z\<rightarrow> g z / (1 + a * g z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1766
        proof (rule Lim_transform_within_open [of "\<lambda>w. g w / (1 + a * g w)" _ _ UNIV "ball z r"])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1767
          show "(\<lambda>w. g w / (1 + a * g w)) \<midarrow>z\<rightarrow> g z / (1 + a * g z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1768
            using False by (auto simp: False intro!: tendsto_eq_intros gz)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1769
          show "\<And>x. \<lbrakk>x \<in> ball z r; x \<noteq> z\<rbrakk> \<Longrightarrow> g x / (1 + a * g x) = (inverse \<circ> f) x"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1770
            using * gf gnz by simp
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1771
        qed (use \<open>0 < r\<close> in auto)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1772
        with that show ?thesis by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1773
      qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1774
    qed 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1775
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1776
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1777
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1778
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1779
corollary great_Picard_alt:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1780
  assumes M: "open M" "z \<in> M" and holf: "f holomorphic_on (M - {z})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1781
    and non: "\<And>l. \<not> (f \<longlongrightarrow> l) (at z)" "\<And>l. \<not> ((inverse \<circ> f) \<longlongrightarrow> l) (at z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1782
  obtains a where "- {a} \<subseteq> f ` (M - {z})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1783
  apply (simp add: subset_iff image_iff)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1784
  by (metis great_Picard [OF M _ holf] non)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1785
    
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1786
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1787
corollary great_Picard_infinite:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1788
  assumes M: "open M" "z \<in> M" and holf: "f holomorphic_on (M - {z})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1789
    and non: "\<And>l. \<not> (f \<longlongrightarrow> l) (at z)" "\<And>l. \<not> ((inverse \<circ> f) \<longlongrightarrow> l) (at z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1790
  obtains a where "\<And>w. w \<noteq> a \<Longrightarrow> infinite {x. x \<in> M - {z} \<and> f x = w}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1791
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1792
  have False if "a \<noteq> b" and ab: "finite {x. x \<in> M - {z} \<and> f x = a}" "finite {x. x \<in> M - {z} \<and> f x = b}" for a b
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1793
  proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1794
    have finab: "finite {x. x \<in> M - {z} \<and> f x \<in> {a,b}}"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1795
      using finite_UnI [OF ab]  unfolding mem_Collect_eq insert_iff empty_iff
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1796
      by (simp add: conj_disj_distribL)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1797
    obtain r where "0 < r" and zrM: "ball z r \<subseteq> M" and r: "\<And>x. \<lbrakk>x \<in> M - {z}; f x \<in> {a,b}\<rbrakk> \<Longrightarrow> x \<notin> ball z r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1798
    proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1799
      obtain e where "e > 0" and e: "ball z e \<subseteq> M"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1800
        using assms openE by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1801
      show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1802
      proof (cases "{x \<in> M - {z}. f x \<in> {a, b}} = {}")
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1803
        case True
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1804
        then show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1805
          apply (rule_tac r=e in that)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1806
          using e \<open>e > 0\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1807
      next
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1808
        case False
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1809
        let ?r = "min e (Min (dist z ` {x \<in> M - {z}. f x \<in> {a,b}}))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1810
        show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1811
        proof
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1812
          show "0 < ?r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1813
            using min_less_iff_conj Min_gr_iff finab False \<open>0 < e\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1814
          have "ball z ?r \<subseteq> ball z e"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1815
            by (simp add: subset_ball)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1816
          with e show "ball z ?r \<subseteq> M" by blast
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1817
          show "\<And>x. \<lbrakk>x \<in> M - {z}; f x \<in> {a, b}\<rbrakk> \<Longrightarrow> x \<notin> ball z ?r"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1818
            using min_less_iff_conj Min_gr_iff finab False \<open>0 < e\<close> by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1819
        qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1820
      qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1821
    qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1822
    have holfb: "f holomorphic_on (ball z r - {z})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1823
      apply (rule holomorphic_on_subset [OF holf])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1824
       using zrM by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1825
     show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1826
       apply (rule great_Picard [OF open_ball _ \<open>a \<noteq> b\<close> holfb])
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1827
      using non \<open>0 < r\<close> r zrM by auto
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1828
  qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1829
  with that show thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1830
    by meson
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1831
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1832
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1833
corollary Casorati_Weierstrass:
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1834
  assumes "open M" "z \<in> M" "f holomorphic_on (M - {z})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1835
      and "\<And>l. \<not> (f \<longlongrightarrow> l) (at z)" "\<And>l. \<not> ((inverse \<circ> f) \<longlongrightarrow> l) (at z)"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1836
  shows "closure(f ` (M - {z})) = UNIV"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1837
proof -
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1838
  obtain a where a: "- {a} \<subseteq> f ` (M - {z})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1839
    using great_Picard_alt [OF assms] .
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1840
  have "UNIV = closure(- {a})"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1841
    by (simp add: closure_interior)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1842
  also have "... \<subseteq> closure(f ` (M - {z}))"
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1843
    by (simp add: a closure_mono)
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1844
  finally show ?thesis
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1845
    by blast 
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1846
qed
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1847
  
5975839e8d25 The Great Picard Theorem
paulson <lp15@cam.ac.uk>
parents:
diff changeset
  1848
end