Download data/lean/OAI/Analysis/Calculus/Current/Physical/Background.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.62 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/Current/Physical/Background.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Calculus/Current/Physical/Background.lean
-
curl -L -o Background.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/Current/Physical/Background.lean
4.62 kB
| import OAI.Analysis.Calculus.Current.Physical.Hessian | |
| /-! Uniform nondegeneracy of the background on physical spatial fibers. -/ | |
| noncomputable section | |
| namespace OAI.Analysis.Calculus.Current | |
| open OAI.Analysis.Calculus.Quaternion | |
| open scoped Matrix | |
| def physicalPhaseRow {d : β} (z : Index d β β) : Option (Fin d) β β | |
| | none => (Real.sqrt 2)β»ΒΉ β’ (1 - fiberQuadratic (ratio z) / 2) | |
| | some i => ratio z i | |
| theorem physicalPhaseRow_eq_jacobian {d : β} (z : Index d β β) : | |
| physicalPhaseRow z = physicalFiberJacobian 1 10 z none := by | |
| funext b | |
| cases b with | |
| | none => | |
| simp [physicalPhaseRow, physicalFiberJacobian, fiberJacobian, phaseRow, fiberQuadratic] | |
| ring | |
| | some i => simp [physicalPhaseRow, physicalFiberJacobian, fiberJacobian, phaseRow] | |
| theorem fderiv_physicalPhi_single {d : β} (Ο : β) (q : Option (Fin d) β β) | |
| (hY : physicalEmbedding Ο q none β 0) (b : Option (Fin d)) : | |
| fderiv β (fun p => phi (physicalEmbedding Ο p)) q (Pi.single b 1) = | |
| physicalPhaseRow (physicalEmbedding Ο q) b := by | |
| have he : (fun p : Option (Fin d) β β => fiberMap 1 10 (physicalEmbedding Ο p) none) = | |
| (fun p => phi (physicalEmbedding Ο p)) := by funext p; simp [fiberMap] | |
| rw [physicalPhaseRow_eq_jacobian, β he] | |
| exact fderiv_physicalFiberMap_single 1 10 Ο q hY none b | |
| def physicalBackgroundHessian {d : β} (Ο : β) (q : Option (Fin d) β β) : | |
| Matrix (Option (Fin d)) (Option (Fin d)) OAI.Analysis.Calculus.Quaternion.Q := | |
| OAI.Analysis.Calculus.Quaternion.imaginaryHessian (fun p => βphi (physicalEmbedding Ο p)β ^ 2) q | |
| theorem physicalBackgroundHessian_diag {d : β} (Ο : β) (q : Option (Fin d) β β) | |
| (hY : physicalEmbedding Ο q none β 0) (b : Option (Fin d)) : | |
| (physicalBackgroundHessian Ο q b b).re = 4 * βphysicalPhaseRow (physicalEmbedding Ο q) bβ ^ 2 := by | |
| have he : (fun p : Option (Fin d) β β => fiberMap 1 10 (physicalEmbedding Ο p) none) = | |
| (fun p => phi (physicalEmbedding Ο p)) := by funext p; simp [fiberMap] | |
| have hf : ContDiffAt β 2 (fun p => phi (physicalEmbedding Ο p)) q := by | |
| rw [β he] | |
| exact (contDiffAt_fiberMap_complex 1 10 (physicalEmbedding Ο q) hY none).comp q | |
| (contDiff_physicalEmbedding_complex Ο).contDiffAt | |
| rw [physicalBackgroundHessian, OAI.Analysis.Calculus.Quaternion.imaginaryHessian_norm_sq hf, | |
| fderiv_physicalPhi_single Ο q hY b] | |
| simp [complexK, Complex.mul_re, pow_two] | |
| simpa only [Complex.normSq_apply, pow_two] using | |
| Complex.normSq_eq_norm_sq (physicalPhaseRow (physicalEmbedding Ο q) b) | |
| theorem physicalBackgroundHessian_trace_formula {d : β} (Ο : β) (q : Option (Fin d) β β) | |
| (hY : physicalEmbedding Ο q none β 0) : | |
| (β b, (physicalBackgroundHessian Ο q b b).re) = | |
| 2 * β1 - fiberQuadratic (ratio (physicalEmbedding Ο q)) / 2β ^ 2 + | |
| 4 * β i, βratio (physicalEmbedding Ο q) iβ ^ 2 := by | |
| simp only [physicalBackgroundHessian_diag Ο q hY, Fintype.sum_option, physicalPhaseRow, | |
| norm_smul, Real.norm_eq_abs, abs_of_nonneg (inv_nonneg.mpr (Real.sqrt_nonneg _)), | |
| mul_pow, inv_pow, Real.sq_sqrt (by norm_num : (0 : β) β€ 2), β Finset.mul_sum] | |
| ring | |
| theorem physicalBackgroundHessian_trace_bounds {d : β} (a : β) (Ο : β) | |
| (q : Option (Fin d) β β) (hY : physicalEmbedding Ο q none β 0) | |
| (hr : physicalFiberDefining (1 / 10) a Ο q β€ 0) : | |
| 1 β€ (β b, (physicalBackgroundHessian Ο q b b).re) β§ | |
| (β b, (physicalBackgroundHessian Ο q b b).re) β€ 3 := by | |
| let z := physicalEmbedding Ο q | |
| have hW := fiber_ratio_bound (1 / 10) a z (by norm_num) hr | |
| have hW0 : 0 β€ β i, βratio z iβ ^ 2 := Finset.sum_nonneg (fun _ _ => sq_nonneg _) | |
| have hQ := (norm_fiberQuadratic_le (ratio z)).trans hW | |
| have hq : βfiberQuadratic (ratio z) / 2β β€ (1 / 200 : β) := by | |
| rw [norm_div] | |
| norm_num | |
| linarith | |
| have hu := norm_sub_le (1 : β) (fiberQuadratic (ratio z) / 2) | |
| have hl := norm_sub_norm_le (1 : β) (fiberQuadratic (ratio z) / 2) | |
| simp only [norm_one] at hu hl | |
| have hNl : (199 / 200 : β) β€ β1 - fiberQuadratic (ratio z) / 2β := by linarith | |
| have hNu : β1 - fiberQuadratic (ratio z) / 2β β€ (201 / 200 : β) := by linarith | |
| rw [physicalBackgroundHessian_trace_formula Ο q hY] | |
| change 1 β€ 2 * β1 - fiberQuadratic (ratio z) / 2β ^ 2 + 4 * β i, βratio z iβ ^ 2 β§ | |
| 2 * β1 - fiberQuadratic (ratio z) / 2β ^ 2 + 4 * β i, βratio z iβ ^ 2 β€ 3 | |
| constructor <;> nlinarith [norm_nonneg (1 - fiberQuadratic (ratio z) / 2)] | |
| end OAI.Analysis.Calculus.Current | |