math / data /lean /OAI /Analysis /Calculus /Current /Holomorphic.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.46 kB
import OAI.Analysis.Calculus.Current.Algebra
/-! The holomorphic background `Ξ¦` used to define the wave current.
This file proves its differential along every complex direction. -/
namespace OAI.Analysis.Calculus.Current
noncomputable section
/-- The holomorphic background `S₁ + (PΒ·P)/(2Y)`. -/
def phi {d : β„•} (z : Index d β†’ β„‚) : β„‚ :=
z (some none) + (βˆ‘ i, z (some (some i)) * z (some (some i))) / (2 * z none)
/-- `W = P/Y` in the imaginary coordinates of the manuscript. -/
def ratio {d : β„•} (z : Index d β†’ β„‚) : Fin d β†’ β„‚ :=
fun i => z (some (some i)) / z none
private theorem phi_differential_algebra {d : β„•} (z h : Index d β†’ β„‚)
(hY : z none β‰  0) :
h (some none) +
((βˆ‘ i : Fin d, (h (some (some i)) * z (some (some i)) +
z (some (some i)) * h (some (some i)))) * (2 * z none) -
(βˆ‘ i : Fin d, z (some (some i)) * z (some (some i))) * (2 * h none)) /
(2 * z none) ^ 2 =
βˆ‘ a, phaseRow (ratio z) a * h a := by
have hs : (βˆ‘ i : Fin d, (z (some (some i)) / z none) *
(z (some (some i)) / z none)) =
(βˆ‘ i : Fin d, z (some (some i)) * z (some (some i))) / (z none * z none) := by
simp_rw [div_mul_div_comm]
rw [Finset.sum_div]
have hl : (βˆ‘ i : Fin d, (z (some (some i)) / z none) * h (some (some i))) =
(βˆ‘ i : Fin d, z (some (some i)) * h (some (some i))) / z none := by
simp_rw [div_mul_eq_mul_div]
rw [Finset.sum_div]
simp only [Fintype.sum_option, phaseRow, ratio, one_mul]
rw [hs, hl]
rw [Finset.sum_add_distrib]
simp_rw [show βˆ€ i, h (some (some i)) * z (some (some i)) =
z (some (some i)) * h (some (some i)) from fun _ => mul_comm _ _]
field_simp
ring
/-- Equation (Phi-derivative): the differential is exactly the phase row `β„“(W)`.
The direction is arbitrary and the only restriction is the stated domain `Y β‰  0`. -/
theorem hasDerivAt_phi_line {d : β„•} (z h : Index d β†’ β„‚) (hY : z none β‰  0) :
HasDerivAt (fun q : β„‚ => phi (fun a => z a + q * h a))
(βˆ‘ a, phaseRow (ratio z) a * h a) 0 := by
have hz (a : Index d) :
HasDerivAt (fun q : β„‚ => z a + q * h a) (h a) 0 := by
simpa using ((hasDerivAt_id (0 : β„‚)).mul_const (h a)).const_add (z a)
have hp := HasDerivAt.fun_sum (u := Finset.univ) (fun (i : Fin d) _ =>
(hz (some (some i))).mul (hz (some (some i))))
have hy := (hz none).const_mul (2 : β„‚)
have hden : 2 * (z none + (0 : β„‚) * h none) β‰  0 := by
simpa using mul_ne_zero (two_ne_zero : (2 : β„‚) β‰  0) hY
have hh := (hz (some none)).add (hp.div hy hden)
convert hh using 1
Β· funext q
simp [phi]
Β· simpa only [Pi.mul_apply, zero_mul, add_zero] using
(phi_differential_algebra z h hY).symm
/-- `Ξ¦` is holomorphic everywhere in its stated domain. -/
theorem differentiableAt_phi {d : β„•} (z : Index d β†’ β„‚) (hY : z none β‰  0) :
DifferentiableAt β„‚ (phi : (Index d β†’ β„‚) β†’ β„‚) z := by
unfold phi
fun_prop (disch := exact mul_ne_zero (two_ne_zero : (2 : β„‚) β‰  0) hY)
/-- Each current vector has zero derivative against the actual background `Ξ¦`. -/
theorem hasDerivAt_phi_tangent {d : β„•} (z : Index d β†’ β„‚)
(hY : z none β‰  0) (v : Fin d β†’ β„‚) :
HasDerivAt
(fun q : β„‚ => phi (fun a => z a + q * tangentVector v (ratio z) a)) 0 0 := by
simpa only [background_tangent] using
hasDerivAt_phi_line z (tangentVector v (ratio z)) hY
end
end OAI.Analysis.Calculus.Current