| @@ -270,6 +270,61 @@ def InTrueCone (p₁ p₂ A C : ℝ) : Prop := |
| 270 | 270 | 0 < A ∧ 2 < A * (1 + (C / A) ^ 2) ∧ 2 < p₁ + p₂ * (C / A) ∧ |
| 271 | 271 | A * (1 + (C / A) ^ 2) < coneBound (p₁ + p₂ * (C / A)) (p₂ - p₁ * (C / A)) |
| 272 | 272 | |
| 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. -/ |
| 276 | +def HasConeMargin (ε p₁ p₂ A C : ℝ) : Prop := |
| 277 | + ε ≤ A ∧ ε ≤ A * (1 + (C / A) ^ 2) - 2 ∧ ε ≤ p₁ + p₂ * (C / A) - 2 ∧ |
| 278 | + ε ≤ coneBound (p₁ + p₂ * (C / A)) (p₂ - p₁ * (C / A)) - A * (1 + (C / A) ^ 2) |
| 279 | + |
| 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. -/ |
| 283 | +theorem compact_periodic_trueCone_margins {X : Type*} [TopologicalSpace X] |
| 284 | + (p₁ p₂ : X → ℝ) (A C : X × ℝ → ℝ) {K : Set X} (hK : IsCompact K) |
| 285 | + (hp₁ : ContinuousOn p₁ K) (hp₂ : ContinuousOn p₂ K) |
| 286 | + (hA : ContinuousOn A (K ×ˢ (univ : Set ℝ))) |
| 287 | + (hC : ContinuousOn C (K ×ˢ (univ : Set ℝ))) |
| 288 | + (hAp : ∀ x ∈ K, Function.Periodic (fun φ => A (x, φ)) 1) |
| 289 | + (hCp : ∀ x ∈ K, Function.Periodic (fun φ => C (x, φ)) 1) |
| 290 | + (hcone : ∀ x ∈ K, ∀ φ, InTrueCone (p₁ x) (p₂ x) (A (x, φ)) (C (x, φ))) : |
| 291 | + ∃ ε : ℝ, 0 < ε ∧ ∀ x ∈ K, ∀ φ, |
| 292 | + HasConeMargin ε (p₁ x) (p₂ x) (A (x, φ)) (C (x, φ)) := by |
| 293 | + let Q : Set (X × ℝ) := K ×ˢ Icc 0 1 |
| 294 | + have hQ : IsCompact Q := hK.prod isCompact_Icc |
| 295 | + have hAQ : ContinuousOn A Q := hA.mono (fun z hz => ⟨hz.1, mem_univ _⟩) |
| 296 | + have hCQ : ContinuousOn C Q := hC.mono (fun z hz => ⟨hz.1, mem_univ _⟩) |
| 297 | + have hp₁Q : ContinuousOn (fun z : X × ℝ => p₁ z.1) Q := |
| 298 | + hp₁.comp continuousOn_fst (fun _ hz => hz.1) |
| 299 | + have hp₂Q : ContinuousOn (fun z : X × ℝ => p₂ z.1) Q := |
| 300 | + hp₂.comp continuousOn_fst (fun _ hz => hz.1) |
| 301 | + let t : X × ℝ → ℝ := fun z => C z / A z |
| 302 | + let P : X × ℝ → ℝ := fun z => p₁ z.1 + p₂ z.1 * t z |
| 303 | + let J : X × ℝ → ℝ := fun z => p₂ z.1 - p₁ z.1 * t z |
| 304 | + let v : X × ℝ → ℝ := fun z => A z * (1 + t z ^ 2) |
| 305 | + have ht : ContinuousOn t Q := hCQ.div hAQ |
| 306 | + (fun z hz => ne_of_gt (hcone z.1 hz.1 z.2).1) |
| 307 | + have hP : ContinuousOn P Q := hp₁Q.add (hp₂Q.mul ht) |
| 308 | + have hJ : ContinuousOn J Q := hp₂Q.sub (hp₁Q.mul ht) |
| 309 | + have hv : ContinuousOn v Q := hAQ.mul (continuousOn_const.add (ht.pow 2)) |
| 310 | + obtain ⟨εa, hεa, hma⟩ := UniformCone.positive_uniform_margin hQ hAQ |
| 311 | + (fun z hz => (hcone z.1 hz.1 z.2).1) |
| 312 | + obtain ⟨εc, hεc, hmc⟩ := UniformCone.compact_trueCone_margins hQ hP hJ hv |
| 313 | + (fun z hz => (hcone z.1 hz.1 z.2).2) |
| 314 | + refine ⟨min εa εc, lt_min hεa hεc, fun x hx φ => ?_⟩ |
| 315 | + have hpair : Function.Periodic (fun θ => (A (x, θ), C (x, θ))) 1 := by |
| 316 | + intro θ |
| 317 | + exact Prod.ext (hAp x hx θ) (hCp x hx θ) |
| 318 | + obtain ⟨θ, hθ, heq⟩ := hpair.exists_mem_Ico₀ (by norm_num) φ |
| 319 | + have hAE : A (x, φ) = A (x, θ) := congrArg Prod.fst heq |
| 320 | + have hCE : C (x, φ) = C (x, θ) := congrArg Prod.snd heq |
| 321 | + rw [hAE, hCE] |
| 322 | + have hmem : (x, θ) ∈ Q := ⟨hx, hθ.1, hθ.2.le⟩ |
| 323 | + exact ⟨(min_le_left _ _).trans (hma (x, θ) hmem), |
| 324 | + (min_le_right _ _).trans (hmc (x, θ) hmem).1, |
| 325 | + (min_le_right _ _).trans (hmc (x, θ) hmem).2.1, |
| 326 | + (min_le_right _ _).trans (hmc (x, θ) hmem).2.2⟩ |
| 327 | + |
| 273 | 328 | theorem constructed_periodic (a m d p δ : ℝ) (ha : 0 < a) (hd : d ≠ 0) (hδ : 0 < δ) : |
| 274 | 329 | Function.Periodic (constructedA a m d p δ ha hd hδ) 1 ∧ |
| 275 | 330 | Function.Periodic (constructedC a m d p δ ha hd hδ) 1 := by |
| @@ -598,6 +653,80 @@ theorem family_joint_contDiffOn [FiniteDimensional ℝ E] |
| 598 | 653 | ParametricRephase.rephaseFamily_contDiffOn (familyDensity a m p d δ hd hδ) |
| 599 | 654 | (unphasedC a m p d δ) _ hU hrate hf.2⟩ |
| 600 | 655 | |
| 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. -/ |
| 661 | +theorem exists_compact_trueCone_family [FiniteDimensional ℝ E] |
| 662 | + (a m p₁ p₂ : E → ℝ) {K B : Set E} |
| 663 | + (hK : IsCompact K) (hB : IsCompact B) (hBK : B ⊆ K) |
| 664 | + (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) |
| 665 | + (hp₁ : ContDiff ℝ ∞ p₁) (hp₂ : ContDiff ℝ ∞ p₂) |
| 666 | + (haK : ∀ x ∈ K, 0 < a x) |
| 667 | + (hPK : ∀ x ∈ K, 2 < p₁ x + p₂ x * m x) |
| 668 | + (hrelaxed : ∀ x ∈ K, nominalSpeed (a x) (m x) < |
| 669 | + coneBound (p₁ x + p₂ x * m x) (p₂ x - p₁ x * m x)) |
| 670 | + (htrueB : ∀ x ∈ B, 2 < nominalSpeed (a x) (m x)) : |
| 671 | + ∃ U N : Set E, ∃ A C : E × ℝ → ℝ, |
| 672 | + IsOpen U ∧ K ⊆ U ∧ IsOpen N ∧ B ⊆ N ∧ N ⊆ U ∧ |
| 673 | + ContDiffOn ℝ ∞ A (U ×ˢ (univ : Set ℝ)) ∧ |
| 674 | + ContDiffOn ℝ ∞ C (U ×ˢ (univ : Set ℝ)) ∧ |
| 675 | + (∀ x ∈ K, Function.Periodic (fun φ => A (x, φ)) 1 ∧ |
| 676 | + Function.Periodic (fun φ => C (x, φ)) 1 ∧ |
| 677 | + (∫ φ in (0 : ℝ)..1, A (x, φ)) = a x ∧ |
| 678 | + (∫ φ in (0 : ℝ)..1, C (x, φ)) = a x * m x ∧ |
| 679 | + ∀ φ, InTrueCone (p₁ x) (p₂ x) (A (x, φ)) (C (x, φ))) ∧ |
| 680 | + (∀ x ∈ N, ∀ φ, A (x, φ) = a x ∧ C (x, φ) = a x * m x) := by |
| 681 | + obtain ⟨c⟩ := exists_family_choices a m p₁ p₂ hK hB ha.continuous hm.continuous |
| 682 | + hp₁.continuous hp₂.continuous haK hPK htrueB |
| 683 | + let U : Set E := {x | 0 < a x} |
| 684 | + let A := familyA a m p₂ c.d c.delta (ne_of_gt c.d_pos) c.delta_pos |
| 685 | + let C := familyC a m p₂ c.d c.delta (ne_of_gt c.d_pos) c.delta_pos |
| 686 | + obtain ⟨N, hN, hBN, hNU, hmatch⟩ := |
| 687 | + family_nominal_neighborhood a m p₁ p₂ c ha.continuous hm.continuous hBK |
| 688 | + have hs := family_joint_contDiffOn a m p₂ c.d c.delta ha hm hp₂ (ne_of_gt c.d_pos) c.delta_pos |
| 689 | + exact ⟨U, N, A, C, isOpen_lt continuous_const ha.continuous, haK, |
| 690 | + hN, hBN, hNU, hs.1, hs.2, family_pointwise_properties a m p₁ p₂ c hrelaxed, hmatch⟩ |
| 691 | + |
| 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. -/ |
| 695 | +theorem exists_compact_trueCone_family_with_margin [FiniteDimensional ℝ E] |
| 696 | + (a m p₁ p₂ : E → ℝ) {K B : Set E} |
| 697 | + (hK : IsCompact K) (hB : IsCompact B) (hBK : B ⊆ K) |
| 698 | + (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) |
| 699 | + (hp₁ : ContDiff ℝ ∞ p₁) (hp₂ : ContDiff ℝ ∞ p₂) |
| 700 | + (haK : ∀ x ∈ K, 0 < a x) |
| 701 | + (hPK : ∀ x ∈ K, 2 < p₁ x + p₂ x * m x) |
| 702 | + (hrelaxed : ∀ x ∈ K, nominalSpeed (a x) (m x) < |
| 703 | + coneBound (p₁ x + p₂ x * m x) (p₂ x - p₁ x * m x)) |
| 704 | + (htrueB : ∀ x ∈ B, 2 < nominalSpeed (a x) (m x)) : |
| 705 | + ∃ ε : ℝ, ∃ U N : Set E, ∃ A C : E × ℝ → ℝ, |
| 706 | + 0 < ε ∧ IsOpen U ∧ K ⊆ U ∧ IsOpen N ∧ B ⊆ N ∧ N ⊆ U ∧ |
| 707 | + ContDiffOn ℝ ∞ A (U ×ˢ (univ : Set ℝ)) ∧ |
| 708 | + ContDiffOn ℝ ∞ C (U ×ˢ (univ : Set ℝ)) ∧ |
| 709 | + (∀ x ∈ K, Function.Periodic (fun φ => A (x, φ)) 1 ∧ |
| 710 | + Function.Periodic (fun φ => C (x, φ)) 1 ∧ |
| 711 | + (∫ φ in (0 : ℝ)..1, A (x, φ)) = a x ∧ |
| 712 | + (∫ φ in (0 : ℝ)..1, C (x, φ)) = a x * m x ∧ |
| 713 | + ∀ φ, InTrueCone (p₁ x) (p₂ x) (A (x, φ)) (C (x, φ)) ∧ |
| 714 | + HasConeMargin ε (p₁ x) (p₂ x) (A (x, φ)) (C (x, φ))) ∧ |
| 715 | + (∀ x ∈ N, ∀ φ, A (x, φ) = a x ∧ C (x, φ) = a x * m x) := by |
| 716 | + obtain ⟨U, N, A, C, hU, hKU, hN, hBN, hNU, hA, hC, hloops, hmatch⟩ := |
| 717 | + exists_compact_trueCone_family a m p₁ p₂ hK hB hBK ha hm hp₁ hp₂ haK hPK hrelaxed htrueB |
| 718 | + have hsub : K ×ˢ (univ : Set ℝ) ⊆ U ×ˢ (univ : Set ℝ) := |
| 719 | + fun _ hz => ⟨hKU hz.1, hz.2⟩ |
| 720 | + obtain ⟨ε, hε, hmargin⟩ := compact_periodic_trueCone_margins p₁ p₂ A C hK |
| 721 | + hp₁.continuous.continuousOn hp₂.continuous.continuousOn |
| 722 | + (hA.continuousOn.mono hsub) (hC.continuousOn.mono hsub) |
| 723 | + (fun x hx => (hloops x hx).1) (fun x hx => (hloops x hx).2.1) |
| 724 | + (fun x hx => (hloops x hx).2.2.2.2) |
| 725 | + refine ⟨ε, U, N, A, C, hε, hU, hKU, hN, hBN, hNU, hA, hC, ?_, hmatch⟩ |
| 726 | + intro x hx |
| 727 | + obtain ⟨hpA, hpC, hmA, hmC, hc⟩ := hloops x hx |
| 728 | + exact ⟨hpA, hpC, hmA, hmC, fun φ => ⟨hc φ, hmargin x hx φ⟩⟩ |
| 729 | + |
| 601 | 730 | end SmoothFamily |
| 602 | 731 | |
| 603 | 732 | end |