| @@ -133,10 +133,6 @@ theorem varianceRoot_sq (a δ v : ℝ) (ha : 0 < a) : |
| 133 | 133 | varianceRoot a δ v ^ 2 = correction δ v / a := by |
| 134 | 134 | simp only [varianceRoot, div_pow, Real.sq_sqrt ha.le, correction] |
| 135 | 135 | |
| 136 | | -theorem varianceRoot_zero (a δ v : ℝ) (hδ : 0 < δ) (hv : highSpeed δ ≤ v) : |
| 137 | | - varianceRoot a δ v = 0 := by |
| 138 | | - simp only [varianceRoot, correctionRoot_zero δ v hδ hv, zero_div] |
| 139 | | - |
| 140 | 136 | theorem varianceRoot_bound (amin a δ v : ℝ) (hmin : 0 < amin) (ha : amin ≤ a) |
| 141 | 137 | (hδ : 0 < δ) (hδ₁ : δ ≤ 1) (hv : 0 < v) : |
| 142 | 138 | varianceRoot a δ v ≤ Real.sqrt (3 / amin) := by |
| @@ -229,10 +225,6 @@ theorem seedSpeed_nominal_of_inactive (a m δ : ℝ) |
| 229 | 225 | simp only [seedSpeed, correctedSpeed, correction, correctionRoot, hzero, |
| 230 | 226 | zero_mul, zero_pow (by decide : (2 : ℕ) ≠ 0), add_zero] |
| 231 | 227 | |
| 232 | | -theorem seedTilt_nominal (a m d p δ : ℝ) (hδ : 0 < δ) |
| 233 | | - (hh : highSpeed δ ≤ nominalSpeed a m) : seedTilt a m d p δ = (fun _ => m) := |
| 234 | | - seedTilt_nominal_of_inactive a m d p δ (speedCutoff_zero δ _ hδ hh) |
| 235 | | - |
| 236 | 228 | theorem seed_cone (a m p₁ p₂ d δ R : ℝ) (ha : 0 < a) (hd : 0 < d) |
| 237 | 229 | (hδ : 0 < δ) (hδ₁ : δ ≤ 1) (hR : Real.sqrt (3 / a) ≤ R) |
| 238 | 230 | (hmargin : 2 ≤ p₁ + p₂ * m - d) |
| @@ -278,14 +270,16 @@ def InTrueCone (p₁ p₂ A C : ℝ) : Prop := |
| 278 | 270 | 0 < A ∧ 2 < A * (1 + (C / A) ^ 2) ∧ 2 < p₁ + p₂ * (C / A) ∧ |
| 279 | 271 | A * (1 + (C / A) ^ 2) < coneBound (p₁ + p₂ * (C / A)) (p₂ - p₁ * (C / A)) |
| 280 | 272 | |
| 281 | | -/-- Positive additive margins for all four scalar inequalities, including |
| 282 | | -the positive first shear component. -/ |
| 273 | +/-- The vector `Ψ` of cone gaps (4.35), as it appears in Lemma C.1, Appendix C.1: |
| 274 | +positive additive margins for all four scalar inequalities, including the |
| 275 | +positive first shear component. -/ |
| 283 | 276 | def HasConeMargin (ε p₁ p₂ A C : ℝ) : Prop := |
| 284 | 277 | ε ≤ A ∧ ε ≤ A * (1 + (C / A) ^ 2) - 2 ∧ ε ≤ p₁ + p₂ * (C / A) - 2 ∧ |
| 285 | 278 | ε ≤ coneBound (p₁ + p₂ * (C / A)) (p₂ - p₁ * (C / A)) - A * (1 + (C / A) ^ 2) |
| 286 | 279 | |
| 287 | | -/-- Compact slow parameters and a periodic fast parameter turn strict |
| 288 | | -pointwise cone inequalities into one positive margin at every fast angle. -/ |
| 280 | +/-- The compactness step of Lemma C.1, Appendix C.1, (C.2): compact slow |
| 281 | +parameters and a periodic fast parameter turn strict pointwise cone |
| 282 | +inequalities into one positive margin at every fast angle. -/ |
| 289 | 283 | theorem compact_periodic_trueCone_margins {X : Type*} [TopologicalSpace X] |
| 290 | 284 | (p₁ p₂ : X → ℝ) (A C : X × ℝ → ℝ) {K : Set X} (hK : IsCompact K) |
| 291 | 285 | (hp₁ : ContinuousOn p₁ K) (hp₂ : ContinuousOn p₂ K) |
| @@ -331,12 +325,6 @@ theorem compact_periodic_trueCone_margins {X : Type*} [TopologicalSpace X] |
| 331 | 325 | (min_le_right _ _).trans (hmc (x, θ) hmem).2.1, |
| 332 | 326 | (min_le_right _ _).trans (hmc (x, θ) hmem).2.2⟩ |
| 333 | 327 | |
| 334 | | -theorem constructed_smooth (a m d p δ : ℝ) (ha : 0 < a) (hd : d ≠ 0) (hδ : 0 < δ) : |
| 335 | | - ContDiff ℝ ∞ (constructedA a m d p δ ha hd hδ) ∧ |
| 336 | | - ContDiff ℝ ∞ (constructedC a m d p δ ha hd hδ) := by |
| 337 | | - have h := smooth_loop_shears (seedTilt a m d p δ) (seedSpeed a m δ) (seedTilt_contDiff a m d p δ) |
| 338 | | - exact ⟨rephase_contDiff _ _ h.1, rephase_contDiff _ _ h.2⟩ |
| 339 | | - |
| 340 | 328 | theorem constructed_periodic (a m d p δ : ℝ) (ha : 0 < a) (hd : d ≠ 0) (hδ : 0 < δ) : |
| 341 | 329 | Function.Periodic (constructedA a m d p δ ha hd hδ) 1 ∧ |
| 342 | 330 | Function.Periodic (constructedC a m d p δ ha hd hδ) 1 := by |
| @@ -405,37 +393,6 @@ theorem constructed_nominal (a m d p δ : ℝ) (ha : 0 < a) (hd : d ≠ 0) (hδ |
| 405 | 393 | have hnz := ne_of_gt (one_add_sq_pos m) |
| 406 | 394 | field_simp |
| 407 | 395 | |
| 408 | | -/-- Fixed-parameter true-cone realization, with no assumed loop or margin. |
| 409 | | -The nominal data need only satisfy the relaxed cone. -/ |
| 410 | | -theorem exists_trueCone_loop (a m p₁ p₂ : ℝ) (ha : 0 < a) |
| 411 | | - (hP : 2 < p₁ + p₂ * m) |
| 412 | | - (hrelaxed : nominalSpeed a m < coneBound (p₁ + p₂ * m) (p₂ - p₁ * m)) : |
| 413 | | - ∃ A C : ℝ → ℝ, ContDiff ℝ ∞ A ∧ ContDiff ℝ ∞ C ∧ |
| 414 | | - Function.Periodic A 1 ∧ Function.Periodic C 1 ∧ |
| 415 | | - (∫ φ in (0 : ℝ)..1, A φ) = a ∧ (∫ φ in (0 : ℝ)..1, C φ) = a * m ∧ |
| 416 | | - ∀ φ, InTrueCone p₁ p₂ (A φ) (C φ) := by |
| 417 | | - let d := (p₁ + p₂ * m - 2) / 2 |
| 418 | | - have hd : 0 < d := by dsimp [d]; linarith |
| 419 | | - have hmargin : 2 ≤ p₁ + p₂ * m - d := by dsimp [d]; linarith |
| 420 | | - let R := Real.sqrt (3 / a) |
| 421 | | - obtain ⟨ε, hε, hU⟩ := uniform_tilt_cone_margin (X := ℝ) (K := {0}) isCompact_singleton |
| 422 | | - (fun _ => m) (fun _ => p₁) (fun _ => p₂) continuous_const continuous_const continuous_const |
| 423 | | - d R hd (fun _ _ => hmargin) |
| 424 | | - let δ := min ε 1 |
| 425 | | - have hδ : 0 < δ := lt_min hε (by norm_num) |
| 426 | | - have hδ₁ : δ ≤ 1 := min_le_right _ _ |
| 427 | | - have hUδ : ∀ r ∈ Icc (0 : ℝ) R, ∀ θ, |
| 428 | | - 2 + δ ≤ coneBound (p₁ + p₂ * solvedTilt m d p₂ r θ) (p₂ - p₁ * solvedTilt m d p₂ r θ) := by |
| 429 | | - intro r hr θ |
| 430 | | - exact (add_le_add_right (min_le_left ε 1) 2).trans (hU 0 (by simp) r hr θ) |
| 431 | | - let A := constructedA a m d p₂ δ ha (ne_of_gt hd) hδ |
| 432 | | - let C := constructedC a m d p₂ δ ha (ne_of_gt hd) hδ |
| 433 | | - have hs := constructed_smooth a m d p₂ δ ha (ne_of_gt hd) hδ |
| 434 | | - have hp := constructed_periodic a m d p₂ δ ha (ne_of_gt hd) hδ |
| 435 | | - have hm := constructed_means a m d p₂ δ ha (ne_of_gt hd) hδ |
| 436 | | - exact ⟨A, C, hs.1, hs.2, hp.1, hp.2, hm.1, hm.2, |
| 437 | | - constructed_trueCone a m p₁ p₂ d δ R ha hd hδ hδ₁ le_rfl hmargin hrelaxed hUδ⟩ |
| 438 | | - |
| 439 | 396 | structure FamilyChoices {X : Type*} (a m p₁ p₂ : X → ℝ) (K B : Set X) where |
| 440 | 397 | aMin : ℝ |
| 441 | 398 | d : ℝ |
| @@ -495,35 +452,6 @@ theorem exists_family_choices {X : Type*} [TopologicalSpace X] |
| 495 | 452 | dsimp [highSpeed] |
| 496 | 453 | linarith |
| 497 | 454 | |
| 498 | | -theorem FamilyChoices.root_bound {X : Type*} {a m p₁ p₂ : X → ℝ} {K B : Set X} |
| 499 | | - (c : FamilyChoices a m p₁ p₂ K B) {x : X} (hx : x ∈ K) : |
| 500 | | - varianceRoot (a x) c.delta (nominalSpeed (a x) (m x)) ∈ Icc (0 : ℝ) c.radius := by |
| 501 | | - have ha : 0 < a x := lt_of_lt_of_le c.aMin_pos (c.aMin_le x hx) |
| 502 | | - rw [c.radius_eq] |
| 503 | | - exact ⟨varianceRoot_nonneg _ _ _, varianceRoot_bound c.aMin (a x) c.delta _ |
| 504 | | - c.aMin_pos (c.aMin_le x hx) c.delta_pos c.delta_le_one (mul_pos ha (one_add_sq_pos _))⟩ |
| 505 | | - |
| 506 | | -theorem FamilyChoices.amplitude_bound {X : Type*} {a m p₁ p₂ : X → ℝ} {K B : Set X} |
| 507 | | - (c : FamilyChoices a m p₁ p₂ K B) {x : X} (hx : x ∈ K) : |
| 508 | | - 0 ≤ solveScale c.d (p₂ x) (varianceRoot (a x) c.delta (nominalSpeed (a x) (m x))) ∧ |
| 509 | | - solveScale c.d (p₂ x) (varianceRoot (a x) c.delta (nominalSpeed (a x) (m x))) < c.maxAmplitude := by |
| 510 | | - let r := varianceRoot (a x) c.delta (nominalSpeed (a x) (m x)) |
| 511 | | - have hr := c.root_bound hx |
| 512 | | - have hμ := solveScale_nonneg c.d (p₂ x) r c.d_pos hr.1 |
| 513 | | - refine ⟨hμ, ?_⟩ |
| 514 | | - have htarget : tiltVariance c.d (p₂ x) (solveScale c.d (p₂ x) r) ≤ 3 / c.aMin := by |
| 515 | | - rw [solveScale_variance _ _ _ (ne_of_gt c.d_pos)] |
| 516 | | - have hR := Real.sq_sqrt (div_nonneg (by norm_num : (0 : ℝ) ≤ 3) c.aMin_pos.le) |
| 517 | | - have hrle : r ≤ Real.sqrt (3 / c.aMin) := by simpa only [c.radius_eq] using hr.2 |
| 518 | | - have hsqnonneg := Real.sqrt_nonneg (3 / c.aMin) |
| 519 | | - nlinarith [hr.1] |
| 520 | | - by_contra hn |
| 521 | | - have hμM : c.maxAmplitude ≤ solveScale c.d (p₂ x) r := le_of_not_gt hn |
| 522 | | - have hmono := (tiltVariance_strictMonoOn c.d (p₂ x) c.d_pos).monotoneOn |
| 523 | | - c.maxAmplitude_pos.le hμ hμM |
| 524 | | - have hlarge := c.amplitude_large x hx |
| 525 | | - linarith |
| 526 | | - |
| 527 | 455 | section SmoothFamily |
| 528 | 456 | |
| 529 | 457 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| @@ -725,10 +653,11 @@ theorem family_joint_contDiffOn [FiniteDimensional ℝ E] |
| 725 | 653 | ParametricRephase.rephaseFamily_contDiffOn (familyDensity a m p d δ hd hδ) |
| 726 | 654 | (unphasedC a m p d δ) _ hU hrate hf.2⟩ |
| 727 | 655 | |
| 728 | | -/-- Full compact-family true-cone realization. The set `B` can be the two |
| 729 | | -interval boundary faces (including any compact auxiliary parameter set). |
| 730 | | -The output agrees exactly with the nominal shear on an open neighborhood |
| 731 | | -of `B`, and is jointly C∞ in slow parameters and periodic angle. -/ |
| 656 | +/-- The loop construction of Lemma C.1, Appendix C.1, (C.1) and (C.3), without |
| 657 | +the uniform margin (C.2). The set `B` can be the two interval boundary faces |
| 658 | +(including any compact auxiliary parameter set). The output agrees exactly |
| 659 | +with the nominal shear on an open neighborhood of `B`, and is jointly C∞ in |
| 660 | +slow parameters and periodic angle. -/ |
| 732 | 661 | theorem exists_compact_trueCone_family [FiniteDimensional ℝ E] |
| 733 | 662 | (a m p₁ p₂ : E → ℝ) {K B : Set E} |
| 734 | 663 | (hK : IsCompact K) (hB : IsCompact B) (hBK : B ⊆ K) |
| @@ -760,8 +689,9 @@ theorem exists_compact_trueCone_family [FiniteDimensional ℝ E] |
| 760 | 689 | exact ⟨U, N, A, C, isOpen_lt continuous_const ha.continuous, haK, |
| 761 | 690 | hN, hBN, hNU, hs.1, hs.2, family_pointwise_properties a m p₁ p₂ c hrelaxed, hmatch⟩ |
| 762 | 691 | |
| 763 | | -/-- The complete family theorem with one strictly positive margin valid |
| 764 | | -for every slow parameter in `K` and every fast angle. -/ |
| 692 | +/-- Lemma C.1, Appendix C.1, (C.1)–(C.3): the complete family theorem with |
| 693 | +one strictly positive margin valid for every slow parameter in `K` and every |
| 694 | +fast angle. -/ |
| 765 | 695 | theorem exists_compact_trueCone_family_with_margin [FiniteDimensional ℝ E] |
| 766 | 696 | (a m p₁ p₂ : E → ℝ) {K B : Set E} |
| 767 | 697 | (hK : IsCompact K) (hB : IsCompact B) (hBK : B ⊆ K) |