Download data/lean/OAI/Analysis/Calculus/Current/MovingFrame.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.71 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/Current/MovingFrame.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Calculus/Current/MovingFrame.lean
-
curl -L -o MovingFrame.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/Current/MovingFrame.lean
4.71 kB
| 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 | |