Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

chore(NavierStokes/Modulated): delete 37 declarations nothing uses
Browse filesCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
ci/docs
Details
+0 −270 NavierStokes/ModulatedCone.lean View file
| @@ -326,45 +326,6 @@ theorem exists_integer_frequency (C ε : ℝ) (hε : 0 < ε) : | ||
| 326 | 326 | refine ⟨hn1, (div_le_iff₀ (lt_of_lt_of_le zero_lt_one hn1)).mpr ?_⟩ |
| 327 | 327 | nlinarith |
| 328 | 328 | |
| 329 | -/-- Interface for combining the derived shear bound with derived stock | |
| 330 | -estimates. The actual history construction supplies `hstock` below. -/ | |
| 331 | -theorem realized_trueCone_of_stock_bound | |
| 332 | - (r : TrueConeRealization a m p₁ p₂ K B) (E U : RadialParameter → ℝ) | |
| 333 | - (hK : IsCompact K) | |
| 334 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) | |
| 335 | - (hp₁ : ContDiff ℝ ∞ p₁) (hp₂ : ContDiff ℝ ∞ p₂) | |
| 336 | - (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) | |
| 337 | - (haK : ∀ p ∈ K, 0 < a p) (hX : ∀ p ∈ K, p.1 ≠ 0) | |
| 338 | - (hE0 : ∀ p ∈ K, E p ≠ 0) | |
| 339 | - (haNom : ∀ p ∈ K, a p = angularShear E p) | |
| 340 | - (hbNom : ∀ p ∈ K, a p * m p = signedAxialShear E U p) | |
| 341 | - (hrelaxed : ∀ p ∈ K, TrueConeLoop.nominalSpeed (a p) (m p) < | |
| 342 | - ConeAlgebra.coneBound (p₁ p + p₂ p * m p) (p₂ p - p₁ p * m p)) | |
| 343 | - (q₁ q₂ : ℝ → RadialParameter → ℝ) (Cstock : ℝ) | |
| 344 | - (hstock : ∀ n : ℝ, 1 ≤ n → ∀ p ∈ K, | |
| 345 | - |q₁ n p - p₁ p| ≤ Cstock / n ∧ |q₂ n p - p₂ p| ≤ Cstock / n) : | |
| 346 | - ∃ N : ℕ, 0 < N ∧ ∀ n : ℕ, N ≤ n → ∀ p ∈ K, | |
| 347 | - TrueConeLoop.InTrueCone (q₁ n p) (q₂ n p) | |
| 348 | - (angularShear (fun q => realizedE r E n q.1 q.2) p) | |
| 349 | - (signedAxialShear (fun q => realizedE r E n q.1 q.2) | |
| 350 | - (fun q => realizedU r E U n q.1 q.2) p) := by | |
| 351 | - obtain ⟨Cshear, _, hshear⟩ := realized_shears_uniform_bound r E U hK | |
| 352 | - ha hm hp₂ hE hU haK hX hE0 haNom hbNom | |
| 353 | - obtain ⟨ρ, hρ, hstable⟩ := realized_loop_stable r hK ha hm hp₁ hp₂ haK hrelaxed | |
| 354 | - obtain ⟨N, hN, hlarge⟩ := exists_integer_frequency (max Cstock Cshear) ρ hρ | |
| 355 | - refine ⟨N, hN, ?_⟩ | |
| 356 | - intro n hn p hp | |
| 357 | - obtain ⟨hn1, hsmall⟩ := hlarge n hn | |
| 358 | - have hn0 : (0 : ℝ) ≤ n := by positivity | |
| 359 | - have hs := hstock n hn1 p hp | |
| 360 | - have hv := hshear n hn1 p hp | |
| 361 | - have hCs : Cstock / n ≤ ρ := | |
| 362 | - (div_le_div_of_nonneg_right (le_max_left _ _) hn0).trans hsmall | |
| 363 | - have hCv : Cshear / n ≤ ρ := | |
| 364 | - (div_le_div_of_nonneg_right (le_max_right _ _) hn0).trans hsmall | |
| 365 | - exact hstable p hp (n * Real.log p.1) _ _ _ _ | |
| 366 | - (hs.1.trans hCs) (hs.2.trans hCs) (hv.1.trans hCv) (hv.2.trans hCv) | |
| 367 | - | |
| 368 | 329 | /-- Quotient perturbations controlled by a common positive denominator. -/ |
| 369 | 330 | theorem quotient_perturbation_bound {μ M ε x y e f : ℝ} |
| 370 | 331 | (hμ : 0 < μ) (hM : 0 ≤ M) (hε : 0 ≤ ε) |
| @@ -421,20 +382,6 @@ theorem shear_perturbation_bound {μ R M ε X E₀ E₁ EX₀ EX₁ UX₀ UX₁ | ||
| 421 | 382 | mul_le_mul hrad hquotC (abs_nonneg _) (by positivity) |
| 422 | 383 | _ = _ := by ring |
| 423 | 384 | |
| 424 | -/-- Equality on an open collar includes equality of the actual shears. -/ | |
| 425 | -theorem shears_eq_on_open {E U F V : RadialParameter → ℝ} {O : Set RadialParameter} | |
| 426 | - (hO : IsOpen O) (hE : EqOn E F O) (hU : EqOn U V O) | |
| 427 | - {p : RadialParameter} (hp : p ∈ O) : | |
| 428 | - angularShear E p = angularShear F p ∧ | |
| 429 | - signedAxialShear E U p = signedAxialShear F V p := by | |
| 430 | - have hnear : ∀ᶠ X in 𝓝 p.1, (X, p.2) ∈ O := | |
| 431 | - (continuousAt_id.prodMk continuousAt_const) (hO.mem_nhds hp) | |
| 432 | - have hED : deriv (fun X => E (X, p.2)) p.1 = deriv (fun X => F (X, p.2)) p.1 := | |
| 433 | - Filter.EventuallyEq.deriv_eq (hnear.mono (fun X hX => hE hX)) | |
| 434 | - have hUD : deriv (fun X => U (X, p.2)) p.1 = deriv (fun X => V (X, p.2)) p.1 := | |
| 435 | - Filter.EventuallyEq.deriv_eq (hnear.mono (fun X hX => hU hX)) | |
| 436 | - simp only [angularShear, signedAxialShear, hED, hUD, hE hp, and_self] | |
| 437 | - | |
| 438 | 385 | /-- The genuine derivative with the parameter held fixed. -/ |
| 439 | 386 | noncomputable def radialDerivative (E : RadialParameter → ℝ) (p : RadialParameter) : ℝ := |
| 440 | 387 | deriv (fun X => E (X, p.2)) p.1 |
| @@ -493,23 +440,6 @@ theorem compact_shear_perturbation | ||
| 493 | 440 | exact ⟨hnew, shear_perturbation_bound hδ hR hM hε hnom hnew hrad hEd hUd |
| 494 | 441 | hedit hEedit hUedit⟩ |
| 495 | 442 | |
| 496 | -/-- The primitive construction preserves a single open collar for the | |
| 497 | -values and the genuine radial shears, at every frequency. -/ | |
| 498 | -theorem realized_profiles_boundary_shears | |
| 499 | - (r : TrueConeRealization a m p₁ p₂ K B) (E U : RadialParameter → ℝ) | |
| 500 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hBK : B ⊆ K) : | |
| 501 | - ∃ O : Set RadialParameter, IsOpen O ∧ B ⊆ O ∧ ∀ n : ℝ, ∀ p ∈ O, | |
| 502 | - realizedE r E n p.1 p.2 = E p ∧ realizedU r E U n p.1 p.2 = U p ∧ | |
| 503 | - angularShear (fun q => realizedE r E n q.1 q.2) p = angularShear E p ∧ | |
| 504 | - signedAxialShear (fun q => realizedE r E n q.1 q.2) | |
| 505 | - (fun q => realizedU r E U n q.1 q.2) p = signedAxialShear E U p := by | |
| 506 | - obtain ⟨O, hO, hBO, heq⟩ := realized_profiles_boundary_match r E U ha hm hBK | |
| 507 | - refine ⟨O, hO, hBO, ?_⟩ | |
| 508 | - intro n p hp | |
| 509 | - exact ⟨(heq n p.1 p.2 hp).1, (heq n p.1 p.2 hp).2, | |
| 510 | - shears_eq_on_open hO (fun q hq => (heq n q.1 q.2 hq).1) | |
| 511 | - (fun q hq => (heq n q.1 q.2 hq).2) hp⟩ | |
| 512 | - | |
| 513 | 443 | /-- Local agreement along the radial variable suffices for exact shear agreement. -/ |
| 514 | 444 | theorem shears_eq_of_radial_eventuallyEq |
| 515 | 445 | {E U F V : RadialParameter → ℝ} {p : RadialParameter} |
| @@ -666,93 +596,6 @@ theorem fields_uniform_bound (W : ModulatedHistories.Window) | ||
| 666 | 596 | ModulatedHistories.splice, ite_eq_right hX, sub_self, abs_zero, and_self] |
| 667 | 597 | exact div_nonneg (hCf.trans (le_max_left _ _)) hn0 |
| 668 | 598 | |
| 669 | -/-- Each actual localized profile history has the constructed integral | |
| 670 | -difference; the pressure constant is retained exactly. -/ | |
| 671 | -theorem profileHistory_difference {D D' : RadialDomain} | |
| 672 | - (W : ModulatedHistories.Window) (r : TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 673 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) | |
| 674 | - (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) | |
| 675 | - (n : ℝ) (P : Profiles D) (Q : Profiles D') | |
| 676 | - (hPf : P.f = ModulatedHistories.localizedF W r f n) | |
| 677 | - (hPU : P.U = ModulatedHistories.localizedU W r E U n) | |
| 678 | - (hQf : Q.f = f) (hQU : Q.U = U) (hP0 : P.pressure0 = Q.pressure0) | |
| 679 | - (row : HistoryRow) (p : Point) (hX : 0 ≤ p.1) : | |
| 680 | - profileHistory P row p - profileHistory Q row p = | |
| 681 | - ModulatedHistories.historyDifference W r f E U n p.1 p.2 (historyIndex row) := by | |
| 682 | - rw [profileHistory_eq_row, profileHistory_eq_row] | |
| 683 | - change (ModulatedHistories.profileRows P p - ModulatedHistories.profileRows Q p) (historyIndex row) = _ | |
| 684 | - rw [ModulatedHistories.profileRows_sub P Q hP0, hPf, hPU, hQf, hQU, | |
| 685 | - ModulatedHistories.axisHistory_localized_sub W r f E U ha hm hp₂ hf hE hU n p.1 p.2 hX] | |
| 686 | - | |
| 687 | -/-- Actual localized history values and their first parameter derivatives | |
| 688 | -have one frequency-independent `C/n` bound. -/ | |
| 689 | -theorem profileHistory_uniform_bound {D D' : RadialDomain} | |
| 690 | - (W : ModulatedHistories.Window) (r : TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 691 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) | |
| 692 | - (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) | |
| 693 | - (P : ℝ → Profiles D) (Q : Profiles D') | |
| 694 | - (hPf : ∀ n, (P n).f = ModulatedHistories.localizedF W r f n) | |
| 695 | - (hPU : ∀ n, (P n).U = ModulatedHistories.localizedU W r E U n) | |
| 696 | - (hQf : Q.f = f) (hQU : Q.U = U) (hP0 : ∀ n, (P n).pressure0 = Q.pressure0) | |
| 697 | - (J : Set ℝ) (hJ : IsCompact J) : | |
| 698 | - ∃ C : ℝ, 0 < C ∧ ∀ n : ℝ, 1 ≤ n → ∀ p : Point, 0 ≤ p.1 → p.2 ∈ J → | |
| 699 | - p ∈ D.carrier → p ∈ D'.carrier → ∀ row : HistoryRow, | |
| 700 | - |profileHistory (P n) row p - profileHistory Q row p| ≤ C / n ∧ | |
| 701 | - |parameterPartial (profileHistory (P n) row) p - parameterPartial (profileHistory Q row) p| ≤ C / n := by | |
| 702 | - obtain ⟨C, hC, hb⟩ := ModulatedHistories.historyDifference_scalar_jets | |
| 703 | - W r f E U ha hm hp₂ hf hE hU J hJ 1 | |
| 704 | - refine ⟨C, hC, ?_⟩ | |
| 705 | - intro n hn p hX hη hp hp' row | |
| 706 | - have heq (η : ℝ) := profileHistory_difference W r f E U ha hm hp₂ hf hE hU n (P n) Q | |
| 707 | - (hPf n) (hPU n) hQf hQU (hP0 n) row (p.1, η) hX | |
| 708 | - have heqfun : (fun η => profileHistory (P n) row (p.1, η) - profileHistory Q row (p.1, η)) = | |
| 709 | - (fun η => ModulatedHistories.historyDifference W r f E U n p.1 η (historyIndex row)) := | |
| 710 | - funext heq | |
| 711 | - have hd := ((parameterPartial_hasDerivAt D (profileHistory_smooth (P n) row) hp).fun_sub | |
| 712 | - (parameterPartial_hasDerivAt D' (profileHistory_smooth Q row) hp')).deriv | |
| 713 | - rw [heqfun] at hd | |
| 714 | - constructor | |
| 715 | - · rw [heq p.2] | |
| 716 | - simpa only [iteratedDeriv_zero] using hb n hn p.1 p.2 hη 0 (by omega) (historyIndex row) | |
| 717 | - · simpa only [iteratedDeriv_one, hd] using hb n hn p.1 p.2 hη 1 le_rfl (historyIndex row) | |
| 718 | - | |
| 719 | -/-- The actual stocks of the localized modulation have a uniform `C/n` | |
| 720 | -bound, derived from its actual axis-integrated histories. -/ | |
| 721 | -theorem profile_stocks_rate {D D' : RadialDomain} | |
| 722 | - (W : ModulatedHistories.Window) (r : TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 723 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) | |
| 724 | - (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) | |
| 725 | - (P : ℝ → Profiles D) (Q : Profiles D') | |
| 726 | - (hPf : ∀ n, (P n).f = ModulatedHistories.localizedF W r f n) | |
| 727 | - (hPU : ∀ n, (P n).U = ModulatedHistories.localizedU W r E U n) | |
| 728 | - (hQf : Q.f = f) (hQU : Q.U = U) (hP0 : ∀ n, (P n).pressure0 = Q.pressure0) | |
| 729 | - (J : Set ℝ) (hJ : IsCompact J) (T : Set Point) (hT : IsCompact T) | |
| 730 | - (hTJ : ∀ p ∈ T, p.2 ∈ J) (hTD : T ⊆ D.carrier) (hTD' : T ⊆ D'.carrier) | |
| 731 | - (h : ℝ) (hX : ∀ p ∈ T, 0 < p.1) (hL : ∀ p ∈ T, NaturalAxisData.L h p.2 ≠ 0) | |
| 732 | - (hpos : ∀ p ∈ T, 0 < Q.f p) : | |
| 733 | - ∃ N : ℕ, ∃ C : ℝ, 0 < N ∧ 0 ≤ C ∧ ∀ n : ℝ, (N : ℝ) ≤ n → ∀ p ∈ T, | |
| 734 | - 0 < (P n).f p ∧ | |
| 735 | - |ActivationStocks.profileStockOne (P n) h p - ActivationStocks.profileStockOne Q h p| ≤ C / n ∧ | |
| 736 | - |ActivationStocks.profileStockTwo (P n) h p - ActivationStocks.profileStockTwo Q h p| ≤ C / n := by | |
| 737 | - obtain ⟨Cf, hCf, hfb⟩ := fields_uniform_bound W r f E U ha hm hp₂ hf hE hU J hJ | |
| 738 | - obtain ⟨CH, hCH, hHb⟩ := profileHistory_uniform_bound W r f E U ha hm hp₂ hf hE hU P Q | |
| 739 | - hPf hPU hQf hQU hP0 J hJ | |
| 740 | - apply ModulatedStockBounds.profile_stocks_rate Q h P hT hTD' hTD hX hL hpos 1 (max Cf CH) | |
| 741 | - (hCf.trans (le_max_left _ _)) | |
| 742 | - intro n _ hn p hp | |
| 743 | - have hn0 : 0 ≤ n := le_trans zero_le_one hn | |
| 744 | - have hfbound : Cf / n ≤ max Cf CH / n := div_le_div_of_nonneg_right (le_max_left _ _) hn0 | |
| 745 | - have hHbound : CH / n ≤ max Cf CH / n := div_le_div_of_nonneg_right (le_max_right _ _) hn0 | |
| 746 | - obtain ⟨hfv, hUv⟩ := hfb n hn p.1 p.2 (hTJ p hp) | |
| 747 | - refine ⟨?_, ?_, ?_⟩ | |
| 748 | - · rw [hPf n, hQf] | |
| 749 | - exact hfv.trans hfbound | |
| 750 | - · rw [hPU n, hQU] | |
| 751 | - exact hUv.trans hfbound | |
| 752 | - · intro row | |
| 753 | - have hb := hHb n hn p (hX p hp).le (hTJ p hp) (hTD hp) (hTD' hp) row | |
| 754 | - exact ⟨hb.1.trans hHbound, hb.2.trans hHbound⟩ | |
| 755 | - | |
| 756 | 599 | theorem splice_eventuallyEq (W : ModulatedHistories.Window) (base actual : Field) |
| 757 | 600 | {p : Point} (hp : p.1 ∈ Icc W.left W.right) |
| 758 | 601 | (hleft : p.1 = W.left → actual =ᶠ[𝓝 p] base) |
| @@ -829,94 +672,6 @@ theorem physical_profile_germs {D : RadialDomain} (W : ModulatedHistories.Window | ||
| 829 | 672 | exact hraw.2 |
| 830 | 673 | exact ⟨hEj, hUj⟩ |
| 831 | 674 | |
| 832 | -/-- Both shears of the actual localized physical profiles equal the | |
| 833 | -already estimated realized shears, including at the boundary collars. -/ | |
| 834 | -theorem physical_shears_match {D : RadialDomain} (W : ModulatedHistories.Window) | |
| 835 | - (r : TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 836 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hBK : B ⊆ K) | |
| 837 | - (J : Set ℝ) (hends : ∀ η ∈ J, (W.left, η) ∈ B ∧ (W.right, η) ∈ B) | |
| 838 | - (n : ℝ) (P : Profiles D) | |
| 839 | - (hPf : P.f = ModulatedHistories.localizedF W r f n) | |
| 840 | - (hPU : P.U = ModulatedHistories.localizedU W r E U n) | |
| 841 | - {p : Point} (hp : p.1 ∈ Icc W.left W.right) (hη : p.2 ∈ J) | |
| 842 | - (hphys : E =ᶠ[𝓝 p] fun q => Real.sqrt (2 * q.1) * f q) : | |
| 843 | - angularShear P.E p = angularShear (fun q => realizedE r E n q.1 q.2) p ∧ | |
| 844 | - signedAxialShear P.E P.U p = signedAxialShear (fun q => realizedE r E n q.1 q.2) | |
| 845 | - (fun q => realizedU r E U n q.1 q.2) p := by | |
| 846 | - obtain ⟨hEj, hUj⟩ := physical_profile_germs W r f E U ha hm hBK J hends n P hPf hPU hp hη hphys | |
| 847 | - have hrad : Filter.Tendsto (fun X : ℝ => (X, p.2)) (𝓝 p.1) (𝓝 p) := | |
| 848 | - continuousAt_id.prodMk continuousAt_const | |
| 849 | - exact shears_eq_of_radial_eventuallyEq (p := p) (E := P.E) (U := P.U) | |
| 850 | - (F := fun q => realizedE r E n q.1 q.2) (V := fun q => realizedU r E U n q.1 q.2) | |
| 851 | - (hEj.comp_tendsto hrad) (hUj.comp_tendsto hrad) | |
| 852 | - | |
| 853 | -/-- A finite integer frequency puts the actual localized profiles, with | |
| 854 | -their actual axis-integrated stresses, in the true cone throughout the | |
| 855 | -closed modulation window. All error bounds are derived in this theorem. -/ | |
| 856 | -theorem profiles_trueCone {D D' : RadialDomain} | |
| 857 | - (W : ModulatedHistories.Window) (r : TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 858 | - (hK : IsCompact K) (hKW : ∀ p ∈ K, p.1 ∈ Icc W.left W.right) | |
| 859 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) | |
| 860 | - (hp₁ : ContDiff ℝ ∞ p₁) (hp₂ : ContDiff ℝ ∞ p₂) | |
| 861 | - (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) | |
| 862 | - (haK : ∀ p ∈ K, 0 < a p) | |
| 863 | - (haNom : ∀ p ∈ K, a p = angularShear E p) | |
| 864 | - (hbNom : ∀ p ∈ K, a p * m p = signedAxialShear E U p) | |
| 865 | - (hrelaxed : ∀ p ∈ K, TrueConeLoop.nominalSpeed (a p) (m p) < | |
| 866 | - ConeAlgebra.coneBound (p₁ p + p₂ p * m p) (p₂ p - p₁ p * m p)) | |
| 867 | - (P : ℝ → Profiles D) (Q : Profiles D') | |
| 868 | - (hPf : ∀ n, (P n).f = ModulatedHistories.localizedF W r f n) | |
| 869 | - (hPU : ∀ n, (P n).U = ModulatedHistories.localizedU W r E U n) | |
| 870 | - (hQf : Q.f = f) (hQU : Q.U = U) (hP0 : ∀ n, (P n).pressure0 = Q.pressure0) | |
| 871 | - (J : Set ℝ) (hJ : IsCompact J) (hKJ : ∀ p ∈ K, p.2 ∈ J) | |
| 872 | - (hKD : K ⊆ D.carrier) (hKD' : K ⊆ D'.carrier) | |
| 873 | - (h : ℝ) (hL : ∀ p ∈ K, NaturalAxisData.L h p.2 ≠ 0) | |
| 874 | - (hpos : ∀ p ∈ K, 0 < Q.f p) | |
| 875 | - (hstock₁ : ∀ p ∈ K, p₁ p = ActivationStocks.profileStockOne Q h p) | |
| 876 | - (hstock₂ : ∀ p ∈ K, p₂ p = ActivationStocks.profileStockTwo Q h p) | |
| 877 | - (hBK : B ⊆ K) (hends : ∀ η ∈ J, (W.left, η) ∈ B ∧ (W.right, η) ∈ B) | |
| 878 | - (hphys : ∀ p ∈ K, E =ᶠ[𝓝 p] fun q => Real.sqrt (2 * q.1) * f q) : | |
| 879 | - ∃ N : ℕ, 0 < N ∧ ∀ n : ℕ, N ≤ n → ∀ p ∈ K, | |
| 880 | - 0 < (P n).f p ∧ | |
| 881 | - TrueConeLoop.InTrueCone (ActivationStocks.profileStockOne (P n) h p) | |
| 882 | - (ActivationStocks.profileStockTwo (P n) h p) | |
| 883 | - (angularShear (P n).E p) (signedAxialShear (P n).E (P n).U p) := by | |
| 884 | - have hX : ∀ p ∈ K, 0 < p.1 := fun p hp => W.left_pos.trans_le (hKW p hp).1 | |
| 885 | - have hE0 : ∀ p ∈ K, E p ≠ 0 := by | |
| 886 | - intro p hp | |
| 887 | - rw [(hphys p hp).eq_of_nhds] | |
| 888 | - have hfpos : 0 < f p := by rw [← hQf]; exact hpos p hp | |
| 889 | - exact (mul_pos (Real.sqrt_pos.mpr (mul_pos (by norm_num) (hX p hp))) hfpos).ne' | |
| 890 | - obtain ⟨Ns, Cs, _, _, hsb⟩ := profile_stocks_rate W r f E U ha hm hp₂ hf hE hU P Q | |
| 891 | - hPf hPU hQf hQU hP0 J hJ K hK hKJ hKD hKD' h hX hL hpos | |
| 892 | - obtain ⟨Cv, _, hvb⟩ := realized_shears_uniform_bound r E U hK ha hm hp₂ hE hU haK | |
| 893 | - (fun p hp => (hX p hp).ne') hE0 haNom hbNom | |
| 894 | - obtain ⟨ρ, hρ, hstable⟩ := realized_loop_stable r hK ha hm hp₁ hp₂ haK hrelaxed | |
| 895 | - obtain ⟨Nc, hNc, hlarge⟩ := exists_integer_frequency (max Cs Cv) ρ hρ | |
| 896 | - refine ⟨max Ns Nc, hNc.trans_le (le_max_right _ _), ?_⟩ | |
| 897 | - intro n hn p hp | |
| 898 | - have hns : Ns ≤ n := (le_max_left _ _).trans hn | |
| 899 | - have hnc : Nc ≤ n := (le_max_right _ _).trans hn | |
| 900 | - obtain ⟨hn1, hsmall⟩ := hlarge n hnc | |
| 901 | - have hn0 : (0 : ℝ) ≤ n := by positivity | |
| 902 | - have hs := hsb n (by exact_mod_cast hns) p hp | |
| 903 | - have hv := hvb n hn1 p hp | |
| 904 | - have hCs : Cs / (n : ℝ) ≤ ρ := | |
| 905 | - (div_le_div_of_nonneg_right (le_max_left _ _) hn0).trans hsmall | |
| 906 | - have hCv : Cv / (n : ℝ) ≤ ρ := | |
| 907 | - (div_le_div_of_nonneg_right (le_max_right _ _) hn0).trans hsmall | |
| 908 | - have heq := physical_shears_match W r f E U ha hm hBK J hends n (P n) | |
| 909 | - (hPf n) (hPU n) (hKW p hp) (hKJ p hp) (hphys p hp) | |
| 910 | - refine ⟨hs.1, ?_⟩ | |
| 911 | - rw [heq.1, heq.2] | |
| 912 | - apply hstable p hp (n * Real.log p.1) _ _ _ _ | |
| 913 | - · rw [hstock₁ p hp] | |
| 914 | - exact hs.2.1.trans hCs | |
| 915 | - · rw [hstock₂ p hp] | |
| 916 | - exact hs.2.2.trans hCs | |
| 917 | - · exact hv.1.trans hCv | |
| 918 | - · exact hv.2.trans hCv | |
| 919 | - | |
| 920 | 675 | theorem after_window_agreement (W : ModulatedHistories.Window) |
| 921 | 676 | (r : TrueConeRealization a m p₁ p₂ K B) (f E U : Field) |
| 922 | 677 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) |
| @@ -1151,31 +906,6 @@ theorem field_C1_bound (patch : FiveProfileMoments.Patch) (J : Set ℝ) (hJ : Is | ||
| 1151 | 906 | simpa only [norm_iteratedFDeriv_zero, iteratedDeriv_zero, iteratedDeriv_one, |
| 1152 | 907 | Real.norm_eq_abs, radialDerivative] using And.intro hv (And.intro hd.2 hd.1) |
| 1153 | 908 | |
| 1154 | -/-- A later repair preserves the already realized shears on the entire | |
| 1155 | -closed modulation window, including both endpoint collars. -/ | |
| 1156 | -theorem window_shears_match {D D' : RadialDomain} (W : ModulatedHistories.Window) | |
| 1157 | - (r : TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 1158 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hBK : B ⊆ K) | |
| 1159 | - (J : Set ℝ) (hends : ∀ η ∈ J, (W.left, η) ∈ B ∧ (W.right, η) ∈ B) | |
| 1160 | - (n : ℝ) (Q : Profiles D) (P : Profiles D') | |
| 1161 | - (hQf : Q.f = ModulatedHistories.localizedF W r f n) | |
| 1162 | - (hQU : Q.U = ModulatedHistories.localizedU W r E U n) | |
| 1163 | - (patch : FiveProfileMoments.Patch) (A : ℝ → ℝ) (c : ℝ → ModulatedHistories.Coeff) | |
| 1164 | - (hgap : W.right < patch.left) | |
| 1165 | - (hPf : P.f = ModulatedHistories.applyRepairF patch A c Q.f) | |
| 1166 | - (hPU : P.U = ModulatedHistories.applyRepairU patch A c Q.U) | |
| 1167 | - {p : Point} (hp : p.1 ∈ Icc W.left W.right) (hη : p.2 ∈ J) | |
| 1168 | - (hphys : E =ᶠ[𝓝 p] fun q => Real.sqrt (2 * q.1) * f q) : | |
| 1169 | - angularShear P.E p = angularShear (fun q => realizedE r E n q.1 q.2) p ∧ | |
| 1170 | - signedAxialShear P.E P.U p = signedAxialShear (fun q => realizedE r E n q.1 q.2) | |
| 1171 | - (fun q => realizedU r E U n q.1 q.2) p := by | |
| 1172 | - have hout : p.1 ∉ Ioo patch.left patch.right := by | |
| 1173 | - intro hx | |
| 1174 | - linarith [hp.2, hx.1] | |
| 1175 | - have hr := shears_unchanged_outside P Q patch A c hPf hPU hout | |
| 1176 | - have hm := Localized.physical_shears_match W r f E U ha hm hBK J hends n Q hQf hQU hp hη hphys | |
| 1177 | - exact ⟨hr.2.2.1.trans hm.1, hr.2.2.2.trans hm.2⟩ | |
| 1178 | - | |
| 1179 | 909 | /-- The actual repaired profile data satisfy a uniform estimate before, |
| 1180 | 910 | inside, and after the repair. The two contributions are the modulation |
| 1181 | 911 | error and the coefficient size of this same physical repair. -/ |
+0 −79 NavierStokes/ModulatedExterior.lean View file
| @@ -121,20 +121,6 @@ theorem modified_pressure_after (henergy : RestoredSquaredSwirl W Q (S := S)) | ||
| 121 | 121 | M.pressure0 (henergy eta heta) |
| 122 | 122 | exact fun r hr => (modified_fields_after W Q M hr.1 heta).1 |
| 123 | 123 | |
| 124 | -/-- The reconstructed pressure is the actual canonical tail integral in | |
| 125 | -the exterior. Its integration constant was fixed by the restored row. -/ | |
| 126 | -theorem modified_pressure_canonical_after (henergy : RestoredSquaredSwirl W Q (S := S)) | |
| 127 | - {X eta : ℝ} (hX : nominalOuterX W ≤ X) (heta : eta ∈ Icc (-1 : ℝ) 1) : | |
| 128 | - Q.pressure (X, eta) = -(∫ r in Ioi X, Q.f (r, eta) ^ 2) := by | |
| 129 | - rw [modified_pressure_after W Q M henergy hX (M.contains heta)] | |
| 130 | - change W.Pi (X, eta) = _ | |
| 131 | - rw [nominal_pressure_regular_integral W ((nominalOuterX_pos W).le.trans hX) heta] | |
| 132 | - congr 1 | |
| 133 | - apply setIntegral_congr_fun measurableSet_Ioi | |
| 134 | - intro r hr | |
| 135 | - exact congrArg (fun u : ℝ => u ^ 2) | |
| 136 | - (modified_fields_after W Q M (hX.trans hr.le) (M.contains heta)).1.symm | |
| 137 | - | |
| 138 | 124 | end FiniteModification |
| 139 | 125 | |
| 140 | 126 | section SchemeRealization |
| @@ -147,14 +133,6 @@ structure RealizesScheme {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) | ||
| 147 | 133 | axial : d.axial = fun n => extendedCoefficient s hI n 1 |
| 148 | 134 | pressure : d.pressure = fun n => extendedCoefficient s hI n 3 |
| 149 | 135 | |
| 150 | -theorem realizes_coefficients {S : Set ℝ} {h C rho inner : ℝ} {U : Set ℂ} | |
| 151 | - {base : Fin 5 → InnerProfile} {s : Scheme S h C} | |
| 152 | - {A : SlowRecursion.LocalHierarchy rho U h C base} | |
| 153 | - (L : Localization s A inner) (B0 : BaseAgreement s A inner) | |
| 154 | - (Z0 : ZeroOrderSolved s inner) (hI : Icc (-1 : ℝ) 1 ⊆ S) : | |
| 155 | - RealizesScheme s hI (AssembledSlowBase.coefficients L B0 Z0 hI) := | |
| 156 | - ⟨rfl, rfl, rfl⟩ | |
| 157 | - | |
| 158 | 136 | variable {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 159 | 137 | {D : ProfileHistories.RadialDomain} (Q : ProfileHistories.Profiles D) |
| 160 | 138 | {S : Set ℝ} {lo hi : ℝ} (M : FiniteModification W Q S lo hi) |
| @@ -338,44 +316,6 @@ theorem actual_exterior_coefficients : | ||
| 338 | 316 | ExteriorCoefficients (ConstructedSlowBase.Modulated.coefficients v) (nominalExteriorRadius W) := |
| 339 | 317 | realized_exterior_coefficients W v.profiles v.finiteModification (actual_realizes v) rfl rfl |
| 340 | 318 | |
| 341 | -/-- Exact heat exterior for this actual modulated sequence and any strictly | |
| 342 | -increasing cutoff schedule. The pressure anchor is discharged internally. -/ | |
| 343 | -theorem actual_base_eq_heat {a : ℕ → ℕ} (ha : StrictMono a) : | |
| 344 | - EqOn (baseVelocity a F.data.h W.axis.normalization (ConstructedSlowBase.Modulated.coefficients v)) | |
| 345 | - (heatVelocity (nominalHeatNormalization W) F.data.h) | |
| 346 | - (cartesianExterior F.data.h (nominalExteriorRadius W)) ∧ | |
| 347 | - EqOn (basePressure a F.data.h W.axis.normalization (ConstructedSlowBase.Modulated.coefficients v)) | |
| 348 | - (heatPressureField (nominalHeatNormalization W) F.data.h) | |
| 349 | - (cartesianExterior F.data.h (nominalExteriorRadius W)) := | |
| 350 | - realized_base_eq_heat W v.profiles v.finiteModification (actual_realizes v) rfl rfl | |
| 351 | - (ConstructedSlowBase.Modulated.coefficients_smooth v) (actual_squared_swirl_restored v) ha | |
| 352 | - | |
| 353 | -theorem actual_fields_eq_heat (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) : | |
| 354 | - EqOn (ConstructedSlowBase.Modulated.velocity v c hc upper B) | |
| 355 | - (heatVelocity (nominalHeatNormalization W) F.data.h) | |
| 356 | - (cartesianExterior F.data.h (nominalExteriorRadius W)) ∧ | |
| 357 | - EqOn (ConstructedSlowBase.Modulated.pressure v c hc upper B) | |
| 358 | - (heatPressureField (nominalHeatNormalization W) F.data.h) | |
| 359 | - (cartesianExterior F.data.h (nominalExteriorRadius W)) := | |
| 360 | - actual_base_eq_heat v (ConstructedSlowBase.Modulated.scales_strictMono v c hc upper B) | |
| 361 | - | |
| 362 | -theorem actual_residual_zero (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) | |
| 363 | - {z : SpaceTime} (hz : z ∈ cartesianExterior F.data.h (nominalExteriorRadius W)) : | |
| 364 | - navierStokesResidual (ConstructedSlowBase.Modulated.velocity v c hc upper B) | |
| 365 | - (ConstructedSlowBase.Modulated.pressure v c hc upper B) z.1 z.2 = 0 := | |
| 366 | - realized_base_residual_zero W v.profiles v.finiteModification (actual_realizes v) rfl rfl | |
| 367 | - (ConstructedSlowBase.Modulated.coefficients_smooth v) (actual_squared_swirl_restored v) | |
| 368 | - (ConstructedSlowBase.Modulated.scales_strictMono v c hc upper B) hz | |
| 369 | - | |
| 370 | -theorem actual_residual_jets_zero (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) | |
| 371 | - {z : SpaceTime} (hz : z ∈ cartesianExterior F.data.h (nominalExteriorRadius W)) (m : ℕ) : | |
| 372 | - iteratedFDeriv ℝ m (fun y => navierStokesResidual | |
| 373 | - (ConstructedSlowBase.Modulated.velocity v c hc upper B) | |
| 374 | - (ConstructedSlowBase.Modulated.pressure v c hc upper B) y.1 y.2) z = 0 := | |
| 375 | - realized_residual_jets_zero W v.profiles v.finiteModification (actual_realizes v) rfl rfl | |
| 376 | - (ConstructedSlowBase.Modulated.coefficients_smooth v) (actual_squared_swirl_restored v) | |
| 377 | - (ConstructedSlowBase.Modulated.scales_strictMono v c hc upper B) hz m | |
| 378 | - | |
| 379 | 319 | end ActualModulation |
| 380 | 320 | |
| 381 | 321 | section JointTerminalExtension |
| @@ -510,25 +450,6 @@ theorem realized_terminal_extension {F : OutgoingProfile.Profile} (W : NominalPr | ||
| 510 | 450 | exact completed_fields_smooth_near_terminal F.data.h_pos F.data.h_lt_half |
| 511 | 451 | (nominalExteriorRadius_pos W).le he.1 he.2 hx hs |
| 512 | 452 | |
| 513 | -theorem actual_terminal_extension {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} | |
| 514 | - {ld : ModulatedProfileAssembly.LoopData W} (v : ModulatedProfileAssembly.Witness ld) | |
| 515 | - (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) {x : Space} | |
| 516 | - (hx : x 2 = 0) (hs : 0 < AxisymmetricFields.radialEnergy x) : | |
| 517 | - ∃ U : Set SpaceTime, IsOpen U ∧ (1, x) ∈ U ∧ | |
| 518 | - EqOn (completedVelocity (nominalHeatNormalization W) F.data.h | |
| 519 | - (ConstructedSlowBase.Modulated.velocity v c hc upper B)) | |
| 520 | - (heatVelocity (nominalHeatNormalization W) F.data.h) U ∧ | |
| 521 | - EqOn (completedPressure (nominalHeatNormalization W) F.data.h | |
| 522 | - (ConstructedSlowBase.Modulated.pressure v c hc upper B)) | |
| 523 | - (heatPressureField (nominalHeatNormalization W) F.data.h) U ∧ | |
| 524 | - ContDiffOn ℝ ∞ (completedVelocity (nominalHeatNormalization W) F.data.h | |
| 525 | - (ConstructedSlowBase.Modulated.velocity v c hc upper B)) (U ∩ (Iic 1 ×ˢ (univ : Set Space))) ∧ | |
| 526 | - ContDiffOn ℝ ∞ (completedPressure (nominalHeatNormalization W) F.data.h | |
| 527 | - (ConstructedSlowBase.Modulated.pressure v c hc upper B)) (U ∩ (Iic 1 ×ˢ (univ : Set Space))) := by | |
| 528 | - have he := actual_fields_eq_heat v c hc upper B | |
| 529 | - exact completed_fields_smooth_near_terminal F.data.h_pos F.data.h_lt_half | |
| 530 | - (nominalExteriorRadius_pos W).le he.1 he.2 hx hs | |
| 531 | - | |
| 532 | 453 | end JointTerminalExtension |
| 533 | 454 | |
| 534 | 455 | end |
+0 −57 NavierStokes/ModulatedHistories.lean View file
| @@ -444,25 +444,6 @@ theorem axisHistory_localized_sub (W : Window) | ||
| 444 | 444 | simp_rw [localized_density_difference] |
| 445 | 445 | exact integral_indicator_window W _ hX |
| 446 | 446 | |
| 447 | -theorem actual_axisHistory_jets (W : Window) | |
| 448 | - (r : ParametricModulation.TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 449 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) | |
| 450 | - (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) | |
| 451 | - (S : Set ℝ) (hS : IsCompact S) (q : ℕ) : | |
| 452 | - ∃ C : ℝ, 0 < C ∧ ∀ N : ℝ, 1 ≤ N → ∀ X : ℝ, 0 ≤ X → | |
| 453 | - JetBounds.FiniteJetBound q (fun eta => | |
| 454 | - axisHistory (localizedF W r f N) (localizedU W r E U N) (X, eta) - | |
| 455 | - axisHistory f U (X, eta)) S (C / N) := by | |
| 456 | - obtain ⟨C, hC, hb⟩ := historyDifference_jets W r f E U ha hm hp₂ hf hE hU S hS q | |
| 457 | - refine ⟨C, hC, ?_⟩ | |
| 458 | - intro N hN X hX | |
| 459 | - have he : (fun eta => axisHistory (localizedF W r f N) (localizedU W r E U N) (X, eta) - | |
| 460 | - axisHistory f U (X, eta)) = historyDifference W r f E U N X := by | |
| 461 | - funext eta | |
| 462 | - exact axisHistory_localized_sub W r f E U ha hm hp₂ hf hE hU N X eta hX | |
| 463 | - rw [he] | |
| 464 | - exact hb N hN X | |
| 465 | - | |
| 466 | 447 | /-! ## A linear finite-jet bound for the actual nonlinear inverse -/ |
| 467 | 448 | |
| 468 | 449 | theorem iteratedFDeriv_comp_clm_on {F G H : Type*} |
| @@ -1391,42 +1372,4 @@ theorem repaired_axisHistory_jets (W : Window) | ||
| 1391 | 1372 | exact (norm_add_le _ _).trans (add_le_add (hb1 N hN X j hj eta heta) |
| 1392 | 1373 | (hb2 c hc eps heps hed hcb X j hj eta heta)) |
| 1393 | 1374 | |
| 1394 | -/-- An actual smooth correction for every sufficiently large frequency, | |
| 1395 | -with exact restoration on an open parameter neighborhood. Its debt is the | |
| 1396 | -integral of the constructed modulation, rather than an assumed small row. -/ | |
| 1397 | -theorem exists_actual_restoring_repair (W : Window) | |
| 1398 | - (r : ParametricModulation.TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 1399 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) | |
| 1400 | - (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) | |
| 1401 | - (P : FiveProfileMoments.Patch) (hWP : W.right < P.left) (b : ℝ) | |
| 1402 | - (hb : FiveProfileMoments.GoodExponent b) (A G : ℝ → ℝ) | |
| 1403 | - (hA : ContDiff ℝ ∞ A) (hG : ContDiff ℝ ∞ G) (hApos : ∀ eta, 0 < A eta) | |
| 1404 | - (S J : Set ℝ) (hS : IsCompact S) (hJ : IsOpen J) (hSJ : S ⊆ J) | |
| 1405 | - (hpatchU : ∀ eta ∈ J, ∀ X ∈ Ioo P.left P.right, U (X, eta) = G eta) | |
| 1406 | - (hpatchE : ∀ eta ∈ J, ∀ X ∈ Ioo P.left P.right, | |
| 1407 | - Real.sqrt (2 * X) * f (X, eta) = A eta * X ^ b) (q : ℕ) : | |
| 1408 | - ∃ N0 C : ℝ, 1 ≤ N0 ∧ 0 < C ∧ ∀ N : ℝ, N0 ≤ N → | |
| 1409 | - ∃ (c : ℝ → Coeff) (V : Set ℝ), ContDiff ℝ ∞ c ∧ IsOpen V ∧ S ⊆ V ∧ V ⊆ J ∧ | |
| 1410 | - JetBounds.FiniteJetBound q c S (C / N) ∧ | |
| 1411 | - ∀ eta ∈ V, ∀ X : ℝ, P.right ≤ X → | |
| 1412 | - axisHistory (applyRepairF P A c (localizedF W r f N)) | |
| 1413 | - (applyRepairU P A c (localizedU W r E U N)) (X, eta) = axisHistory f U (X, eta) := by | |
| 1414 | - obtain ⟨N0, C, hN0, hC, hsolve⟩ := actual_repair_family W r f E U ha hm hp₂ hf hE hU | |
| 1415 | - P b hb S hS A G hA hG hApos q | |
| 1416 | - refine ⟨N0, C, hN0, hC, ?_⟩ | |
| 1417 | - intro N hN | |
| 1418 | - obtain ⟨c, V, hc, hV, hSV, hmom, hcb⟩ := hsolve N hN | |
| 1419 | - refine ⟨c, V ∩ J, hc, hV.inter hJ, fun eta heta => ⟨hSV heta, hSJ heta⟩, | |
| 1420 | - inter_subset_right, hcb, ?_⟩ | |
| 1421 | - intro eta heta X hX | |
| 1422 | - exact actual_histories_restored W r f E U ha hm hp₂ hf hE hU P hWP b A G c N eta X hX | |
| 1423 | - (hApos eta).ne' (hpatchU eta heta.2) (hpatchE eta heta.2) (hmom eta heta.1).1 | |
| 1424 | - | |
| 1425 | -theorem profileRows_eq_of_axisHistory_eq {D D' : ProfileHistories.RadialDomain} | |
| 1426 | - (P : ProfileHistories.Profiles D) (Q : ProfileHistories.Profiles D') | |
| 1427 | - (hP0 : P.pressure0 = Q.pressure0) {p : Point} | |
| 1428 | - (h : axisHistory P.f P.U p = axisHistory Q.f Q.U p) : profileRows P p = profileRows Q p := by | |
| 1429 | - apply sub_eq_zero.mp | |
| 1430 | - rw [profileRows_sub P Q hP0 p, h, sub_self] | |
| 1431 | - | |
| 1432 | 1375 | end NavierStokes.ModulatedHistories |
+0 −21 NavierStokes/ModulatedProfileAssembly.lean View file
| @@ -129,8 +129,6 @@ noncomputable def profiles : Profiles (ModulatedHistories.stripDomain univ isOpe | ||
| 129 | 129 | ModulatedHistories.profiles univ isOpen_univ d.f d.U F.axisDatum d.f_smooth.contDiffOn d.U_smooth.contDiffOn |
| 130 | 130 | F.axisDatum_contDiff.contDiffOn |
| 131 | 131 | |
| 132 | -theorem pressure0_eq : d.profiles.pressure0 = W.profiles.pressure0 := rfl | |
| 133 | - | |
| 134 | 132 | /-- These are absolute histories, not the histories of a radially clamped field. -/ |
| 135 | 133 | theorem rows_eq {X eta : ℝ} (hX : 0 ≤ X) (heta : eta ∈ d.target) : |
| 136 | 134 | ModulatedHistories.profileRows d.profiles (X, eta) = ModulatedHistories.profileRows W.profiles (X, eta) := by |
| @@ -579,8 +577,6 @@ namespace Witness | ||
| 579 | 577 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 580 | 578 | {d : LoopData W} (v : Witness d) |
| 581 | 579 | |
| 582 | -theorem same_axis_pressure : v.profiles.pressure0 = F.axisDatum := v.pressure0 | |
| 583 | - | |
| 584 | 580 | theorem fields_outside {p : Point} (hp : p.1 ∉ Ioo d.modulation.left (repairPatch W).right) : |
| 585 | 581 | v.profiles.f p = W.profiles.f p ∧ v.profiles.U p = W.profiles.U p := by |
| 586 | 582 | rw [v.f_formula, v.U_formula] |
| @@ -595,11 +591,6 @@ theorem rows_before {X eta : ℝ} (hX : 0 ≤ X) (hbefore : X ≤ d.modulation.l | ||
| 595 | 591 | · intro x hx |
| 596 | 592 | exact (v.fields_outside (by intro hc; linarith [hx.2, hc.1])).2 |
| 597 | 593 | |
| 598 | -theorem exterior_pressure {X eta : ℝ} (heta : eta ∈ d.parameters) | |
| 599 | - (hX : (repairPatch W).right ≤ X) : | |
| 600 | - v.profiles.pressure (X, eta) = W.profiles.pressure (X, eta) := by | |
| 601 | - exact congrArg (fun rows => rows 4) (v.restored eta heta X hX) | |
| 602 | - | |
| 603 | 594 | theorem exterior_mass {X eta : ℝ} (heta : eta ∈ d.parameters) |
| 604 | 595 | (hX : (repairPatch W).right ≤ X) : v.profiles.M (X, eta) = W.profiles.M (X, eta) := by |
| 605 | 596 | exact congrArg (fun rows => rows 0) (v.restored eta heta X hX) |
| @@ -608,14 +599,6 @@ theorem exterior_angular {X eta : ℝ} (heta : eta ∈ d.parameters) | ||
| 608 | 599 | (hX : (repairPatch W).right ≤ X) : v.profiles.I (X, eta) = W.profiles.I (X, eta) := by |
| 609 | 600 | exact congrArg (fun rows => rows 1) (v.restored eta heta X hX) |
| 610 | 601 | |
| 611 | -theorem exterior_transport {X eta : ℝ} (heta : eta ∈ d.parameters) | |
| 612 | - (hX : (repairPatch W).right ≤ X) : v.profiles.J (X, eta) = W.profiles.J (X, eta) := by | |
| 613 | - exact congrArg (fun rows => rows 2) (v.restored eta heta X hX) | |
| 614 | - | |
| 615 | -theorem exterior_energy {X eta : ℝ} (heta : eta ∈ d.parameters) | |
| 616 | - (hX : (repairPatch W).right ≤ X) : v.profiles.S (X, eta) = W.profiles.S (X, eta) := by | |
| 617 | - exact congrArg (fun rows => rows 3) (v.restored eta heta X hX) | |
| 618 | - | |
| 619 | 602 | theorem rows_outside {X eta : ℝ} (hX : 0 ≤ X) (heta : eta ∈ d.parameters) |
| 620 | 603 | (hout : X ∉ Ioo d.modulation.left (repairPatch W).right) : |
| 621 | 604 | ModulatedHistories.profileRows v.profiles (X, eta) = |
| @@ -993,10 +976,6 @@ theorem positive_f {p : Point} (hX : 0 < p.1) (heta : p.2 ∈ Icc (-1 : ℝ) 1) | ||
| 993 | 976 | rw [(v.fields_outside hn).1] |
| 994 | 977 | exact NominalConeAssembly.Witness.f_positive W hX heta |
| 995 | 978 | |
| 996 | -theorem positive_E {p : Point} (hX : 0 < p.1) (heta : p.2 ∈ Icc (-1 : ℝ) 1) : | |
| 997 | - 0 < v.profiles.E p := | |
| 998 | - mul_pos (Real.sqrt_pos.mpr (mul_pos (by norm_num) hX)) (v.positive_f hX heta) | |
| 999 | - | |
| 1000 | 979 | end Witness |
| 1001 | 980 | |
| 1002 | 981 | /-! ## Bind the constructed profile to the completed nominal cone theorem -/ |
+0 −410 NavierStokes/ModulatedProfileJetRates.lean View file
| @@ -25,419 +25,9 @@ structure SmoothRepairFamily (P : FiveProfileMoments.Patch) (b : ℝ) | ||
| 25 | 25 | rates : ∀ q : ℕ, ∃ Nq C : ℝ, 1 ≤ Nq ∧ 0 < C ∧ ∀ N : ℝ, Nq ≤ N → |
| 26 | 26 | JetBounds.FiniteJetBound q (coefficients N) S (C / N) |
| 27 | 27 | |
| 28 | -/-- Finite-jet estimates for composition with a single fixed smooth solver. | |
| 29 | -The solver is chosen before the derivative order, frequency, and constant. -/ | |
| 30 | -theorem fixed_solver_all_rates {g : Coeff → Coeff} {r C : ℝ} | |
| 31 | - (hr : 0 < r) (hC : 0 < C) (hg : ContDiff ℝ ∞ g) | |
| 32 | - (hvalue : ∀ z ∈ Metric.ball (0 : Coeff) r, ‖g z‖ ≤ C * ‖z‖) | |
| 33 | - {S : Set ℝ} (v : ℝ → ℝ → Coeff) (hv : ∀ N, ContDiff ℝ ∞ (v N)) | |
| 34 | - (hvr : ∀ q : ℕ, ∃ D : ℝ, 0 < D ∧ ∀ N : ℝ, 1 ≤ N → | |
| 35 | - JetBounds.FiniteJetBound q (v N) S (D / N)) : | |
| 36 | - ∀ q : ℕ, ∃ Nq K : ℝ, 1 ≤ Nq ∧ 0 < K ∧ ∀ N : ℝ, Nq ≤ N → | |
| 37 | - JetBounds.FiniteJetBound q (g ∘ v N) S (K / N) := by | |
| 38 | - intro q | |
| 39 | - obtain ⟨D, hD, hvb⟩ := hvr q | |
| 40 | - obtain ⟨J, hJ, hj⟩ := smooth_solver_linear_jets hr hC hg.contDiffOn hvalue q | |
| 41 | - let delta : ℝ := min 1 (r / 2) | |
| 42 | - have hd : 0 < delta := lt_min zero_lt_one (by positivity) | |
| 43 | - refine ⟨max 1 (D / delta), J * D, le_max_left _ _, mul_pos hJ hD, ?_⟩ | |
| 44 | - intro N hN | |
| 45 | - have hN1 : 1 ≤ N := (le_max_left _ _).trans hN | |
| 46 | - have hNp : 0 < N := zero_lt_one.trans_le hN1 | |
| 47 | - have he : D / N ≤ delta := by | |
| 48 | - apply (div_le_iff₀ hNp).mpr | |
| 49 | - have ht := (div_le_iff₀ hd).mp ((le_max_right _ _).trans hN) | |
| 50 | - nlinarith | |
| 51 | - intro k hk eta heta | |
| 52 | - have hb := hj (v N) (hv N) (D / N) eta (div_pos hD hNp) he | |
| 53 | - (fun i hi => hvb N hN1 i hi eta heta) k hk | |
| 54 | - convert hb using 1 | |
| 55 | - ring | |
| 56 | - | |
| 57 | -theorem exists_smooth_repair_family (P : FiveProfileMoments.Patch) (b : ℝ) | |
| 58 | - (hb : FiveProfileMoments.GoodExponent b) (S : Set ℝ) (hS : IsCompact S) | |
| 59 | - (A G : ℝ → ℝ) (hA : ContDiff ℝ ∞ A) (hG : ContDiff ℝ ∞ G) | |
| 60 | - (hApos : ∀ eta, 0 < A eta) (d : ℝ → ℝ → Debt) | |
| 61 | - (hd : ∀ N, ContDiff ℝ ∞ (d N)) | |
| 62 | - (hdr : ∀ q : ℕ, ∃ D : ℝ, 0 < D ∧ ∀ N : ℝ, 1 ≤ N → | |
| 63 | - JetBounds.FiniteJetBound q (d N) S (D / N)) : | |
| 64 | - Nonempty (SmoothRepairFamily P b A G d S) := by | |
| 65 | - obtain ⟨g, r, C0, hr, hC0, hg, _, hbranch⟩ := FiveProfileMoments.exists_normalized_repair P b hb | |
| 66 | - obtain ⟨gext, hgext, hext⟩ := smooth_extension_ball hr hg | |
| 67 | - let v : ℝ → ℝ → Coeff := fun N eta => FiveProfileMoments.normalizedDebt (A eta) (G eta) (d N eta) | |
| 68 | - have hv : ∀ N, ContDiff ℝ ∞ (v N) := fun N => | |
| 69 | - FiveProfileMoments.normalizedDebt_contDiff hA hG (hd N) (fun eta => (hApos eta).ne') | |
| 70 | - have hvr : ∀ q : ℕ, ∃ D : ℝ, 0 < D ∧ ∀ N : ℝ, 1 ≤ N → | |
| 71 | - JetBounds.FiniteJetBound q (v N) S (D / N) := by | |
| 72 | - intro q | |
| 73 | - obtain ⟨D, hD, hdb⟩ := hdr q | |
| 74 | - obtain ⟨B0, hB0, hnormal⟩ := FiveProfileMoments.compact_normalizedDebt_jets | |
| 75 | - S hS hA hG (fun eta => (hApos eta).ne') q | |
| 76 | - refine ⟨B0 * D, mul_pos hB0 hD, ?_⟩ | |
| 77 | - intro N hN | |
| 78 | - convert hnormal (d N) (hd N) (D / N) (div_nonneg hD.le (zero_lt_one.trans_le hN).le) | |
| 79 | - (hdb N hN) using 1 | |
| 80 | - ring | |
| 81 | - have hvalue : ∀ z ∈ Metric.ball (0 : Coeff) (r / 2), ‖gext z‖ ≤ C0 * ‖z‖ := by | |
| 82 | - intro z hz | |
| 83 | - rw [hext hz] | |
| 84 | - exact (hbranch z ((Metric.ball_subset_ball (by linarith : r / 2 ≤ r)) hz)).2.1 | |
| 85 | - obtain ⟨D0, hD0, hv0⟩ := hvr 0 | |
| 86 | - let N0 := max 1 (4 * D0 / r) | |
| 87 | - let V : ℝ → Set ℝ := fun N => v N ⁻¹' Metric.ball 0 (r / 2) | |
| 88 | - have hSV : ∀ N, N0 ≤ N → S ⊆ V N := by | |
| 89 | - intro N hN eta heta | |
| 90 | - have hN1 : 1 ≤ N := (le_max_left _ _).trans hN | |
| 91 | - have hNp : 0 < N := zero_lt_one.trans_le hN1 | |
| 92 | - have hsmall : D0 / N ≤ r / 4 := by | |
| 93 | - apply (div_le_iff₀ hNp).mpr | |
| 94 | - have he := (div_le_iff₀ hr).mp ((le_max_right _ _).trans hN) | |
| 95 | - nlinarith | |
| 96 | - change ‖v N eta - 0‖ < r / 2 | |
| 97 | - rw [sub_zero] | |
| 98 | - exact ((hv0 N hN1).norm_le heta).trans_lt (hsmall.trans_lt (by linarith)) | |
| 99 | - refine ⟨⟨fun N => gext ∘ v N, fun N => hgext.comp (hv N), V, | |
| 100 | - fun N => Metric.isOpen_ball.preimage (hv N).continuous, N0, le_max_left _ _, hSV, | |
| 101 | - ?_, ?_, fixed_solver_all_rates (by positivity : 0 < r / 2) hC0 hgext hvalue v hv hvr⟩⟩ | |
| 102 | - · intro N eta heta | |
| 103 | - have hlocal := hbranch (v N eta) ((Metric.ball_subset_ball (by linarith : r / 2 ≤ r)) heta) | |
| 104 | - change FiveProfileMoments.physicalMoments P b (A eta) (G eta) (gext (v N eta)) = _ | |
| 105 | - rw [hext heta, FiveProfileMoments.physicalMoments_eq P b (A eta) (G eta) (hApos eta).ne', hlocal.1] | |
| 106 | - exact FiveProfileMoments.physical_normalized_debt (A eta) (G eta) (hApos eta).ne' (d N eta) | |
| 107 | - · intro N eta heta X hX | |
| 108 | - have hlocal := hbranch (v N eta) ((Metric.ball_subset_ball (by linarith : r / 2 ≤ r)) heta) | |
| 109 | - change 0 < A eta * (X ^ b + FiveProfileMoments.e P (gext (v N eta)) X) | |
| 110 | - rw [hext heta] | |
| 111 | - exact mul_pos (hApos eta) (hlocal.2.2.2 X hX) | |
| 112 | - | |
| 113 | 28 | variable {a m p₁ p₂ : Point → ℝ} {K B : Set Point} |
| 114 | 29 | |
| 115 | -/-- Applied to the actual integral debt, this selects one repaired-profile | |
| 116 | -sequence with all fixed parameter derivative rates. -/ | |
| 117 | -theorem exists_actual_repair_family_all_jets (W : Window) | |
| 118 | - (r : ParametricModulation.TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 119 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) | |
| 120 | - (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) | |
| 121 | - (P : FiveProfileMoments.Patch) (b : ℝ) (hb : FiveProfileMoments.GoodExponent b) | |
| 122 | - (S : Set ℝ) (hS : IsCompact S) (A G : ℝ → ℝ) | |
| 123 | - (hA : ContDiff ℝ ∞ A) (hG : ContDiff ℝ ∞ G) (hApos : ∀ eta, 0 < A eta) : | |
| 124 | - Nonempty (SmoothRepairFamily P b A G (repairDebt W r f E U) S) := by | |
| 125 | - apply exists_smooth_repair_family P b hb S hS A G hA hG hApos (repairDebt W r f E U) | |
| 126 | - (fun N => (historyDifference_smooth W r f E U ha hm hp₂ hf hE hU N W.right).neg) | |
| 127 | - intro q | |
| 128 | - obtain ⟨D, hD, hdb⟩ := historyDifference_jets W r f E U ha hm hp₂ hf hE hU S hS q | |
| 129 | - refine ⟨D, hD, ?_⟩ | |
| 130 | - intro N hN j hj eta heta | |
| 131 | - change ‖iteratedFDeriv ℝ j (-(historyDifference W r f E U N W.right)) eta‖ ≤ _ | |
| 132 | - rw [iteratedFDeriv_neg_apply, norm_neg] | |
| 133 | - exact hdb N hN W.right j hj eta heta | |
| 134 | - | |
| 135 | -theorem localized_profile_eta_rates (W : Window) | |
| 136 | - (r : ParametricModulation.TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 137 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) | |
| 138 | - (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) | |
| 139 | - (S : Set ℝ) (hS : IsCompact S) (q : ℕ) : | |
| 140 | - ∃ CF CU : ℝ, 0 ≤ CF ∧ 0 ≤ CU ∧ ∀ N : ℝ, 1 ≤ N → ∀ X eta : ℝ, eta ∈ S → | |
| 141 | - |iteratedDeriv q (fun e => localizedF W r f N (X, e)) eta - | |
| 142 | - iteratedDeriv q (fun e => f (X, e)) eta| ≤ CF / N ∧ | |
| 143 | - |iteratedDeriv q (fun e => localizedU W r E U N (X, e)) eta - | |
| 144 | - iteratedDeriv q (fun e => U (X, e)) eta| ≤ CU / N := by | |
| 145 | - obtain ⟨CF, _, hCF, _, hbF⟩ := ParametricModulation.realized_profiles_uniform_eta_jets | |
| 146 | - r f U ha hm hp₂ hf hU (Icc W.left W.right) S isCompact_Icc hS q | |
| 147 | - obtain ⟨_, CU, _, hCU, hbU⟩ := ParametricModulation.realized_profiles_uniform_eta_jets | |
| 148 | - r E U ha hm hp₂ hE hU (Icc W.left W.right) S isCompact_Icc hS q | |
| 149 | - refine ⟨CF, CU, hCF, hCU, ?_⟩ | |
| 150 | - intro N hN X eta heta | |
| 151 | - by_cases hX : X ∈ Ioc W.left W.right | |
| 152 | - · have heF : (fun e => localizedF W r f N (X, e)) = ParametricModulation.realizedE r f N X := by | |
| 153 | - funext e | |
| 154 | - simp only [localizedF, splice, hX, ite_true, rawF] | |
| 155 | - have heU : (fun e => localizedU W r E U N (X, e)) = ParametricModulation.realizedU r E U N X := by | |
| 156 | - funext e | |
| 157 | - simp only [localizedU, splice, hX, ite_true, rawU] | |
| 158 | - rw [heF, heU] | |
| 159 | - exact ⟨(hbF N hN X ⟨hX.1.le, hX.2⟩ eta heta).1, (hbU N hN X ⟨hX.1.le, hX.2⟩ eta heta).2⟩ | |
| 160 | - · have heF : (fun e => localizedF W r f N (X, e)) = (fun e => f (X, e)) := by | |
| 161 | - funext e | |
| 162 | - simp only [localizedF, splice, hX, ite_false] | |
| 163 | - have heU : (fun e => localizedU W r E U N (X, e)) = (fun e => U (X, e)) := by | |
| 164 | - funext e | |
| 165 | - simp only [localizedU, splice, hX, ite_false] | |
| 166 | - rw [heF, heU] | |
| 167 | - simpa only [sub_self, abs_zero] using | |
| 168 | - And.intro (div_nonneg hCF (zero_lt_one.trans_le hN).le) (div_nonneg hCU (zero_lt_one.trans_le hN).le) | |
| 169 | - | |
| 170 | -theorem localized_profile_eta_smooth (W : Window) | |
| 171 | - (r : ParametricModulation.TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 172 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) | |
| 173 | - (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) (N X : ℝ) : | |
| 174 | - ContDiff ℝ ∞ (fun e => localizedF W r f N (X, e)) ∧ | |
| 175 | - ContDiff ℝ ∞ (fun e => localizedU W r E U N (X, e)) := by | |
| 176 | - have hbase : ContDiff ℝ ∞ (fun e : ℝ => (X, e)) := contDiff_const.prodMk contDiff_id | |
| 177 | - by_cases hX : X ∈ Ioc W.left W.right | |
| 178 | - · have heF : (fun e => localizedF W r f N (X, e)) = fun e => | |
| 179 | - f (X, e) * Real.exp (r.angularPrimitive ((X, e), N * Real.log X) / N) := by | |
| 180 | - funext e | |
| 181 | - simp only [localizedF, splice, hX, ite_true, rawF, ParametricModulation.realizedE, | |
| 182 | - RadialModulation.modulatedE, RadialModulation.phasePoint, ParametricModulation.asRadialPrimitive] | |
| 183 | - have heU : (fun e => localizedU W r E U N (X, e)) = fun e => | |
| 184 | - U (X, e) + r.axialPrimitive E ((X, e), N * Real.log X) / N := by | |
| 185 | - funext e | |
| 186 | - simp only [localizedU, splice, hX, ite_true, rawU, ParametricModulation.realizedU, | |
| 187 | - RadialModulation.modulatedU, RadialModulation.phasePoint, ParametricModulation.asRadialPrimitive] | |
| 188 | - rw [heF, heU] | |
| 189 | - have hp := r.primitives_smooth E ha hm hp₂ hE | |
| 190 | - have hz : ContDiff ℝ ∞ (fun e : ℝ => ((X, e), N * Real.log X)) := hbase.prodMk contDiff_const | |
| 191 | - exact ⟨(hf.comp hbase).mul (((hp.1.comp hz).div_const N).exp), | |
| 192 | - (hU.comp hbase).add ((hp.2.comp hz).div_const N)⟩ | |
| 193 | - · have heF : (fun e => localizedF W r f N (X, e)) = fun e => f (X, e) := by | |
| 194 | - funext e | |
| 195 | - simp only [localizedF, splice, hX, ite_false] | |
| 196 | - have heU : (fun e => localizedU W r E U N (X, e)) = fun e => U (X, e) := by | |
| 197 | - funext e | |
| 198 | - simp only [localizedU, splice, hX, ite_false] | |
| 199 | - rw [heF, heU] | |
| 200 | - exact ⟨hf.comp hbase, hU.comp hbase⟩ | |
| 201 | - | |
| 202 | -/-- Every fixed parameter derivative of the actual repaired profiles has | |
| 203 | -the same inverse-frequency rate, for one previously selected repair family. -/ | |
| 204 | -theorem SmoothRepairFamily.profile_eta_rates | |
| 205 | - (W : Window) (r : ParametricModulation.TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 206 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) | |
| 207 | - (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) | |
| 208 | - {P : FiveProfileMoments.Patch} {b : ℝ} {A G : ℝ → ℝ} {d : ℝ → ℝ → Debt} {S : Set ℝ} | |
| 209 | - (H : SmoothRepairFamily P b A G d S) (hS : IsCompact S) (hA : ContDiff ℝ ∞ A) (q : ℕ) : | |
| 210 | - ∃ Nq C : ℝ, 1 ≤ Nq ∧ 0 < C ∧ ∀ N : ℝ, Nq ≤ N → ∀ X eta : ℝ, eta ∈ S → | |
| 211 | - |iteratedDeriv q (fun e => applyRepairF P A (H.coefficients N) (localizedF W r f N) (X, e)) eta - | |
| 212 | - iteratedDeriv q (fun e => f (X, e)) eta| ≤ C / N ∧ | |
| 213 | - |iteratedDeriv q (fun e => applyRepairU P A (H.coefficients N) (localizedU W r E U N) (X, e)) eta - | |
| 214 | - iteratedDeriv q (fun e => U (X, e)) eta| ≤ C / N := by | |
| 215 | - obtain ⟨Nq, Cc, hNq, hCc, hcb⟩ := H.rates q | |
| 216 | - obtain ⟨CF, CU, hCF, hCU, hmod⟩ := localized_profile_eta_rates W r f E U ha hm hp₂ hf hE hU S hS q | |
| 217 | - obtain ⟨Ce, hCe, hedit⟩ := normalized_edits_eta_bound P S hS A hA q | |
| 218 | - refine ⟨Nq, 1 + CF + CU + Ce * Cc, hNq, by positivity, ?_⟩ | |
| 219 | - intro N hN X eta heta | |
| 220 | - have hN1 := hNq.trans hN | |
| 221 | - have hNp := zero_lt_one.trans_le hN1 | |
| 222 | - have hmodb := hmod N hN1 X eta heta | |
| 223 | - have heditb := hedit (H.coefficients N) (H.smooth N) (Cc / N) (div_nonneg hCc.le hNp.le) | |
| 224 | - (hcb N hN) eta heta q le_rfl X | |
| 225 | - have hs := localized_profile_eta_smooth W r f E U ha hm hp₂ hf hE hU N X | |
| 226 | - have heF : ContDiff ℝ ∞ (fun e => editF P A (H.coefficients N) (X, e)) := | |
| 227 | - (editF_contDiff P A (H.coefficients N) hA (H.smooth N)).comp (contDiff_const.prodMk contDiff_id) | |
| 228 | - have heU : ContDiff ℝ ∞ (fun e => editU P A (H.coefficients N) (X, e)) := | |
| 229 | - (editU_contDiff P A (H.coefficients N) hA (H.smooth N)).comp (contDiff_const.prodMk contDiff_id) | |
| 230 | - have horder : (q : WithTop ℕ∞) ≤ ∞ := WithTop.coe_le_coe.mpr le_top | |
| 231 | - constructor | |
| 232 | - · change |iteratedDeriv q (fun e => localizedF W r f N (X, e) + editF P A (H.coefficients N) (X, e)) eta - _| ≤ _ | |
| 233 | - rw [iteratedDeriv_fun_add (hs.1.of_le horder).contDiffAt (heF.of_le horder).contDiffAt] | |
| 234 | - calc | |
| 235 | - _ = |(iteratedDeriv q (fun e => localizedF W r f N (X, e)) eta - | |
| 236 | - iteratedDeriv q (fun e => f (X, e)) eta) + iteratedDeriv q (fun e => editF P A (H.coefficients N) (X, e)) eta| := by congr 1; ring | |
| 237 | - _ ≤ _ := (abs_add_le _ _).trans ((add_le_add hmodb.1 heditb.1).trans (by | |
| 238 | - calc | |
| 239 | - CF / N + Ce * (Cc / N) = (CF + Ce * Cc) / N := by ring | |
| 240 | - _ ≤ _ := div_le_div_of_nonneg_right (by linarith) hNp.le)) | |
| 241 | - · change |iteratedDeriv q (fun e => localizedU W r E U N (X, e) + editU P A (H.coefficients N) (X, e)) eta - _| ≤ _ | |
| 242 | - rw [iteratedDeriv_fun_add (hs.2.of_le horder).contDiffAt (heU.of_le horder).contDiffAt] | |
| 243 | - calc | |
| 244 | - _ = |(iteratedDeriv q (fun e => localizedU W r E U N (X, e)) eta - | |
| 245 | - iteratedDeriv q (fun e => U (X, e)) eta) + iteratedDeriv q (fun e => editU P A (H.coefficients N) (X, e)) eta| := by congr 1; ring | |
| 246 | - _ ≤ _ := (abs_add_le _ _).trans ((add_le_add hmodb.2 heditb.2).trans (by | |
| 247 | - calc | |
| 248 | - CU / N + Ce * (Cc / N) = (CU + Ce * Cc) / N := by ring | |
| 249 | - _ ≤ _ := div_le_div_of_nonneg_right (by linarith) hNp.le)) | |
| 250 | - | |
| 251 | -/-- All five actual integral histories share that same repaired family and | |
| 252 | -the same inverse-frequency rate, uniformly in every upper radial endpoint. -/ | |
| 253 | -theorem SmoothRepairFamily.history_eta_rates | |
| 254 | - (W : Window) (r : ParametricModulation.TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 255 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) | |
| 256 | - (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) | |
| 257 | - {P : FiveProfileMoments.Patch} (hWP : W.right < P.left) {b : ℝ} {A G : ℝ → ℝ} | |
| 258 | - {d : ℝ → ℝ → Debt} {S : Set ℝ} (H : SmoothRepairFamily P b A G d S) | |
| 259 | - (hS : IsCompact S) (hA : ContDiff ℝ ∞ A) (q : ℕ) : | |
| 260 | - ∃ Nq C : ℝ, 1 ≤ Nq ∧ 0 < C ∧ ∀ N : ℝ, Nq ≤ N → ∀ X : ℝ, 0 ≤ X → | |
| 261 | - JetBounds.FiniteJetBound q (fun eta => | |
| 262 | - axisHistory (applyRepairF P A (H.coefficients N) (localizedF W r f N)) | |
| 263 | - (applyRepairU P A (H.coefficients N) (localizedU W r E U N)) (X, eta) - axisHistory f U (X, eta)) | |
| 264 | - S (C / N) := by | |
| 265 | - obtain ⟨Nc, Cc, hNc, hCc, hcb⟩ := H.rates q | |
| 266 | - obtain ⟨delta, C1, C2, hd, hC1, hC2, hb⟩ := repaired_axisHistory_jets | |
| 267 | - W r f E U ha hm hp₂ hf hE hU P hWP A hA S hS q | |
| 268 | - refine ⟨max Nc (Cc / delta), C1 + C2 * Cc, hNc.trans (le_max_left _ _), by positivity, ?_⟩ | |
| 269 | - intro N hN X hX | |
| 270 | - have hnc : Nc ≤ N := (le_max_left _ _).trans hN | |
| 271 | - have hN1 := hNc.trans hnc | |
| 272 | - have hNp := zero_lt_one.trans_le hN1 | |
| 273 | - have he : Cc / N ≤ delta := by | |
| 274 | - apply (div_le_iff₀ hNp).mpr | |
| 275 | - have ht := (div_le_iff₀ hd).mp ((le_max_right _ _).trans hN) | |
| 276 | - nlinarith | |
| 277 | - convert hb N hN1 (H.coefficients N) (H.smooth N) (Cc / N) | |
| 278 | - (div_nonneg hCc.le hNp.le) he (hcb N hnc) X hX using 1 | |
| 279 | - ring | |
| 280 | - | |
| 281 | -/-- The parameter estimates apply to the physical angular field, axial field, | |
| 282 | -and all five profile rows (including pressure) of the same repaired profiles. -/ | |
| 283 | -theorem SmoothRepairFamily.repaired_profiles_eta_rates | |
| 284 | - (W : Window) (r : ParametricModulation.TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 285 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) | |
| 286 | - (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) | |
| 287 | - {patch : FiveProfileMoments.Patch} (hgap : W.right < patch.left) | |
| 288 | - {b : ℝ} {A G : ℝ → ℝ} {d : ℝ → ℝ → Debt} {S : Set ℝ} | |
| 289 | - (H : SmoothRepairFamily patch b A G d S) (hS : IsCompact S) (hA : ContDiff ℝ ∞ A) | |
| 290 | - {D D' : ProfileHistories.RadialDomain} | |
| 291 | - (R : ℝ → ProfileHistories.Profiles D) (Q : ProfileHistories.Profiles D') | |
| 292 | - (hRf : ∀ N, (R N).f = applyRepairF patch A (H.coefficients N) (localizedF W r f N)) | |
| 293 | - (hRU : ∀ N, (R N).U = applyRepairU patch A (H.coefficients N) (localizedU W r E U N)) | |
| 294 | - (hQf : Q.f = f) (hQU : Q.U = U) (hP0 : ∀ N, (R N).pressure0 = Q.pressure0) | |
| 295 | - (Xmax : ℝ) (q : ℕ) : | |
| 296 | - ∃ Nq C : ℝ, 1 ≤ Nq ∧ 0 < C ∧ ∀ N : ℝ, Nq ≤ N → | |
| 297 | - (∀ X eta : ℝ, X ≤ Xmax → eta ∈ S → | |
| 298 | - |iteratedDeriv q (fun e => (R N).E (X, e)) eta - | |
| 299 | - iteratedDeriv q (fun e => Q.E (X, e)) eta| ≤ C / N ∧ | |
| 300 | - |iteratedDeriv q (fun e => (R N).U (X, e)) eta - | |
| 301 | - iteratedDeriv q (fun e => Q.U (X, e)) eta| ≤ C / N) ∧ | |
| 302 | - (∀ X : ℝ, 0 ≤ X → JetBounds.FiniteJetBound q | |
| 303 | - (fun eta => profileRows (R N) (X, eta) - profileRows Q (X, eta)) S (C / N)) := by | |
| 304 | - obtain ⟨Np, Cp, hNp, hCp, hp⟩ := H.profile_eta_rates W r f E U ha hm hp₂ hf hE hU hS hA q | |
| 305 | - obtain ⟨Nh, Ch, hNh, hCh, hh⟩ := H.history_eta_rates W r f E U ha hm hp₂ hf hE hU hgap hS hA q | |
| 306 | - let C := (1 + Real.sqrt (2 * Xmax)) * Cp + Ch | |
| 307 | - have hC : 0 < C := by dsimp [C]; positivity | |
| 308 | - refine ⟨max Np Nh, C, hNp.trans (le_max_left _ _), hC, ?_⟩ | |
| 309 | - intro N hN | |
| 310 | - have hnp := (le_max_left _ _).trans hN | |
| 311 | - have hnh := (le_max_right _ _).trans hN | |
| 312 | - have hNpos := zero_lt_one.trans_le (hNp.trans hnp) | |
| 313 | - have hCpC : Cp ≤ C := by dsimp [C]; nlinarith [Real.sqrt_nonneg (2 * Xmax)] | |
| 314 | - have hChC : Ch ≤ C := by dsimp [C]; nlinarith [Real.sqrt_nonneg (2 * Xmax)] | |
| 315 | - constructor | |
| 316 | - · intro X eta hX heta | |
| 317 | - have hb := hp N hnp X eta heta | |
| 318 | - constructor | |
| 319 | - · simp only [ProfileHistories.Profiles.E, hRf N, hQf, | |
| 320 | - iteratedDeriv_const_mul_field, ← mul_sub, abs_mul, | |
| 321 | - abs_of_nonneg (Real.sqrt_nonneg (2 * X))] | |
| 322 | - calc | |
| 323 | - _ ≤ Real.sqrt (2 * X) * (Cp / N) := mul_le_mul_of_nonneg_left hb.1 (Real.sqrt_nonneg _) | |
| 324 | - _ ≤ Real.sqrt (2 * Xmax) * (Cp / N) := | |
| 325 | - mul_le_mul_of_nonneg_right (Real.sqrt_le_sqrt (by linarith)) (div_nonneg hCp.le hNpos.le) | |
| 326 | - _ = (Real.sqrt (2 * Xmax) * Cp) / N := by ring | |
| 327 | - _ ≤ C / N := div_le_div_of_nonneg_right (by dsimp [C]; nlinarith) hNpos.le | |
| 328 | - · rw [hRU N, hQU] | |
| 329 | - exact hb.2.trans (div_le_div_of_nonneg_right hCpC hNpos.le) | |
| 330 | - · intro X hX | |
| 331 | - have heq : (fun eta => profileRows (R N) (X, eta) - profileRows Q (X, eta)) = | |
| 332 | - (fun eta => axisHistory (applyRepairF patch A (H.coefficients N) (localizedF W r f N)) | |
| 333 | - (applyRepairU patch A (H.coefficients N) (localizedU W r E U N)) (X, eta) - | |
| 334 | - axisHistory f U (X, eta)) := by | |
| 335 | - funext eta | |
| 336 | - rw [profileRows_sub (R N) Q (hP0 N), hRf N, hRU N, hQf, hQU] | |
| 337 | - rw [heq] | |
| 338 | - intro eta heta j hj | |
| 339 | - exact (hh N hnh X hX eta heta j hj).trans (div_le_div_of_nonneg_right hChC hNpos.le) | |
| 340 | - | |
| 341 | 30 | open ProfileHistories (RadialDomain Profiles) |
| 342 | 31 | open ParametricModulation ModulatedCone ModulatedCone.Repaired |
| 343 | 32 | |
| 344 | -/-- One actual smooth repaired family satisfies the true cone and exact exterior | |
| 345 | -restoration for all sufficiently large integer frequencies; every fixed parameter | |
| 346 | -jet of this same family has the inverse-frequency bound. -/ | |
| 347 | -theorem exists_with_moment_repair_all_jets {D D' : RadialDomain} | |
| 348 | - (W : ModulatedHistories.Window) (r : TrueConeRealization a m p₁ p₂ K B) (f E U : Field) | |
| 349 | - (hK : IsCompact K) (hKW : ∀ p ∈ K, p.1 ∈ Icc W.left W.right) | |
| 350 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) | |
| 351 | - (hp₁ : ContDiff ℝ ∞ p₁) (hp₂ : ContDiff ℝ ∞ p₂) | |
| 352 | - (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) | |
| 353 | - (haK : ∀ p ∈ K, 0 < a p) | |
| 354 | - (S : Set Point) (hS : IsCompact S) (hSW : ∀ p ∈ S, W.right ≤ p.1) | |
| 355 | - (haNom : ∀ p ∈ K ∪ S, a p = angularShear E p) | |
| 356 | - (hbNom : ∀ p ∈ K ∪ S, a p * m p = signedAxialShear E U p) | |
| 357 | - (hrelaxed : ∀ p ∈ K, TrueConeLoop.nominalSpeed (a p) (m p) < | |
| 358 | - ConeAlgebra.coneBound (p₁ p + p₂ p * m p) (p₂ p - p₁ p * m p)) | |
| 359 | - (hScone : ∀ p ∈ S, TrueConeLoop.InTrueCone (p₁ p) (p₂ p) (a p) (a p * m p)) | |
| 360 | - (P : ℝ → Profiles D) (Q : Profiles D') | |
| 361 | - (hPf : ∀ n, (P n).f = ModulatedHistories.localizedF W r f n) | |
| 362 | - (hPU : ∀ n, (P n).U = ModulatedHistories.localizedU W r E U n) | |
| 363 | - (hQf : Q.f = f) (hQU : Q.U = U) (hP0 : ∀ n, (P n).pressure0 = Q.pressure0) | |
| 364 | - (J : Set ℝ) (hJ : IsCompact J) (hTJ : ∀ p ∈ K ∪ S, p.2 ∈ J) | |
| 365 | - (hTD : K ∪ S ⊆ D.carrier) (hTD' : K ∪ S ⊆ D'.carrier) | |
| 366 | - (h : ℝ) (hL : ∀ p ∈ K ∪ S, NaturalAxisData.L h p.2 ≠ 0) | |
| 367 | - (hpos : ∀ p ∈ K ∪ S, 0 < Q.f p) | |
| 368 | - (hstock₁ : ∀ p ∈ K ∪ S, p₁ p = ActivationStocks.profileStockOne Q h p) | |
| 369 | - (hstock₂ : ∀ p ∈ K ∪ S, p₂ p = ActivationStocks.profileStockTwo Q h p) | |
| 370 | - (hBK : B ⊆ K) (hends : ∀ η ∈ J, (W.left, η) ∈ B ∧ (W.right, η) ∈ B) | |
| 371 | - (hphys : ∀ p ∈ K ∪ S, E =ᶠ[𝓝 p] fun q => Real.sqrt (2 * q.1) * f q) | |
| 372 | - (patch : FiveProfileMoments.Patch) (hgap : W.right < patch.left) | |
| 373 | - (A G : ℝ → ℝ) (hA : ContDiff ℝ ∞ A) (hG : ContDiff ℝ ∞ G) (hApos : ∀ η, 0 < A η) | |
| 374 | - (hwindow : Icc W.left W.right ×ˢ J ⊆ K) | |
| 375 | - (hfollowing : Icc W.right patch.right ×ˢ J ⊆ S) | |
| 376 | - (b : ℝ) (hb : FiveProfileMoments.GoodExponent b) | |
| 377 | - (hpatchU : ∀ η ∈ J, ∀ X ∈ Ioo patch.left patch.right, U (X, η) = G η) | |
| 378 | - (hpatchE : ∀ η ∈ J, ∀ X ∈ Ioo patch.left patch.right, | |
| 379 | - Real.sqrt (2 * X) * f (X, η) = A η * X ^ b) : | |
| 380 | - ∃ H : SmoothRepairFamily patch b A G (repairDebt W r f E U) J, | |
| 381 | - ∃ N : ℕ, 0 < N ∧ | |
| 382 | - (∀ n : ℕ, N ≤ n → | |
| 383 | - let R := profileRepair (P n) patch A (H.coefficients n) hA (H.smooth n) | |
| 384 | - (∀ p ∈ Icc W.left patch.right ×ˢ J, 0 < R.f p ∧ | |
| 385 | - TrueConeLoop.InTrueCone (ActivationStocks.profileStockOne R h p) | |
| 386 | - (ActivationStocks.profileStockTwo R h p) (angularShear R.E p) (signedAxialShear R.E R.U p)) ∧ | |
| 387 | - (∀ eta ∈ J, ∀ X : ℝ, patch.right ≤ X → profileRows R (X, eta) = profileRows Q (X, eta)) ∧ | |
| 388 | - (∀ p : Point, p.1 ∉ Ioo patch.left patch.right → | |
| 389 | - R.E p = (P n).E p ∧ R.U p = (P n).U p ∧ | |
| 390 | - angularShear R.E p = angularShear (P n).E p ∧ | |
| 391 | - signedAxialShear R.E R.U p = signedAxialShear (P n).E (P n).U p ∧ | |
| 392 | - ((fun X => R.E (X, p.2)) =ᶠ[𝓝 p.1] fun X => (P n).E (X, p.2)) ∧ | |
| 393 | - ((fun X => R.U (X, p.2)) =ᶠ[𝓝 p.1] fun X => (P n).U (X, p.2)))) ∧ | |
| 394 | - (∀ q : ℕ, ∃ Nq C : ℝ, 1 ≤ Nq ∧ 0 < C ∧ ∀ n : ℝ, Nq ≤ n → | |
| 395 | - let R := profileRepair (P n) patch A (H.coefficients n) hA (H.smooth n) | |
| 396 | - (∀ X eta : ℝ, X ≤ patch.right → eta ∈ J → | |
| 397 | - |iteratedDeriv q (fun e => R.E (X, e)) eta - iteratedDeriv q (fun e => Q.E (X, e)) eta| ≤ C / n ∧ | |
| 398 | - |iteratedDeriv q (fun e => R.U (X, e)) eta - iteratedDeriv q (fun e => Q.U (X, e)) eta| ≤ C / n) ∧ | |
| 399 | - (∀ X : ℝ, 0 ≤ X → JetBounds.FiniteJetBound q | |
| 400 | - (fun eta => profileRows R (X, eta) - profileRows Q (X, eta)) J (C / n))) := by | |
| 401 | - classical | |
| 402 | - obtain ⟨H⟩ := exists_actual_repair_family_all_jets W r f E U ha hm hp₂ hf hE hU | |
| 403 | - patch b hb J hJ A G hA hG hApos | |
| 404 | - obtain ⟨N₀, Cc, hN₀, hCc, hcoeff⟩ := H.rates 1 | |
| 405 | - obtain ⟨Nc, hNc, hcone⟩ := profiles_trueCone W r f E U hK hKW ha hm hp₁ hp₂ hf hE hU haK | |
| 406 | - S hS hSW haNom hbNom hrelaxed hScone P Q hPf hPU hQf hQU hP0 J hJ hTJ hTD hTD' | |
| 407 | - h hL hpos hstock₁ hstock₂ hBK hends hphys patch hgap A hA H.coefficients H.smooth | |
| 408 | - N₀ Cc hCc.le (fun n hn _ => hcoeff n hn) | |
| 409 | - obtain ⟨Nr, hNr⟩ := exists_nat_gt H.threshold | |
| 410 | - refine ⟨H, max Nc Nr, hNc.trans_le (le_max_left _ _), ?_, ?_⟩ | |
| 411 | - · intro n hn | |
| 412 | - have hcn : Nc ≤ n := (le_max_left _ _).trans hn | |
| 413 | - have hrn : H.threshold ≤ (n : ℝ) := hNr.le.trans (by exact_mod_cast (le_trans (le_max_right Nc Nr) hn)) | |
| 414 | - refine ⟨?_, ?_, ?_⟩ | |
| 415 | - · intro p hp | |
| 416 | - have hpt : p ∈ K ∪ S := by | |
| 417 | - by_cases hr : p.1 ≤ W.right | |
| 418 | - · exact Or.inl (hwindow ⟨⟨hp.1.1, hr⟩, hp.2⟩) | |
| 419 | - · exact Or.inr (hfollowing ⟨⟨(lt_of_not_ge hr).le, hp.1.2⟩, hp.2⟩) | |
| 420 | - exact hcone n hcn p hpt | |
| 421 | - · intro eta heta X hX | |
| 422 | - have hmom := H.solves n eta (H.contains n hrn heta) | |
| 423 | - have hs := actual_histories_restored W r f E U ha hm hp₂ hf hE hU | |
| 424 | - patch hgap b A G (H.coefficients n) n eta X hX (hApos eta).ne' | |
| 425 | - (hpatchU eta heta) (hpatchE eta heta) hmom | |
| 426 | - apply sub_eq_zero.mp | |
| 427 | - rw [profileRows_sub (profileRepair (P n) patch A (H.coefficients n) hA (H.smooth n)) Q (hP0 n)] | |
| 428 | - change axisHistory (applyRepairF patch A (H.coefficients n) (P n).f) | |
| 429 | - (applyRepairU patch A (H.coefficients n) (P n).U) (X, eta) - axisHistory Q.f Q.U (X, eta) = 0 | |
| 430 | - rw [hPf n, hPU n, hQf, hQU, hs, sub_self] | |
| 431 | - · intro p hp | |
| 432 | - have hs := shears_unchanged_outside | |
| 433 | - (profileRepair (P n) patch A (H.coefficients n) hA (H.smooth n)) | |
| 434 | - (P n) patch A (H.coefficients n) rfl rfl hp | |
| 435 | - exact ⟨hs.1, hs.2.1, hs.2.2.1, hs.2.2.2, | |
| 436 | - profileRepair_radial_germs (P n) patch A (H.coefficients n) hA (H.smooth n) hp⟩ | |
| 437 | - · intro q | |
| 438 | - exact H.repaired_profiles_eta_rates W r f E U ha hm hp₂ hf hE hU hgap hJ hA | |
| 439 | - (fun n => profileRepair (P n) patch A (H.coefficients n) hA (H.smooth n)) Q | |
| 440 | - (fun n => by simp only [profileRepair, hPf n]) | |
| 441 | - (fun n => by simp only [profileRepair, hPU n]) hQf hQU hP0 patch.right q | |
| 442 | - | |
| 443 | 33 | end NavierStokes.ModulatedProfileJetRates |
+0 −81 NavierStokes/ModulatedStockBounds.lean View file
| @@ -254,85 +254,4 @@ theorem profile_stocks_lipschitz {D : RadialDomain} (Q : Profiles D) (h : ℝ) | ||
| 254 | 254 | simpa only [Prod.mk_sub_mk, Prod.norm_def, Real.norm_eq_abs, max_le_iff] using hpair |
| 255 | 255 | exact ⟨hPpos, hcoords⟩ |
| 256 | 256 | |
| 257 | -/-- The actual stock difference is bounded linearly by a common bound for | |
| 258 | -the two field values and the five history values/first parameter derivatives. -/ | |
| 259 | -theorem profile_stocks_from_history_bounds {D : RadialDomain} (Q : Profiles D) (h : ℝ) | |
| 260 | - {S : Set Point} (hS : IsCompact S) (hSD : S ⊆ D.carrier) | |
| 261 | - (hX : ∀ p ∈ S, 0 < p.1) (hL : ∀ p ∈ S, NaturalAxisData.L h p.2 ≠ 0) | |
| 262 | - (hpos : ∀ p ∈ S, 0 < Q.f p) : | |
| 263 | - ∃ δ C : ℝ, 0 < δ ∧ 0 ≤ C ∧ ∀ {D' : RadialDomain} (P : Profiles D'), | |
| 264 | - ∀ p ∈ S, p ∈ D'.carrier → ∀ ε : ℝ, 0 ≤ ε → ε ≤ δ → | |
| 265 | - |P.f p - Q.f p| ≤ ε → |P.U p - Q.U p| ≤ ε → | |
| 266 | - (∀ r : StressActivation.HistoryRow, | |
| 267 | - |StressActivation.profileHistory P r p - StressActivation.profileHistory Q r p| ≤ ε ∧ | |
| 268 | - |parameterPartial (StressActivation.profileHistory P r) p - | |
| 269 | - parameterPartial (StressActivation.profileHistory Q r) p| ≤ ε) → | |
| 270 | - 0 < P.f p ∧ | |
| 271 | - |ActivationStocks.profileStockOne P h p - ActivationStocks.profileStockOne Q h p| ≤ C * ε ∧ | |
| 272 | - |ActivationStocks.profileStockTwo P h p - ActivationStocks.profileStockTwo Q h p| ≤ C * ε := by | |
| 273 | - obtain ⟨δ, C, hδ, hC, hb⟩ := profile_stocks_lipschitz Q h hS hSD hX hL hpos | |
| 274 | - refine ⟨δ, C, hδ, hC, ?_⟩ | |
| 275 | - intro D' P p hp hpD ε hε hεδ hf hU hH | |
| 276 | - have hd := profileData_error_bound P Q p hε hf hU hH | |
| 277 | - obtain ⟨hPpos, hb₁, hb₂⟩ := hb P p hp hpD (hd.trans hεδ) | |
| 278 | - exact ⟨hPpos, hb₁.trans (mul_le_mul_of_nonneg_left hd hC), | |
| 279 | - hb₂.trans (mul_le_mul_of_nonneg_left hd hC)⟩ | |
| 280 | - | |
| 281 | -/-- A first parameter-jet bound on an actual history difference supplies | |
| 282 | -exactly the value/derivative estimates used by the stock adapter. -/ | |
| 283 | -theorem profileHistory_first_jet_bound {D D' : RadialDomain} | |
| 284 | - (P : Profiles D) (Q : Profiles D') (r : StressActivation.HistoryRow) | |
| 285 | - {p : Point} (hp : p ∈ D.carrier) (hp' : p ∈ D'.carrier) | |
| 286 | - {J : Set ℝ} {ε : ℝ} | |
| 287 | - (hjet : JetBounds.FiniteJetBound 1 (fun η => | |
| 288 | - StressActivation.profileHistory P r (p.1, η) - | |
| 289 | - StressActivation.profileHistory Q r (p.1, η)) J ε) (hη : p.2 ∈ J) : | |
| 290 | - |StressActivation.profileHistory P r p - StressActivation.profileHistory Q r p| ≤ ε ∧ | |
| 291 | - |parameterPartial (StressActivation.profileHistory P r) p - | |
| 292 | - parameterPartial (StressActivation.profileHistory Q r) p| ≤ ε := by | |
| 293 | - have hd := (parameterPartial_hasDerivAt D (StressActivation.profileHistory_smooth P r) hp).fun_sub | |
| 294 | - (parameterPartial_hasDerivAt D' (StressActivation.profileHistory_smooth Q r) hp') | |
| 295 | - constructor | |
| 296 | - · simpa only [Real.norm_eq_abs, Prod.eta] using hjet.norm_le hη | |
| 297 | - · simpa only [norm_iteratedFDeriv_eq_norm_iteratedDeriv, iteratedDeriv_one, | |
| 298 | - hd.deriv, Real.norm_eq_abs] using hjet 1 le_rfl p.2 hη | |
| 299 | - | |
| 300 | -/-- Actual field and five-row history estimates of order `1/n` imply an | |
| 301 | -eventual uniform `1/n` estimate for both actual lag stocks. The integer | |
| 302 | -threshold and the stock constant are conclusions. -/ | |
| 303 | -theorem profile_stocks_rate {D D' : RadialDomain} (Q : Profiles D) (h : ℝ) | |
| 304 | - (P : ℝ → Profiles D') {S : Set Point} (hS : IsCompact S) | |
| 305 | - (hSD : S ⊆ D.carrier) (hSD' : S ⊆ D'.carrier) | |
| 306 | - (hX : ∀ p ∈ S, 0 < p.1) (hL : ∀ p ∈ S, NaturalAxisData.L h p.2 ≠ 0) | |
| 307 | - (hpos : ∀ p ∈ S, 0 < Q.f p) | |
| 308 | - (n₀ Cdata : ℝ) (hCdata : 0 ≤ Cdata) | |
| 309 | - (hdata : ∀ n : ℝ, n₀ ≤ n → 1 ≤ n → ∀ p ∈ S, | |
| 310 | - |(P n).f p - Q.f p| ≤ Cdata / n ∧ |(P n).U p - Q.U p| ≤ Cdata / n ∧ | |
| 311 | - ∀ r : StressActivation.HistoryRow, | |
| 312 | - |StressActivation.profileHistory (P n) r p - StressActivation.profileHistory Q r p| ≤ Cdata / n ∧ | |
| 313 | - |parameterPartial (StressActivation.profileHistory (P n) r) p - | |
| 314 | - parameterPartial (StressActivation.profileHistory Q r) p| ≤ Cdata / n) : | |
| 315 | - ∃ N : ℕ, ∃ C : ℝ, 0 < N ∧ 0 ≤ C ∧ ∀ n : ℝ, (N : ℝ) ≤ n → ∀ p ∈ S, | |
| 316 | - 0 < (P n).f p ∧ | |
| 317 | - |ActivationStocks.profileStockOne (P n) h p - ActivationStocks.profileStockOne Q h p| ≤ C / n ∧ | |
| 318 | - |ActivationStocks.profileStockTwo (P n) h p - ActivationStocks.profileStockTwo Q h p| ≤ C / n := by | |
| 319 | - obtain ⟨δ, C, hδ, hC, hb⟩ := profile_stocks_from_history_bounds Q h hS hSD hX hL hpos | |
| 320 | - obtain ⟨N, hN⟩ := exists_nat_gt (max 1 (max n₀ (Cdata / δ))) | |
| 321 | - have hN1 : (1 : ℝ) < N := (le_max_left _ _).trans_lt hN | |
| 322 | - refine ⟨N, C * Cdata, by exact_mod_cast (lt_trans zero_lt_one hN1), mul_nonneg hC hCdata, ?_⟩ | |
| 323 | - intro n hn p hp | |
| 324 | - have hn1 : 1 ≤ n := hN1.le.trans hn | |
| 325 | - have hnpos : 0 < n := lt_of_lt_of_le zero_lt_one hn1 | |
| 326 | - have hn₀ : n₀ ≤ n := ((le_max_left _ _).trans (le_max_right _ _)).trans (hN.le.trans hn) | |
| 327 | - have hδn : Cdata / δ ≤ n := | |
| 328 | - ((le_max_right _ _).trans (le_max_right _ _)).trans (hN.le.trans hn) | |
| 329 | - have hsmall : Cdata / n ≤ δ := by | |
| 330 | - apply (div_le_iff₀ hnpos).mpr | |
| 331 | - have := (div_le_iff₀ hδ).mp hδn | |
| 332 | - nlinarith | |
| 333 | - obtain ⟨hf, hU, hH⟩ := hdata n hn₀ hn1 p hp | |
| 334 | - obtain ⟨hPpos, hs₁, hs₂⟩ := hb (P n) p hp (hSD' hp) (Cdata / n) | |
| 335 | - (div_nonneg hCdata hnpos.le) hsmall hf hU hH | |
| 336 | - exact ⟨hPpos, by simpa only [mul_div_assoc] using hs₁, by simpa only [mul_div_assoc] using hs₂⟩ | |
| 337 | - | |
| 338 | 257 | end NavierStokes.ModulatedStockBounds |
+36 −0 routes/s1-ns-modulated-1/README.md added View file
| @@ -0,0 +1,36 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-modulated-1 | |
| 6 | + | |
| 7 | +Unit `s1-ns-modulated-1` of issue #10 (S-1), family `NavierStokes/Modulated*`: delete 37 | |
| 8 | +declarations that nothing uses, from six files — `ModulatedCone.lean`, `ModulatedExterior.lean`, | |
| 9 | +`ModulatedHistories.lean`, `ModulatedProfileAssembly.lean`, `ModulatedProfileJetRates.lean`, | |
| 10 | +`ModulatedStockBounds.lean`. 918 lines, deletions only; no statement or proof that stays is changed. | |
| 11 | + | |
| 12 | +The list is Treant's run of 2026-12-03 (TitiSkywalker/NavierStokesAndEuler), re-read on this | |
| 13 | +project's main against its declaration graph under the rule that the paper's results stay: a | |
| 14 | +declaration Treant deleted stays when a result of the paper reaches it | |
| 15 | +(`NavierStokes/PaperResults.lean`, `NavierStokes/R3/Theorem.lean`, | |
| 16 | +`NavierStokes/LocalPaperTheorem.lean`), when its docstring cites the paper, or when the text of a | |
| 17 | +declaration that stays names it. None of these 37 is any of those. | |
| 18 | + | |
| 19 | +Checked after applying the patch, as a reviewer would: | |
| 20 | + | |
| 21 | +- `git grep -n -w` over every one of the 37 short names: 33 have no hit; the only hits are other | |
| 22 | + declarations of the same short name — `profileHistory_difference` in | |
| 23 | + `NavierStokes/ActivationContinuation.lean`, and `profile_stocks_rate` and `profiles_trueCone` in | |
| 24 | + the `Repaired` namespace of `NavierStokes/ModulatedCone.lean`. | |
| 25 | +- The deleted blocks are 918 `-` lines and no `+` line. No deleted docstring names a numbered | |
| 26 | + Lemma, Theorem, Proposition, Corollary, Section or Equation of the paper. | |
| 27 | +- Nothing was put back: none of the 37 needed to stay under the rule above. | |
| 28 | + | |
| 29 | +`python3 checks/challenge.py .` ends with `ok: 4 challenge files and the build configuration as | |
| 30 | +approved; 2590 Lean files, 616217 lines, toolchain leanprover/lean4:v4.34.0-rc2`. | |
| 31 | + | |
| 32 | +## Next | |
| 33 | + | |
| 34 | +Pushed and the pull request is open; `build` on its head is what says whether the tree compiles. | |
| 35 | +The rest of `NavierStokes/Modulated*`'s Treant deletions that survive the project's rule remain | |
| 36 | +for another unit of issue #10. | |