Download data/lean/OAI/Geometry/Arnold/Parameter.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.49 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Arnold/Parameter.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/Arnold/Parameter.lean
-
curl -L -o Parameter.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Arnold/Parameter.lean
6.49 kB
| import OAI.Geometry.Arnold.MidpointGeometry | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators ContDiff | |
| open scoped Topology NNReal | |
| open Set Filter | |
| namespace ArnoldCounterexample.Construction | |
| open ArnoldCounterexample.Quadric ArnoldCounterexample.Field | |
| open scoped ContDiff Topology NNReal | |
| open Set Filter | |
| def constant : ββ₯0 := vectorField_lipschitz.choose | |
| lemma lipschitz : LipschitzWith constant vectorField := vectorField_lipschitz.choose_spec | |
| def epsilon : β := 1 / (100 * ((constant:β)+1)) | |
| lemma epsilon_pos : 0 < epsilon := by unfold epsilon; positivity | |
| def parameter (t : β) : β := epsilon * Real.sin (Real.pi * t / 2) | |
| lemma parameter_smooth : ContDiff β β parameter := by unfold parameter; fun_prop | |
| lemma parameter_zero : parameter 0 = 0 := by simp [parameter] | |
| lemma parameter_one : parameter 1 = epsilon := by simp [parameter] | |
| lemma parameter_small : β t, βparameter tβ * constant < 1/10 := by | |
| intro t | |
| have hc : 0 β€ (constant:β) := constant.coe_nonneg | |
| have hden : 0 < 100 * ((constant:β)+1) := by positivity | |
| have he : epsilon * (constant:β) < 1/100 := by | |
| unfold epsilon | |
| rw [one_div_mul_eq_div, div_lt_iffβ hden] | |
| linarith | |
| have hb : βparameter tβ β€ epsilon := by | |
| rw [parameter, norm_mul, Real.norm_eq_abs, abs_of_pos epsilon_pos, Real.norm_eq_abs] | |
| exact (mul_le_mul_of_nonneg_left (Real.abs_sin_le_one _) epsilon_pos.le).trans_eq (mul_one _) | |
| exact lt_trans (lt_of_le_of_lt (mul_le_mul_of_nonneg_right hb hc) he) (by norm_num) | |
| lemma parameter_contract : β t, βparameter tβ * constant < 1 := | |
| fun t β¦ lt_trans (parameter_small t) (by norm_num) | |
| def center : β Γ CV β CV := Midpoint.resolvent vectorField lipschitz parameter parameter_contract | |
| def forwardMid : β Γ CV β CV := Midpoint.step vectorField lipschitz parameter parameter_contract | |
| def backwardMid : β Γ CV β CV := | |
| Midpoint.step vectorField lipschitz (fun t β¦ -parameter t) (Midpoint.neg_small parameter_contract) | |
| def midHamiltonian : β Γ CV β β := | |
| Midpoint.hamiltonian vectorField lipschitz parameter parameter_contract potential | |
| lemma center_smooth : ContDiff β β center := | |
| Midpoint.resolvent_smooth _ lipschitz vectorField_smooth _ _ parameter_smooth | |
| lemma forwardMid_smooth : ContDiff β β forwardMid := | |
| Midpoint.step_smooth _ lipschitz vectorField_smooth _ _ parameter_smooth | |
| lemma backwardMid_smooth : ContDiff β β backwardMid := | |
| Midpoint.step_smooth _ lipschitz vectorField_smooth _ _ parameter_smooth.neg | |
| lemma midHamiltonian_smooth : ContDiff β β midHamiltonian := | |
| Midpoint.hamiltonian_smooth _ lipschitz vectorField_smooth _ _ parameter_smooth _ potential_smooth | |
| lemma forwardMid_preserves (t : β) (z : UnitQuadric) : IsUnitQuadric (forwardMid (t,z)) := | |
| midpoint_preserves lipschitz parameter parameter_contract t z | |
| lemma backwardMid_preserves (t : β) (z : UnitQuadric) : IsUnitQuadric (backwardMid (t,z)) := | |
| midpoint_preserves lipschitz _ (Midpoint.neg_small parameter_contract) t z | |
| lemma center_phase_general (Ο : β β β) (hΟ : β t, βΟ tβ*constant < 1) | |
| (p : β Γ CV) (c : β) (hc : Complex.normSq c = 1) : | |
| Midpoint.resolvent vectorField lipschitz Ο hΟ (p.1,cβ’p.2) = | |
| c β’ Midpoint.resolvent vectorField lipschitz Ο hΟ p := by | |
| exact Midpoint.resolvent_symmetry _ lipschitz Ο hΟ (c β’ (LinearMap.id : CV ββ[β] CV)) | |
| (fun z β¦ vectorField_phase c hc z) p | |
| lemma center_phase (p : β Γ CV) (c : β) (hc : Complex.normSq c = 1) : | |
| center (p.1,cβ’p.2) = c β’ center p := center_phase_general _ _ p c hc | |
| lemma forwardMid_phase (p : β Γ CV) (c : β) (hc : Complex.normSq c = 1) : | |
| forwardMid (p.1,cβ’p.2) = c β’ forwardMid p := by | |
| simp only [forwardMid, Midpoint.step, center_phase_general _ _ p c hc, smul_sub, smul_comm c] | |
| lemma backwardMid_phase (p : β Γ CV) (c : β) (hc : Complex.normSq c = 1) : | |
| backwardMid (p.1,cβ’p.2) = c β’ backwardMid p := by | |
| simp only [backwardMid, Midpoint.step, center_phase_general _ _ p c hc, smul_sub, smul_comm c] | |
| lemma midHamiltonian_phase (p : β Γ CV) (c : β) (hc : Complex.normSq c = 1) : | |
| midHamiltonian (p.1,cβ’p.2) = midHamiltonian p := by | |
| simp only [midHamiltonian, Midpoint.hamiltonian, center_phase_general _ _ p c hc, potential_phase c hc] | |
| lemma backward_forward (p : β Γ CV) : backwardMid (p.1,forwardMid p) = p.2 := | |
| Midpoint.step_inverse _ lipschitz parameter parameter_contract p | |
| lemma forward_backward (p : β Γ CV) : forwardMid (p.1,backwardMid p) = p.2 := by | |
| simpa only [neg_neg, forwardMid, backwardMid] using Midpoint.step_inverse _ lipschitz (fun t β¦ -parameter t) | |
| (Midpoint.neg_small parameter_contract) p | |
| lemma forwardMid_start (z : CV) : forwardMid (0,z) = z := | |
| Midpoint.step_zero _ lipschitz _ _ 0 parameter_zero z | |
| lemma center_bound (t : β) (z : UnitQuadric) : normSquared (center (t,z)) β Ioo (1/2:β) 2 := | |
| β¨center_norm_gt_half lipschitz _ _ parameter_small t z, | |
| lt_of_le_of_lt (center_norm_le_one lipschitz _ _ t z) (by norm_num)β© | |
| lemma mid_equation (t : β) (z : UnitQuadric) (v : CV) : | |
| omega (deriv (fun s β¦ forwardMid (s,z)) t) v = | |
| fderiv β (fun w β¦ midHamiltonian (t,w)) (forwardMid (t,z)) v := by | |
| simpa only [forwardMid, midHamiltonian, symplectic_apply] using Midpoint.step_hamiltonian_equation symplectic symplectic_skew _ lipschitz vectorField_smooth | |
| parameter parameter_contract parameter_smooth potential potential_smooth (t,z) | |
| (vectorField_hamiltonian (lt_trans (center_bound t z).2 (by norm_num))) v | |
| lemma center_identity (p : β Γ CV) : center p = p.2 + parameter p.1 β’ vectorField (center p) := | |
| Midpoint.resolvent_eq _ lipschitz _ _ p | |
| lemma forwardMid_center (p : β Γ CV) : forwardMid p = center p + parameter p.1 β’ vectorField (center p) := | |
| Midpoint.step_center _ lipschitz _ _ p | |
| lemma center_average (p : β Γ CV) : (2:β) β’ center p = p.2 + forwardMid p := by | |
| dsimp [forwardMid, Midpoint.step, center] | |
| module | |
| lemma center_zero_coordinate (p : β Γ CV) : center p 0 = p.2 0 := by | |
| have h := congrFun (center_identity p) 0 | |
| simpa only [Pi.add_apply, Pi.smul_apply, vectorField_zero_coordinate, smul_zero, add_zero] using h | |
| lemma forwardMid_zero_coordinate (p : β Γ CV) : forwardMid p 0 = p.2 0 := by | |
| rw [forwardMid_center] | |
| simp only [Pi.add_apply, Pi.smul_apply, vectorField_zero_coordinate, smul_zero, add_zero, | |
| center_zero_coordinate] | |
| end ArnoldCounterexample.Construction | |
| end | |
| end OAI | |