Download data/lean/OAI/Analysis/Calculus/Current/RegularizedDivergence.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 9.65 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/Current/RegularizedDivergence.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Calculus/Current/RegularizedDivergence.lean
-
curl -L -o RegularizedDivergence.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/Current/RegularizedDivergence.lean
9.65 kB
| import OAI.Analysis.Calculus.Current.AverageCompact | |
| /-! Conservation of the actual compactly averaged, cut off, regularized current. -/ | |
| noncomputable section | |
| namespace OAI.Analysis.Calculus.Current | |
| open _root_.MeasureTheory OAI.Analysis.Calculus.Quaternion | |
| open scoped Matrix Matrix.Norms.Elementwise Topology ContDiff | |
| private theorem fderiv_snd_value {E F G : Type*} | |
| [NormedAddCommGroup E] [NormedSpace β E] | |
| [NormedAddCommGroup F] [NormedSpace β F] | |
| [NormedAddCommGroup G] [NormedSpace β G] | |
| {f : F β G} (q : E Γ F) (hf : DifferentiableAt β f q.2) : | |
| fderiv β (fun y : E Γ F => f y.2) q = | |
| (fderiv β f q.2).comp (ContinuousLinearMap.snd β E F) := by | |
| simpa only using! (hf.hasFDerivAt.comp q (ContinuousLinearMap.snd β E F).hasFDerivAt).fderiv | |
| private theorem differentiableAt_add_smul_value {E F : Type*} | |
| [NormedAddCommGroup E] [NormedSpace β E] | |
| [NormedAddCommGroup F] [NormedSpace β F] | |
| {f g : E β F} {q : E} (hf : DifferentiableAt β f q) | |
| (hg : DifferentiableAt β g q) (c : β) : | |
| DifferentiableAt β (fun y => f y + c β’ g y) q := | |
| hf.add (hg.const_smul c) | |
| private theorem fderiv_add_smul_value {E F : Type*} | |
| [NormedAddCommGroup E] [NormedSpace β E] | |
| [NormedAddCommGroup F] [NormedSpace β F] | |
| {f g : E β F} {q : E} (hf : DifferentiableAt β f q) | |
| (hg : DifferentiableAt β g q) (c : β) (v : E) : | |
| fderiv β (fun y => f y + c β’ g y) q v = | |
| fderiv β f q v + c β’ fderiv β g q v := by | |
| simpa only [add_apply, smul_apply] using! | |
| congrArg (fun L => L v) (hf.hasFDerivAt.add (hg.hasFDerivAt.const_smul c)).fderiv | |
| variable {d : β} {ΞΉ Ξ± : Type*} [Fintype ΞΉ] | |
| local instance : NormedAddCommGroup (Matrix (Index d) (Index d) OAI.Analysis.Calculus.Quaternion.Q) := | |
| inferInstanceAs (NormedAddCommGroup (Index d β Index d β OAI.Analysis.Calculus.Quaternion.Q)) | |
| local instance : NormedSpace β (Matrix (Index d) (Index d) OAI.Analysis.Calculus.Quaternion.Q) := | |
| inferInstanceAs (NormedSpace β (Index d β Index d β OAI.Analysis.Calculus.Quaternion.Q)) | |
| local instance : ContinuousSMul β (Matrix (Index d) (Index d) OAI.Analysis.Calculus.Quaternion.Q) := | |
| inferInstanceAs (ContinuousSMul β (Index d β Index d β OAI.Analysis.Calculus.Quaternion.Q)) | |
| local instance : ContinuousConstSMul β (Matrix (Index d) (Index d) OAI.Analysis.Calculus.Quaternion.Q) := | |
| inferInstanceAs (ContinuousConstSMul β (Index d β Index d β OAI.Analysis.Calculus.Quaternion.Q)) | |
| theorem differentiableAt_cutoffCurrent (g : β β β) (a : β) | |
| (A : (Index d β β) β (Index d β β) β Matrix (Index d) (Index d) OAI.Analysis.Calculus.Quaternion.Q) | |
| (q : CurrentSpace d) (hq : q β currentNonzeroDomain d) | |
| (hg : DifferentiableAt β g (phi q.2 / (a : β))) | |
| (hA : DifferentiableAt β (fun y : CurrentSpace d => A y.1 y.2) q) : | |
| DifferentiableAt β (fun y : CurrentSpace d => cutoffCurrent g a A y.1 y.2) q := by | |
| have hΟ := (differentiableAt_phi q.2 hq).restrictScalars β | |
| have hscale : DifferentiableAt β (fun z : β => z / (a : β)) (phi q.2) := by fun_prop | |
| have hgs : DifferentiableAt β (fun z : Index d β β => g (phi z / (a : β))) q.2 := | |
| hg.comp q.2 (hscale.comp q.2 hΟ) | |
| exact (hgs.comp q differentiableAt_snd).smul hA | |
| theorem differentiableAt_fiberCofactor_field (w a : β) (q : CurrentSpace d) | |
| (hq : q β currentNonzeroDomain d) : | |
| DifferentiableAt β (fun y : CurrentSpace d => fiberCofactor w a y.2) q := | |
| ((contDiffAt_fiberCofactor w a q.2 hq).differentiableAt (by simp)).comp q | |
| differentiableAt_snd | |
| theorem fiberCofactor_field_divergence_zero (w a : β) (q : CurrentSpace d) | |
| (hq : q β currentNonzeroDomain d) (b : Index d) : | |
| OAI.Analysis.Calculus.Quaternion.strongDivergence OAI.Analysis.Calculus.Quaternion.threeSlots (fun p => | |
| fderiv β (fun y : CurrentSpace d => fiberCofactor w a y.2) q | |
| (currentDirection p)) b = 0 := by | |
| have hC := (contDiffAt_fiberCofactor w a q.2 hq).differentiableAt (by simp) | |
| change DifferentiableAt β (fun z : Index d β β => | |
| (fiberCofactor w a z : Index d β Index d β OAI.Analysis.Calculus.Quaternion.Q)) q.2 at hC | |
| have hF : fderiv β (fun y : CurrentSpace d => fiberCofactor w a y.2) q = | |
| (fderiv β (fiberCofactor w a) q.2).comp | |
| (ContinuousLinearMap.snd β (Index d β β) (Index d β β)) := by | |
| simpa only using! fderiv_snd_value q hC | |
| simp only [hF, ContinuousLinearMap.comp_apply] | |
| change OAI.Analysis.Calculus.Quaternion.strongDivergence OAI.Analysis.Calculus.Quaternion.threeSlots (fun p => | |
| fderiv β (fiberCofactor w a) q.2 ((currentDirection p).2)) b = 0 | |
| simp only [currentDirection_snd] | |
| exact fiberCofactor_divergence_zero w a q.2 hq b | |
| section Compact | |
| variable [TopologicalSpace Ξ±] [CompactSpace Ξ±] [T2Space Ξ±] [SecondCountableTopology Ξ±] | |
| [MeasurableSpace Ξ±] [BorelSpace Ξ±] (ΞΌ : Measure Ξ±) [IsFiniteMeasure ΞΌ] | |
| theorem cutoff_averagedWaveCurrent_divergence_zero (shift : Ξ± β Index d β β) | |
| (hshift : Continuous shift) (g : β β β) (a : β) | |
| (ΞΊ cR cI : ΞΉ β β) (v : ΞΉ β Fin d β β) (q : CurrentSpace d) | |
| (hq : q β currentNonzeroDomain d) | |
| (hg : DifferentiableAt β g (phi q.2 / (a : β))) (b : Index d) : | |
| OAI.Analysis.Calculus.Quaternion.strongDivergence OAI.Analysis.Calculus.Quaternion.threeSlots (fun p => fderiv β | |
| (fun y : CurrentSpace d => | |
| cutoffCurrent g a (averagedWaveCurrent ΞΌ shift ΞΊ cR cI v) y.1 y.2) q | |
| (currentDirection p)) b = 0 := by | |
| have hA := differentiableAt_averagedWaveCurrent ΞΌ shift hshift ΞΊ cR cI v q hq | |
| have hcut := differentiableAt_cutoffCurrent g a _ q hq hg hA | |
| have hdiv : β b, OAI.Analysis.Calculus.Quaternion.strongDivergence OAI.Analysis.Calculus.Quaternion.threeSlots | |
| (threeSlotMatrixDerivative (averagedWaveCurrent ΞΌ shift ΞΊ cR cI v) q.1 q.2) b = 0 := by | |
| intro j | |
| simpa only [fderiv_currentDirection hA] using | |
| averagedWaveCurrent_divergence_zero ΞΌ shift hshift ΞΊ cR cI v q hq j | |
| have htan : β b, β c, complexK (phaseRow (ratio q.2) c) * | |
| averagedWaveCurrent ΞΌ shift ΞΊ cR cI v q.1 q.2 c b = 0 := by | |
| intro j | |
| simpa only [Matrix.mulVec_single_one, Matrix.col_apply] using | |
| averagedWaveCurrent_tangent ΞΌ shift ΞΊ cR cI v q.1 q.2 | |
| (integrable_waveCurrent_translate ΞΌ shift hshift ΞΊ cR cI v q.1 q.2 hq) | |
| (Pi.single j 1) | |
| simpa only [fderiv_currentDirection hcut] using | |
| cutoffCurrent_divergence_zero g a hq hg hA htan hdiv b | |
| theorem differentiableAt_regularizedCurrent (shift : Ξ± β Index d β β) | |
| (hshift : Continuous shift) (h a : β) (ΞΊ cR cI : ΞΉ β β) | |
| (v : ΞΉ β Fin d β β) (q : CurrentSpace d) (hq : q β currentNonzeroDomain d) : | |
| DifferentiableAt β | |
| (fun y : CurrentSpace d => regularizedCurrent ΞΌ shift h a ΞΊ cR cI v y.1 y.2) q := by | |
| have hA := differentiableAt_averagedWaveCurrent ΞΌ shift hshift ΞΊ cR cI v q hq | |
| have hg := phaseCutoff_contDiff.differentiable (by simp) (phi q.2 / (a : β)) | |
| have hC := differentiableAt_fiberCofactor_field (1 / 10) a q hq | |
| change DifferentiableAt β (fun y : CurrentSpace d => | |
| (fiberCofactor (1 / 10) a y.2 : Index d β Index d β OAI.Analysis.Calculus.Quaternion.Q)) q at hC | |
| simpa only using! differentiableAt_add_smul_value | |
| (differentiableAt_cutoffCurrent phaseCutoff a _ q hq hg hA) hC (h ^ (50 * (d + 1))) | |
| /-- The divergence vanishes for the defined regularized current, with no | |
| conservation, tangency, or differentiation-under-integral premise. -/ | |
| theorem regularizedCurrent_divergence_zero (shift : Ξ± β Index d β β) | |
| (hshift : Continuous shift) (h a : β) (ΞΊ cR cI : ΞΉ β β) | |
| (v : ΞΉ β Fin d β β) (q : CurrentSpace d) (hq : q β currentNonzeroDomain d) | |
| (b : Index d) : | |
| OAI.Analysis.Calculus.Quaternion.strongDivergence OAI.Analysis.Calculus.Quaternion.threeSlots (fun p => fderiv β | |
| (fun y : CurrentSpace d => regularizedCurrent ΞΌ shift h a ΞΊ cR cI v y.1 y.2) q | |
| (currentDirection p)) b = 0 := by | |
| have hA := differentiableAt_averagedWaveCurrent ΞΌ shift hshift ΞΊ cR cI v q hq | |
| have hg := phaseCutoff_contDiff.differentiable (by simp) (phi q.2 / (a : β)) | |
| have hcut := differentiableAt_cutoffCurrent phaseCutoff a _ q hq hg hA | |
| have hC := differentiableAt_fiberCofactor_field (1 / 10) a q hq | |
| change DifferentiableAt β (fun y : CurrentSpace d => | |
| (fiberCofactor (1 / 10) a y.2 : Index d β Index d β OAI.Analysis.Calculus.Quaternion.Q)) q at hC | |
| change DifferentiableAt β (fun y : CurrentSpace d => | |
| (cutoffCurrent phaseCutoff a (averagedWaveCurrent ΞΌ shift ΞΊ cR cI v) y.1 y.2 : | |
| Index d β Index d β OAI.Analysis.Calculus.Quaternion.Q)) q at hcut | |
| have hF (p : Index d Γ Fin 3) : fderiv β | |
| (fun y : CurrentSpace d => regularizedCurrent ΞΌ shift h a ΞΊ cR cI v y.1 y.2) q | |
| (currentDirection p) = | |
| fderiv β (fun y : CurrentSpace d => cutoffCurrent phaseCutoff a | |
| (averagedWaveCurrent ΞΌ shift ΞΊ cR cI v) y.1 y.2) q (currentDirection p) + | |
| h ^ (50 * (d + 1)) β’ fderiv β | |
| (fun y : CurrentSpace d => fiberCofactor (1 / 10) a y.2) q (currentDirection p) := by | |
| simpa only using! fderiv_add_smul_value hcut hC (h ^ (50 * (d + 1))) (currentDirection p) | |
| simp only [hF, OAI.Analysis.Calculus.Quaternion.strongDivergence_add, OAI.Analysis.Calculus.Quaternion.strongDivergence_smul, cutoff_averagedWaveCurrent_divergence_zero ΞΌ shift hshift phaseCutoff a ΞΊ cR cI v q hq hg b, fiberCofactor_field_divergence_zero (1 / 10) a q hq b, smul_zero, add_zero] | |
| end Compact | |
| end OAI.Analysis.Calculus.Current | |