Buckets:
| import OAI.Analysis.NodalLength.MetricFamilies | |
| namespace OAI | |
| noncomputable section | |
| open scoped ContDiff Bundle ENNReal | |
| open Bundle Manifold MeasureTheory | |
| open scoped ContDiff ENNReal Topology | |
| open MeasureTheory Filter Set | |
| open scoped Topology ENNReal | |
| open MeasureTheory Filter Set | |
| open scoped Topology ENNReal ContDiff | |
| open MeasureTheory Filter Set | |
| open scoped Topology ENNReal ContDiff | |
| open MeasureTheory Filter Set | |
| open scoped Topology ENNReal ContDiff | |
| open MeasureTheory Filter Set | |
| open scoped Topology ContDiff | |
| open Filter Set | |
| open scoped Topology ContDiff | |
| open Filter Set | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory TopologicalSpace | |
| open scoped Topology ContDiff | |
| open Filter Set | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory TopologicalSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory TopologicalSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory Laplacian | |
| open scoped Topology ENNReal ContDiff ComplexConjugate | |
| open Filter Set MeasureTheory Laplacian | |
| open scoped Topology ENNReal ContDiff ComplexConjugate | |
| open Filter Set MeasureTheory Laplacian | |
| open scoped Topology ENNReal NNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal | |
| open Set MeasureTheory Filter | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Laplacian | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff CompactlySupported | |
| open Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff CompactlySupported | |
| open Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff CompactlySupported | |
| open Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Laplacian | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Convolution ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff ENNReal | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff ENNReal | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory Function | |
| open scoped Topology | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped BigOperators | |
| open Filter Set MeasureTheory | |
| open scoped BigOperators | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff BigOperators | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff BigOperators | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped BigOperators | |
| open MeasureTheory | |
| open scoped BigOperators | |
| open Set MeasureTheory | |
| open scoped BigOperators | |
| open scoped Classical | |
| open scoped BigOperators Topology ENNReal | |
| open Set MeasureTheory | |
| open scoped BigOperators | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped BigOperators Classical Topology | |
| open Filter Set MeasureTheory | |
| open scoped BigOperators Classical Topology | |
| open Filter Set MeasureTheory | |
| open scoped BigOperators | |
| open Set | |
| open scoped BigOperators Topology | |
| open Set MeasureTheory | |
| open scoped BigOperators | |
| open Set | |
| open scoped BigOperators symmDiff | |
| open Set | |
| open scoped BigOperators | |
| open Set | |
| open scoped BigOperators symmDiff | |
| open Set | |
| open scoped BigOperators Classical | |
| open Set | |
| open scoped BigOperators | |
| open Set | |
| open scoped BigOperators Classical | |
| open Set | |
| open scoped BigOperators Classical | |
| open Set | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff BigOperators | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff BigOperators | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff BigOperators | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory ComplexConjugate | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory ComplexConjugate | |
| open scoped Topology NNReal BoundedContinuousFunction | |
| open Filter Set Metric | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff BigOperators | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff BigOperators | |
| open Filter Set MeasureTheory | |
| open scoped Topology ComplexConjugate BigOperators | |
| open Filter Set Metric Complex MeromorphicOn | |
| open scoped Topology ComplexConjugate BigOperators | |
| open Filter Set Metric Complex MeromorphicOn | |
| open scoped Topology ComplexConjugate BigOperators | |
| open Filter Set Metric Complex | |
| open scoped Topology ContDiff ENNReal | |
| open Set MeasureTheory Metric | |
| open scoped Topology | |
| open Set Metric | |
| open scoped Topology ComplexConjugate BigOperators | |
| open Filter Set Metric Complex MeromorphicOn | |
| open scoped Topology | |
| open Set Metric Complex | |
| open scoped Topology | |
| open Set Metric | |
| open scoped Topology ContDiff ENNReal | |
| open Set MeasureTheory Metric | |
| open scoped Topology | |
| open Set Metric Complex MeasureTheory | |
| open scoped ENNReal Topology | |
| open Set Metric MeasureTheory TopologicalSpace Function | |
| open scoped Topology ENNReal | |
| open Set Metric MeasureTheory Filter | |
| open scoped Topology ENNReal | |
| open Set Metric MeasureTheory Filter | |
| open scoped Topology ENNReal | |
| open Set Metric MeasureTheory | |
| open scoped Topology ComplexConjugate BigOperators ENNReal | |
| open Filter Set Metric Complex MeasureTheory MeromorphicOn | |
| open scoped Topology ContDiff Convolution ENNReal | |
| open Filter Set MeasureTheory Metric | |
| open scoped Topology ContDiff NNReal ENNReal | |
| open Filter Set Metric MeasureTheory | |
| open scoped Topology ContDiff NNReal ENNReal | |
| open Filter Set Metric MeasureTheory | |
| open scoped Topology ContDiff ENNReal | |
| open Filter Set MeasureTheory Metric | |
| open scoped Topology ContDiff ENNReal | |
| open Filter Set Metric MeasureTheory | |
| open scoped Topology ContDiff ENNReal | |
| open Filter Set Metric MeasureTheory | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set Metric MeasureTheory | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set Metric MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set Metric | |
| namespace SharpNodal.Geometry | |
| open Carleman Profiles.Elliptic | |
| lemma partial_add_at {f g : Plane → ℝ} {x : Plane} | |
| (hf : DifferentiableAt ℝ f x) (hg : DifferentiableAt ℝ g x) (i : Fin 2) : | |
| coordPartial (fun y=>f y+g y) i x=coordPartial f i x+coordPartial g i x := by | |
| unfold coordPartial | |
| rw [fderiv_fun_add hf hg]; rfl | |
| lemma partial_sub_at {f g : Plane → ℝ} {x : Plane} | |
| (hf : DifferentiableAt ℝ f x) (hg : DifferentiableAt ℝ g x) (i : Fin 2) : | |
| coordPartial (fun y=>f y-g y) i x=coordPartial f i x-coordPartial g i x := by | |
| unfold coordPartial | |
| rw [fderiv_fun_sub hf hg]; rfl | |
| lemma partial_mul_at {f g : Plane → ℝ} {x : Plane} | |
| (hf : DifferentiableAt ℝ f x) (hg : DifferentiableAt ℝ g x) (i : Fin 2) : | |
| coordPartial (fun y=>f y*g y) i x=coordPartial f i x*g x+f x*coordPartial g i x := by | |
| unfold coordPartial | |
| rw [fderiv_fun_mul hf hg]; simp; ring | |
| lemma smoothAt_partial {f : Plane → ℝ} {x : Plane} (hf : ContDiffAt ℝ ∞ f x) (i : Fin 2) : | |
| ContDiffAt ℝ ∞ (coordPartial f i) x := | |
| (hf.fderiv_right (by simp)).clm_apply contDiffAt_const | |
| lemma partial_partial_at {f : Plane → ℝ} {x : Plane} (hf : ContDiffAt ℝ ∞ f x) (i j : Fin 2) : | |
| coordPartial (coordPartial f i) j x=coordPartial (coordPartial f j) i x := by | |
| have hdf := (hf.fderiv_right (m:=∞) (by simp)).differentiableAt (by simp) | |
| have hh (a b : Fin 2) : coordPartial (coordPartial f a) b x= | |
| fderiv ℝ (fderiv ℝ f) x (EuclideanSpace.single b 1) (EuclideanSpace.single a 1) := by | |
| unfold coordPartial | |
| rw [fderiv_clm_apply hdf (differentiableAt_const _)]; simp | |
| rw [hh i j,hh j i] | |
| exact (hf.isSymmSndFDerivAt (by | |
| simp only [minSmoothness_of_isRCLikeNormedField] | |
| exact WithTop.coe_le_coe.mpr (le_top : (2 : ℕ∞) ≤ ⊤))).eq _ _ | |
| lemma partial_congr_nhds {f g : Plane → ℝ} {x : Plane} (h : f=ᶠ[𝓝 x]g) (i : Fin 2) : | |
| coordPartial f i x=coordPartial g i x := by unfold coordPartial; rw [h.fderiv_eq] | |
| lemma differentiableAt_coordMap {f g : Plane → ℝ} {x : Plane} | |
| (hf : DifferentiableAt ℝ f x) (hg : DifferentiableAt ℝ g x) : | |
| DifferentiableAt ℝ (coordMap f g) x := (hasFDerivAt_coordMap hf hg).differentiableAt | |
| lemma contDiffAt_coordMap {f g : Plane → ℝ} {x : Plane} | |
| (hf : ContDiffAt ℝ ∞ f x) (hg : ContDiffAt ℝ ∞ g x) : | |
| ContDiffAt ℝ ∞ (coordMap f g) x := (hf.smul contDiffAt_const).add (hg.smul contDiffAt_const) | |
| lemma partial_comp_coordMap {f g U : Plane → ℝ} {x : Plane} | |
| (hf : DifferentiableAt ℝ f x) (hg : DifferentiableAt ℝ g x) | |
| (hU : DifferentiableAt ℝ U (coordMap f g x)) (i : Fin 2) : | |
| coordPartial (fun y=>U (coordMap f g y)) i x= | |
| coordPartial U 0 (coordMap f g x)*coordPartial f i x+ | |
| coordPartial U 1 (coordMap f g x)*coordPartial g i x := by | |
| unfold coordPartial | |
| rw [fderiv_fun_comp x hU (differentiableAt_coordMap hf hg),(hasFDerivAt_coordMap hf hg).fderiv] | |
| simp only [ContinuousLinearMap.comp_apply,add_apply,ContinuousLinearMap.smulRight_apply, | |
| map_add,map_smul,smul_eq_mul] | |
| ring | |
| lemma piola_identity {f g p q : Plane → ℝ} {x : Plane} | |
| (hf : ContDiffAt ℝ ∞ f x) (hg : ContDiffAt ℝ ∞ g x) | |
| (hp : DifferentiableAt ℝ p (coordMap f g x)) | |
| (hq : DifferentiableAt ℝ q (coordMap f g x)) : | |
| coordPartial (fun y=>coordPartial g 1 y*p (coordMap f g y)-coordPartial f 1 y*q (coordMap f g y)) 0 x+ | |
| coordPartial (fun y=>coordPartial f 0 y*q (coordMap f g y)-coordPartial g 0 y*p (coordMap f g y)) 1 x= | |
| (coordPartial f 0 x*coordPartial g 1 x-coordPartial f 1 x*coordPartial g 0 x)* | |
| (coordPartial p 0 (coordMap f g x)+coordPartial q 1 (coordMap f g x)) := by | |
| have hfd:=hf.differentiableAt (by simp) | |
| have hgd:=hg.differentiableAt (by simp) | |
| have hF:=differentiableAt_coordMap hfd hgd | |
| have hpd : DifferentiableAt ℝ (fun y=>p (coordMap f g y)) x :=hp.comp x hF | |
| have hqd : DifferentiableAt ℝ (fun y=>q (coordMap f g y)) x :=hq.comp x hF | |
| have hfp i:=(smoothAt_partial hf i).differentiableAt (by simp) | |
| have hgp i:=(smoothAt_partial hg i).differentiableAt (by simp) | |
| rw [partial_sub_at ((hgp 1).fun_mul hpd) ((hfp 1).fun_mul hqd), | |
| partial_sub_at ((hfp 0).fun_mul hqd) ((hgp 0).fun_mul hpd), | |
| partial_mul_at (hgp 1) hpd,partial_mul_at (hfp 1) hqd, | |
| partial_mul_at (hfp 0) hqd,partial_mul_at (hgp 0) hpd] | |
| change _+_=(coordPartial f 0 x*coordPartial g 1 x-coordPartial f 1 x*coordPartial g 0 x)*_ | |
| rw [partial_comp_coordMap hfd hgd hp,partial_comp_coordMap hfd hgd hq, | |
| partial_comp_coordMap hfd hgd hq,partial_comp_coordMap hfd hgd hp, | |
| partial_partial_at hf 1 0,partial_partial_at hg 1 0] | |
| ring | |
| lemma conjugate_matrix_conformal (a b c r s : ℝ) (hdet : a*c-b^2=1) : | |
| let v:= -b*r-c*s | |
| let w:= a*r+b*s | |
| let d:=r*w-s*v | |
| a*r^2+2*b*r*s+c*s^2=d ∧ | |
| a*r*v+b*(r*w+s*v)+c*s*w=0 ∧ | |
| a*v^2+2*b*v*w+c*w^2=d := by | |
| dsimp | |
| constructor | |
| · ring | |
| constructor | |
| · ring | |
| · linear_combination (a*r^2+2*b*r*s+c*s^2)*hdet | |
| end SharpNodal.Geometry | |
| noncomputable section | |
| open scoped Matrix | |
| namespace SharpNodal.Geometry | |
| lemma density_flux_two (G : Matrix (Fin 2) (Fin 2) ℝ) (hG : G 1 0=G 0 1) | |
| (hdet : 0<G.det) (r s : ℝ) : | |
| let ρ:=Real.sqrt G.det | |
| ρ*((G⁻¹) 0 0*r+(G⁻¹) 0 1*s)=(G 1 1*r-G 0 1*s)/ρ ∧ | |
| ρ*((G⁻¹) 1 0*r+(G⁻¹) 1 1*s)=(G 0 0*s-G 0 1*r)/ρ := by | |
| dsimp | |
| have hρ:=Real.sqrt_pos.mpr hdet | |
| have hρ2:=Real.sq_sqrt hdet.le | |
| rw [Matrix.inv_def,Ring.inverse_eq_inv,Matrix.adjugate_fin_two] | |
| simp only [Matrix.smul_apply,Matrix.of_apply,Matrix.cons_val_zero,Matrix.cons_val_one, | |
| Matrix.cons_val_fin_one,smul_eq_mul,hG] | |
| constructor <;> field_simp [hdet.ne',hρ.ne'] <;> rw [hρ2] <;> ring | |
| lemma transform_metric_det (a b c α β γ δ : ℝ) : | |
| (a*α^2+2*b*α*γ+c*γ^2)*(a*β^2+2*b*β*δ+c*δ^2)- | |
| (a*α*β+b*(α*δ+β*γ)+c*γ*δ)^2=(α*δ-β*γ)^2*(a*c-b^2) := by ring | |
| lemma transform_metric_density {a b c α β γ δ : ℝ} (_h : 0≤a*c-b^2) : | |
| Real.sqrt ((a*α^2+2*b*α*γ+c*γ^2)*(a*β^2+2*b*β*δ+c*δ^2)- | |
| (a*α*β+b*(α*δ+β*γ)+c*γ*δ)^2)=|α*δ-β*γ| *Real.sqrt (a*c-b^2) := by | |
| rw [transform_metric_det,Real.sqrt_mul (sq_nonneg _),Real.sqrt_sq_eq_abs] | |
| lemma transform_metric_cofactor (a b c α β γ δ r s : ℝ) : | |
| let a':=a*α^2+2*b*α*γ+c*γ^2 | |
| let b':=a*α*β+b*(α*δ+β*γ)+c*γ*δ | |
| let c':=a*β^2+2*b*β*δ+c*δ^2 | |
| c'*(r*α+s*γ)-b'*(r*β+s*δ)=(α*δ-β*γ)*(δ*(c*r-b*s)-β*(a*s-b*r)) ∧ | |
| a'*(r*β+s*δ)-b'*(r*α+s*γ)=(α*δ-β*γ)*(α*(a*s-b*r)-γ*(c*r-b*s)) := by | |
| dsimp; constructor <;> ring | |
| lemma determinant_sign_sq {d : ℝ} (hd : d≠0) : (d/|d|)*d=|d| := by | |
| have ha : |d|≠0:=abs_ne_zero.mpr hd | |
| apply (mul_left_inj' ha).mp | |
| field_simp | |
| nlinarith only [sq_abs d] | |
| lemma transform_metric_flux {ρ d σ : ℝ} (hρ : ρ≠0) (hd : d≠0) (hσ : σ=1 ∨ σ= -1) | |
| (habs : |d|=σ*d) (P Q N₀ N₁ α β γ δ : ℝ) | |
| (hN₀ : N₀=d*(δ*P-β*Q)) (hN₁ : N₁=d*(α*Q-γ*P)) : | |
| N₀/(|d| *ρ)=σ*(δ*(P/ρ)-β*(Q/ρ)) ∧ | |
| N₁/(|d| *ρ)=σ*(α*(Q/ρ)-γ*(P/ρ)) := by | |
| rw [hN₀,hN₁,habs] | |
| rcases hσ with rfl|rfl <;> constructor <;> field_simp [hρ,hd] | |
| end SharpNodal.Geometry | |
| noncomputable section | |
| open scoped Topology ContDiff | |
| open Filter Set Metric | |
| namespace SharpNodal.Geometry | |
| open Carleman Profiles.Elliptic | |
| def scalarDensity (a b c : Plane → ℝ) (x : Plane) : ℝ := | |
| Real.sqrt (a x*c x-(b x)^2) | |
| def scalarFlux0 (a b c U : Plane → ℝ) (x : Plane) : ℝ := | |
| (c x*coordPartial U 0 x-b x*coordPartial U 1 x)/scalarDensity a b c x | |
| def scalarFlux1 (a b c U : Plane → ℝ) (x : Plane) : ℝ := | |
| (a x*coordPartial U 1 x-b x*coordPartial U 0 x)/scalarDensity a b c x | |
| def scalarLaplace (a b c U : Plane → ℝ) (x : Plane) : ℝ := | |
| (coordPartial (scalarFlux0 a b c U) 0 x+coordPartial (scalarFlux1 a b c U) 1 x)/ | |
| scalarDensity a b c x | |
| def transformA (a b c f g : Plane → ℝ) (x : Plane) : ℝ := | |
| a (coordMap f g x)*(coordPartial f 0 x)^2+ | |
| 2*b (coordMap f g x)*coordPartial f 0 x*coordPartial g 0 x+ | |
| c (coordMap f g x)*(coordPartial g 0 x)^2 | |
| def transformB (a b c f g : Plane → ℝ) (x : Plane) : ℝ := | |
| a (coordMap f g x)*coordPartial f 0 x*coordPartial f 1 x+ | |
| b (coordMap f g x)*(coordPartial f 0 x*coordPartial g 1 x+coordPartial f 1 x*coordPartial g 0 x)+ | |
| c (coordMap f g x)*coordPartial g 0 x*coordPartial g 1 x | |
| def transformC (a b c f g : Plane → ℝ) (x : Plane) : ℝ := | |
| a (coordMap f g x)*(coordPartial f 1 x)^2+ | |
| 2*b (coordMap f g x)*coordPartial f 1 x*coordPartial g 1 x+ | |
| c (coordMap f g x)*(coordPartial g 1 x)^2 | |
| def coordDet (f g : Plane → ℝ) (x : Plane) : ℝ := | |
| coordPartial f 0 x*coordPartial g 1 x-coordPartial f 1 x*coordPartial g 0 x | |
| lemma smoothAt_scalarDensity {a b c : Plane → ℝ} {x : Plane} | |
| (ha : ContDiffAt ℝ ∞ a x) (hb : ContDiffAt ℝ ∞ b x) (hc : ContDiffAt ℝ ∞ c x) | |
| (h : 0<a x*c x-(b x)^2) : ContDiffAt ℝ ∞ (scalarDensity a b c) x := | |
| ((ha.mul hc).sub (hb.pow 2)).sqrt h.ne' | |
| lemma smoothAt_scalarFlux {a b c U : Plane → ℝ} {x : Plane} | |
| (ha : ContDiffAt ℝ ∞ a x) (hb : ContDiffAt ℝ ∞ b x) (hc : ContDiffAt ℝ ∞ c x) | |
| (hU : ContDiffAt ℝ ∞ U x) (h : 0<a x*c x-(b x)^2) : | |
| ContDiffAt ℝ ∞ (scalarFlux0 a b c U) x ∧ ContDiffAt ℝ ∞ (scalarFlux1 a b c U) x := by | |
| have hρ:=smoothAt_scalarDensity ha hb hc h | |
| have hn : scalarDensity a b c x≠0:=(Real.sqrt_pos.mpr h).ne' | |
| exact ⟨((hc.mul (smoothAt_partial hU 0)).sub (hb.mul (smoothAt_partial hU 1))).div hρ hn, | |
| ((ha.mul (smoothAt_partial hU 1)).sub (hb.mul (smoothAt_partial hU 0))).div hρ hn⟩ | |
| lemma transform_scalarDensity {a b c f g : Plane → ℝ} {x : Plane} | |
| (h : 0≤a (coordMap f g x)*c (coordMap f g x)-(b (coordMap f g x))^2) : | |
| scalarDensity (transformA a b c f g) (transformB a b c f g) (transformC a b c f g) x= | |
| |coordDet f g x| *scalarDensity a b c (coordMap f g x) := | |
| transform_metric_density h | |
| lemma transform_scalarFlux {a b c f g U : Plane → ℝ} {x : Plane} {σ : ℝ} | |
| (hf : DifferentiableAt ℝ f x) (hg : DifferentiableAt ℝ g x) | |
| (hU : DifferentiableAt ℝ U (coordMap f g x)) | |
| (hp : 0<a (coordMap f g x)*c (coordMap f g x)-(b (coordMap f g x))^2) | |
| (hd : coordDet f g x≠0) (hσ : σ=1 ∨ σ= -1) (habs : |coordDet f g x|=σ*coordDet f g x) : | |
| scalarFlux0 (transformA a b c f g) (transformB a b c f g) (transformC a b c f g) | |
| (fun y=>U (coordMap f g y)) x= | |
| σ*(coordPartial g 1 x*scalarFlux0 a b c U (coordMap f g x)- | |
| coordPartial f 1 x*scalarFlux1 a b c U (coordMap f g x)) ∧ | |
| scalarFlux1 (transformA a b c f g) (transformB a b c f g) (transformC a b c f g) | |
| (fun y=>U (coordMap f g y)) x= | |
| σ*(coordPartial f 0 x*scalarFlux1 a b c U (coordMap f g x)- | |
| coordPartial g 0 x*scalarFlux0 a b c U (coordMap f g x)) := by | |
| unfold scalarFlux0 scalarFlux1 | |
| rw [transform_scalarDensity hp.le,partial_comp_coordMap hf hg hU 0, | |
| partial_comp_coordMap hf hg hU 1] | |
| apply transform_metric_flux (Real.sqrt_pos.mpr hp).ne' hd hσ habs | |
| · exact (transform_metric_cofactor _ _ _ _ _ _ _ _ _).1 | |
| · exact (transform_metric_cofactor _ _ _ _ _ _ _ _ _).2 | |
| lemma continuousAt_abs_sign {d : Plane → ℝ} {x : Plane} (hc : ContinuousAt d x) (hd : d x≠0) : | |
| ∃σ : ℝ, (σ=1 ∨ σ= -1) ∧ ∀ᶠy in 𝓝 x, d y≠0 ∧ |d y|=σ*d y := by | |
| rcases hd.lt_or_gt with hn|hp | |
| · refine ⟨-1,Or.inr rfl,?_⟩ | |
| filter_upwards [hc.eventually (gt_mem_nhds hn)] with y hy | |
| exact ⟨hy.ne,by rw [abs_of_neg hy]; ring⟩ | |
| · refine ⟨1,Or.inl rfl,?_⟩ | |
| filter_upwards [hc.eventually (lt_mem_nhds hp)] with y hy | |
| exact ⟨hy.ne',by rw [abs_of_pos hy,one_mul]⟩ | |
| lemma scalarLaplace_covariant {a b c U f g : Plane → ℝ} {x : Plane} | |
| (ha : ContDiffAt ℝ ∞ a (coordMap f g x)) (hb : ContDiffAt ℝ ∞ b (coordMap f g x)) | |
| (hc : ContDiffAt ℝ ∞ c (coordMap f g x)) (hU : ContDiffAt ℝ ∞ U (coordMap f g x)) | |
| (hf : ContDiffAt ℝ ∞ f x) (hg : ContDiffAt ℝ ∞ g x) | |
| (hp : 0<a (coordMap f g x)*c (coordMap f g x)-(b (coordMap f g x))^2) | |
| (hd : coordDet f g x≠0) : | |
| scalarLaplace (transformA a b c f g) (transformB a b c f g) (transformC a b c f g) | |
| (fun y=>U (coordMap f g y)) x=scalarLaplace a b c U (coordMap f g x) := by | |
| have hF:=contDiffAt_coordMap hf hg | |
| have hdC : ContinuousAt (coordDet f g) x:= | |
| (((smoothAt_partial hf 0).mul (smoothAt_partial hg 1)).sub | |
| ((smoothAt_partial hf 1).mul (smoothAt_partial hg 0))).continuousAt | |
| obtain ⟨σ,hσ,hs⟩:=continuousAt_abs_sign hdC hd | |
| have hpos : ∀ᶠy in 𝓝 x, 0<a (coordMap f g y)*c (coordMap f g y)-(b (coordMap f g y))^2 := | |
| ((((ha.mul hc).sub (hb.pow 2)).comp x hF).continuousAt).eventually (lt_mem_nhds hp) | |
| have hfn:=(hf.of_le (show (1 : WithTop ℕ∞)≤(∞ : WithTop ℕ∞) by simp)).eventually (by simp) | |
| have hgn:=(hg.of_le (show (1 : WithTop ℕ∞)≤(∞ : WithTop ℕ∞) by simp)).eventually (by simp) | |
| have hun:=(hU.of_le (show (1 : WithTop ℕ∞)≤(∞ : WithTop ℕ∞) by simp)).eventually (by simp) | |
| have huF : ∀ᶠ y in 𝓝 x, ContDiffAt ℝ 1 U (coordMap f g y):=hF.continuousAt hun | |
| have he : ∀ᶠy in 𝓝 x, | |
| scalarFlux0 (transformA a b c f g) (transformB a b c f g) (transformC a b c f g) | |
| (fun z=>U (coordMap f g z)) y= | |
| σ*(coordPartial g 1 y*scalarFlux0 a b c U (coordMap f g y)- | |
| coordPartial f 1 y*scalarFlux1 a b c U (coordMap f g y)) ∧ | |
| scalarFlux1 (transformA a b c f g) (transformB a b c f g) (transformC a b c f g) | |
| (fun z=>U (coordMap f g z)) y= | |
| σ*(coordPartial f 0 y*scalarFlux1 a b c U (coordMap f g y)- | |
| coordPartial g 0 y*scalarFlux0 a b c U (coordMap f g y)) := by | |
| filter_upwards [hfn,hgn,huF,hpos,hs] with y hyf hyg hyU hyp hys | |
| exact transform_scalarFlux (hyf.differentiableAt (by simp)) (hyg.differentiableAt (by simp)) | |
| (hyU.differentiableAt (by simp)) hyp hys.1 hσ hys.2 | |
| have hfl:=smoothAt_scalarFlux ha hb hc hU hp | |
| have hpD:=hfl.1.differentiableAt (by simp) | |
| have hqD:=hfl.2.differentiableAt (by simp) | |
| have hFdiff:=hF.differentiableAt (by simp) | |
| have hterm0 : DifferentiableAt ℝ (fun y=>coordPartial g 1 y*scalarFlux0 a b c U (coordMap f g y)- | |
| coordPartial f 1 y*scalarFlux1 a b c U (coordMap f g y)) x:= | |
| (((smoothAt_partial hg 1).differentiableAt (by simp)).mul (hpD.comp x hFdiff)).sub | |
| (((smoothAt_partial hf 1).differentiableAt (by simp)).mul (hqD.comp x hFdiff)) | |
| have hterm1 : DifferentiableAt ℝ (fun y=>coordPartial f 0 y*scalarFlux1 a b c U (coordMap f g y)- | |
| coordPartial g 0 y*scalarFlux0 a b c U (coordMap f g y)) x:= | |
| (((smoothAt_partial hf 0).differentiableAt (by simp)).mul (hqD.comp x hFdiff)).sub | |
| (((smoothAt_partial hg 0).differentiableAt (by simp)).mul (hpD.comp x hFdiff)) | |
| unfold scalarLaplace | |
| rw [partial_congr_nhds (he.mono fun _ hy=>hy.1) 0, | |
| partial_congr_nhds (he.mono fun _ hy=>hy.2) 1, | |
| partial_mul_at (differentiableAt_const σ) hterm0, | |
| partial_mul_at (differentiableAt_const σ) hterm1] | |
| have hz (i : Fin 2) : coordPartial (fun _ : Plane=>σ) i x=0:=by simp [coordPartial] | |
| rw [hz,hz,zero_mul,zero_mul,zero_add,zero_add,← mul_add, | |
| piola_identity hf hg hpD hqD,transform_scalarDensity hp.le] | |
| have hxsign:=Filter.Eventually.self_of_nhds hs | |
| rw [hxsign.2] | |
| have hsn : σ≠0:=by rcases hσ with rfl|rfl <;> norm_num | |
| change σ*(coordDet f g x*_)/(σ*coordDet f g x*scalarDensity a b c (coordMap f g x))=_ | |
| field_simp [hsn,hd,(Real.sqrt_pos.mpr hp).ne'] | |
| end SharpNodal.Geometry | |
| end | |
| end | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 25.8 kB
- Xet hash:
- 7ef71d5942e2b9c8d73b3a837bd307ba0c856b5e66eb6b12440fa331eed9a5dd
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.