File size: 4,711 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | import OAI.Analysis.Calculus.Current.ComplexDerivatives
namespace OAI.Analysis.Calculus.Current
noncomputable section
def tangentSlope {d : β} (v : Fin d β β) (z h : Index d β β) : Index d β β
| none => 0
| some none => -(β i, ratioSlope z h i * (v i : β)) / 2
| some (some i) => ratioSlope z h i / 2
theorem hasDerivAt_tangentField_line {d : β} (v : Fin d β β)
(z h : Index d β β) (hY : z none β 0) (b : Index d) :
HasDerivAt (fun t : β => tangentField v (imaginaryLine z h t) b)
(tangentSlope v z h b) 0 := by
cases b with
| none => exact hasDerivAt_const _ _
| some b =>
cases b with
| none =>
simpa only [tangentField, tangentVector, tangentSlope, Pi.neg_apply,
Finset.sum_apply] using ((HasDerivAt.fun_sum (u := Finset.univ) (fun i _ =>
(hasDerivAt_ratio_line z h hY i).mul_const (v i : β))).neg).div_const 2
| some i =>
exact ((hasDerivAt_ratio_line z h hY i).const_add (v i : β)).div_const 2
theorem tangentSlope_I {d : β} (v : Fin d β β)
(z h : Index d β β) (b : Index d) :
tangentSlope v z (fun a => Complex.I * h a) b =
Complex.I * tangentSlope v z h b := by
cases b with
| none => simp [tangentSlope]
| some b =>
cases b with
| none => simp only [tangentSlope, ratioSlope_I, mul_assoc, β Finset.mul_sum]; ring
| some i => simp only [tangentSlope, ratioSlope_I]; ring
theorem complexBarDirectional_conjugate_tangentField {d : β} (v : Fin d β β)
(z h : Index d β β) (hY : z none β 0) (b : Index d) :
complexBarDirectional (fun w => star (tangentField v w b)) z h =
2 * star (tangentSlope v z h b) := by
unfold complexBarDirectional
rw [(hasDerivAt_tangentField_line v z h hY b).star.deriv,
(hasDerivAt_tangentField_line v z (fun a => Complex.I * h a) hY b).star.deriv,
tangentSlope_I]
simp only [star_mul, Complex.star_def, Complex.conj_I]
ring_nf
simp
ring
def movingUnit {d : β} (z : Index d β β) : β := z none / (βz noneβ : β)
theorem differentiableAt_movingUnit {d : β} (z : Index d β β) (hY : z none β 0) :
DifferentiableAt β (movingUnit (d := d)) z := by
have hn : (βz noneβ : β) β 0 := by exact_mod_cast norm_ne_zero_iff.mpr hY
have hy : DifferentiableAt β (fun w : Index d β β => (βw noneβ : β)) z :=
Complex.ofRealCLM.differentiableAt.comp z
((differentiableAt_apply none z).norm β hY)
unfold movingUnit
simpa only [div_eq_mul_inv, Pi.mul_apply, Pi.inv_apply] using
(differentiableAt_apply (π := β) none z).fun_mul (hy.inv hn)
theorem hasDerivAt_conjugate_movingUnit_line {d : β} (z h : Index d β β)
(hY : z none β 0) :
HasDerivAt (fun t : β => star (movingUnit (imaginaryLine z h t)))
((star (h none) * (βz noneβ : β) - star (z none) * (radiusSlope z h : β)) /
(βz noneβ : β) ^ 2) 0 := by
have hn : (βz noneβ : β) β 0 := by exact_mod_cast norm_ne_zero_iff.mpr hY
have hh := ((hasDerivAt_imaginaryLine z h none).star).div
(hasDerivAt_radius_line z h hY).ofReal_comp (by simpa using hn)
convert hh using 1
Β· funext t
simp [movingUnit, star_divβ]
Β· simp
theorem complexBarDirectional_conjugate_movingUnit {d : β} (z h : Index d β β)
(hY : z none β 0) :
complexBarDirectional (fun w => star (movingUnit w)) z h =
star (h none) / (βz noneβ : β) := by
unfold complexBarDirectional
rw [(hasDerivAt_conjugate_movingUnit_line z h hY).deriv,
(hasDerivAt_conjugate_movingUnit_line z (fun a => Complex.I * h a) hY).deriv]
have hn : (βz noneβ : β) β 0 := by exact_mod_cast norm_ne_zero_iff.mpr hY
have hp := radiusSlope_pair z h
have hs := norm_square_eq_mul_star (z none)
simp only [star_mul, Complex.star_def, Complex.conj_I]
calc
_ = 2 * star (h none) / (βz noneβ : β) -
star (z none) / (βz noneβ : β) ^ 2 *
((radiusSlope z h : β) + Complex.I *
(radiusSlope z (fun a => Complex.I * h a) : β)) := by
simp only [Complex.star_def]
field_simp
ring_nf
simp
ring
_ = _ := by
rw [hp]
simp only [Complex.star_def] at hs β’
field_simp
linear_combination (starRingEnd β (h none)) * hs
theorem movingUnit_mul_star {d : β} (z : Index d β β) (hY : z none β 0) :
movingUnit z * star (movingUnit z) = 1 := by
have hn : (βz noneβ : β) β 0 := by exact_mod_cast norm_ne_zero_iff.mpr hY
have hs := norm_square_eq_mul_star (z none)
simp only [movingUnit, star_divβ, Complex.star_def, Complex.conj_ofReal]
field_simp
exact hs.symm
end
end OAI.Analysis.Calculus.Current
|