Download data/lean/OAI/Analysis/Conductivity/Flux/LocalizedTwoFlux.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.2 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Conductivity/Flux/LocalizedTwoFlux.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Conductivity/Flux/LocalizedTwoFlux.lean
-
curl -L -o LocalizedTwoFlux.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Conductivity/Flux/LocalizedTwoFlux.lean
5.2 kB
| import Mathlib | |
| import OAI.Analysis.Conductivity.Flux.TwoFluxDivergence | |
| import OAI.Analysis.Conductivity.Variational.LocalizedFirstPotential | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory | |
| open scoped ENNReal | |
| namespace ScalarConductivity | |
| open Filter Topology | |
| theorem uniform_zero_const_mul {X I : Type*} {l : Filter I} | |
| {f : I β X β β} (c : β) (hf : TendstoUniformly f (fun _ => 0) l) : | |
| TendstoUniformly (fun i x => c * f i x) (fun _ => 0) l := by | |
| simpa [Function.comp_def] using | |
| (uniformContinuous_const_smul (X := β) c).comp_tendstoUniformly hf | |
| theorem uniform_zero_add {X I : Type*} {l : Filter I} {f g : I β X β β} | |
| (hf : TendstoUniformly f (fun _ => 0) l) | |
| (hg : TendstoUniformly g (fun _ => 0) l) : | |
| TendstoUniformly (fun i x => f i x + g i x) (fun _ => 0) l := by | |
| have hh := hf.add hg | |
| change TendstoUniformly (fun i x => f i x + g i x) (fun _ => (0 : β) + 0) l at hh | |
| simpa only [add_zero] using hh | |
| theorem uniform_zero_sub {X I : Type*} {l : Filter I} {f g : I β X β β} | |
| (hf : TendstoUniformly f (fun _ => 0) l) | |
| (hg : TendstoUniformly g (fun _ => 0) l) : | |
| TendstoUniformly (fun i x => f i x - g i x) (fun _ => 0) l := by | |
| have hh := hf.sub hg | |
| change TendstoUniformly (fun i x => f i x - g i x) (fun _ => (0 : β) - 0) l at hh | |
| simpa only [sub_zero] using hh | |
| def localizedTwoFlux {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| (v : Fin 3 β E) (Ο : SmoothScalar E) (L : E βL[β] β) | |
| (Hβ Hβ : SmoothScalar β) (Ξ± p q r k : β) : Fin 5 β SmoothScalar E := | |
| Ξ± β’ airyFlux v (localizedSecondPotential Ο L Hβ k) + | |
| transverseFlux v (p β’ localizedFirstPotential Ο L Hβ k) | |
| (q β’ localizedFirstPotential Ο L Hβ k) | |
| (r β’ localizedFirstPotential Ο L Hβ k) | |
| theorem twoFluxDivergence_add {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| (v : Fin 3 β E) (F G : Fin 5 β SmoothScalar E) : | |
| twoFluxDivergence v (F + G) = twoFluxDivergence v F + twoFluxDivergence v G := by | |
| funext i | |
| fin_cases i <;> simp [twoFluxDivergence] <;> abel | |
| theorem twoFluxDivergence_smul {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| (v : Fin 3 β E) (c : β) (F : Fin 5 β SmoothScalar E) : | |
| twoFluxDivergence v (c β’ F) = c β’ twoFluxDivergence v F := by | |
| funext i | |
| fin_cases i <;> simp [twoFluxDivergence, smul_add] | |
| theorem localizedTwoFlux_divergence {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| (v : Fin 3 β E) (Ο : SmoothScalar E) (L : E βL[β] β) | |
| (Hβ Hβ : SmoothScalar β) (Ξ± p q r k : β) : | |
| twoFluxDivergence v (localizedTwoFlux v Ο L Hβ Hβ Ξ± p q r k) = 0 := by | |
| rw [localizedTwoFlux, twoFluxDivergence_add, twoFluxDivergence_smul, | |
| airyFlux_divergence, transverseFlux_divergence, smul_zero, zero_add] | |
| theorem localizedTwoFlux_error_tendsto {E : Type*} [NormedAddCommGroup E] | |
| [NormedSpace β E] (v : Fin 3 β E) (Ο : SmoothScalar E) (L : E βL[β] β) | |
| (h Hβ Hβ : SmoothScalar β) (Ξ± p q r : β) | |
| (hΟ : HasCompactSupport Ο.val) | |
| (hβ : smoothDirection 1 Hβ = h) (hβ : smoothDirection 1 Hβ = Hβ) | |
| (hBβ : β C : β, β t, |Hβ.val t| β€ C) | |
| (hBβ : β C : β, β t, |Hβ.val t| β€ C) (i : Fin 5) : | |
| TendstoUniformly | |
| (fun k x => (localizedTwoFlux v Ο L Hβ Hβ Ξ± p q r k i).val x - | |
| (Ξ± β’ airySymbol (fun j => L (v j)) + | |
| transverseSymbol (fun j => L (v j)) p q r) i * | |
| (Ο.val x * h.val (k * L x))) (fun _ => 0) atTop := by | |
| have hfirst (j : Fin 3) := | |
| localizedFirstPotential_error_tendsto (v j) Ο L Hβ hΟ hBβ | |
| simp only [hβ] at hfirst | |
| have hsecond (j l : Fin 3) := | |
| localizedSecondPotential_error_tendsto (v j) (v l) Ο L Hβ hΟ hBβ | |
| (by simpa only [hβ] using hBβ) | |
| simp only [hβ, hβ] at hsecond | |
| fin_cases i | |
| Β· convert uniform_zero_add (uniform_zero_const_mul Ξ± (hsecond 1 1)) | |
| (uniform_zero_const_mul p (hfirst 2)) using 1 | |
| funext k x | |
| simp [localizedTwoFlux, airyFlux, transverseFlux, airySymbol, transverseSymbol, | |
| map_smul, Subalgebra.coe_add] | |
| ring | |
| Β· convert uniform_zero_add (uniform_zero_const_mul (-Ξ±) (hsecond 0 1)) | |
| (uniform_zero_const_mul q (hfirst 2)) using 1 | |
| funext k x | |
| simp [localizedTwoFlux, airyFlux, transverseFlux, airySymbol, transverseSymbol, | |
| map_smul, Subalgebra.coe_add] | |
| ring | |
| Β· convert uniform_zero_add (uniform_zero_const_mul Ξ± (hsecond 0 0)) | |
| (uniform_zero_const_mul r (hfirst 2)) using 1 | |
| funext k x | |
| simp [localizedTwoFlux, airyFlux, transverseFlux, airySymbol, transverseSymbol, | |
| map_smul, Subalgebra.coe_add] | |
| ring | |
| Β· convert uniform_zero_sub (uniform_zero_const_mul (-p) (hfirst 0)) | |
| (uniform_zero_const_mul q (hfirst 1)) using 1 | |
| funext k x | |
| simp [localizedTwoFlux, airyFlux, transverseFlux, airySymbol, transverseSymbol, | |
| map_smul] | |
| ring | |
| Β· convert uniform_zero_sub (uniform_zero_const_mul (-q) (hfirst 0)) | |
| (uniform_zero_const_mul r (hfirst 1)) using 1 | |
| funext k x | |
| simp [localizedTwoFlux, airyFlux, transverseFlux, airySymbol, transverseSymbol, | |
| map_smul] | |
| ring | |
| end ScalarConductivity | |
| end | |
| end OAI | |