Download data/lean/OAI/Analysis/Calculus/Current/Physical/Parameters.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.47 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/Current/Physical/Parameters.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Calculus/Current/Physical/Parameters.lean
-
curl -L -o Parameters.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Calculus/Current/Physical/Parameters.lean
4.47 kB
| import OAI.Analysis.Calculus.Current.Physical.Inverse | |
| /-! A fixed compact parameter ball for the physical fibers. -/ | |
| noncomputable section | |
| namespace OAI.Analysis.Calculus.Current | |
| def fiberParameterBall (d : β) : Set (Option (Fin d) β β) := | |
| {u | (β i, βu iβ ^ 2) β€ (1 / 100 : β)} | |
| theorem fiberParameterBall_coordinate {d : β} {u : Option (Fin d) β β} | |
| (hu : u β fiberParameterBall d) (i : Option (Fin d)) : βu iβ β€ (1 / 10 : β) := by | |
| have hi : βu iβ ^ 2 β€ β j, βu jβ ^ 2 := | |
| Finset.single_le_sum (fun j _ => sq_nonneg βu jβ) (Finset.mem_univ i) | |
| change (β j, βu jβ ^ 2) β€ (1 / 100 : β) at hu | |
| nlinarith [norm_nonneg (u i)] | |
| theorem fiberParameterBall_denominator {d : β} {u : Option (Fin d) β β} | |
| (hu : u β fiberParameterBall d) : fiberDenominator (fun i => u (some i)) β 0 := by | |
| apply fiberDenominator_ne_zero | |
| change (β j, βu jβ ^ 2) β€ (1 / 100 : β) at hu | |
| rw [Fintype.sum_option] at hu | |
| nlinarith [sq_nonneg βu noneβ] | |
| theorem fiberParameterBall_numerator {d : β} (a : β) (Ο : β) (ha : 0 < a) | |
| (ht : a β€ βΟβ) {u : Option (Fin d) β β} (hu : u β fiberParameterBall d) : | |
| Real.sqrt 2 β’ Ο + a β’ u none β 0 := by | |
| have hs : 1 β€ Real.sqrt 2 := by rw [Real.le_sqrt (by norm_num) (by norm_num)]; norm_num | |
| intro hz | |
| have he : Real.sqrt 2 β’ Ο = -(a β’ u none) := eq_neg_of_add_eq_zero_left hz | |
| have hn := congrArg norm he | |
| rw [norm_smul, norm_neg, norm_smul, Real.norm_eq_abs, Real.norm_eq_abs, | |
| abs_of_nonneg (Real.sqrt_nonneg _), abs_of_pos ha] at hn | |
| have hc := fiberParameterBall_coordinate hu none | |
| nlinarith [mul_le_mul_of_nonneg_right hs (norm_nonneg Ο)] | |
| theorem isCompact_fiberParameterBall (d : β) : IsCompact (fiberParameterBall d) := by | |
| have hp : Continuous (fun u : Option (Fin d) β β => β i, βu iβ ^ 2) := by fun_prop | |
| have hc : IsClosed (fiberParameterBall d) := isClosed_le hp continuous_const | |
| apply (isCompact_closedBall (0 : Option (Fin d) β β) 1).of_isClosed_subset hc | |
| intro u hu | |
| simp only [Metric.mem_closedBall, dist_zero_right] | |
| apply (pi_norm_le_iff_of_nonneg zero_le_one).mpr | |
| exact fun i => (fiberParameterBall_coordinate hu i).trans (by norm_num) | |
| theorem fiberParameterBall_nonempty (d : β) : (fiberParameterBall d).Nonempty := | |
| β¨0, by simp [fiberParameterBall]β© | |
| theorem physical_inverse_defining {d : β} (a : β) (Ο : β) | |
| (u : Option (Fin d) β β) (ha : a β 0) | |
| (hN : Real.sqrt 2 β’ Ο + a β’ u none β 0) | |
| (hD : fiberDenominator (fun i => u (some i)) β 0) : | |
| physicalFiberDefining (1 / 10) a Ο (physicalFiberInverse a Ο u) = | |
| 100 * (β i, βu iβ ^ 2) - 1 := by | |
| have he := physicalCoordinates_right_inverse a Ο u ha hN hD | |
| have h0 := congrFun he none | |
| have hW (i : Fin d) := congrFun he (some i) | |
| change phi (physicalEmbedding Ο (physicalFiberInverse a Ο u)) / (a : β) = u none at h0 | |
| change β i : Fin d, ratio (physicalEmbedding Ο (physicalFiberInverse a Ο u)) i = u (some i) at hW | |
| unfold physicalFiberDefining fiberDefining | |
| simp only [Fintype.sum_option, fiberMap, hW] | |
| have hc : 10 * phi (physicalEmbedding Ο (physicalFiberInverse a Ο u)) / (a : β) = 10 * u none := by | |
| rw [mul_div_assoc, h0] | |
| rw [hc] | |
| simp only [norm_mul, norm_div, Complex.norm_real, Real.norm_eq_abs, mul_pow, div_pow] | |
| norm_num | |
| rw [β Finset.sum_div] | |
| ring | |
| theorem contDiffAt_physicalFiberInverse_joint {d : β} (a : β) (Ο : β) | |
| (u : Option (Fin d) β β) (hD : fiberDenominator (fun i => u (some i)) β 0) : | |
| ContDiffAt β β€ (fun p : β Γ (Option (Fin d) β β) => physicalFiberInverse a p.1 p.2) (Ο, u) := by | |
| have hH : ContDiffAt β β€ (fun p : β Γ (Option (Fin d) β β) => inverseHeight a p.1 p.2) (Ο, u) := by | |
| unfold inverseHeight fiberDenominator fiberQuadratic | |
| simp only [Complex.real_smul] | |
| fun_prop (disch := exact hD) | |
| apply contDiffAt_pi.mpr | |
| intro b | |
| cases b with | |
| | none => | |
| change ContDiffAt β β€ (fun p : β Γ (Option (Fin d) β β) => Real.sqrt 2 β’ inverseHeight a p.1 p.2 - p.1) (Ο, u) | |
| exact (hH.const_smul (Real.sqrt 2)).sub contDiffAt_fst | |
| | some i => | |
| change ContDiffAt β β€ (fun p : β Γ (Option (Fin d) β β) => p.2 (some i) * inverseHeight a p.1 p.2) (Ο, u) | |
| exact (by fun_prop : ContDiffAt β β€ (fun p : β Γ (Option (Fin d) β β) => p.2 (some i)) (Ο, u)).mul hH | |
| end OAI.Analysis.Calculus.Current | |