Download data/lean/OAI/Analysis/Conductivity/Sources/AngularCoefficient.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.74 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Conductivity/Sources/AngularCoefficient.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Conductivity/Sources/AngularCoefficient.lean
-
curl -L -o AngularCoefficient.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Conductivity/Sources/AngularCoefficient.lean
4.74 kB
| import Mathlib | |
| import OAI.Analysis.Conductivity.Variational.CentralSmoothTrace | |
| import OAI.Analysis.Conductivity.Variational.SmoothCompactParameter | |
| namespace OAI | |
| section | |
| noncomputable section | |
| namespace ScalarConductivity | |
| open Set MeasureTheory Filter Topology UnitAddTorus | |
| open scoped ENNReal | |
| local instance angularCoefficientMeasureSpace : MeasureSpace UnitAddCircle := | |
| β¨AddCircle.haarAddCircleβ© | |
| local instance angularCoefficientProbabilityMeasure : | |
| IsProbabilityMeasure (volume : Measure UnitAddCircle) := | |
| inferInstanceAs (IsProbabilityMeasure AddCircle.haarAddCircle) | |
| lemma contDiff_sourceAngularPolynomial_joint : | |
| ContDiff β (β(β€ : ββ)) (fun z : β Γ (Fin 4 β β) => sourceAngularPolynomial z.1 z.2) := by | |
| apply contDiff_pi.mpr | |
| intro i | |
| fin_cases i <;> dsimp [sourceAngularPolynomial] <;> fun_prop | |
| def sourceAngularCoefficient (f : (Fin 3 β β) β β) (a b : β) | |
| (h : TorusModes) (t : β) : β := | |
| mFourierCoeff (fun ΞΈ => (f (sourceAngularCollar (a*t+b) ΞΈ) : β)) h | |
| lemma sourceAngularCoefficient_smooth {f : (Fin 3 β β) β β} | |
| (hf : ContDiff β (β(β€ : ββ)) f) (a b : β) (h : TorusModes) : | |
| ContDiff β (β(β€ : ββ)) (sourceAngularCoefficient f a b h) := by | |
| let F : β Γ ((Fin 4 β β) Γ β) β β := fun z => | |
| z.2.2 * (f (sourceAngularPolynomial (a*z.1+b) z.2.1) : β) | |
| have hF : ContDiff β (β(β€ : ββ)) F := by | |
| apply ContDiff.mul (contDiff_snd.comp contDiff_snd) | |
| exact Complex.ofRealCLM.contDiff.comp (hf.comp | |
| (contDiff_sourceAngularPolynomial_joint.comp | |
| ((contDiff_const.mul contDiff_fst |>.add contDiff_const).prodMk | |
| (contDiff_fst.comp contDiff_snd)))) | |
| have hr : Continuous (fun ΞΈ : UnitAddTorus (Fin 2) => | |
| (sourceRayCoordinates ΞΈ,mFourier (-h) ΞΈ)) := | |
| continuous_sourceRayCoordinates.prodMk (mFourier (-h)).continuous | |
| exact contDiff_compact_parameter hF hr | |
| def sourceAngularAxial (f : (Fin 3 β β) β β) (a b t : β) | |
| (ΞΈ : UnitAddTorus (Fin 2)) : β := | |
| ((deriv (fun u => f (sourceAngularCollar (a*u+b) ΞΈ)) t : β) : β) | |
| lemma continuous_sourceAngularAxial {f : (Fin 3 β β) β β} | |
| (hf : ContDiff β (β(β€ : ββ)) f) (a b : β) : | |
| Continuous (fun z : β Γ UnitAddTorus (Fin 2) => sourceAngularAxial f a b z.1 z.2) := by | |
| let F : β Γ (Fin 4 β β) β β := fun z => | |
| f (sourceAngularPolynomial (a*z.1+b) z.2) | |
| have hF : ContDiff β (β(β€ : ββ)) F := | |
| hf.comp (contDiff_sourceAngularPolynomial_joint.comp | |
| ((contDiff_const.mul contDiff_fst |>.add contDiff_const).prodMk contDiff_snd)) | |
| have he (t : β) (ΞΈ : UnitAddTorus (Fin 2)) : | |
| sourceAngularAxial f a b t ΞΈ = | |
| (fderiv β F (t,sourceRayCoordinates ΞΈ) (1,0) : β) := by | |
| have h := (hF.differentiable (by simp)).differentiableAt.hasFDerivAt | |
| (x:=(t,sourceRayCoordinates ΞΈ)) | |
| have hg := h.comp_hasDerivAt t ((hasDerivAt_id t).prodMk | |
| (hasDerivAt_const t (sourceRayCoordinates ΞΈ))) | |
| simpa only [sourceAngularAxial,sourceAngularCollar,F,Function.comp_def,id_eq] using | |
| congrArg (fun u : β => (u:β)) hg.deriv | |
| simp_rw [he] | |
| exact Complex.continuous_ofReal.comp | |
| ((hF.continuous_fderiv (by simp)).comp | |
| (continuous_fst.prodMk (continuous_sourceRayCoordinates.comp continuous_snd)) | |
| |>.clm_apply continuous_const) | |
| lemma sourceAngularCoefficient_hasDerivAt {f : (Fin 3 β β) β β} | |
| (hf : ContDiff β (β(β€ : ββ)) f) (a b : β) (h : TorusModes) (t : β) : | |
| HasDerivAt (sourceAngularCoefficient f a b h) | |
| (mFourierCoeff (sourceAngularAxial f a b t) h) t := by | |
| have hF : Continuous (fun z : β Γ UnitAddTorus (Fin 2) => | |
| mFourier (-h) z.2 * (f (sourceAngularCollar (a*z.1+b) z.2) : β)) := by | |
| apply ((mFourier (-h)).continuous.comp continuous_snd).mul | |
| exact Complex.continuous_ofReal.comp (hf.continuous.comp | |
| (contDiff_sourceAngularPolynomial_joint.continuous.comp | |
| ((continuous_const.mul continuous_fst |>.add continuous_const).prodMk | |
| (continuous_sourceRayCoordinates.comp continuous_snd)))) | |
| have hD := ((mFourier (-h)).continuous.comp continuous_snd).mul | |
| (continuous_sourceAngularAxial hf a b) | |
| apply hasDerivAt_compact_parameter hF hD | |
| intro u ΞΈ | |
| have hg : ContDiff β (β(β€ : ββ)) (fun v => f (sourceAngularCollar (a*v+b) ΞΈ)) := | |
| hf.comp (contDiff_sourceAngularPolynomial_joint.comp | |
| ((contDiff_const.mul contDiff_id |>.add contDiff_const).prodMk contDiff_const)) | |
| simpa only [sourceAngularAxial,Function.comp_def,Pi.mul_apply] using | |
| (((hg.differentiable (by simp)).differentiableAt (x:=u)).hasDerivAt.ofReal_comp).const_mul | |
| (mFourier (-h) ΞΈ) | |
| end ScalarConductivity | |
| end | |
| end | |
| end OAI | |