Download data/lean/OAI/LinearAlgebra/MixedDiscriminant/GreenCurrent.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.34 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/LinearAlgebra/MixedDiscriminant/GreenCurrent.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/LinearAlgebra/MixedDiscriminant/GreenCurrent.lean
-
curl -L -o GreenCurrent.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/LinearAlgebra/MixedDiscriminant/GreenCurrent.lean
5.34 kB
| import OAI.LinearAlgebra.MixedDiscriminant.GreenLinear | |
| noncomputable section | |
| open Set Matrix _root_.MeasureTheory | |
| open scoped Matrix.Norms.Elementwise ComplexOrder MatrixOrder | |
| namespace OAI.LinearAlgebra.MixedDiscriminant | |
| open OAI.Analysis.Calculus.Quaternion OAI.Analysis.PDE.Dirichlet OAI.LinearAlgebra.Moore OAI.Analysis.PDE.Green | |
| /-- The energy identity is linear in the conserved current. In particular, | |
| it applies to the finite polarization of a Hessian cofactor. -/ | |
| theorem current_energy_bounded {n s : β} (e : Fin s β Quaternion β) | |
| {S : Set (OAI.Analysis.PDE.Dirichlet.CoordinateSpace n s)} (hS : IsOpen S) (hb : Bornology.IsBounded S) | |
| (hnull : volume (frontier S) = 0) | |
| {A : OAI.Analysis.PDE.Dirichlet.CoordinateSpace n s β Matrix (Fin n) (Fin n) (Quaternion β)} | |
| (hA : ContDiff β 1 A) | |
| (hdiv : β x b, OAI.Analysis.Calculus.Quaternion.strongDivergence e | |
| (fun p => fderiv β A x (OAI.Analysis.PDE.Dirichlet.coordinateVector p)) b = 0) | |
| {u : OAI.Analysis.PDE.Dirichlet.CoordinateSpace n s β β} (hu : ContDiff β 2 u) | |
| (hz : β x β frontier S, u x = 0) : | |
| (β« x in S, (-u x) * OAI.LinearAlgebra.Moore.realTrace (A x * OAI.Analysis.PDE.Dirichlet.quaternionHessian e u x)) = | |
| β« x in S, (OAI.Analysis.PDE.Dirichlet.quaternionForm (A x) (OAI.Analysis.PDE.Dirichlet.quaternionGradient e u x)).re := by | |
| have h := OAI.Analysis.PDE.Green.quaternion_current_green_bounded e hS hb hnull hA hdiv | |
| (hu.of_le (by norm_num)) hu hz | |
| have he (x : OAI.Analysis.PDE.Dirichlet.CoordinateSpace n s) : | |
| (β p, β q, OAI.Analysis.Calculus.Quaternion.realCoefficients e (A x) p q * | |
| OAI.Analysis.PDE.Dirichlet.realGradient u x p * OAI.Analysis.PDE.Dirichlet.realGradient u x q) = | |
| (OAI.Analysis.PDE.Dirichlet.quaternionForm (A x) (OAI.Analysis.PDE.Dirichlet.quaternionGradient e u x)).re := by | |
| simp_rw [mul_assoc] | |
| exact OAI.Analysis.PDE.Green.realCoefficients_quadratic _ e (OAI.Analysis.PDE.Dirichlet.realGradient u x) | |
| simp_rw [he] at h | |
| simp_rw [neg_mul] | |
| rw [integral_neg,h,neg_neg] | |
| theorem current_energy_bounded_nonneg {n s : β} (e : Fin s β Quaternion β) | |
| {S : Set (OAI.Analysis.PDE.Dirichlet.CoordinateSpace n s)} (hS : IsOpen S) (hb : Bornology.IsBounded S) | |
| (hnull : volume (frontier S) = 0) | |
| {A : OAI.Analysis.PDE.Dirichlet.CoordinateSpace n s β Matrix (Fin n) (Fin n) (Quaternion β)} | |
| (hA : ContDiff β 1 A) | |
| (hdiv : β x b, OAI.Analysis.Calculus.Quaternion.strongDivergence e | |
| (fun p => fderiv β A x (OAI.Analysis.PDE.Dirichlet.coordinateVector p)) b = 0) | |
| {u : OAI.Analysis.PDE.Dirichlet.CoordinateSpace n s β β} (hu : ContDiff β 2 u) | |
| (hz : β x β frontier S, u x = 0) | |
| (hherm : β x β S, (A x).IsHermitian) | |
| (hpos : β x β S, (OAI.LinearAlgebra.Moore.complexify (A x)).PosSemidef) : | |
| 0 β€ β« x in S, (-u x) * OAI.LinearAlgebra.Moore.realTrace (A x * OAI.Analysis.PDE.Dirichlet.quaternionHessian e u x) := by | |
| rw [current_energy_bounded e hS hb hnull hA hdiv hu hz] | |
| apply setIntegral_nonneg hS.measurableSet | |
| intro x hx | |
| exact (OAI.LinearAlgebra.Moore.complexify_posSemidef_iff (hherm x hx)).mp (hpos x hx) _ | |
| theorem current_energy_cell {n s m : β} (e : Fin s β Quaternion β) | |
| (c : (Fin n Γ Fin s) β Fin (m + 1)) (a b : Fin (m + 1) β β) (hab : a β€ b) | |
| {A : OAI.Analysis.PDE.Dirichlet.CoordinateSpace n s β Matrix (Fin n) (Fin n) (Quaternion β)} | |
| (hA : ContDiff β 1 A) | |
| (hdiv : β x j, OAI.Analysis.Calculus.Quaternion.strongDivergence e | |
| (fun p => fderiv β A x (OAI.Analysis.PDE.Dirichlet.coordinateVector p)) j = 0) | |
| {r u : OAI.Analysis.PDE.Dirichlet.CoordinateSpace n s β β} (hu : ContDiff β 2 u) (hr : ContDiff β 2 r) | |
| (hrne : β x β OAI.Analysis.PDE.Green.euclideanCoordinates c β»ΒΉ' Icc a b, r x = 0 β fderiv β r x β 0) | |
| (hz : β x, r x = 0 β u x = 0) | |
| (hface : OAI.Analysis.PDE.Green.CompatibleCellFaces c a b r (fun p x => u x * | |
| OAI.Analysis.PDE.Green.realFlux OAI.Analysis.PDE.Dirichlet.coordinateVector (fun p q x => OAI.Analysis.Calculus.Quaternion.realCoefficients e (A x) p q) u p x)) : | |
| (β« x in (OAI.Analysis.PDE.Green.euclideanCoordinates c β»ΒΉ' Icc a b) β© {x | r x < 0}, | |
| (-u x) * OAI.LinearAlgebra.Moore.realTrace (A x * OAI.Analysis.PDE.Dirichlet.quaternionHessian e u x)) = | |
| β« x in (OAI.Analysis.PDE.Green.euclideanCoordinates c β»ΒΉ' Icc a b) β© {x | r x < 0}, | |
| (OAI.Analysis.PDE.Dirichlet.quaternionForm (A x) (OAI.Analysis.PDE.Dirichlet.quaternionGradient e u x)).re := by | |
| have h := OAI.Analysis.PDE.Green.quaternion_current_first_green_cell e c a b hab hA hdiv | |
| (hu.of_le (by norm_num)) hu hr hrne hz hface | |
| have he (x : OAI.Analysis.PDE.Dirichlet.CoordinateSpace n s) : | |
| (β p, β q, OAI.Analysis.Calculus.Quaternion.realCoefficients e (A x) p q * | |
| OAI.Analysis.PDE.Dirichlet.realGradient u x p * OAI.Analysis.PDE.Dirichlet.realGradient u x q) = | |
| (OAI.Analysis.PDE.Dirichlet.quaternionForm (A x) (OAI.Analysis.PDE.Dirichlet.quaternionGradient e u x)).re := by | |
| simp_rw [mul_assoc] | |
| exact OAI.Analysis.PDE.Green.realCoefficients_quadratic _ e (OAI.Analysis.PDE.Dirichlet.realGradient u x) | |
| simp_rw [he] at h | |
| simp_rw [neg_mul] | |
| rw [integral_neg,h,neg_neg] | |
| end OAI.LinearAlgebra.MixedDiscriminant | |