Download data/lean/OAI/Analysis/Conductivity/Geometry/SplitJacobian.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 9.14 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Conductivity/Geometry/SplitJacobian.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Conductivity/Geometry/SplitJacobian.lean
-
curl -L -o SplitJacobian.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Conductivity/Geometry/SplitJacobian.lean
9.14 kB
| import Mathlib | |
| import OAI.Analysis.Conductivity.Variational.CompletedPotential | |
| import OAI.Analysis.Conductivity.Variational.SynchronizedChartWaves | |
| import OAI.Analysis.Conductivity.Variational.RepairPushedGraphStability | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory | |
| open scoped ENNReal | |
| open Matrix Filter Topology | |
| open Set MeasureTheory Filter Topology | |
| open scoped BigOperators | |
| open Set MeasureTheory Filter Topology | |
| open scoped Manifold | |
| open Set Filter | |
| open scoped Topology | |
| open Set Filter MeasureTheory | |
| open scoped Topology Manifold ENNReal | |
| open Set | |
| namespace ScalarConductivity | |
| open Matrix Set Filter Topology MeasureTheory | |
| open scoped Matrix.Norms.Elementwise | |
| def splitJacobian (d : Coord3) (L : Coord3 βL[β] β) (c z : β) : Mat3 := | |
| operatorMatrix (ContinuousLinearMap.id β Coord3 + lineShiftGradientOperator d c (z β’ L)) | |
| lemma splitJacobian_continuous (d : Coord3) (L : Coord3 βL[β] β) (c : β) : | |
| Continuous (splitJacobian d L c) := | |
| operatorMatrix_continuous.comp (continuous_const.add | |
| ((lineShiftGradientOperator d c).continuous.comp (continuous_id.smul continuous_const))) | |
| lemma matrix_two_pairing_symm (E F : Matrix (Fin 3) (Fin 2) β) | |
| (h : (Eα΅ * F) 1 0 = (Eα΅ * F) 0 1) : (Eα΅ * F).IsSymm := by | |
| ext i j | |
| fin_cases i <;> fin_cases j <;> simp_all [Matrix.transpose_apply] | |
| theorem exists_local_two_field_split | |
| (ΞΌ : Measure Coord3) [ΞΌ.IsAddHaarMeasure] | |
| (u : Coord3 β Fin 2 β β) (hu : ContDiff β (β(β€ : ββ)) u) | |
| (A : Coord3 β Symmetric3) {p : Coord3} (hA : ContinuousAt A p) | |
| (hD : Function.Surjective (fderiv β u p)) | |
| (d : Coord3) (L : Coord3 βL[β] β) (hLd : L d = 1) | |
| (B : Mat3) (hB : B.IsSymm) (hBn : β v, L (B *α΅₯ v) = 0) | |
| {a b c m : β} (ha : 0 β€ a) (hb : 0 β€ b) (ha1 : a β€ 1) (hb1 : b β€ 1) | |
| (hm : 0 < m) (hpath : β z β Icc (-a) b, m β€ 1 + c * z) | |
| (C : β β Symmetric3) (hC : β z β Icc (-a) b, ContinuousAt C z) | |
| (hdet : β z β Icc (-a) b, 0 < (splitJacobian d L c z).det) | |
| (hconstit : β z β Icc (-a) b, | |
| (C z).val = (splitJacobian d L c z).detβ»ΒΉ β’ | |
| (splitJacobian d L c z * ((A p).val + z β’ B) * (splitJacobian d L c z)α΅)) | |
| {G : Set (β Γ Symmetric3)} (hG : IsOpen G) | |
| (hCG : β z β Icc (-a) b, (z, C z) β G) | |
| {U : Set Coord3} (hU : IsOpen U) (hpU : p β U) : | |
| β (X : OpenPartialHomeomorph Coord3 Coord3) (V : Set Coord3), | |
| IsOpen V β§ p β V β§ V β U β§ V β X.source β§ | |
| ContDiff β (β(β€ : ββ)) X β§ | |
| ContDiffOn β (β(β€ : ββ)) X.symm X.target β§ | |
| β M : β, 0 < M β§ | |
| β H : SmoothScalar β, Function.Periodic (smoothDirection 1 H).val 1 β | |
| (β« t in (0 : β)..1, (smoothDirection 1 H).val t = 0) β | |
| (β B : β, β t, |H.val t| β€ B) β | |
| (β t, -a β€ (smoothDirection 1 H).val t β§ (smoothDirection 1 H).val t β€ b) β | |
| β Ο : SmoothScalar Coord3, HasCompactSupport Ο.val β tsupport Ο.val β X '' V β | |
| (β x, 0 β€ Ο.val x β§ Ο.val x β€ 1) β | |
| β F : β β Fin 2 β Coord3 β Coord3, | |
| (β k j, ContDiff β (β(β€ : ββ)) (F k j)) β§ | |
| (β k j, HasCompactSupport (F k j) β§ tsupport (F k j) β V β§ | |
| tsupport (F k j) β X.symm '' tsupport Ο.val) β§ | |
| (β k j (Ο : Coord3 β β), ContDiff β (β(β€ : ββ)) Ο β | |
| (β« y, fderiv β Ο y (F k j y) βΞΌ) = 0) β§ | |
| βαΆ k : β in atTop, β Y : Coord3 β Coord3, | |
| ContDiff β (β(β€ : ββ)) Y β§ ContDiff β (β(β€ : ββ)) Y.symm β§ | |
| (β x β V, Y x = x) β§ Y '' V = V β§ | |
| (β x, Y x = x + (c * kβ»ΒΉ * localPullback X Ο.val x * | |
| H.val (k * L (X x))) β’ d) β§ | |
| (β x, |(fderiv β Y x).det| β€ M) β§ | |
| β x β V, | |
| let z := localPullback X Ο.val x * (smoothDirection 1 H).val (k * L (X x)) | |
| let E := gradientColumns (fderiv β u x) | |
| let Ft : Matrix (Fin 3) (Fin 2) β := (A x).val * E + Matrix.of (fun i j => F k j x i) | |
| let J := operatorMatrix (fderiv β Y x) | |
| let At := repairPushed (C z) J E Ft | |
| 0 < J.det β§ LinearIndependent β E.col β§ (z, At) β G β§ | |
| At.val * gradientColumns (fderiv β (u β Y.symm) (Y x)) = pushFlux J Ft := by | |
| classical | |
| let D := fderiv β u p | |
| let Eβ := gradientColumns D | |
| let E : Coord3 β Matrix (Fin 3) (Fin 2) β := fun y => gradientColumns (fderiv β u y) | |
| let Fβ := (A p).val * Eβ | |
| let Fe : Coord3 β Matrix (Fin 3) (Fin 2) β := fun y => (A y).val * E y | |
| let J := splitJacobian d L c | |
| let Fb : β β Matrix (Fin 3) (Fin 2) β := fun z => ((A p).val + z β’ B) * Eβ | |
| have hEc : Continuous E := by | |
| apply continuous_pi; intro i | |
| apply continuous_pi; intro j | |
| exact (continuous_apply j).comp ((hu.continuous_fderiv (by simp)).clm_apply continuous_const) | |
| have hFc : ContinuousAt Fe p := matrix_mul_contAt (continuousAt_subtype_val.comp hA) hEc.continuousAt | |
| have hFbc : Continuous Fb := by | |
| apply continuous_iff_continuousAt.mpr | |
| intro z | |
| exact matrix_mul_contAt (continuousAt_const.add (continuousAt_id.smul continuousAt_const)) continuousAt_const | |
| have hrank : LinearIndependent β Eβ.col := gradientColumns_rank D hD | |
| have hexact : β z β Icc (-a) b, repairPushed (C z) (J z) Eβ (Fb z) = C z := by | |
| intro z hz | |
| exact repairPushed_exact (C z) (J z) ((A p).val + z β’ B) Eβ (hdet z hz).ne' (hconstit z hz) | |
| obtain β¨O, _, hKO, Ξ΅, hΞ΅, hepsβ© := repairPushed_graph_stability isCompact_Icc | |
| C J (fun _ => Eβ) Fb hC (fun _ _ => (splitJacobian_continuous d L c).continuousAt) | |
| (fun _ _ => continuousAt_const) (fun _ _ => hFbc.continuousAt) hdet (fun _ _ => hrank) hG | |
| (fun z hz => by rw [hexact z hz]; exact hCG z hz) | |
| have hnb : βαΆ x in π p, βE x - Eββ < Ξ΅/2 β§ βFe x - Fββ < Ξ΅/2 := by | |
| have he := hEc.continuousAt.eventually (Metric.ball_mem_nhds (E p) (half_pos hΞ΅)) | |
| have hf := hFc.eventually (Metric.ball_mem_nhds (Fe p) (half_pos hΞ΅)) | |
| simpa only [Metric.mem_ball, dist_eq_norm] using he.and hf | |
| obtain β¨W, hWb, hWo, hpWβ© := mem_nhds_iff.mp hnb | |
| obtain β¨X, hpX, hXs, hX, hXi, hXu, hDXβ© := exists_potential_chart hu p hD | |
| (hU.inter hWo) β¨hpU, hpWβ© | |
| have hpol := symmetric_wave_polarization D B hB L hBn | |
| obtain β¨V, hV, hpV, hVs, hpertβ© := exists_synchronized_chart_waves | |
| (by simp [Coord3]) ΞΌ X hX hXi D hD u (fun y _ => hXu y) | |
| hpX hDX d L hLd ha hb ha1 hb1 hm (by positivity : 0 < Ξ΅/2) | |
| hpath (B * Eβ).col hpol.1 hpol.2 | |
| obtain β¨M, hM, hMbdβ© := synchronized_det_bound d c L (Ξ΅/2) | |
| refine β¨X, V, hV, hpV, hVs.trans (fun _ hx => (hXs hx).1), hVs, hX, hXi, M, hM, ?_β© | |
| intro H hHp hHm hH hHr Ο hΟ hΟV hΟb | |
| obtain β¨F, hF, hFs, hsym, hdiv, hlimβ© := hpert H hHp hHm hH hHr Ο hΟ hΟV hΟb | |
| refine β¨F, hF, hFs, hdiv, ?_β© | |
| filter_upwards [hlim] with k hk | |
| obtain β¨Y, hY, hYi, hoff, himage, hform, hFerr, hJerrβ© := hk | |
| refine β¨Y, hY, hYi, hoff, himage, hform, ?_, ?_β© | |
| Β· intro x | |
| apply hMbd _ _ _ (hJerr x).le | |
| have hz := scalar_cutoff_segment ha hb (localPullback_bounds X Ο.val hΟb x) (hHr (k * L (X x))) | |
| exact abs_le.mpr β¨by linarith only [hz.1, ha1], by linarith only [hz.2, hb1]β© | |
| intro x hx | |
| let z := localPullback X Ο.val x * (smoothDirection 1 H).val (k * L (X x)) | |
| let Q : Matrix (Fin 3) (Fin 2) β := fun i j => F k j x i | |
| let Jy := operatorMatrix (fderiv β Y x) | |
| have hz : z β Icc (-a) b := scalar_cutoff_segment ha hb | |
| (localPullback_bounds X Ο.val hΟb x) (hHr _) | |
| have hsmall := hWb (hXs (hVs hx)).2 | |
| have hdJ : βJy - J zβ < Ξ΅/2 := by | |
| change βoperatorMatrix (fderiv β Y x) - operatorMatrix _β < Ξ΅/2 | |
| rw [β operatorMatrix_sub] | |
| exact (operatorMatrix_norm_le _).trans_lt (hJerr x) | |
| have hdF : βFe x + Q - Fb zβ < Ξ΅ := by | |
| have hq : βQ - z β’ (B * Eβ)β < Ξ΅/2 := by | |
| apply columns_norm_lt _ (half_pos hΞ΅) | |
| intro j | |
| exact hFerr j x | |
| have heq : Fe x + Q - Fb z = (Fe x - Fβ) + (Q - z β’ (B * Eβ)) := by | |
| dsimp only [Fb, Fβ] | |
| rw [Matrix.add_mul, Matrix.smul_mul] | |
| abel | |
| rw [heq] | |
| exact (norm_add_le _ _).trans_lt (by linarith only [hq, hsmall.2]) | |
| have hbound : β(Jy - J z, E x - Eβ, Fe x + Q - Fb z)β < Ξ΅ := by | |
| rw [Prod.norm_def, Prod.norm_def, max_lt_iff, max_lt_iff] | |
| exact β¨hdJ.trans (by linarith), hsmall.1.trans (by linarith), hdFβ© | |
| have hs := heps z (hKO hz) (Jy - J z) (E x - Eβ) (Fe x + Q - Fb z) hbound | |
| simp only [add_sub_cancel] at hs | |
| refine β¨hs.1, hs.2.1, hs.2.2, ?_β© | |
| rw [gradientColumns_recomposition Y (hY.differentiable (by simp)) | |
| (hYi.differentiable (by simp)) u (hu.differentiable (by simp))] | |
| apply repairPushed_mul _ _ _ _ hs.1.ne' hs.2.1 | |
| rw [Matrix.mul_add] | |
| apply (symmetric_gram_pairing (A x) (E x)).add | |
| apply matrix_two_pairing_symm | |
| rw [β gradientColumns_pairing, β gradientColumns_pairing] | |
| exact hsym k x | |
| end ScalarConductivity | |
| end | |
| end OAI | |