Download data/lean/OAI/Analysis/Calculus/Current/Phase.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.66 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/Current/Phase.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Calculus/Current/Phase.lean
-
curl -L -o Phase.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/Current/Phase.lean
5.66 kB
| import OAI.Analysis.Calculus.Current.Pairs | |
| namespace OAI.Analysis.Calculus.Current | |
| noncomputable section | |
| def realPhaseRow {d : β} (v : Fin d β β) : Index d β β | |
| | none => -(β i, v i * v i) / 2 | |
| | some none => 1 | |
| | some (some i) => v i | |
| theorem realPhaseRow_coe {d : β} (v : Fin d β β) (a : Index d) : | |
| (realPhaseRow v a : β) = phaseRow (fun i => (v i : β)) a := by | |
| cases a with | |
| | none => simp [realPhaseRow, phaseRow] | |
| | some a => cases a <;> simp [realPhaseRow, phaseRow] | |
| def phaseDifference {d : β} (ΞΊ ΞΊ' : β) (v v' : Fin d β β) (a : Index d) : β := | |
| ΞΊ' * realPhaseRow v' a - ΞΊ * realPhaseRow v a | |
| theorem phaseDifference_tangent_left {d : β} (ΞΊ ΞΊ' : β) (v v' : Fin d β β) | |
| (z : Index d β β) : | |
| (β a, (phaseDifference ΞΊ ΞΊ' v v' a : β) * tangentField v z a) = | |
| crossPhase ΞΊ' v' (tangentField v z) := by | |
| simp only [phaseDifference, Complex.ofReal_sub, Complex.ofReal_mul, | |
| realPhaseRow_coe, sub_mul, Finset.sum_sub_distrib, mul_assoc, β Finset.mul_sum] | |
| have hv : β a, phaseRow (fun i => (v i : β)) a * tangentField v z a = 0 := | |
| phase_tangent _ _ | |
| rw [hv] | |
| simp [crossPhase] | |
| theorem phaseDifference_tangent_right {d : β} (ΞΊ ΞΊ' : β) (v v' : Fin d β β) | |
| (z : Index d β β) : | |
| (β a, (phaseDifference ΞΊ ΞΊ' v v' a : β) * tangentField v' z a) = | |
| -crossPhase ΞΊ v (tangentField v' z) := by | |
| simp only [phaseDifference, Complex.ofReal_sub, Complex.ofReal_mul, | |
| realPhaseRow_coe, sub_mul, Finset.sum_sub_distrib, mul_assoc, β Finset.mul_sum] | |
| have hv : β a, phaseRow (fun i => (v' i : β)) a * tangentField v' z a = 0 := | |
| phase_tangent _ _ | |
| rw [hv] | |
| simp [crossPhase] | |
| def phaseArgument {d : β} (L x : Index d β β) : β := β a, L a * x a | |
| def realLine {d : β} (x : Index d β β) (a : Index d) (t : β) : Index d β β := | |
| fun b => x b + t * (Pi.single a 1 : Index d β β) b | |
| @[simp] theorem realLine_zero {d : β} (x : Index d β β) (a : Index d) : | |
| realLine x a 0 = x := by ext b; simp [realLine] | |
| theorem hasDerivAt_phaseArgument_line {d : β} (L x : Index d β β) (a : Index d) : | |
| HasDerivAt (fun t : β => phaseArgument L (realLine x a t)) (L a) 0 := by | |
| have h (b : Index d) : HasDerivAt (fun t : β => L b * realLine x a t b) | |
| (L b * (Pi.single a 1 : Index d β β) b) 0 := by | |
| simpa only [realLine, one_mul, id_eq] using | |
| ((((hasDerivAt_id (0 : β)).mul_const ((Pi.single a 1 : Index d β β) b)).const_add | |
| (x b)).const_mul (L b)) | |
| have hh := HasDerivAt.fun_sum (u := Finset.univ) (fun b _ => h b) | |
| simpa [phaseArgument, Pi.single_apply] using hh | |
| def phaseF {d : β} (cR cI : β) (L x : Index d β β) : β := | |
| cR * Real.cos (phaseArgument L x) - cI * Real.sin (phaseArgument L x) | |
| def phaseG {d : β} (cR cI : β) (L x : Index d β β) : β := | |
| cR * Real.sin (phaseArgument L x) + cI * Real.cos (phaseArgument L x) | |
| theorem hasDerivAt_phaseF_line {d : β} (cR cI : β) (L x : Index d β β) (a : Index d) : | |
| HasDerivAt (fun t : β => phaseF cR cI L (realLine x a t)) | |
| (-(L a) * phaseG cR cI L x) 0 := by | |
| have h := hasDerivAt_phaseArgument_line L x a | |
| convert (h.cos.const_mul cR).fun_sub (h.sin.const_mul cI) using 1 | |
| all_goals (try simp only [realLine_zero, phaseF, phaseG]) | |
| all_goals ring | |
| theorem hasDerivAt_phaseG_line {d : β} (cR cI : β) (L x : Index d β β) (a : Index d) : | |
| HasDerivAt (fun t : β => phaseG cR cI L (realLine x a t)) | |
| (L a * phaseF cR cI L x) 0 := by | |
| have h := hasDerivAt_phaseArgument_line L x a | |
| convert (h.sin.const_mul cR).fun_add (h.cos.const_mul cI) using 1 | |
| all_goals (try simp only [realLine_zero, phaseF, phaseG]) | |
| all_goals ring | |
| theorem phase_contraction_pairedC {d : β} (ΞΊ ΞΊ' : β) (v v' : Fin d β β) | |
| (z : Index d β β) (b : Index d) : | |
| (β a, (phaseDifference ΞΊ ΞΊ' v v' a : β) * pairedC ΞΊ ΞΊ' v v' z a b) = | |
| (gaussianField ΞΊ ΞΊ' v v' z : β) * | |
| (crossPhase ΞΊ' v' (tangentField v z) * star (tangentField v' z b) - | |
| crossPhase ΞΊ v (tangentField v' z) * star (tangentField v z b)) := by | |
| calc | |
| _ = (gaussianField ΞΊ ΞΊ' v v' z : β) * | |
| ((β a, (phaseDifference ΞΊ ΞΊ' v v' a : β) * tangentField v z a) * | |
| star (tangentField v' z b) + | |
| (β a, (phaseDifference ΞΊ ΞΊ' v v' a : β) * tangentField v' z a) * | |
| star (tangentField v z b)) := by | |
| simp only [pairedC, Finset.mul_sum, Finset.sum_mul, mul_add, β Finset.sum_add_distrib] | |
| apply Finset.sum_congr rfl | |
| intro a _ | |
| ring | |
| _ = _ := by rw [phaseDifference_tangent_left, phaseDifference_tangent_right]; ring | |
| theorem phase_contraction_pairedE {d : β} (ΞΊ ΞΊ' : β) (v v' : Fin d β β) | |
| (z : Index d β β) (b : Index d) : | |
| (β a, (phaseDifference ΞΊ ΞΊ' v v' a : β) * pairedE ΞΊ ΞΊ' v v' z a b) = | |
| (gaussianField ΞΊ ΞΊ' v v' z : β) * movingUnit z * | |
| (crossPhase ΞΊ' v' (tangentField v z) * tangentField v' z b + | |
| crossPhase ΞΊ v (tangentField v' z) * tangentField v z b) := by | |
| calc | |
| _ = (gaussianField ΞΊ ΞΊ' v v' z : β) * movingUnit z * | |
| ((β a, (phaseDifference ΞΊ ΞΊ' v v' a : β) * tangentField v z a) * | |
| tangentField v' z b - | |
| (β a, (phaseDifference ΞΊ ΞΊ' v v' a : β) * tangentField v' z a) * | |
| tangentField v z b) := by | |
| simp only [pairedE, Finset.mul_sum, Finset.sum_mul, mul_sub, β Finset.sum_sub_distrib] | |
| apply Finset.sum_congr rfl | |
| intro a _ | |
| ring | |
| _ = _ := by rw [phaseDifference_tangent_left, phaseDifference_tangent_right]; ring | |
| end | |
| end OAI.Analysis.Calculus.Current | |