nevanlinna/Nevanlinna/test.lean

131 lines
3.4 KiB
Plaintext
Raw Normal View History

2024-04-23 10:03:36 +02:00
import Mathlib.Analysis.Complex.CauchyIntegral
2024-04-24 10:09:34 +02:00
--import Mathlib.Analysis.Complex.Module
2024-07-14 10:55:58 +02:00
-- test
2024-04-24 10:09:34 +02:00
open ComplexConjugate
2024-04-23 09:18:45 +02:00
2024-04-23 10:03:36 +02:00
#check DiffContOnCl.circleIntegral_sub_inv_smul
2024-04-23 10:56:52 +02:00
open Real
2024-04-23 10:03:36 +02:00
theorem CauchyIntegralFormula :
{R : } -- Radius of the ball
{w : } -- Point in the interior of the ball
{f : }, -- Holomorphic function
DiffContOnCl f (Metric.ball 0 R)
→ w ∈ Metric.ball 0 R
2024-04-23 10:56:52 +02:00
→ (∮ (z : ) in C(0, R), (z - w)⁻¹ • f z) = (2 * π * Complex.I) • f w := by
2024-04-23 10:03:36 +02:00
exact DiffContOnCl.circleIntegral_sub_inv_smul
#check CauchyIntegralFormula
2024-04-23 10:56:52 +02:00
#check HasDerivAt.continuousAt
#check Real.log
2024-04-24 10:09:34 +02:00
#check ComplexConjugate.conj
2024-04-23 10:56:52 +02:00
#check Complex.exp
theorem SimpleCauchyFormula :
{R : } -- Radius of the ball
{w : } -- Point in the interior of the ball
{f : }, -- Holomorphic function
Differentiable f
→ w ∈ Metric.ball 0 R
→ (∮ (z : ) in C(0, R), (z - w)⁻¹ • f z) = (2 * Real.pi * Complex.I) • f w := by
intro R w f fHyp
apply DiffContOnCl.circleIntegral_sub_inv_smul
constructor
· exact Differentiable.differentiableOn fHyp
· suffices Continuous f from by
exact Continuous.continuousOn this
rw [continuous_iff_continuousAt]
intro x
exact DifferentiableAt.continuousAt (fHyp x)
theorem JensenFormula₂ :
{R : } -- Radius of the ball
{f : }, -- Holomorphic function
Differentiable f
2024-04-23 21:20:50 +02:00
→ (∀ z ∈ Metric.ball 0 R, f z ≠ 0)
2024-04-24 10:09:34 +02:00
→ (∫ (θ : ) in Set.Icc 0 (2 * π), Complex.log ‖f (circleMap 0 R θ)‖ ) = 2 * π * Complex.log ‖f 0‖ := by
2024-04-23 21:20:50 +02:00
intro r f fHyp₁ fHyp₂
2024-04-24 10:09:34 +02:00
/- We treat the trivial case r = 0 separately. -/
by_cases rHyp : r = 0
rw [rHyp]
simp
left
unfold ENNReal.ofReal
simp
rw [max_eq_left (mul_nonneg zero_le_two pi_nonneg)]
simp
/- From hereon, we assume that r ≠ 0. -/
/- Replace the integral over 0 … 2π by a circle integral -/
suffices (∮ (z : ) in C(0, r), -(Complex.I * z⁻¹ * Complex.log ↑(Complex.abs (f z)))) = 2 * ↑π * Complex.log ↑‖f 0‖ from by
have : ∫ (θ : ) in Set.Icc 0 (2 * π), Complex.log ↑‖f (circleMap 0 r θ)‖ = (∮ (z : ) in C(0, r), -(Complex.I * z⁻¹ * Complex.log ↑(Complex.abs (f z)))) := by
have : (fun θ ↦ Complex.log ‖f (circleMap 0 r θ)‖) = (fun θ ↦ ((deriv (circleMap 0 r) θ)) • ((deriv (circleMap 0 r) θ)⁻¹ • Complex.log ↑‖f (circleMap 0 r θ)‖)) := by
funext θ
rw [← smul_assoc, smul_eq_mul, smul_eq_mul, mul_inv_cancel, one_mul]
simp
exact rHyp
rw [this]
simp
let tmp := circleIntegral_def_Icc (fun z ↦ -(Complex.I * z⁻¹ * (Complex.log ↑‖f z‖))) 0 r
simp at tmp
rw [← tmp]
rw [this]
2024-07-14 10:55:58 +02:00
2024-04-24 10:09:34 +02:00
2024-04-24 16:23:39 +02:00
have : ∀ z : , log (Complex.abs z) = 1/2 * Complex.log z + 1/2 * Complex.log (conj z) := by
2024-04-24 10:09:34 +02:00
intro z
2024-04-24 16:23:39 +02:00
2024-07-14 10:55:58 +02:00
by_cases argHyp : Complex.arg z = π
2024-04-24 16:23:39 +02:00
· rw [Complex.log, argHyp, Complex.log]
let ZZ := Complex.arg_conj z
rw [argHyp] at ZZ
2024-07-14 10:55:58 +02:00
2024-04-24 16:23:39 +02:00
simp at ZZ
have : conj z = z := by
apply?
sorry
let ZZ := Complex.log_conj z
nth_rewrite 1 [Complex.log]
2024-07-14 10:55:58 +02:00
2024-04-24 16:23:39 +02:00
simp
let φ := Complex.arg z
let r := Complex.abs z
have : z = r * Complex.exp (φ * Complex.I) := by
exact (Complex.abs_mul_exp_arg_mul_I z).symm
have : Complex.log z = Complex.log r + r*Complex.I := by
apply?
2024-04-24 10:09:34 +02:00
sorry
2024-04-24 16:23:39 +02:00
simp at XX
2024-04-24 10:09:34 +02:00
2024-04-23 21:20:50 +02:00
2024-04-24 10:09:34 +02:00
sorry
2024-04-23 21:20:50 +02:00
2024-04-23 10:56:52 +02:00
sorry