Download data/lean/OAI/Analysis/Calculus/Current/Smooth.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 7.06 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/Current/Smooth.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Calculus/Current/Smooth.lean
-
curl -L -o Smooth.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/Current/Smooth.lean
7.06 kB
| import OAI.Analysis.Calculus.Current.Wave | |
| namespace OAI.Analysis.Calculus.Current | |
| noncomputable section | |
| def realQCLM : β βL[β] Quaternion β := (ContinuousLinearMap.id β β).smulRight 1 | |
| def complexKCLM : β βL[β] Quaternion β := | |
| Complex.reCLM.smulRight 1 + Complex.imCLM.smulRight (complexK Complex.I) | |
| theorem realQCLM_apply (r : β) : realQCLM r = (r : Quaternion β) := by | |
| ext <;> simp [realQCLM] | |
| theorem complexKCLM_apply (c : β) : complexKCLM c = complexK c := by | |
| ext <;> simp [complexKCLM, complexK] | |
| theorem contDiff_complexK : ContDiff β β€ (fun c : β => complexK c) := by | |
| have heq : (fun c : β => complexK c) = complexKCLM := | |
| funext (fun c => (complexKCLM_apply c).symm) | |
| rw [heq] | |
| exact complexKCLM.contDiff | |
| def quaternionReCLM : Quaternion β βL[β] β := | |
| { QuaternionAlgebra.reβ (-1 : β) 0 (-1) with cont := Quaternion.continuous_re } | |
| theorem contDiff_starQ : ContDiff β β€ (star : Quaternion β β Quaternion β) := by | |
| have hr : ContDiff β β€ (fun q : Quaternion β => (q.re : Quaternion β)) := by | |
| convert realQCLM.contDiff.comp quaternionReCLM.contDiff using 1 | |
| funext q | |
| exact (realQCLM_apply _).symm | |
| convert (hr.add hr).sub contDiff_id using 1 | |
| funext q | |
| ext <;> simp | |
| theorem contDiff_movingEmbed : | |
| ContDiff β β€ (fun p : β Γ β => movingEmbed p.1 p.2) := by | |
| have he : ContDiff β β€ (fun p : β Γ β => complexK p.1) := | |
| contDiff_complexK.comp contDiff_fst | |
| have hr : ContDiff β β€ (fun p : β Γ β => (p.2.re : Quaternion β)) := by | |
| have hp : ContDiff β β€ (fun p : β Γ β => p.2.re) := | |
| Complex.reCLM.contDiff.comp (contDiff_snd : ContDiff β β€ (Prod.snd : β Γ β β β)) | |
| convert realQCLM.contDiff.comp hp using 1 | |
| funext p | |
| exact (realQCLM_apply _).symm | |
| have hi : ContDiff β β€ (fun p : β Γ β => (p.2.im : Quaternion β)) := by | |
| have hp : ContDiff β β€ (fun p : β Γ β => p.2.im) := | |
| Complex.imCLM.contDiff.comp (contDiff_snd : ContDiff β β€ (Prod.snd : β Γ β β β)) | |
| convert realQCLM.contDiff.comp hp using 1 | |
| funext p | |
| exact (realQCLM_apply _).symm | |
| exact hr.add ((he.mul contDiff_const).mul hi) | |
| theorem contDiffAt_ratio {d : β} (z : Index d β β) (hY : z none β 0) (i : Fin d) : | |
| ContDiffAt β β€ (fun w => ratio w i) z := by | |
| unfold ratio | |
| simp only [div_eq_mul_inv] | |
| fun_prop (disch := assumption) | |
| theorem contDiffAt_movingUnit {d : β} (z : Index d β β) (hY : z none β 0) : | |
| ContDiffAt β β€ (movingUnit (d := d)) z := by | |
| have hy : ContDiffAt β β€ (fun w : Index d β β => βw noneβ) z := | |
| (contDiffAt_apply β β none z).norm β hY | |
| have hC : ContDiffAt β β€ (fun w : Index d β β => (βw noneβ : β)) z := | |
| Complex.ofRealCLM.contDiff.contDiffAt.comp z hy | |
| have hn : (βz noneβ : β) β 0 := by exact_mod_cast norm_ne_zero_iff.mpr hY | |
| change ContDiffAt β β€ (fun w : Index d β β => w none / (βw noneβ : β)) z | |
| simpa only [div_eq_mul_inv] using | |
| (contDiffAt_apply β β none z).mul (hC.fun_inv hn) | |
| theorem contDiffAt_modeEnvelope {d : β} (ΞΊ : β) (v : Fin d β β) | |
| (z : Index d β β) (hY : z none β 0) : | |
| ContDiffAt β β€ (modeEnvelope ΞΊ v) z := by | |
| have hy : ContDiffAt β β€ (fun w : Index d β β => βw noneβ) z := | |
| (contDiffAt_apply β β none z).norm β hY | |
| have hn : βz noneβ β 0 := norm_ne_zero_iff.mpr hY | |
| have hd : ContDiffAt β β€ (fun w => squaredDistance (ratio w) v) z := by | |
| apply ContDiffAt.sum | |
| intro i _ | |
| exact ((contDiffAt_ratio z hY i).sub contDiffAt_const).norm_sq β | |
| unfold modeEnvelope | |
| fun_prop (disch := assumption) | |
| theorem contDiff_phaseComplex {d : β} (cR cI : β) (L : Index d β β) : | |
| ContDiff β β€ (phaseComplex cR cI L) := by | |
| have hF : ContDiff β β€ (phaseF cR cI L) := by unfold phaseF phaseArgument; fun_prop | |
| have hG : ContDiff β β€ (phaseG cR cI L) := by unfold phaseG phaseArgument; fun_prop | |
| have heq : phaseComplex cR cI L = | |
| (fun x => (phaseF cR cI L x : β) + Complex.I * (phaseG cR cI L x : β)) := by | |
| funext x | |
| apply Complex.ext <;> simp [phaseComplex] | |
| rw [heq] | |
| exact (Complex.ofRealCLM.contDiff.comp hF).add | |
| (contDiff_const.mul (Complex.ofRealCLM.contDiff.comp hG)) | |
| theorem contDiffAt_modeAmplitude {d : β} (ΞΊ cR cI : β) (v : Fin d β β) | |
| (x : Index d β β) (z : Index d β β) (hY : z none β 0) : | |
| ContDiffAt β β€ (fun p : (Index d β β) Γ (Index d β β) => modeAmplitude ΞΊ cR cI v p.1 p.2) | |
| (x, z) := by | |
| have he := (contDiffAt_movingUnit z hY).comp (x, z) contDiffAt_snd | |
| have hn := (contDiffAt_modeEnvelope ΞΊ v z hY).comp (x, z) contDiffAt_snd | |
| have hp := (contDiff_phaseComplex cR cI (modeCovector ΞΊ v)).contDiffAt.comp (x, z) contDiffAt_fst | |
| have hnc := Complex.ofRealCLM.contDiff.contDiffAt.comp (x, z) hn | |
| exact contDiff_movingEmbed.contDiffAt.comp (x, z) (he.prodMk (hnc.mul hp)) | |
| theorem contDiffAt_tangentField {d : β} (v : Fin d β β) | |
| (z : Index d β β) (hY : z none β 0) (a : Index d) : | |
| ContDiffAt β β€ (fun w => tangentField v w a) z := by | |
| have hr := contDiffAt_ratio z hY | |
| cases a with | |
| | none => exact contDiffAt_const | |
| | some a => | |
| cases a with | |
| | none => | |
| change ContDiffAt β β€ (fun w => -(β i, ratio w i * (v i : β)) / 2) z | |
| fun_prop | |
| | some i => | |
| change ContDiffAt β β€ (fun w => ((v i : β) + ratio w i) / 2) z | |
| fun_prop | |
| /-- Joint smoothness in all real and imaginary coordinates on `Y β 0`. -/ | |
| theorem contDiffAt_modeCurrent {d : β} {ΞΉ : Type*} [Fintype ΞΉ] | |
| (ΞΊ cR cI : ΞΉ β β) (v : ΞΉ β Fin d β β) (x : Index d β β) (z : Index d β β) | |
| (hY : z none β 0) (a b : Index d) : | |
| ContDiffAt β β€ (fun p : (Index d β β) Γ (Index d β β) => modeCurrent ΞΊ cR cI v p.1 p.2 a b) | |
| (x, z) := by | |
| have hΟ (a : Index d) : ContDiffAt β β€ | |
| (fun p : (Index d β β) Γ (Index d β β) => | |
| currentColumn (ratio p.2) (fun j i => (v j i : β)) | |
| (fun j => modeAmplitude (ΞΊ j) (cR j) (cI j) (v j) p.1 p.2) a) (x, z) := by | |
| apply ContDiffAt.sum | |
| intro j _ | |
| have hV := (contDiffAt_tangentField (v j) z hY a).comp (x, z) contDiffAt_snd | |
| exact (contDiff_complexK.contDiffAt.comp (x, z) hV).mul | |
| (contDiff_starQ.contDiffAt.comp (x, z) | |
| (contDiffAt_modeAmplitude (ΞΊ j) (cR j) (cI j) (v j) x z hY)) | |
| exact (hΟ a).mul (contDiff_starQ.contDiffAt.comp (x, z) (hΟ b)) | |
| theorem contDiffAt_waveCurrent {d : β} {ΞΉ : Type*} [Fintype ΞΉ] | |
| (ΞΊ cR cI : ΞΉ β β) (v : ΞΉ β Fin d β β) (x : Index d β β) (z : Index d β β) | |
| (hY : z none β 0) (a b : Index d) : | |
| ContDiffAt β β€ (fun p : (Index d β β) Γ (Index d β β) => waveCurrent ΞΊ cR cI v p.1 p.2 a b) | |
| (x, z) := | |
| contDiffAt_modeCurrent ΞΊ | |
| (fun j => frequencyNormalization d (ΞΊ j) * cR j) | |
| (fun j => frequencyNormalization d (ΞΊ j) * cI j) v x z hY a b | |
| end | |
| end OAI.Analysis.Calculus.Current | |