Download data/lean/OAI/Analysis/Conductivity/Variational/CompactSymmetricMoments.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.76 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Conductivity/Variational/CompactSymmetricMoments.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Conductivity/Variational/CompactSymmetricMoments.lean
-
curl -L -o CompactSymmetricMoments.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Conductivity/Variational/CompactSymmetricMoments.lean
2.76 kB
| import Mathlib | |
| import OAI.Analysis.Conductivity.Variational.SynchronizedChartWaves | |
| namespace OAI | |
| noncomputable section | |
| namespace ScalarConductivity | |
| open Set MeasureTheory Matrix | |
| open scoped Matrix.Norms.Elementwise | |
| lemma potential_component_fderiv {u : Coord3 β Fin 2 β β} | |
| (hu : Differentiable β u) (j : Fin 2) (x v : Coord3) : | |
| fderiv β (fun y => u y j) x v=fderiv β u x v j := by | |
| rw [(hasFDerivAt_pi'.mp (hu x).hasFDerivAt j).fderiv] | |
| rfl | |
| lemma symmetric_potential_pairing (D : Coord3 βL[β] (Fin 2 β β)) | |
| (B : Mat3) (hB : B.IsSymm) : | |
| D ((B*gradientColumns D).col 0) 1=D ((B*gradientColumns D).col 1) 0 := by | |
| rw [gradientColumns_pairing,gradientColumns_pairing] | |
| have hs : ((gradientColumns D)α΅*(B*gradientColumns D)).IsSymm := by | |
| unfold Matrix.IsSymm | |
| rw [transpose_mul,transpose_mul,transpose_transpose,hB] | |
| exact Matrix.mul_assoc _ _ _ | |
| exact congrArg (fun M : Matrix (Fin 2) (Fin 2) β => M 0 1) hs | |
| theorem compact_symmetric_source_moments | |
| (u : Coord3 β Fin 2 β β) (hu : ContDiff β (β(β€ : ββ)) u) | |
| (H : Coord3 β Mat3) (hH : β x,(H x).IsSymm) | |
| (r : Fin 2 β Coord3 β β) | |
| (hr : β j,ContDiff β (β(β€ : ββ)) (r j)) | |
| (hsr : β j,HasCompactSupport (r j)) | |
| (hw : β j (Ο : Coord3 β β),ContDiff β (β(β€ : ββ)) Ο β | |
| (β« x,fderiv β Ο x ((H x*gradientColumns (fderiv β u x)).col j))= | |
| -(β« x,Ο x*r j x)) : | |
| (β« x,r 0 x)=0 β§ (β« x,r 1 x)=0 β§ | |
| (β« x,u x 1*r 0 x-u x 0*r 1 x)=0 := by | |
| have hz (j : Fin 2) : (β« x,r j x)=0 := by | |
| have hh := hw j (fun _ => 1) contDiff_const | |
| simpa using hh | |
| have huj (j : Fin 2) : ContDiff β (β(β€ : ββ)) (fun x => u x j) := | |
| (contDiff_pi.mp hu) j | |
| have he : (β« x,u x 1*r 0 x)=(β« x,u x 0*r 1 x) := by | |
| have hwβ := hw 0 (fun x => u x 1) (huj 1) | |
| have hwβ := hw 1 (fun x => u x 0) (huj 0) | |
| have hp : (fun x => fderiv β (fun y => u y 1) x ((H x*gradientColumns (fderiv β u x)).col 0))= | |
| (fun x => fderiv β (fun y => u y 0) x ((H x*gradientColumns (fderiv β u x)).col 1)) := by | |
| funext x | |
| rw [potential_component_fderiv (hu.differentiable (by simp)), | |
| potential_component_fderiv (hu.differentiable (by simp))] | |
| exact symmetric_potential_pairing _ _ (hH x) | |
| rw [hp] at hwβ | |
| linarith | |
| refine β¨hz 0,hz 1,?_β© | |
| have hiβ : Integrable (fun x => u x 1*r 0 x) := | |
| ((huj 1).continuous.mul (hr 0).continuous).integrable_of_hasCompactSupport (hsr 0).mul_left | |
| have hiβ : Integrable (fun x => u x 0*r 1 x) := | |
| ((huj 0).continuous.mul (hr 1).continuous).integrable_of_hasCompactSupport (hsr 1).mul_left | |
| rw [integral_sub hiβ hiβ,he,sub_self] | |
| end ScalarConductivity | |
| end | |
| end OAI | |