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

Merge pull request #276 from s1-ns-terminal-1
Browse fileschore(NavierStokes/Terminal): delete 79 declarations nothing uses
main s1-euler-all-3 s1-euler-correction-3 s1-euler-cylinder-3 s1-euler-dirichlet-6 s1-euler-euler-2 s1-euler-euler-6 s1-euler-exact-3 s1-euler-finite-3 s1-euler-hilbert-6 s1-euler-lp-3 s1-euler-ordinary-6 s1-euler-packet-3 s1-euler-source-6 s1-euler-transverse-2 s1-euler-transverse-6 s1-euler-volume-3 s1-ns-actual-3 s1-ns-annular-6 s1-ns-assembled-7 s1-ns-base-2 s1-ns-base-6 s1-ns-borel-3 s1-ns-common-6 s1-ns-constructed-3 s1-ns-copy-6 s1-ns-correction-3 s1-ns-curl-6 s1-ns-current-3 s1-ns-cycle-3 s1-ns-edge-6 s1-ns-error-3 s1-ns-even-3 s1-ns-final-6 s1-ns-first-3 s1-ns-flat-3 s1-ns-fourier-3 s1-ns-graph-6 s1-ns-harmonic-6 s1-ns-harmonic-7 s1-ns-heat-3 s1-ns-joint-3 s1-ns-label-6 s1-ns-linear-6 s1-ns-linear-7 s1-ns-localized-1 s1-ns-localized-6 s1-ns-mean-1 s1-ns-modulated-3 s1-ns-moment-6 s1-ns-offplane-2 s1-ns-offplane-6 s1-ns-parametric-6 s1-ns-particular-2 s1-ns-particular-6 s1-ns-partitioned-6 s1-ns-periodic-3 s1-ns-periodized-6 s1-ns-physical-3 s1-ns-prepared-6 s1-ns-primary-2 s1-ns-primary-6 s1-ns-residual-3 s1-ns-scaled-3 s1-ns-signed-3 s1-ns-slow-6 s1-ns-smooth-3 s1-ns-spacetime-3 s1-ns-temporal-3 s1-ns-terminal-6 s1-ns-torus-3 s1-ns-variable-3 s1-ns-viscous-6 s1-ns-wave-3 s1-ns-weighted-3 s1-ns-whole-3 s1-ns-within-6
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+0 −384 NavierStokes/TerminalCompensation.lean View file
| @@ -56,12 +56,6 @@ noncomputable def bump (P : Patch) (j : Fin 3) : ℝ → ℝ := | ||
| 56 | 56 | theorem bump_contDiff (P : Patch) (j : Fin 3) : ContDiff ℝ ∞ (bump P j) := |
| 57 | 57 | LocalizedMomentRepair.bump_contDiff _ _ |
| 58 | 58 | |
| 59 | -theorem bump_nonneg (P : Patch) (j : Fin 3) (x : ℝ) : 0 ≤ bump P j x := | |
| 60 | - LocalizedMomentRepair.bump_nonneg _ _ _ | |
| 61 | - | |
| 62 | -theorem bump_le_one (P : Patch) (j : Fin 3) (x : ℝ) : bump P j x ≤ 1 := | |
| 63 | - LocalizedMomentRepair.bump_le_one _ _ _ | |
| 64 | - | |
| 65 | 59 | theorem bump_tsupport (P : Patch) (j : Fin 3) : |
| 66 | 60 | tsupport (bump P j) ⊆ Ioo (lower P j) (upper P j) := |
| 67 | 61 | LocalizedMomentRepair.bump_tsupport_subset_open _ _ (lower_lt_upper P j) |
| @@ -127,10 +121,6 @@ theorem correction_tsupport (P : Patch) (c : Coeff) : | ||
| 127 | 121 | obtain ⟨j, hj⟩ := mem_iUnion.mp hm |
| 128 | 122 | exact ⟨(lower_gt_left P j).trans hj.1, hj.2.trans (upper_lt_right P j)⟩ |
| 129 | 123 | |
| 130 | -theorem correction_hasCompactSupport (P : Patch) (c : Coeff) : | |
| 131 | - HasCompactSupport (correction P c) := | |
| 132 | - HasCompactSupport.of_support_subset_isCompact isCompact_Icc (correction_support P c) | |
| 133 | - | |
| 134 | 124 | theorem weighted_integrable (P : Patch) (s : ℝ) (g : ℝ → ℝ) |
| 135 | 125 | (hg : Continuous g) (hs : support g ⊆ Icc P.left P.right) : |
| 136 | 126 | Integrable (fun x => x ^ s * g x) := by |
| @@ -464,14 +454,6 @@ noncomputable def correctionCLM (P : Patch) (x : ℝ) : Coeff →L[ℝ] ℝ := | ||
| 464 | 454 | simp only [correction, Pi.smul_apply, smul_eq_mul, mul_assoc, Finset.mul_sum, |
| 465 | 455 | RingHom.id_apply] } |
| 466 | 456 | |
| 467 | -theorem correctionCLM_apply (P : Patch) (x : ℝ) (c : Coeff) : | |
| 468 | - correctionCLM P x c = correction P c x := rfl | |
| 469 | - | |
| 470 | -theorem correction_parameter_deriv (P : Patch) {c : ℝ → Coeff} {η : ℝ} | |
| 471 | - (hc : DifferentiableAt ℝ c η) (x : ℝ) : | |
| 472 | - deriv (fun s => correction P (c s) x) η = correction P (deriv c η) x := | |
| 473 | - ((correctionCLM P x).hasFDerivAt.comp_hasDerivAt η hc.hasDerivAt).deriv | |
| 474 | - | |
| 475 | 457 | theorem correction_family_contDiffOn (P : Patch) {U : Set ℝ} {c : ℝ → Coeff} |
| 476 | 458 | (hc : ContDiffOn ℝ ∞ c U) : |
| 477 | 459 | ContDiffOn ℝ ∞ (fun z : ℝ × ℝ => correction P (c z.1) z.2) (U ×ˢ univ) := by |
| @@ -480,20 +462,6 @@ theorem correction_family_contDiffOn (P : Patch) {U : Set ℝ} {c : ℝ → Coef | ||
| 480 | 462 | exact ((contDiffOn_pi.mp hc j).comp contDiffOn_fst (fun z hz => hz.1)).mul |
| 481 | 463 | ((bump_contDiff P j).comp_contDiffOn contDiffOn_snd) |
| 482 | 464 | |
| 483 | -/-- Composition with the debt gives the true parameter derivative, with no | |
| 484 | -regularity hypothesis on a previously chosen solution branch. -/ | |
| 485 | -theorem composed_solver_deriv_bound {g : Coeff → Coeff} {ε C : ℝ} | |
| 486 | - (hg : ContDiffOn ℝ ∞ g (Metric.ball 0 ε)) | |
| 487 | - (hbound : ∀ v ∈ Metric.ball (0 : Coeff) ε, ‖fderiv ℝ g v‖ ≤ C) | |
| 488 | - {d : ℝ → Coeff} {η : ℝ} (hd : DifferentiableAt ℝ d η) | |
| 489 | - (hmem : d η ∈ Metric.ball (0 : Coeff) ε) : | |
| 490 | - ‖deriv (g ∘ d) η‖ ≤ C * ‖deriv d η‖ := by | |
| 491 | - have hgd := (hg.contDiffAt (Metric.isOpen_ball.mem_nhds hmem)).differentiableAt | |
| 492 | - (by simp : (∞ : WithTop ℕ∞) ≠ 0) | |
| 493 | - rw [(hgd.hasFDerivAt.comp_hasDerivAt η hd.hasDerivAt).deriv] | |
| 494 | - exact ((fderiv ℝ g (d η)).le_opNorm _).trans | |
| 495 | - (mul_le_mul_of_nonneg_right (hbound (d η) hmem) (norm_nonneg _)) | |
| 496 | - | |
| 497 | 465 | /-- The physical profile uses the actual additive bumps at scale `R`. -/ |
| 498 | 466 | noncomputable def physicalProfile (P : Patch) (lam R a : ℝ) (c : Coeff) (X : ℝ) : ℝ := |
| 499 | 467 | a * (baseProfile lam (X / R) + correction P c (X / R)) |
| @@ -606,55 +574,6 @@ theorem amplitudeFactors_contDiffOn {U : Set ℝ} {a : ℝ → ℝ} | ||
| 606 | 574 | · exact (contDiffOn_const.mul (ha.pow 2)).inv (fun η hη => by have := hpos η hη; positivity) |
| 607 | 575 | · exact ha.inv (fun η hη => (hpos η hη).ne') |
| 608 | 576 | |
| 609 | -theorem amplitudeDebt_contDiffOn {U : Set ℝ} {a : ℝ → ℝ} | |
| 610 | - (ha : ContDiffOn ℝ ∞ a U) (hpos : ∀ η ∈ U, 0 < a η) (v : Coeff) : | |
| 611 | - ContDiffOn ℝ ∞ (fun η => amplitudeDebt (a η) v) U := | |
| 612 | - ((amplitudeFactors_contDiffOn ha hpos).mul contDiffOn_const).neg | |
| 613 | - | |
| 614 | -theorem compact_amplitude_bounds {U S : Set ℝ} (hU : IsOpen U) (hS : IsCompact S) | |
| 615 | - (hSU : S ⊆ U) {a : ℝ → ℝ} (ha : ContDiffOn ℝ ∞ a U) | |
| 616 | - (hpos : ∀ η ∈ U, 0 < a η) : | |
| 617 | - ∃ D : ℝ, 0 < D ∧ ∀ η ∈ S, | |
| 618 | - ‖amplitudeFactors (a η)‖ ≤ D ∧ | |
| 619 | - ‖deriv (fun θ => amplitudeFactors (a θ)) η‖ ≤ D ∧ | |
| 620 | - |a η| ≤ D ∧ |deriv a η| ≤ D := by | |
| 621 | - have hF := amplitudeFactors_contDiffOn ha hpos | |
| 622 | - have hFd : ContDiffOn ℝ ∞ (deriv (fun θ => amplitudeFactors (a θ))) U := | |
| 623 | - hF.deriv_of_isOpen hU (by simp) | |
| 624 | - have had : ContDiffOn ℝ ∞ (deriv a) U := ha.deriv_of_isOpen hU (by simp) | |
| 625 | - obtain ⟨B₀, hb₀⟩ := hS.exists_bound_of_continuousOn (hF.continuousOn.mono hSU) | |
| 626 | - obtain ⟨B₁, hb₁⟩ := hS.exists_bound_of_continuousOn (hFd.continuousOn.mono hSU) | |
| 627 | - obtain ⟨B₂, hb₂⟩ := hS.exists_bound_of_continuousOn (ha.continuousOn.mono hSU) | |
| 628 | - obtain ⟨B₃, hb₃⟩ := hS.exists_bound_of_continuousOn (had.continuousOn.mono hSU) | |
| 629 | - let D : ℝ := 1 + |B₀| + |B₁| + |B₂| + |B₃| | |
| 630 | - have hD₀ : B₀ ≤ D := by dsimp [D]; linarith [le_abs_self B₀, abs_nonneg B₁, abs_nonneg B₂, abs_nonneg B₃] | |
| 631 | - have hD₁ : B₁ ≤ D := by dsimp [D]; linarith [le_abs_self B₁, abs_nonneg B₀, abs_nonneg B₂, abs_nonneg B₃] | |
| 632 | - have hD₂ : B₂ ≤ D := by dsimp [D]; linarith [le_abs_self B₂, abs_nonneg B₀, abs_nonneg B₁, abs_nonneg B₃] | |
| 633 | - have hD₃ : B₃ ≤ D := by dsimp [D]; linarith [le_abs_self B₃, abs_nonneg B₀, abs_nonneg B₁, abs_nonneg B₂] | |
| 634 | - refine ⟨D, by dsimp [D]; positivity, fun η hη => ⟨(hb₀ η hη).trans hD₀, | |
| 635 | - (hb₁ η hη).trans hD₁, ?_, ?_⟩⟩ | |
| 636 | - · exact (hb₂ η hη).trans hD₂ | |
| 637 | - · exact (hb₃ η hη).trans hD₃ | |
| 638 | - | |
| 639 | -theorem amplitudeDebt_bounds {U S : Set ℝ} (hU : IsOpen U) (hSU : S ⊆ U) | |
| 640 | - {a : ℝ → ℝ} (ha : ContDiffOn ℝ ∞ a U) (hpos : ∀ η ∈ U, 0 < a η) | |
| 641 | - {D : ℝ} (hD : ∀ η ∈ S, ‖amplitudeFactors (a η)‖ ≤ D ∧ | |
| 642 | - ‖deriv (fun θ => amplitudeFactors (a θ)) η‖ ≤ D) | |
| 643 | - (v : Coeff) {η : ℝ} (hη : η ∈ S) : | |
| 644 | - ‖amplitudeDebt (a η) v‖ ≤ D * ‖v‖ ∧ | |
| 645 | - ‖deriv (fun θ => amplitudeDebt (a θ) v) η‖ ≤ D * ‖v‖ := by | |
| 646 | - have hF : DifferentiableAt ℝ (fun θ => amplitudeFactors (a θ)) η := | |
| 647 | - ((amplitudeFactors_contDiffOn ha hpos).contDiffAt (hU.mem_nhds (hSU hη))).differentiableAt | |
| 648 | - (by simp : (∞ : WithTop ℕ∞) ≠ 0) | |
| 649 | - constructor | |
| 650 | - · dsimp [amplitudeDebt] | |
| 651 | - rw [norm_neg] | |
| 652 | - exact (norm_mul_le _ _).trans (mul_le_mul_of_nonneg_right (hD η hη).1 (norm_nonneg v)) | |
| 653 | - · simp only [amplitudeDebt] | |
| 654 | - rw [((hF.hasDerivAt.mul_const v).fun_neg).deriv] | |
| 655 | - rw [norm_neg] | |
| 656 | - exact (norm_mul_le _ _).trans (mul_le_mul_of_nonneg_right (hD η hη).2 (norm_nonneg v)) | |
| 657 | - | |
| 658 | 577 | /-- The value, normalized radial derivative, and parameter derivative of the |
| 659 | 578 | actual additive profile perturbation are all small. -/ |
| 660 | 579 | noncomputable def FirstJetBound (P : Patch) (a : ℝ → ℝ) (c : ℝ → Coeff) |
| @@ -663,108 +582,6 @@ noncomputable def FirstJetBound (P : Patch) (a : ℝ → ℝ) (c : ℝ → Coeff | ||
| 663 | 582 | |a η * deriv (correction P (c η)) x| ≤ L ∧ |
| 664 | 583 | |deriv (fun θ => a θ * correction P (c θ) x) η| ≤ L |
| 665 | 584 | |
| 666 | -/-- One debt threshold and one first-jet constant work on the entire compact | |
| 667 | -parameter range. Both are independent of the physical radial scale. -/ | |
| 668 | -theorem exists_uniform_parameter_compensation (P : Patch) (lam : ℝ) (hlam : 0 ≤ lam) | |
| 669 | - {U S : Set ℝ} (hU : IsOpen U) (hS : IsCompact S) (hSU : S ⊆ U) | |
| 670 | - (a : ℝ → ℝ) (ha : ContDiffOn ℝ ∞ a U) (hpos : ∀ η ∈ U, 0 < a η) : | |
| 671 | - ∃ ε C : ℝ, 0 < ε ∧ 0 < C ∧ ∀ v : Coeff, ‖v‖ < ε → | |
| 672 | - ∃ (c : ℝ → Coeff) (V : Set ℝ), | |
| 673 | - IsOpen V ∧ S ⊆ V ∧ V ⊆ U ∧ ContDiffOn ℝ ∞ c V ∧ | |
| 674 | - ∀ η ∈ S, momentMap P lam (c η) = amplitudeDebt (a η) v ∧ | |
| 675 | - ‖c η‖ ≤ C * ‖v‖ ∧ ‖deriv c η‖ ≤ C * ‖v‖ ∧ | |
| 676 | - FirstJetBound P a c η (C * ‖v‖) ∧ | |
| 677 | - ∀ x : ℝ, 0 < x → 0 < a η * (baseProfile lam x + correction P (c η) x) := by | |
| 678 | - obtain ⟨g, ε₀, C₀, hε₀, hC₀, hg, hg0, hspec⟩ := exists_normalized_compensation P lam hlam | |
| 679 | - obtain ⟨D, hD, hbounds⟩ := compact_amplitude_bounds hU hS hSU ha hpos | |
| 680 | - obtain ⟨J, hJ, hjet⟩ := correction_first_jet_bound P | |
| 681 | - let B : ℝ := C₀ * D | |
| 682 | - let T : ℝ := D * B + D * (J * B) | |
| 683 | - let C : ℝ := 1 + B + T | |
| 684 | - have hB : 0 < B := mul_pos hC₀ hD | |
| 685 | - have hT : 0 < T := by dsimp [T]; positivity | |
| 686 | - have hC : 0 < C := by dsimp [C]; positivity | |
| 687 | - have hBC : B ≤ C := by dsimp [C]; linarith | |
| 688 | - have hTC : T ≤ C := by dsimp [C]; linarith | |
| 689 | - have hDBC : D * B ≤ C := by dsimp [T] at hTC; nlinarith [mul_pos hD (mul_pos hJ hB)] | |
| 690 | - refine ⟨ε₀ / D, C, div_pos hε₀ hD, hC, ?_⟩ | |
| 691 | - intro v hv | |
| 692 | - let d : ℝ → Coeff := fun η => amplitudeDebt (a η) v | |
| 693 | - have hd : ContDiffOn ℝ ∞ d U := amplitudeDebt_contDiffOn ha hpos v | |
| 694 | - let V : Set ℝ := U ∩ d ⁻¹' Metric.ball 0 ε₀ | |
| 695 | - have hV : IsOpen V := hd.continuousOn.isOpen_inter_preimage hU Metric.isOpen_ball | |
| 696 | - have hd_bound : ∀ η ∈ S, ‖d η‖ ≤ D * ‖v‖ ∧ ‖deriv d η‖ ≤ D * ‖v‖ := by | |
| 697 | - intro η hη | |
| 698 | - exact amplitudeDebt_bounds hU hSU ha hpos | |
| 699 | - (fun η hη => ⟨(hbounds η hη).1, (hbounds η hη).2.1⟩) v hη | |
| 700 | - have hSV : S ⊆ V := by | |
| 701 | - intro η hη | |
| 702 | - refine ⟨hSU hη, ?_⟩ | |
| 703 | - change dist (d η) 0 < ε₀ | |
| 704 | - rw [dist_zero_right] | |
| 705 | - apply (hd_bound η hη).1.trans_lt | |
| 706 | - have ht := (lt_div_iff₀ hD).mp hv | |
| 707 | - simpa only [mul_comm] using ht | |
| 708 | - let c : ℝ → Coeff := g ∘ d | |
| 709 | - have hc : ContDiffOn ℝ ∞ c V := | |
| 710 | - hg.comp (hd.mono inter_subset_left) (fun η hη => hη.2) | |
| 711 | - refine ⟨c, V, hV, hSV, inter_subset_left, hc, ?_⟩ | |
| 712 | - intro η hη | |
| 713 | - have hηV := hSV hη | |
| 714 | - have hηU := hSU hη | |
| 715 | - have hm : d η ∈ Metric.ball (0 : Coeff) ε₀ := hηV.2 | |
| 716 | - have hval : ‖c η‖ ≤ B * ‖v‖ := by | |
| 717 | - exact ((hspec (d η) hm).2.1).trans | |
| 718 | - (by simpa only [B, mul_assoc] using mul_le_mul_of_nonneg_left (hd_bound η hη).1 hC₀.le) | |
| 719 | - have hdif : DifferentiableAt ℝ d η := | |
| 720 | - (hd.contDiffAt (hU.mem_nhds hηU)).differentiableAt (by simp) | |
| 721 | - have hcdif : DifferentiableAt ℝ c η := | |
| 722 | - (hc.contDiffAt (hV.mem_nhds hηV)).differentiableAt (by simp) | |
| 723 | - have hcderiv : ‖deriv c η‖ ≤ B * ‖v‖ := by | |
| 724 | - apply (composed_solver_deriv_bound hg (fun w hw => (hspec w hw).2.2.1) hdif hm).trans | |
| 725 | - simpa only [B, mul_assoc] using mul_le_mul_of_nonneg_left (hd_bound η hη).2 hC₀.le | |
| 726 | - have hcorr : ∀ x, |correction P (c η) x| ≤ B * ‖v‖ ∧ | |
| 727 | - |deriv (correction P (c η)) x| ≤ B * ‖v‖ := by | |
| 728 | - intro x | |
| 729 | - have hb : C₀ * ‖d η‖ ≤ B * ‖v‖ := by | |
| 730 | - simpa only [B, mul_assoc] using mul_le_mul_of_nonneg_left (hd_bound η hη).1 hC₀.le | |
| 731 | - exact ⟨((hspec (d η) hm).2.2.2 x).1.1.trans hb, | |
| 732 | - ((hspec (d η) hm).2.2.2 x).1.2.trans hb⟩ | |
| 733 | - refine ⟨(hspec (d η) hm).1, | |
| 734 | - hval.trans (mul_le_mul_of_nonneg_right hBC (norm_nonneg v)), | |
| 735 | - hcderiv.trans (mul_le_mul_of_nonneg_right hBC (norm_nonneg v)), ?_, ?_⟩ | |
| 736 | - · intro x | |
| 737 | - have ha₀ : |a η| ≤ D := (hbounds η hη).2.2.1 | |
| 738 | - have ha₁ : |deriv a η| ≤ D := (hbounds η hη).2.2.2 | |
| 739 | - have hparam : |deriv (fun θ => correction P (c θ) x) η| ≤ (J * B) * ‖v‖ := by | |
| 740 | - rw [correction_parameter_deriv P hcdif x] | |
| 741 | - exact ((hjet (deriv c η) x).1).trans | |
| 742 | - (by simpa only [mul_assoc] using mul_le_mul_of_nonneg_left hcderiv hJ.le) | |
| 743 | - have hmul₀ : |a η * correction P (c η) x| ≤ (D * B) * ‖v‖ := by | |
| 744 | - rw [abs_mul] | |
| 745 | - exact (mul_le_mul ha₀ (hcorr x).1 (abs_nonneg _) hD.le).trans_eq (by ring) | |
| 746 | - have hmul₁ : |a η * deriv (correction P (c η)) x| ≤ (D * B) * ‖v‖ := by | |
| 747 | - rw [abs_mul] | |
| 748 | - exact (mul_le_mul ha₀ (hcorr x).2 (abs_nonneg _) hD.le).trans_eq (by ring) | |
| 749 | - refine ⟨hmul₀.trans (mul_le_mul_of_nonneg_right hDBC (norm_nonneg v)), | |
| 750 | - hmul₁.trans (mul_le_mul_of_nonneg_right hDBC (norm_nonneg v)), ?_⟩ | |
| 751 | - have hadif : DifferentiableAt ℝ a η := | |
| 752 | - (ha.contDiffAt (hU.mem_nhds hηU)).differentiableAt (by simp) | |
| 753 | - have hfdif : DifferentiableAt ℝ (fun θ => correction P (c θ) x) η := | |
| 754 | - (correctionCLM P x).differentiableAt.comp η hcdif | |
| 755 | - rw [(hadif.hasDerivAt.fun_mul hfdif.hasDerivAt).deriv] | |
| 756 | - calc | |
| 757 | - _ ≤ |deriv a η * correction P (c η) x| + | |
| 758 | - |a η * deriv (fun θ => correction P (c θ) x) η| := abs_add_le _ _ | |
| 759 | - _ ≤ D * (B * ‖v‖) + D * ((J * B) * ‖v‖) := by | |
| 760 | - simp only [abs_mul] | |
| 761 | - exact add_le_add (mul_le_mul ha₁ (hcorr x).1 (abs_nonneg _) hD.le) | |
| 762 | - (mul_le_mul ha₀ hparam (abs_nonneg _) hD.le) | |
| 763 | - _ = T * ‖v‖ := by dsimp [T]; ring | |
| 764 | - _ ≤ C * ‖v‖ := mul_le_mul_of_nonneg_right hTC (norm_nonneg v) | |
| 765 | - · intro x hx | |
| 766 | - exact mul_pos (hpos η hηU) (((hspec (d η) hm).2.2.2 x).2 hx) | |
| 767 | - | |
| 768 | 585 | theorem physicalProfile_eq_clean_outside (P : Patch) (lam R a : ℝ) (c : Coeff) (X : ℝ) |
| 769 | 586 | (hX : X / R ∉ Ioo P.left P.right) : |
| 770 | 587 | physicalProfile P lam R a c X = cleanProfile lam R a X := by |
| @@ -773,172 +590,11 @@ theorem physicalProfile_eq_clean_outside (P : Patch) (lam R a : ℝ) (c : Coeff) | ||
| 773 | 590 | exact hX (correction_tsupport P c (subset_tsupport _ hn)) |
| 774 | 591 | simp only [physicalProfile, cleanProfile, hz, add_zero] |
| 775 | 592 | |
| 776 | -theorem physicalDifference_hasCompactSupport (P : Patch) (lam R a : ℝ) (hR : 0 < R) | |
| 777 | - (c : Coeff) : | |
| 778 | - HasCompactSupport (fun X => physicalProfile P lam R a c X - cleanProfile lam R a X) := by | |
| 779 | - apply HasCompactSupport.of_support_subset_isCompact | |
| 780 | - (isCompact_Icc : IsCompact (Icc (R * P.left) (R * P.right))) | |
| 781 | - intro X hX | |
| 782 | - have hn : correction P c (X / R) ≠ 0 := by | |
| 783 | - intro hz | |
| 784 | - apply hX | |
| 785 | - simp only [physicalProfile, cleanProfile, hz, add_zero, sub_self] | |
| 786 | - have hx := correction_support P c hn | |
| 787 | - constructor | |
| 788 | - · have h := (le_div_iff₀ hR).mp hx.1 | |
| 789 | - simpa only [mul_comm] using h | |
| 790 | - · have h := (div_le_iff₀ hR).mp hx.2 | |
| 791 | - simpa only [mul_comm] using h | |
| 792 | - | |
| 793 | -/-- On the reserved patch `U=0`, so the mixed axial-angular moment is unchanged. -/ | |
| 794 | -theorem mixed_moment_unchanged (P : Patch) (lam R a : ℝ) (c : Coeff) (U : ℝ → ℝ) | |
| 795 | - (hU : ∀ X, X / R ∈ Ioo P.left P.right → U X = 0) : | |
| 796 | - (∫ X, U X * physicalProfile P lam R a c X) = ∫ X, U X * cleanProfile lam R a X := by | |
| 797 | - congr 1 | |
| 798 | - funext X | |
| 799 | - by_cases hX : X / R ∈ Ioo P.left P.right | |
| 800 | - · simp [hU X hX] | |
| 801 | - · rw [physicalProfile_eq_clean_outside P lam R a c X hX] | |
| 802 | - | |
| 803 | -theorem angular_scale_eq (R : ℝ) (hR : 0 < R) : | |
| 804 | - R * Real.sqrt (2 * R) = Real.sqrt 2 * R ^ (3 / 2 : ℝ) := by | |
| 805 | - rw [Real.sqrt_mul (by norm_num : (0 : ℝ) ≤ 2), Real.sqrt_eq_rpow R, | |
| 806 | - show (3 / 2 : ℝ) = 1 + 1 / 2 by norm_num, Real.rpow_add hR, Real.rpow_one] | |
| 807 | - ring | |
| 808 | - | |
| 809 | -noncomputable def heatDebt (T : OutgoingTail.TailData) (ν K η : ℝ) : Coeff := | |
| 810 | - ![HeatTailEdit.pressureDebt (HeatTailEdit.outgoingProfile T K η) T.h ν K, | |
| 811 | - HeatTailEdit.energyDebt (HeatTailEdit.outgoingProfile T K η) T.h ν K, | |
| 812 | - HeatTailEdit.angularDebt (HeatTailEdit.outgoingProfile T K η) T.h ν K] | |
| 813 | - | |
| 814 | -theorem heatDebt_independent (T : OutgoingTail.TailData) (ν : ℝ) {K : ℝ} | |
| 815 | - (hK : 0 < K) (η : ℝ) : heatDebt T ν K η = heatDebt T ν K 0 := by | |
| 816 | - ext i | |
| 817 | - fin_cases i | |
| 818 | - · exact (HeatTailEdit.outgoing_pressureDebt_eq T ν η hK).trans | |
| 819 | - (HeatTailEdit.outgoing_pressureDebt_eq T ν 0 hK).symm | |
| 820 | - · exact (HeatTailEdit.outgoing_energyDebt_eq T ν η hK).trans | |
| 821 | - (HeatTailEdit.outgoing_energyDebt_eq T ν 0 hK).symm | |
| 822 | - · exact (HeatTailEdit.outgoing_angularDebt_eq T ν η hK).trans | |
| 823 | - (HeatTailEdit.outgoing_angularDebt_eq T ν 0 hK).symm | |
| 824 | - | |
| 825 | -/-- The actual heat-tail debts become uniformly `O(1/K)` in the fixed patch | |
| 826 | -coordinate when the patch radius is `q*K`. No debt estimate is assumed. -/ | |
| 827 | -theorem scaled_heatDebt_bound (T : OutgoingTail.TailData) (ν q : ℝ) | |
| 828 | - (hν : 0 < ν) (hq : 0 < q) : | |
| 829 | - ∃ C : ℝ, 0 < C ∧ ∀ K : ℝ, 0 < K → | |
| 830 | - ‖scaledDebt (q * K) (heatDebt T ν K 0)‖ ≤ C / K := by | |
| 831 | - let H := HeatTailEdit.heatConstant T.h ν | |
| 832 | - let e := HeatTailEdit.outgoingAmplitude T | |
| 833 | - let A := HeatTailEdit.exponent T.h | |
| 834 | - have hH : 0 < H := HeatTailEdit.heatConstant_pos T.h_pos hν | |
| 835 | - have he : 0 < e := HeatTailEdit.outgoingAmplitude_pos T | |
| 836 | - have hA : 0 < A := by dsimp [A, HeatTailEdit.exponent]; linarith [T.h_pos] | |
| 837 | - have hh : 0 < T.h := T.h_pos | |
| 838 | - let P₀ : ℝ := 2 * H * e ^ 2 / (2 * A + 1) | |
| 839 | - let S₀ : ℝ := 2 * H * e ^ 2 / (2 * A) | |
| 840 | - let I₀ : ℝ := Real.sqrt 2 * H * e / T.h | |
| 841 | - have hP₀ : 0 < P₀ := by dsimp [P₀]; positivity | |
| 842 | - have hS₀ : 0 < S₀ := by dsimp [S₀]; positivity | |
| 843 | - have hI₀ : 0 < I₀ := by dsimp [I₀]; positivity | |
| 844 | - have hsqrt : 0 < Real.sqrt (2 * q) := Real.sqrt_pos.2 (by positivity) | |
| 845 | - let C : ℝ := P₀ + S₀ / q + I₀ / (q * Real.sqrt (2 * q)) | |
| 846 | - have hC : 0 < C := by dsimp [C]; positivity | |
| 847 | - have hSq : 0 < S₀ / q := div_pos hS₀ hq | |
| 848 | - have hIq : 0 < I₀ / (q * Real.sqrt (2 * q)) := div_pos hI₀ (mul_pos hq hsqrt) | |
| 849 | - have hCP : P₀ ≤ C := by dsimp [C]; linarith | |
| 850 | - have hCS : S₀ / q ≤ C := by dsimp [C]; linarith | |
| 851 | - have hCI : I₀ / (q * Real.sqrt (2 * q)) ≤ C := by dsimp [C]; linarith | |
| 852 | - refine ⟨C, hC, ?_⟩ | |
| 853 | - intro K hK | |
| 854 | - have hqK : 0 < q * K := mul_pos hq hK | |
| 855 | - have hrootK : 0 < Real.sqrt K := Real.sqrt_pos.2 hK | |
| 856 | - have hrootqK : 0 < Real.sqrt (2 * (q * K)) := Real.sqrt_pos.2 (by positivity) | |
| 857 | - have hp : |heatDebt T ν K 0 0| ≤ P₀ / K := by | |
| 858 | - convert! (HeatTailEdit.outgoing_pressure T hν hK 0).2 using 1 | |
| 859 | - dsimp [P₀, H, e, A] | |
| 860 | - rw [div_div] | |
| 861 | - congr 1 | |
| 862 | - ring | |
| 863 | - have hs : |heatDebt T ν K 0 1| ≤ S₀ := (HeatTailEdit.outgoing_energy T hν hK 0).2 | |
| 864 | - have hi : |heatDebt T ν K 0 2| ≤ I₀ * Real.sqrt K := by | |
| 865 | - convert! (HeatTailEdit.outgoing_angular T hν hK 0).2 using 1 | |
| 866 | - dsimp [I₀, H, e] | |
| 867 | - ring | |
| 868 | - apply (pi_norm_le_iff_of_nonneg (div_nonneg hC.le hK.le)).mpr | |
| 869 | - intro i | |
| 870 | - fin_cases i | |
| 871 | - · change |heatDebt T ν K 0 0| ≤ C / K | |
| 872 | - exact hp.trans (div_le_div_of_nonneg_right hCP hK.le) | |
| 873 | - · change |heatDebt T ν K 0 1 / (q * K)| ≤ C / K | |
| 874 | - rw [abs_div, abs_of_pos hqK] | |
| 875 | - calc | |
| 876 | - _ ≤ S₀ / (q * K) := div_le_div_of_nonneg_right hs hqK.le | |
| 877 | - _ = (S₀ / q) / K := (div_div S₀ q K).symm | |
| 878 | - _ ≤ C / K := div_le_div_of_nonneg_right hCS hK.le | |
| 879 | - · change |heatDebt T ν K 0 2 / (q * K * Real.sqrt (2 * (q * K)))| ≤ C / K | |
| 880 | - rw [abs_div, abs_of_pos (mul_pos hqK hrootqK)] | |
| 881 | - calc | |
| 882 | - _ ≤ (I₀ * Real.sqrt K) / (q * K * Real.sqrt (2 * (q * K))) := | |
| 883 | - div_le_div_of_nonneg_right hi (mul_pos hqK hrootqK).le | |
| 884 | - _ = (I₀ / (q * Real.sqrt (2 * q))) / K := by | |
| 885 | - rw [← mul_assoc 2 q K, Real.sqrt_mul (by positivity : 0 ≤ 2 * q)] | |
| 886 | - field_simp | |
| 887 | - _ ≤ C / K := div_le_div_of_nonneg_right hCI hK.le | |
| 888 | - | |
| 889 | 593 | theorem FirstJetBound.mono {P : Patch} {a : ℝ → ℝ} {c : ℝ → Coeff} {η L M : ℝ} |
| 890 | 594 | (h : FirstJetBound P a c η L) (hLM : L ≤ M) : FirstJetBound P a c η M := by |
| 891 | 595 | intro x |
| 892 | 596 | exact ⟨(h x).1.trans hLM, (h x).2.1.trans hLM, (h x).2.2.trans hLM⟩ |
| 893 | 597 | |
| 894 | -/-- The actual outgoing heat edit is compensated for every sufficiently large | |
| 895 | -radius, uniformly on the compact parameter range, with `O(1/K)` first-jet cost. -/ | |
| 896 | -theorem exists_heat_compensation (P : Patch) (lam : ℝ) (hlam : 0 ≤ lam) | |
| 897 | - (T : OutgoingTail.TailData) (ν q : ℝ) (hν : 0 < ν) (hq : 0 < q) | |
| 898 | - {U S : Set ℝ} (hU : IsOpen U) (hS : IsCompact S) (hSU : S ⊆ U) | |
| 899 | - (a : ℝ → ℝ) (ha : ContDiffOn ℝ ∞ a U) (hpos : ∀ η ∈ U, 0 < a η) : | |
| 900 | - ∃ K₀ C : ℝ, 0 < K₀ ∧ 0 < C ∧ ∀ K : ℝ, K₀ ≤ K → | |
| 901 | - ∃ (c : ℝ → Coeff) (V : Set ℝ), | |
| 902 | - IsOpen V ∧ S ⊆ V ∧ V ⊆ U ∧ ContDiffOn ℝ ∞ c V ∧ | |
| 903 | - ∀ η ∈ S, | |
| 904 | - physicalMoments P lam (q * K) (a η) (c η) + heatDebt T ν K η = 0 ∧ | |
| 905 | - ‖c η‖ ≤ C / K ∧ ‖deriv c η‖ ≤ C / K ∧ | |
| 906 | - FirstJetBound P a c η (C / K) ∧ | |
| 907 | - ∀ X : ℝ, 0 < X → 0 < physicalProfile P lam (q * K) (a η) (c η) X := by | |
| 908 | - obtain ⟨ε, C₁, hε, hC₁, hsolve⟩ := | |
| 909 | - exists_uniform_parameter_compensation P lam hlam hU hS hSU a ha hpos | |
| 910 | - obtain ⟨C₂, hC₂, hdebt⟩ := scaled_heatDebt_bound T ν q hν hq | |
| 911 | - let K₀ : ℝ := 1 + C₂ / ε | |
| 912 | - have hK₀ : 0 < K₀ := by dsimp [K₀]; positivity | |
| 913 | - refine ⟨K₀, C₁ * C₂, hK₀, mul_pos hC₁ hC₂, ?_⟩ | |
| 914 | - intro K hlarge | |
| 915 | - have hK : 0 < K := hK₀.trans_le hlarge | |
| 916 | - have hqK : 0 < q * K := mul_pos hq hK | |
| 917 | - let v := scaledDebt (q * K) (heatDebt T ν K 0) | |
| 918 | - have hv : ‖v‖ ≤ C₂ / K := hdebt K hK | |
| 919 | - have hvsmall : ‖v‖ < ε := by | |
| 920 | - apply hv.trans_lt | |
| 921 | - apply (div_lt_iff₀ hK).mpr | |
| 922 | - have hk' : C₂ / ε < K := by dsimp [K₀] at hlarge; linarith | |
| 923 | - have ht := (div_lt_iff₀ hε).mp hk' | |
| 924 | - simpa only [mul_comm] using ht | |
| 925 | - obtain ⟨c, V, hV, hSV, hVU, hc, hspec⟩ := hsolve v hvsmall | |
| 926 | - refine ⟨c, V, hV, hSV, hVU, hc, ?_⟩ | |
| 927 | - intro η hη | |
| 928 | - have hs := hspec η hη | |
| 929 | - have hcost : C₁ * ‖v‖ ≤ C₁ * C₂ / K := by | |
| 930 | - simpa only [mul_div_assoc] using mul_le_mul_of_nonneg_left hv hC₁.le | |
| 931 | - have hmoment : momentMap P lam (c η) = normalizedDebt (q * K) (a η) (heatDebt T ν K 0) := by | |
| 932 | - rw [normalizedDebt_eq] | |
| 933 | - exact hs.1 | |
| 934 | - have hexact := physicalMoments_cancel P lam (q * K) (a η) hqK | |
| 935 | - (hpos η (hSU hη)) (c η) (heatDebt T ν K 0) hmoment | |
| 936 | - refine ⟨?_, hs.2.1.trans hcost, hs.2.2.1.trans hcost, | |
| 937 | - hs.2.2.2.1.mono hcost, ?_⟩ | |
| 938 | - · rwa [heatDebt_independent T ν hK η] | |
| 939 | - · intro X hX | |
| 940 | - exact hs.2.2.2.2 (X / (q * K)) (div_pos hX hqK) | |
| 941 | - | |
| 942 | 598 | /-- All three physical moment changes are genuine integrable functions. -/ |
| 943 | 599 | theorem physicalMoments_integrable (P : Patch) (lam R a : ℝ) (hR : 0 < R) (c : Coeff) : |
| 944 | 600 | Integrable (fun X => ((physicalProfile P lam R a c X) ^ 2 - |
| @@ -979,44 +635,4 @@ theorem physicalMoments_positive_radius (P : Patch) (lam R a : ℝ) (hR : 0 < R) | ||
| 979 | 635 | intro X hX <;> |
| 980 | 636 | rw [physicalProfile_eq_clean_of_nonpos P lam R a hR c (le_of_not_gt hX)] <;> simp |
| 981 | 637 | |
| 982 | -/-- A reserved patch ending before the heat switch has no overlap with the | |
| 983 | -actual heat perturbation on positive radii. -/ | |
| 984 | -theorem patch_heat_disjoint (P : Patch) (lam q K a h ν : ℝ) | |
| 985 | - (hq : 0 < q) (hK : 0 < K) (hpatch : q * P.right ≤ 1) | |
| 986 | - (c : Coeff) (E : ℝ → ℝ) {X : ℝ} (hX : 0 < X) : | |
| 987 | - (physicalProfile P lam (q * K) a c X - cleanProfile lam (q * K) a X) * | |
| 988 | - HeatTailEdit.change E h ν K X = 0 := by | |
| 989 | - by_cases hXK : X ≤ K | |
| 990 | - · simp only [HeatTailEdit.change, HeatTailEdit.edit_before E h ν hK hX hXK, | |
| 991 | - sub_self, mul_zero] | |
| 992 | - · have hout : X / (q * K) ∉ Ioo P.left P.right := by | |
| 993 | - intro hx | |
| 994 | - have hl := (div_lt_iff₀ (mul_pos hq hK)).mp hx.2 | |
| 995 | - have hp := mul_le_mul_of_nonneg_right hpatch hK.le | |
| 996 | - nlinarith | |
| 997 | - rw [physicalProfile_eq_clean_outside P lam (q * K) a c X hout, sub_self, zero_mul] | |
| 998 | - | |
| 999 | -theorem square_change_add_of_disjoint (b p t : ℝ) (hpt : p * t = 0) : | |
| 1000 | - (b + p + t) ^ 2 - b ^ 2 = ((b + p) ^ 2 - b ^ 2) + ((b + t) ^ 2 - b ^ 2) := by | |
| 1001 | - nlinarith | |
| 1002 | - | |
| 1003 | -/-- The constructed physical profile is jointly smooth in the parameter and | |
| 1004 | -positive radius, whenever the amplitude and solved coefficients are smooth. -/ | |
| 1005 | -theorem physicalProfile_family_contDiffOn (P : Patch) (lam R : ℝ) (hR : 0 < R) | |
| 1006 | - {U : Set ℝ} {a : ℝ → ℝ} {c : ℝ → Coeff} | |
| 1007 | - (ha : ContDiffOn ℝ ∞ a U) (hc : ContDiffOn ℝ ∞ c U) : | |
| 1008 | - ContDiffOn ℝ ∞ | |
| 1009 | - (fun z : ℝ × ℝ => physicalProfile P lam R (a z.1) (c z.1) z.2) (U ×ˢ Ioi 0) := by | |
| 1010 | - have ha' : ContDiffOn ℝ ∞ (fun z : ℝ × ℝ => a z.1) (U ×ˢ Ioi 0) := | |
| 1011 | - ha.comp contDiffOn_fst (fun z hz => hz.1) | |
| 1012 | - have hb : ContDiffOn ℝ ∞ (fun z : ℝ × ℝ => baseProfile lam (z.2 / R)) (U ×ˢ Ioi 0) := by | |
| 1013 | - intro z hz | |
| 1014 | - exact ((Real.contDiffAt_rpow_const_of_ne (div_pos hz.2 hR).ne').comp z | |
| 1015 | - (contDiffAt_snd.div_const R)).contDiffWithinAt | |
| 1016 | - have hr : ContDiffOn ℝ ∞ | |
| 1017 | - (fun z : ℝ × ℝ => correction P (c z.1) (z.2 / R)) (U ×ˢ Ioi 0) := | |
| 1018 | - (correction_family_contDiffOn P hc).comp | |
| 1019 | - (contDiffOn_fst.prodMk (contDiffOn_snd.div_const R)) (fun z hz => ⟨hz.1, mem_univ _⟩) | |
| 1020 | - exact ha'.mul (hb.add hr) | |
| 1021 | - | |
| 1022 | 638 | end NavierStokes.TerminalCompensation |
+0 −50 NavierStokes/TerminalCone.lean View file
| @@ -362,24 +362,6 @@ theorem profileAxialStress_le_angular (d : OutgoingTail.TailData) (hsmall : Smal | ||
| 362 | 362 | |
| 363 | 363 | /-! ## Uniform cone margin through the actual terminal edge -/ |
| 364 | 364 | |
| 365 | -theorem profileAngularFactor_pos {C : ℝ} (hC : 0 < C) (d : OutgoingTail.TailData) (y0 : ℝ) | |
| 366 | - {δ eta : ℝ} (hδ : 0 ≤ δ) (heta : eta ∈ Icc (-1 : ℝ) 1) : | |
| 367 | - 0 < TerminalEdgeFactor.profileAngularFactor C d y0 (eta, δ) := by | |
| 368 | - rcases hδ.eq_or_lt with hzero | hpos | |
| 369 | - · rw [← hzero] | |
| 370 | - exact TerminalEdgeFactor.profileAngularFactor_zero_pos hC d y0 heta | |
| 371 | - · have hT := profileAngularStress_pos hC d y0 hpos heta | |
| 372 | - rw [TerminalEdgeFactor.profileAngularStress_factorization] at hT | |
| 373 | - exact (mul_pos_iff_of_pos_left (div_pos (FlatCutoff.edge_pos 4 hpos) (pow_pos hpos 3))).mp hT | |
| 374 | - | |
| 375 | -theorem profileTilt_contDiffAt {C : ℝ} (hC : 0 < C) (d : OutgoingTail.TailData) (y0 : ℝ) | |
| 376 | - {δ eta : ℝ} (hδ : 0 ≤ δ) (heta : eta ∈ Icc (-1 : ℝ) 1) : | |
| 377 | - ContDiffAt ℝ ∞ (TerminalEdgeFactor.profileTilt C d y0) (eta, δ) := | |
| 378 | - ((contDiffAt_snd.pow 6).mul | |
| 379 | - (TerminalEdgeFactor.profileAxialFactor_contDiff C d y0).contDiffAt).div | |
| 380 | - (TerminalEdgeFactor.profileAngularFactor_contDiff C d y0).contDiffAt | |
| 381 | - (profileAngularFactor_pos hC d y0 hδ heta).ne' | |
| 382 | - | |
| 383 | 365 | theorem profileTilt_abs_le_one (d : OutgoingTail.TailData) (hsmall : SmallTail d) |
| 384 | 366 | {K δ eta : ℝ} (hK : 0 < K) (hδ : 0 ≤ δ) (hδ' : δ ≤ 5 / 2) |
| 385 | 367 | (heta : eta ∈ Icc (-1 : ℝ) 1) : |
| @@ -510,23 +492,11 @@ theorem E_eq_profileAngularVelocity (F : OutgoingProfile.Profile) {XR : ℝ} | ||
| 510 | 492 | ParametricHeatTail.diffusion] |
| 511 | 493 | ring |
| 512 | 494 | |
| 513 | -theorem U_eq_zero (F : OutgoingProfile.Profile) {XR : ℝ} (hXR : 0 < XR) {y eta : ℝ} | |
| 514 | - (hy : terminalStart F.data ≤ y) : HeatedOutgoing.U F XR (XR * Real.exp y, eta) = 0 := by | |
| 515 | - apply HeatedOutgoing.U_after_switch F XR eta (XR * Real.exp y) hXR | |
| 516 | - apply HeatedOutgoing.full_switch_above_radius (OutgoingDilation.switchRadius_pos F XR hXR) | |
| 517 | - (mul_pos hXR (Real.exp_pos y)) | |
| 518 | - rw [tailTime_clock F hXR y] | |
| 519 | - dsimp only [terminalStart] at hy | |
| 520 | - linarith | |
| 521 | - | |
| 522 | 495 | /-- Chosen only after the core schedule and `h`. This bound contains no |
| 523 | 496 | compensation coefficient or data-dependent edge-collar width. -/ |
| 524 | 497 | noncomputable def radiusThreshold (F : OutgoingProfile.Profile) : ℝ := |
| 525 | 498 | 32 / Real.exp (HeatTailEdit.switchStart F.data) |
| 526 | 499 | |
| 527 | -theorem radiusThreshold_pos (F : OutgoingProfile.Profile) : 0 < radiusThreshold F := | |
| 528 | - div_pos (by norm_num) (Real.exp_pos _) | |
| 529 | - | |
| 530 | 500 | theorem switchRadius_ge_32 (F : OutgoingProfile.Profile) {XR : ℝ} |
| 531 | 501 | (hXR : radiusThreshold F ≤ XR) : 32 ≤ OutgoingDilation.switchRadius F XR := by |
| 532 | 502 | exact (div_le_iff₀ (Real.exp_pos (HeatTailEdit.switchStart F.data))).mp hXR |
| @@ -560,24 +530,4 @@ theorem full_interval_direction_margin (F : OutgoingProfile.Profile) {XR y eta : | ||
| 560 | 530 | linarith |
| 561 | 531 | exact profile_cone_margin F.data hsmall (switchRadius_ge_32 F hXR) hδ hδ' heta |
| 562 | 532 | |
| 563 | -/-- The actual compensated velocity uses precisely the terminal field whose | |
| 564 | -true cone was proved above. The existing witness, its coefficients, and the | |
| 565 | -base outgoing profile are retained. -/ | |
| 566 | -theorem same_witness_full_cone (F : OutgoingProfile.Profile) {XR C y eta : ℝ} | |
| 567 | - (w : HeatedOutgoing.CompensationWitness F XR C) | |
| 568 | - (hsmall : SmallTail F.data) (hXR : radiusThreshold F ≤ XR) | |
| 569 | - (hy : terminalStart F.data ≤ y) (hy' : y < OutgoingTail.tailEnd F.data) | |
| 570 | - (heta : eta ∈ Icc (-1 : ℝ) 1) : | |
| 571 | - HeatedOutgoing.E F XR w.coefficients (XR * Real.exp y, eta) = | |
| 572 | - TerminalEdgeFactor.profileAngularVelocity (normalization F XR) F.data (shift F XR) | |
| 573 | - (profilePoint F y eta) ∧ | |
| 574 | - HeatedOutgoing.U F XR (XR * Real.exp y, eta) = 0 ∧ | |
| 575 | - 2 < TerminalEdgeFactor.profileP (normalization F XR) F.data (shift F XR) (profilePoint F y eta) ∧ | |
| 576 | - TerminalEdgeFactor.profileSpeed (normalization F XR) F.data (shift F XR) (profilePoint F y eta) < | |
| 577 | - ConeAlgebra.coneBound | |
| 578 | - (TerminalEdgeFactor.profileP (normalization F XR) F.data (shift F XR) (profilePoint F y eta)) | |
| 579 | - (TerminalEdgeFactor.profileJ (normalization F XR) F.data (shift F XR) (profilePoint F y eta)) := | |
| 580 | - ⟨E_eq_profileAngularVelocity F w.coefficients w.radius_pos hy heta, | |
| 581 | - U_eq_zero F w.radius_pos hy, full_interval_true_cone F hsmall hXR hy hy' heta⟩ | |
| 582 | - | |
| 583 | 533 | end NavierStokes.TerminalCone |
+0 −214 NavierStokes/TerminalEdgeFactor.lean View file
| @@ -117,10 +117,6 @@ theorem carrier_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : | ||
| 117 | 117 | (div_pos (sq_pos_of_pos (radius_pos d y0 y)) (by norm_num))).comp y |
| 118 | 118 | (chartPoint_contDiff d y0).contDiffAt |
| 119 | 119 | |
| 120 | -theorem carrier_pos {C : ℝ} (hC : 0 < C) (d : TailData) (y0 : ℝ) (y : EdgeParam × ℝ) : | |
| 121 | - 0 < carrier C d y0 y := | |
| 122 | - heatAmplitude_pos hC (by linarith [d.h_pos]) (timeOf_lt_one y.1) (radius_pos d y0 y) | |
| 123 | - | |
| 124 | 120 | noncomputable def carrierRadial (C : ℝ) (d : TailData) (y0 : ℝ) (y : EdgeParam × ℝ) : ℝ := |
| 125 | 121 | radius d y0 y * SimilarityProfile.partialS (physicalHeat C (1 + d.h)) (chartPoint d y0 y) |
| 126 | 122 | |
| @@ -238,20 +234,6 @@ theorem radialFlatDensity_integral {c R r : ℝ} (hc : 0 < c) (hR : 0 < R) (hr : | ||
| 238 | 234 | simpa only [sub_neg_eq_add, zero_add] using |
| 239 | 235 | integral_Ioi_of_hasDerivAt_of_tendsto' hd (radialFlatDensity_integrable hc hR hr j ha) hz |
| 240 | 236 | |
| 241 | -theorem chart_tau_identity (d : TailData) (p : EdgeParam) : | |
| 242 | - 1 - timeOf p = chartQ d p * (1 - chartEta d p ^ 2) := by | |
| 243 | - exact SimilarityCoordinates.tau_coordinate_identity | |
| 244 | - (by linarith [d.h_pos] : 0 < 2 * d.h) | |
| 245 | - (by linarith [d.h_lt_half] : 2 * d.h < 1) | |
| 246 | - (p := (1 - timeOf p, p.2)) (sub_pos.mpr (timeOf_lt_one p)) | |
| 247 | - | |
| 248 | -/-- The physical heat argument retains the varying factor `1-eta²`. -/ | |
| 249 | -theorem physical_heat_argument (d : TailData) (y0 : ℝ) (y : EdgeParam × ℝ) : | |
| 250 | - 2 * (1 - timeOf y.1) / (radius d y0 y ^ 2 / 2) = | |
| 251 | - 2 * (1 - chartEta d y.1 ^ 2) / Real.exp (y0 + 3 - y.2) := by | |
| 252 | - rw [chart_tau_identity, radius_square] | |
| 253 | - field_simp [(chartQ_pos d y.1).ne'] | |
| 254 | - | |
| 255 | 237 | noncomputable def logTaper (d : TailData) (y0 : ℝ) (y : ℝ) : ℝ := tailShape d (y - y0) |
| 256 | 238 | noncomputable def radialTaper (d : TailData) (y0 : ℝ) (p : EdgeParam) : ℝ → ℝ := |
| 257 | 239 | radialSlice (flattening d.h (logTaper d y0)) (timeOf p) p.2 |
| @@ -311,12 +293,6 @@ noncomputable def correctionCoefficient (C : ℝ) (d : TailData) (y0 : ℝ) | ||
| 311 | 293 | (radius d y0 y * carrier C d y0 y - radius d y0 y ^ 2 * carrierRadial C d y0 y) * |
| 312 | 294 | taperSlopeFactor d y.2 |
| 313 | 295 | |
| 314 | -theorem boundaryCoefficient_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : | |
| 315 | - ContDiff ℝ ∞ (boundaryCoefficient C d y0) := | |
| 316 | - (((contDiff_const.mul (carrier_contDiff C d y0)).div (radius_contDiff d y0) | |
| 317 | - (fun y => (radius_pos d y0 y).ne')).mul | |
| 318 | - ((taperSlopeFactor_contDiff d).comp contDiff_snd)) | |
| 319 | - | |
| 320 | 296 | theorem timeCoefficient_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : |
| 321 | 297 | ContDiff ℝ ∞ (timeCoefficient C d y0) := |
| 322 | 298 | ((((radius_contDiff d y0).pow 3).mul (carrier_contDiff C d y0)).div |
| @@ -460,16 +436,6 @@ noncomputable def angularFactor (C : ℝ) (d : TailData) (y0 : ℝ) (y : EdgePar | ||
| 460 | 436 | (ParametricFlatFactor.factor 4 3 (timeCoefficient C d y0) y + |
| 461 | 437 | ParametricFlatFactor.factor 4 3 (correctionCoefficient C d y0) y) |
| 462 | 438 | |
| 463 | -theorem angularFactor_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : | |
| 464 | - ContDiff ℝ ∞ (angularFactor C d y0) := | |
| 465 | - (boundaryCoefficient_contDiff C d y0).add | |
| 466 | - (((contDiff_snd.pow 3).div ((radius_contDiff d y0).pow 2) | |
| 467 | - (fun y => (sq_pos_of_pos (radius_pos d y0 y)).ne')).mul | |
| 468 | - ((ParametricFlatFactor.factor_contDiff (by norm_num : (0 : ℝ) < 4) 3 | |
| 469 | - (timeCoefficient_contDiff C d y0)).add | |
| 470 | - (ParametricFlatFactor.factor_contDiff (by norm_num : (0 : ℝ) < 4) 3 | |
| 471 | - (correctionCoefficient_contDiff C d y0)))) | |
| 472 | - | |
| 473 | 439 | /-- The leading angular stress itself, with all backward-integral hypotheses |
| 474 | 440 | proved for the actual heat carrier and actual outgoing taper. -/ |
| 475 | 441 | theorem angularStress_factorization (C : ℝ) (d : TailData) (y0 : ℝ) (y : EdgeParam × ℝ) : |
| @@ -496,40 +462,6 @@ theorem angularStress_factorization (C : ℝ) (d : TailData) (y0 : ℝ) (y : Edg | ||
| 496 | 462 | unfold angularFactor boundaryCoefficient FlatPrimitive.scale |
| 497 | 463 | ring |
| 498 | 464 | |
| 499 | -theorem angularFactor_zero (C : ℝ) (d : TailData) (y0 : ℝ) (p : EdgeParam) : | |
| 500 | - angularFactor C d y0 (p, 0) = | |
| 501 | - (2 * carrier C d y0 (p, 0) / radius d y0 (p, 0)) * taperSlopeFactor d 0 := by | |
| 502 | - simp only [angularFactor, zero_pow (by norm_num : 3 ≠ 0), zero_div, zero_mul, | |
| 503 | - add_zero, boundaryCoefficient] | |
| 504 | - | |
| 505 | -theorem angularFactor_zero_pos {C : ℝ} (hC : 0 < C) (d : TailData) (y0 : ℝ) (p : EdgeParam) : | |
| 506 | - 0 < angularFactor C d y0 (p, 0) := by | |
| 507 | - rw [angularFactor_zero] | |
| 508 | - exact mul_pos (div_pos (mul_pos (by norm_num) (carrier_pos hC d y0 (p, 0))) | |
| 509 | - (radius_pos d y0 (p, 0))) (taperSlopeFactor_zero_pos d) | |
| 510 | - | |
| 511 | -theorem angularFactor_eventually_pos {C : ℝ} (hC : 0 < C) (d : TailData) (y0 : ℝ) (p : EdgeParam) : | |
| 512 | - ∀ᶠ y in 𝓝 (p, (0 : ℝ)), 0 < angularFactor C d y0 y := | |
| 513 | - (angularFactor_contDiff C d y0).continuous.continuousAt.eventually | |
| 514 | - (Ioi_mem_nhds (angularFactor_zero_pos hC d y0 p)) | |
| 515 | - | |
| 516 | -theorem angularStress_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : | |
| 517 | - ContDiff ℝ ∞ (angularStress C d y0) := by | |
| 518 | - have heq : angularStress C d y0 = fun y : EdgeParam × ℝ => | |
| 519 | - (FlatCutoff.edge 4 y.2 / y.2 ^ 3) * angularFactor C d y0 y := | |
| 520 | - funext (angularStress_factorization C d y0) | |
| 521 | - rw [heq] | |
| 522 | - exact ((FlatCutoff.edge_div_pow_contDiff (by norm_num : (0 : ℝ) < 4) 3).comp | |
| 523 | - contDiff_snd).mul (angularFactor_contDiff C d y0) | |
| 524 | - | |
| 525 | -theorem angularStress_normalized (C : ℝ) (d : TailData) (y0 : ℝ) (p : EdgeParam) | |
| 526 | - {δ : ℝ} (hδ : 0 < δ) : | |
| 527 | - angularStress C d y0 (p, δ) / (Real.exp (-4 / δ ^ 2) / δ ^ 3) = | |
| 528 | - angularFactor C d y0 (p, δ) := by | |
| 529 | - rw [angularStress_factorization, FlatCutoff.edge_of_pos 4 hδ] | |
| 530 | - have hden : Real.exp (-4 / δ ^ 2) / δ ^ 3 ≠ 0 := by positivity | |
| 531 | - exact mul_div_cancel_left₀ _ hden | |
| 532 | - | |
| 533 | 465 | /-- The same edge coordinate in the regular radial variable `s=r²/2`. -/ |
| 534 | 466 | noncomputable def logCoordinate (S s : ℝ) : ℝ := edgeCoordinate S s / 2 |
| 535 | 467 | |
| @@ -671,12 +603,6 @@ theorem axialCoefficient_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : | ||
| 671 | 603 | noncomputable def axialFactor (C : ℝ) (d : TailData) (y0 : ℝ) (y : EdgeParam × ℝ) : ℝ := |
| 672 | 604 | ParametricFlatFactor.factor 4 0 (axialCoefficient C d y0) y / radius d y0 y |
| 673 | 605 | |
| 674 | -theorem axialFactor_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : | |
| 675 | - ContDiff ℝ ∞ (axialFactor C d y0) := | |
| 676 | - (ParametricFlatFactor.factor_contDiff (by norm_num : (0 : ℝ) < 4) 0 | |
| 677 | - (axialCoefficient_contDiff C d y0)).div (radius_contDiff d y0) | |
| 678 | - (fun y => (radius_pos d y0 y).ne') | |
| 679 | - | |
| 680 | 606 | /-- The actual canonical pressure gradient on the physical chart. -/ |
| 681 | 607 | noncomputable def pressureGradient (C : ℝ) (d : TailData) (y0 : ℝ) |
| 682 | 608 | (y : EdgeParam × ℝ) : ℝ := |
| @@ -1228,12 +1154,6 @@ theorem angularStress_normalizedParam (C : ℝ) (d : TailData) (y0 x : ℝ) | ||
| 1228 | 1154 | rw [angularStress_factorization, profileAngularStress_factorization, |
| 1229 | 1155 | angularFactor_normalizedParam C d y0 x hη] |
| 1230 | 1156 | |
| 1231 | -theorem pressureGradient_normalizedParam (C : ℝ) (d : TailData) (y0 x : ℝ) | |
| 1232 | - {η : ℝ} (hη : η ^ 2 < 1) : | |
| 1233 | - pressureGradient C d y0 (normalizedParam η, x) = profilePressureGradient C d y0 (η, x) := by | |
| 1234 | - rw [pressureGradient_factorization, profilePressureGradient_factorization, | |
| 1235 | - pressureFactor_normalizedParam C d y0 x hη] | |
| 1236 | - | |
| 1237 | 1157 | theorem axialStress_normalizedParam (C : ℝ) (d : TailData) (y0 x : ℝ) |
| 1238 | 1158 | {η : ℝ} (hη : η ^ 2 < 1) : |
| 1239 | 1159 | axialStress C d y0 (normalizedParam η, x) = profileAxialStress C d y0 (η, x) := by |
| @@ -1284,38 +1204,6 @@ theorem profileStressFactor_zero_ne {C : ℝ} (hC : 0 < C) (d : TailData) (y0 : | ||
| 1284 | 1204 | have hzero := congrArg Prod.fst he |
| 1285 | 1205 | exact (profileAngularFactor_zero_pos hC d y0 hη).ne' hzero |
| 1286 | 1206 | |
| 1287 | -/-- Actual full tensors, uniformly through both endpoints of the profile interval. -/ | |
| 1288 | -theorem profileStress_jets (C : ℝ) (d : TailData) (y0 : ℝ) (n : ℕ) {b : ℝ} (hb : 0 < b) : | |
| 1289 | - ∃ A : ℝ, 0 < A ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ η ∈ Icc (-1 : ℝ) 1, | |
| 1290 | - ∀ x : ℝ, 0 < x → x ≤ b → | |
| 1291 | - ‖iteratedFDeriv ℝ i (profileStress C d y0) (η, x)‖ ≤ A * FlatCutoff.edge 4 x / x ^ N := by | |
| 1292 | - have he : profileStress C d y0 = fun y => | |
| 1293 | - (FlatCutoff.edge 4 y.2 / y.2 ^ 3) • profileStressFactor C d y0 y := | |
| 1294 | - funext (profileStress_factorization C d y0) | |
| 1295 | - rw [he] | |
| 1296 | - exact EdgeWeightJets.edge_smul_iteratedFDeriv_bound (by norm_num) 3 | |
| 1297 | - (profileStressFactor_contDiff C d y0) isCompact_Icc n hb | |
| 1298 | - | |
| 1299 | -theorem profileAngularStress_edge_jets (C : ℝ) (d : TailData) (y0 : ℝ) (n : ℕ) (η : ℝ) : | |
| 1300 | - iteratedFDeriv ℝ n (profileAngularStress C d y0) (η, 0) = 0 := by | |
| 1301 | - have he : profileAngularStress C d y0 = | |
| 1302 | - EdgeWeightJets.weighted 4 3 (profileAngularFactor C d y0) := | |
| 1303 | - funext (profileAngularStress_factorization C d y0) | |
| 1304 | - rw [he] | |
| 1305 | - exact EdgeWeightJets.weighted_iteratedFDeriv_zero (by norm_num) 3 | |
| 1306 | - (profileAngularFactor_contDiff C d y0) n η | |
| 1307 | - | |
| 1308 | -theorem profileAxialStress_edge_jets (C : ℝ) (d : TailData) (y0 : ℝ) (n : ℕ) (η : ℝ) : | |
| 1309 | - iteratedFDeriv ℝ n (profileAxialStress C d y0) (η, 0) = 0 := by | |
| 1310 | - have he : profileAxialStress C d y0 = | |
| 1311 | - EdgeWeightJets.weighted 4 0 (fun y : ℝ × ℝ => y.2 ^ 3 * profileAxialFactor C d y0 y) := by | |
| 1312 | - funext y | |
| 1313 | - simpa only [EdgeWeightJets.weighted, pow_zero, div_one, mul_assoc] using | |
| 1314 | - profileAxialStress_factorization C d y0 y | |
| 1315 | - rw [he] | |
| 1316 | - exact EdgeWeightJets.weighted_iteratedFDeriv_zero (by norm_num) 0 | |
| 1317 | - ((contDiff_snd.pow 3).mul (profileAxialFactor_contDiff C d y0)) n η | |
| 1318 | - | |
| 1319 | 1207 | noncomputable def profileTilt (C : ℝ) (d : TailData) (y0 : ℝ) (y : ℝ × ℝ) : ℝ := |
| 1320 | 1208 | y.2 ^ 6 * profileAxialFactor C d y0 y / profileAngularFactor C d y0 y |
| 1321 | 1209 | |
| @@ -1339,14 +1227,6 @@ theorem profileTilt_contDiffAt {C : ℝ} (hC : 0 < C) (d : TailData) (y0 : ℝ) | ||
| 1339 | 1227 | (profileAngularFactor_contDiff C d y0).contDiffAt |
| 1340 | 1228 | (profileAngularFactor_zero_pos hC d y0 hη).ne' |
| 1341 | 1229 | |
| 1342 | -theorem profileTilt_tendsto_zero {C : ℝ} (hC : 0 < C) (d : TailData) (y0 : ℝ) | |
| 1343 | - {η : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) : | |
| 1344 | - Tendsto (profileTilt C d y0) (𝓝 (η, 0)) (𝓝 0) := by | |
| 1345 | - have he := (profileTilt_contDiffAt hC d y0 hη).continuousAt | |
| 1346 | - change Tendsto (profileTilt C d y0) (𝓝 (η, 0)) | |
| 1347 | - (𝓝 (profileTilt C d y0 (η, 0))) at he | |
| 1348 | - simpa only [profileTilt_zero] using he | |
| 1349 | - | |
| 1350 | 1230 | /-- The actual velocity shear ratio for the terminal product `K f_o`. -/ |
| 1351 | 1231 | noncomputable def profileSpeed (C : ℝ) (d : TailData) (y0 : ℝ) (y : ℝ × ℝ) : ℝ := |
| 1352 | 1232 | 1 - profileRadius y0 y.2 * profileCarrierRadial C d y0 y / profileCarrier C d y0 y - |
| @@ -1493,11 +1373,6 @@ theorem profile_uniform_cone {C : ℝ} (hC : 0 < C) (d : TailData) (y0 : ℝ) : | ||
| 1493 | 1373 | noncomputable def profileAngularVelocity (C : ℝ) (d : TailData) (y0 : ℝ) (y : ℝ × ℝ) : ℝ := |
| 1494 | 1374 | profileCarrier C d y0 y * tailShape d (3 - y.2) |
| 1495 | 1375 | |
| 1496 | -theorem profileAngularVelocity_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : | |
| 1497 | - ContDiff ℝ ∞ (profileAngularVelocity C d y0) := | |
| 1498 | - (profileCarrier_contDiff C d y0).mul | |
| 1499 | - ((tailShape_contDiff d).comp (contDiff_const.sub contDiff_snd)) | |
| 1500 | - | |
| 1501 | 1376 | theorem profileS_hasDerivAt (y0 x : ℝ) : HasDerivAt (profileS y0) (-profileS y0 x) x := by |
| 1502 | 1377 | convert! (((hasDerivAt_const x (y0 + 3)).sub (hasDerivAt_id x)).exp) using 1 |
| 1503 | 1378 | simp [profileS] |
| @@ -1557,86 +1432,15 @@ theorem profileSpeed_eq_log_deriv {C : ℝ} (hC : 0 < C) (d : TailData) (y0 η x | ||
| 1557 | 1432 | (tailShape_pos d (3 - x)).ne'] |
| 1558 | 1433 | ring |
| 1559 | 1434 | |
| 1560 | -/-- The strict cone inequalities for the actual stress hold throughout one | |
| 1561 | -positive-width terminal collar, uniformly through the closed profile interval. -/ | |
| 1562 | -theorem profile_relative_cone {C : ℝ} (hC : 0 < C) (d : TailData) (y0 : ℝ) : | |
| 1563 | - ∃ ε : ℝ, 0 < ε ∧ ∀ η ∈ Icc (-1 : ℝ) 1, ∀ x : ℝ, 0 < x → x < ε → | |
| 1564 | - 0 < profileAngularStress C d y0 (η, x) ∧ 2 < profileSpeed C d y0 (η, x) ∧ | |
| 1565 | - (profileSpeed C d y0 (η, x) - 2) * profileAxialStress C d y0 (η, x) ^ 2 < | |
| 1566 | - 2 * profileAngularStress C d y0 (η, x) ^ 2 := by | |
| 1567 | - obtain ⟨ε, m, hε, hm, hb⟩ := profile_uniform_cone hC d y0 | |
| 1568 | - refine ⟨ε, hε, ?_⟩ | |
| 1569 | - intro η hη x hx hxε | |
| 1570 | - obtain ⟨ha, hv, hg⟩ := hb η hη x (by simpa only [abs_of_pos hx] using hxε) | |
| 1571 | - have hTa : 0 < profileAngularStress C d y0 (η, x) := by | |
| 1572 | - rw [profileAngularStress_factorization] | |
| 1573 | - exact mul_pos (div_pos (FlatCutoff.edge_pos 4 hx) (pow_pos hx _)) (hm.trans_le ha) | |
| 1574 | - refine ⟨hTa, by linarith, ?_⟩ | |
| 1575 | - have hg' : (profileSpeed C d y0 (η, x) - 2) * | |
| 1576 | - (profileAxialStress C d y0 (η, x) / profileAngularStress C d y0 (η, x)) ^ 2 < 2 := by | |
| 1577 | - rw [profileTilt_eq_ratio C d y0 η hx] | |
| 1578 | - change m ≤ 2 - (profileSpeed C d y0 (η, x) - 2) * profileTilt C d y0 (η, x) ^ 2 at hg | |
| 1579 | - linarith | |
| 1580 | - apply (div_lt_iff₀ (sq_pos_of_pos hTa)).mp | |
| 1581 | - simpa only [div_pow, mul_div_assoc] using hg' | |
| 1582 | - | |
| 1583 | 1435 | /-! ## The same weighted estimates on compact physical parameter sets -/ |
| 1584 | 1436 | |
| 1585 | 1437 | noncomputable def physicalStress (C : ℝ) (d : TailData) (y0 : ℝ) |
| 1586 | 1438 | (y : EdgeParam × ℝ) : ℝ × ℝ := (angularStress C d y0 y, axialStress C d y0 y) |
| 1587 | 1439 | |
| 1588 | -noncomputable def physicalStressFactor (C : ℝ) (d : TailData) (y0 : ℝ) | |
| 1589 | - (y : EdgeParam × ℝ) : ℝ × ℝ := (angularFactor C d y0 y, y.2 ^ 6 * axialFactor C d y0 y) | |
| 1590 | - | |
| 1591 | -theorem physicalStressFactor_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : | |
| 1592 | - ContDiff ℝ ∞ (physicalStressFactor C d y0) := | |
| 1593 | - (angularFactor_contDiff C d y0).prodMk ((contDiff_snd.pow 6).mul (axialFactor_contDiff C d y0)) | |
| 1594 | - | |
| 1595 | -theorem physicalStress_factorization (C : ℝ) (d : TailData) (y0 : ℝ) (y : EdgeParam × ℝ) : | |
| 1596 | - physicalStress C d y0 y = | |
| 1597 | - (FlatCutoff.edge 4 y.2 / y.2 ^ 3) • physicalStressFactor C d y0 y := by | |
| 1598 | - apply Prod.ext | |
| 1599 | - · exact angularStress_factorization C d y0 y | |
| 1600 | - · change axialStress C d y0 y = | |
| 1601 | - (FlatCutoff.edge 4 y.2 / y.2 ^ 3) * (y.2 ^ 6 * axialFactor C d y0 y) | |
| 1602 | - rw [axialStress_factorization] | |
| 1603 | - by_cases hx : y.2 = 0 | |
| 1604 | - · simp [hx] | |
| 1605 | - · field_simp [hx] | |
| 1606 | - | |
| 1607 | -theorem physicalStress_jets (C : ℝ) (d : TailData) (y0 : ℝ) {S : Set EdgeParam} | |
| 1608 | - (hS : IsCompact S) (n : ℕ) {b : ℝ} (hb : 0 < b) : | |
| 1609 | - ∃ A : ℝ, 0 < A ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ p ∈ S, ∀ x : ℝ, 0 < x → x ≤ b → | |
| 1610 | - ‖iteratedFDeriv ℝ i (physicalStress C d y0) (p, x)‖ ≤ A * FlatCutoff.edge 4 x / x ^ N := by | |
| 1611 | - have he : physicalStress C d y0 = fun y => | |
| 1612 | - (FlatCutoff.edge 4 y.2 / y.2 ^ 3) • physicalStressFactor C d y0 y := | |
| 1613 | - funext (physicalStress_factorization C d y0) | |
| 1614 | - rw [he] | |
| 1615 | - exact EdgeWeightJets.edge_smul_iteratedFDeriv_bound (by norm_num) 3 | |
| 1616 | - (physicalStressFactor_contDiff C d y0) hS n hb | |
| 1617 | - | |
| 1618 | -theorem physicalStress_contDiff (C : ℝ) (d : TailData) (y0 : ℝ) : | |
| 1619 | - ContDiff ℝ ∞ (physicalStress C d y0) := by | |
| 1620 | - have he : physicalStress C d y0 = fun y => | |
| 1621 | - (FlatCutoff.edge 4 y.2 / y.2 ^ 3) • physicalStressFactor C d y0 y := | |
| 1622 | - funext (physicalStress_factorization C d y0) | |
| 1623 | - rw [he] | |
| 1624 | - exact ((FlatCutoff.edge_div_pow_contDiff (by norm_num : (0 : ℝ) < 4) 3).comp | |
| 1625 | - contDiff_snd).smul (physicalStressFactor_contDiff C d y0) | |
| 1626 | - | |
| 1627 | 1440 | theorem profileStress_of_nonpos (C : ℝ) (d : TailData) (y0 : ℝ) |
| 1628 | 1441 | {y : ℝ × ℝ} (hy : y.2 ≤ 0) : profileStress C d y0 y = 0 := by |
| 1629 | 1442 | rw [profileStress_factorization, FlatCutoff.edge_of_nonpos 4 hy, zero_div, zero_smul] |
| 1630 | 1443 | |
| 1631 | -theorem physicalStress_of_nonpos (C : ℝ) (d : TailData) (y0 : ℝ) | |
| 1632 | - {y : EdgeParam × ℝ} (hy : y.2 ≤ 0) : physicalStress C d y0 y = 0 := by | |
| 1633 | - rw [physicalStress_factorization, FlatCutoff.edge_of_nonpos 4 hy, zero_div, zero_smul] | |
| 1634 | - | |
| 1635 | -theorem physicalStress_normalizedParam (C : ℝ) (d : TailData) (y0 x : ℝ) | |
| 1636 | - {η : ℝ} (hη : η ^ 2 < 1) : | |
| 1637 | - physicalStress C d y0 (normalizedParam η, x) = profileStress C d y0 (η, x) := by | |
| 1638 | - exact Prod.ext (angularStress_normalizedParam C d y0 x hη) (axialStress_normalizedParam C d y0 x hη) | |
| 1639 | - | |
| 1640 | 1444 | /-! ## The genuine root-form cone on the terminal collar -/ |
| 1641 | 1445 | |
| 1642 | 1446 | noncomputable def profileSwirlCoefficient (C : ℝ) (d : TailData) (y0 : ℝ) |
| @@ -1654,22 +1458,4 @@ noncomputable def profileP (C : ℝ) (d : TailData) (y0 : ℝ) (y : ℝ × ℝ) | ||
| 1654 | 1458 | noncomputable def profileJ (C : ℝ) (d : TailData) (y0 : ℝ) (y : ℝ × ℝ) : ℝ := |
| 1655 | 1459 | profileAxialStress C d y0 y / profileSwirlCoefficient C d y0 y |
| 1656 | 1460 | |
| 1657 | -/-- Applying the exact true-cone equivalence to the actual terminal stress, | |
| 1658 | -with `P-v=Tθ/F` and `J=Tz/F`, rather than taking a large-amplitude limit. -/ | |
| 1659 | -theorem profile_true_cone {C : ℝ} (hC : 0 < C) (d : TailData) (y0 : ℝ) : | |
| 1660 | - ∃ ε : ℝ, 0 < ε ∧ ∀ η ∈ Icc (-1 : ℝ) 1, ∀ x : ℝ, 0 < x → x < ε → | |
| 1661 | - 2 < profileP C d y0 (η, x) ∧ profileSpeed C d y0 (η, x) < | |
| 1662 | - ConeAlgebra.coneBound (profileP C d y0 (η, x)) (profileJ C d y0 (η, x)) := by | |
| 1663 | - obtain ⟨ε, hε, hb⟩ := profile_relative_cone hC d y0 | |
| 1664 | - refine ⟨ε, hε, ?_⟩ | |
| 1665 | - intro η hη x hx hxε | |
| 1666 | - obtain ⟨hT, hv, hm⟩ := hb η hη x hx hxε | |
| 1667 | - have hF := profileSwirlCoefficient_pos hC d y0 (y := (η, x)) hη | |
| 1668 | - apply (ConeAlgebra.true_cone_iff hv).mpr | |
| 1669 | - constructor | |
| 1670 | - · exact lt_add_of_pos_right _ (div_pos hT hF) | |
| 1671 | - · have hd := div_lt_div_of_pos_right hm (sq_pos_of_pos hF) | |
| 1672 | - simp only [profileP, profileJ, add_sub_cancel_left, div_pow] | |
| 1673 | - simpa only [mul_div_assoc] using hd | |
| 1674 | - | |
| 1675 | 1461 | end NavierStokes.TerminalEdgeFactor |
+0 −86 NavierStokes/TerminalHistoryBridge.lean View file
| @@ -41,92 +41,6 @@ theorem split_positive_integral {f : ℝ → ℝ} (hf : IntegrableOn f (Ioi 0)) | ||
| 41 | 41 | (setIntegral_union Ioc_disjoint_Ioi_same measurableSet_Ioi |
| 42 | 42 | (hf.mono_set Ioc_subset_Ioi_self) (hf.mono_set (Ioi_subset_Ioi hX))).symm |
| 43 | 43 | |
| 44 | -theorem angularHistory_integrable {F : Profile} {XR C : ℝ} | |
| 45 | - (w : CompensationWitness F XR C) {η X : ℝ} | |
| 46 | - (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : 0 < X) : | |
| 47 | - IntegrableOn (fun u => HeatedOutgoing.H F XR w.coefficients (u,η)) (Ioc 0 X) := by | |
| 48 | - have hi := (OutgoingDilation.I_integrable F XR η X w.radius_pos hX).add | |
| 49 | - ((w.changeRow_integrable η 2 hη).mono_set Ioc_subset_Ioi_self) | |
| 50 | - apply IntegrableOn.congr_fun hi _ measurableSet_Ioc | |
| 51 | - intro u hu | |
| 52 | - change Real.sqrt (2*u) * OutgoingDilation.E F XR (u,η) + | |
| 53 | - Real.sqrt (2*u) * (HeatedOutgoing.E F XR w.coefficients (u,η) - OutgoingDilation.E F XR (u,η)) = | |
| 54 | - Real.sqrt (2*u) * HeatedOutgoing.E F XR w.coefficients (u,η) | |
| 55 | - ring | |
| 56 | - | |
| 57 | -/-- The exact renormalized angular moment determines the forward history | |
| 58 | -from the future, for the very same supplied compensation coefficients. -/ | |
| 59 | -theorem angularHistory_eq_power_sub_future {F : Profile} {XR C : ℝ} | |
| 60 | - (w : CompensationWitness F XR C) {η X : ℝ} | |
| 61 | - (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : 0 < X) : | |
| 62 | - angularHistory F XR w.coefficients η X = powerHistory F XR X - | |
| 63 | - ∫ u in Ioi X, HeatedOutgoing.H F XR w.coefficients (u,η) - | |
| 64 | - OutgoingDilation.powerH F XR u := by | |
| 65 | - have hi := angularHistory_integrable w hη hX | |
| 66 | - have hr : IntegrableOn (fun u => HeatedOutgoing.H F XR w.coefficients (u,η) - | |
| 67 | - OutgoingDilation.powerH F XR u) (Ioc 0 X) := | |
| 68 | - (w.renormalized_integrable η hη).mono_set Ioc_subset_Ioi_self | |
| 69 | - have hp : IntegrableOn (OutgoingDilation.powerH F XR) (Ioc 0 X) := by | |
| 70 | - apply IntegrableOn.congr_fun (hi.sub hr) _ measurableSet_Ioc | |
| 71 | - intro u hu | |
| 72 | - dsimp | |
| 73 | - ring | |
| 74 | - have hsplit := split_positive_integral (w.renormalized_integrable η hη) hX.le | |
| 75 | - rw [w.renormalized_zero η hη,integral_sub hi hp] at hsplit | |
| 76 | - unfold angularHistory powerHistory | |
| 77 | - linarith | |
| 78 | - | |
| 79 | -theorem energyHistory_eq_neg_future {F : Profile} {XR C B : ℝ} | |
| 80 | - (hF : OutgoingProfile.Specification F B) (w : CompensationWitness F XR C) | |
| 81 | - {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : 0 ≤ X) : | |
| 82 | - energyHistory F XR w.coefficients η X = | |
| 83 | - -(∫ u in Ioi X, HeatedOutgoing.energyDensity F XR w.coefficients η u) := by | |
| 84 | - have hs := split_positive_integral (w.energy_integrable η hη) hX | |
| 85 | - have hz := w.energy_zero hF η hη | |
| 86 | - unfold HeatedOutgoing.totalS at hz | |
| 87 | - rw [hz] at hs | |
| 88 | - unfold energyHistory | |
| 89 | - linarith | |
| 90 | - | |
| 91 | -theorem square_integrable_after_switch {F : Profile} {XR C : ℝ} | |
| 92 | - (w : CompensationWitness F XR C) {η X : ℝ} | |
| 93 | - (hη : η ∈ HeatedOutgoing.parameterDomain) (hX : OutgoingDilation.switchRadius F XR ≤ X) : | |
| 94 | - IntegrableOn (fun u => HeatedOutgoing.E F XR w.coefficients (u,η)^2) (Ioi X) := by | |
| 95 | - have hXp : 0 < X := (OutgoingDilation.switchRadius_pos F XR w.radius_pos).trans_le hX | |
| 96 | - have hi := ((w.energy_integrable η hη).mono_set (Ioi_subset_Ioi hXp.le)).const_mul (-2) | |
| 97 | - apply IntegrableOn.congr_fun hi _ measurableSet_Ioi | |
| 98 | - intro u hu | |
| 99 | - dsimp only | |
| 100 | - rw [HeatedOutgoing.energyDensity, | |
| 101 | - HeatedOutgoing.U_after_switch F XR η u w.radius_pos (hX.trans hu.le)] | |
| 102 | - ring | |
| 103 | - | |
| 104 | -theorem energyHistory_eq_square_future {F : Profile} {XR C B : ℝ} | |
| 105 | - (hF : OutgoingProfile.Specification F B) (w : CompensationWitness F XR C) | |
| 106 | - {η X : ℝ} (hη : η ∈ HeatedOutgoing.parameterDomain) | |
| 107 | - (hX : OutgoingDilation.switchRadius F XR ≤ X) : | |
| 108 | - energyHistory F XR w.coefficients η X = | |
| 109 | - (1/2 : ℝ) * ∫ u in Ioi X, HeatedOutgoing.E F XR w.coefficients (u,η)^2 := by | |
| 110 | - have hXp : 0 < X := (OutgoingDilation.switchRadius_pos F XR w.radius_pos).trans_le hX | |
| 111 | - rw [energyHistory_eq_neg_future hF w hη hXp.le] | |
| 112 | - have he : (∫ u in Ioi X, HeatedOutgoing.energyDensity F XR w.coefficients η u) = | |
| 113 | - ∫ u in Ioi X, -(HeatedOutgoing.E F XR w.coefficients (u,η)^2/2) := by | |
| 114 | - apply setIntegral_congr_fun measurableSet_Ioi | |
| 115 | - intro u hu | |
| 116 | - rw [HeatedOutgoing.energyDensity, | |
| 117 | - HeatedOutgoing.U_after_switch F XR η u w.radius_pos (hX.trans hu.le)] | |
| 118 | - ring | |
| 119 | - rw [he,integral_neg,integral_div] | |
| 120 | - ring | |
| 121 | - | |
| 122 | -theorem transport_histories_zero_after_switch {F : Profile} {XR C : ℝ} | |
| 123 | - (w : CompensationWitness F XR C) (η : ℝ) {X : ℝ} | |
| 124 | - (hX : OutgoingDilation.switchRadius F XR ≤ X) : | |
| 125 | - HeatedOutgoing.U F XR (X,η) = 0 ∧ HeatedOutgoing.M F XR η X = 0 ∧ | |
| 126 | - HeatedOutgoing.J F XR w.coefficients η X = 0 := | |
| 127 | - w.after_pulse η X ((OutgoingDilation.switchRadius_pos F XR w.radius_pos).trans_le hX) | |
| 128 | - ((HeatedOutgoing.pulseEnd_le_switch F XR w.radius_pos).trans hX) | |
| 129 | - | |
| 130 | 44 | noncomputable def normalization (F : Profile) (XR : ℝ) : ℝ := |
| 131 | 45 | TerminalPressure.releasedNormalization F.data (OutgoingDilation.switchRadius F XR) |
| 132 | 46 | |
+0 −122 NavierStokes/TerminalPressure.lean View file
| @@ -844,12 +844,6 @@ noncomputable def outgoingPressure (C : ℝ) (d : OutgoingTail.TailData) (y0 : | ||
| 844 | 844 | SimilarityProfile.PhysicalProfile := |
| 845 | 845 | TerminalStress.canonicalPressure (TerminalStress.swirlCoefficient C d.h (outgoingTaper d y0)) |
| 846 | 846 | |
| 847 | -theorem outgoingPressure_contDiffAt (C : ℝ) (d : OutgoingTail.TailData) (y0 : ℝ) | |
| 848 | - {p : SimilarityProfile.PhysicalPoint} (ht : p.1 < 1) (hs : 0 < p.2.1) : | |
| 849 | - ContDiffAt ℝ ∞ (outgoingPressure C d y0) p := | |
| 850 | - canonicalPressure_contDiffAt C d.h_pos d.h_lt_half ht hs (outgoingTaper_contDiff d y0) | |
| 851 | - (outgoingTaper_bounds d y0) (outgoingTaper_plateau d y0) | |
| 852 | - | |
| 853 | 847 | /-- Fully expanded formula for the actual pressure derivative needed in the |
| 854 | 848 | terminal edge chart. The integration coordinate is the physical `s=r^2/2`. -/ |
| 855 | 849 | theorem outgoingPressure_partialZ (C : ℝ) (d : OutgoingTail.TailData) (y0 : ℝ) |
| @@ -863,30 +857,6 @@ theorem outgoingPressure_partialZ (C : ℝ) (d : OutgoingTail.TailData) (y0 : | ||
| 863 | 857 | (outgoingTaper_bounds d y0) (outgoingTaper_plateau d y0) |
| 864 | 858 | simpa only [outgoingPressure, axialPressureIntegral, outgoingTaper_deriv, outgoingTaper] using he |
| 865 | 859 | |
| 866 | -theorem outgoingPressure_partialZ_bound (C : ℝ) (d : OutgoingTail.TailData) (y0 : ℝ) | |
| 867 | - {p : SimilarityProfile.PhysicalPoint} (ht : p.1 < 1) (hs : 0 < p.2.1) : | |
| 868 | - |SimilarityProfile.partialZ (outgoingPressure C d y0) p| ≤ | |
| 869 | - (2 / (1 - 2 * d.h)) * SimilarityProfile.q d.h p ^ (-CoordinateAlgebra.D d.h) * | |
| 870 | - TerminalStress.physicalHeat C (1 + d.h) p ^ 2 * | |
| 871 | - (1 - OutgoingTail.tailShape d (Real.log (SimilarityProfile.X d.h p) - y0)) := by | |
| 872 | - have hb := canonicalPressure_partialZ_bound C d.h_pos d.h_lt_half ht hs | |
| 873 | - (outgoingTaper_contDiff d y0) (outgoingTaper_bounds d y0) (outgoingTaper_deriv_nonneg d y0) | |
| 874 | - (outgoingTaper_plateau d y0) | |
| 875 | - apply hb.trans | |
| 876 | - exact mul_le_mul_of_nonneg_right | |
| 877 | - (mul_le_mul_of_nonneg_right (logScaleDerivative_bound d.h_pos d.h_lt_half ht) (sq_nonneg _)) | |
| 878 | - (sub_nonneg.mpr (outgoingTaper_bounds d y0 _).2) | |
| 879 | - | |
| 880 | -theorem outgoingPressure_edge_bound (C : ℝ) (d : OutgoingTail.TailData) (y0 : ℝ) | |
| 881 | - {p : SimilarityProfile.PhysicalPoint} {δ : ℝ} (ht : p.1 < 1) (hs : 0 < p.2.1) | |
| 882 | - (hδ : Real.log (SimilarityProfile.X d.h p) = y0 + 3 - δ) : | |
| 883 | - |SimilarityProfile.partialZ (outgoingPressure C d y0) p| ≤ | |
| 884 | - (2 / (1 - 2 * d.h)) * SimilarityProfile.q d.h p ^ (-CoordinateAlgebra.D d.h) * | |
| 885 | - TerminalStress.physicalHeat C (1 + d.h) p ^ 2 * | |
| 886 | - (d.rho * FlatCutoff.edge 4 δ * TerminalStress.taperFactor δ) := by | |
| 887 | - have hb := outgoingPressure_partialZ_bound C d y0 ht hs | |
| 888 | - rwa [hδ, show y0 + 3 - δ - y0 = 3 - δ by ring, TerminalStress.tailShape_deficit] at hb | |
| 889 | - | |
| 890 | 860 | /-! ## Compact support of the terminal forcing and its positive mass -/ |
| 891 | 861 | |
| 892 | 862 | theorem integrableOn_Ioi_of_eventually_zero {g : ℝ → ℝ} {r : ℝ} (hr : 0 < r) |
| @@ -1413,96 +1383,4 @@ theorem released_terminal_tilt (d : OutgoingTail.TailData) {K y0 t z r R Λ : | ||
| 1413 | 1383 | mul_le_mul_of_nonneg_left (outgoingAmplitude_suppressed d) (by positivity) |
| 1414 | 1384 | _ = _ := by ring |
| 1415 | 1385 | |
| 1416 | -theorem released_terminal_tilt_small (d : OutgoingTail.TailData) {K y0 t z r R Λ ε : ℝ} | |
| 1417 | - (hK : 0 < K) (hh4 : d.h ≤ 1 / 4) (ht : t < 1) (hr : 0 < r) (hrR : r ≤ R) | |
| 1418 | - (hΛ : 1 ≤ Λ) (hRΛ : R ^ 2 ≤ Λ * r ^ 2) | |
| 1419 | - (hX : K ≤ SimilarityProfile.X d.h (TerminalStress.radiusPoint t r z)) | |
| 1420 | - (hR : y0 + 3 ≤ Real.log (SimilarityProfile.X d.h (TerminalStress.radiusPoint t R z))) | |
| 1421 | - (hinside : Real.log (SimilarityProfile.X d.h (TerminalStress.radiusPoint t r z)) < y0 + 3) | |
| 1422 | - (hsmall : d.h ≤ ε / (1 + 16 * Λ * (Λ - 1) * OutgoingTail.finalAngular d (d.releaseStart, 0))) : | |
| 1423 | - |axialBackwardStress (releasedNormalization d K) d.h (outgoingTaper d y0) t z r| / | |
| 1424 | - TerminalStress.terminalStress (releasedNormalization d K) d.h (outgoingTaper d y0) t z r ≤ ε := by | |
| 1425 | - have hb := (released_terminal_tilt d hK hh4 ht hr hrR hΛ hRΛ hX hR hinside).2 | |
| 1426 | - let B := 16 * Λ * (Λ - 1) * OutgoingTail.finalAngular d (d.releaseStart, 0) | |
| 1427 | - have hB : 0 ≤ B := mul_nonneg (mul_nonneg (mul_nonneg (by norm_num) (zero_le_one.trans hΛ)) | |
| 1428 | - (sub_nonneg.mpr hΛ)) (OutgoingTail.finalAngular_pos d _).le | |
| 1429 | - have hh1 : d.h ≤ 1 := by linarith | |
| 1430 | - have hhpow : d.h ^ 4 ≤ d.h := by | |
| 1431 | - calc | |
| 1432 | - _ = d.h * d.h ^ 3 := by ring | |
| 1433 | - _ ≤ d.h * 1 ^ 3 := mul_le_mul_of_nonneg_left (pow_le_pow_left₀ d.h_pos.le hh1 3) d.h_pos.le | |
| 1434 | - _ = _ := by ring | |
| 1435 | - have hs : d.h * (1 + B) ≤ ε := (le_div_iff₀ (by linarith : 0 < 1 + B)).mp hsmall | |
| 1436 | - apply hb.trans | |
| 1437 | - change B * d.h ^ 4 ≤ ε | |
| 1438 | - nlinarith [mul_le_mul_of_nonneg_left hhpow hB, d.h_pos] | |
| 1439 | - | |
| 1440 | -/-- Full physical residual formula after discharging the pressure regularity | |
| 1441 | -and improper-integral assumptions. The axial viscosity of the swirl is retained. -/ | |
| 1442 | -theorem outgoing_navierStokesResidual (C : ℝ) (d : OutgoingTail.TailData) (y0 : ℝ) | |
| 1443 | - {t : ℝ} {x : ProblemStatement.Space} (ht : t < 1) | |
| 1444 | - (hs : 0 < AxisymmetricFields.radialEnergy x) : | |
| 1445 | - ProblemStatement.navierStokesResidual | |
| 1446 | - (TerminalStress.terminalVelocity C d.h (outgoingTaper d y0)) | |
| 1447 | - (TerminalStress.terminalPressure C d.h (outgoingTaper d y0)) t x = | |
| 1448 | - AxisymmetricResidual.pack | |
| 1449 | - (-x 1 / Real.sqrt (2 * AxisymmetricFields.radialEnergy x) * | |
| 1450 | - (TerminalStress.leadingResidual C d.h (outgoingTaper d y0) t | |
| 1451 | - (Real.sqrt (2 * AxisymmetricFields.radialEnergy x)) (x 2) - | |
| 1452 | - TerminalStress.axialViscosity C d.h (outgoingTaper d y0) (AxisymmetricFields.profilePoint t x))) | |
| 1453 | - (x 0 / Real.sqrt (2 * AxisymmetricFields.radialEnergy x) * | |
| 1454 | - (TerminalStress.leadingResidual C d.h (outgoingTaper d y0) t | |
| 1455 | - (Real.sqrt (2 * AxisymmetricFields.radialEnergy x)) (x 2) - | |
| 1456 | - TerminalStress.axialViscosity C d.h (outgoingTaper d y0) (AxisymmetricFields.profilePoint t x))) | |
| 1457 | - (SimilarityProfile.partialZ (outgoingPressure C d y0) (AxisymmetricFields.profilePoint t x)) := by | |
| 1458 | - let a := AxisymmetricFields.radialEnergy x / 2 | |
| 1459 | - have ha : 0 < a := by dsimp [a]; positivity | |
| 1460 | - have hi := swirlCoefficient_sq_integrable C (p := (t, (a, x 2))) d.h_pos d.h_lt_half ht ha | |
| 1461 | - (outgoingTaper_contDiff d y0).continuous (outgoingTaper_bounds d y0) | |
| 1462 | - have hc : ContinuousOn (fun s => TerminalStress.swirlCoefficient C d.h (outgoingTaper d y0) | |
| 1463 | - (t, (s, x 2)) ^ 2) (Ioi a) := by | |
| 1464 | - intro s hs' | |
| 1465 | - have hlocal := TerminalStress.swirlCoefficient_contDiffAt C | |
| 1466 | - (p := (t, (s, x 2))) (f := outgoingTaper d y0) d.h_pos d.h_lt_half ht (ha.trans hs') | |
| 1467 | - ((outgoingTaper_contDiff d y0).contDiffAt.of_le (WithTop.coe_le_coe.mpr le_top)) | |
| 1468 | - exact (((hlocal.comp s (contDiffAt_const.prodMk | |
| 1469 | - (contDiffAt_id.prodMk contDiffAt_const))).continuousAt).pow 2).continuousWithinAt | |
| 1470 | - exact TerminalStress.terminal_navierStokesResidual C d.h_pos d.h_lt_half ht hs | |
| 1471 | - ((outgoingTaper_contDiff d y0).contDiffAt.of_le (WithTop.coe_le_coe.mpr le_top)) | |
| 1472 | - (show a < AxisymmetricFields.radialEnergy x by dsimp [a]; linarith) hi hc | |
| 1473 | - ((outgoingPressure_contDiffAt C d y0 ht hs).differentiableAt (by simp)) | |
| 1474 | - | |
| 1475 | -/-- The backward axial primitive has the required cylindrical divergence, | |
| 1476 | -computed from actual derivatives of the canonical pressure. -/ | |
| 1477 | -theorem axialBackwardStress_divergence {C h t z r R Y : ℝ} {f : ℝ → ℝ} | |
| 1478 | - (hC : 0 < C) (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) | |
| 1479 | - (hr : 0 < r) (hrR : r ≤ R) (hf : ContDiff ℝ ∞ f) | |
| 1480 | - (hb : ∀ y, 0 ≤ f y ∧ f y ≤ 1) (hmono : ∀ y, 0 ≤ deriv f y) | |
| 1481 | - (hplateau : ∀ y, Y ≤ y → f y = 1) | |
| 1482 | - (hR : Y ≤ Real.log (SimilarityProfile.X h (TerminalStress.radiusPoint t R z))) : | |
| 1483 | - deriv (axialBackwardStress C h f t z) r + axialBackwardStress C h f t z r / r = | |
| 1484 | - -SimilarityProfile.partialZ (TerminalStress.canonicalPressure | |
| 1485 | - (TerminalStress.swirlCoefficient C h f)) (TerminalStress.radiusPoint t r z) := by | |
| 1486 | - let g : ℝ → ℝ := fun s => SimilarityProfile.partialZ (TerminalStress.canonicalPressure | |
| 1487 | - (TerminalStress.swirlCoefficient C h f)) (t, (s, z)) | |
| 1488 | - have ha : 0 < (r / 2) ^ 2 / 2 := by positivity | |
| 1489 | - have hab : (r / 2) ^ 2 / 2 < r ^ 2 / 2 := by nlinarith [sq_pos_of_pos hr] | |
| 1490 | - have hi : IntegrableOn g (Ioi ((r / 2) ^ 2 / 2)) := | |
| 1491 | - (axialBackwardStress_bound hC hh hh1 ht (by positivity : 0 < r / 2) | |
| 1492 | - (by linarith : r / 2 ≤ R) hf hb hmono hplateau hR).1 | |
| 1493 | - have hc : ContinuousOn g (Ioi ((r / 2) ^ 2 / 2)) := by | |
| 1494 | - intro s hs | |
| 1495 | - exact (((canonicalPressure_partialZ_contDiffAt C (p := (t, (s, z))) hh hh1 ht | |
| 1496 | - (ha.trans hs) hf hb hplateau).comp s | |
| 1497 | - (contDiffAt_const.prodMk (contDiffAt_id.prodMk contDiffAt_const))).continuousAt).continuousWithinAt | |
| 1498 | - have hd := (TerminalStress.neg_tailIntegral_hasDerivAt hab hi hc).fun_neg | |
| 1499 | - simp only [neg_neg] at hd | |
| 1500 | - have hdr := hd.comp r (RadialHeatProfile.radiusSquared_hasDerivAt r) | |
| 1501 | - have hquot := hdr.fun_div (hasDerivAt_id r) hr.ne' | |
| 1502 | - change HasDerivAt (axialBackwardStress C h f t z) _ r at hquot | |
| 1503 | - rw [hquot.deriv] | |
| 1504 | - change _ = -g (r ^ 2 / 2) | |
| 1505 | - dsimp only [axialBackwardStress, Function.comp_apply, id_eq] | |
| 1506 | - field_simp [hr.ne'] ; ring | |
| 1507 | - | |
| 1508 | 1386 | end NavierStokes.TerminalPressure |
+0 −186 NavierStokes/TerminalStress.lean View file
| @@ -88,25 +88,6 @@ theorem correction_nonneg {K f : ℝ → ℝ} {r : ℝ} (hr : 0 ≤ r) | ||
| 88 | 88 | exact sub_nonneg.mpr ((mul_nonpos_of_nonneg_of_nonpos (sq_nonneg r) hKr).trans |
| 89 | 89 | (mul_nonneg hr hK)) |
| 90 | 90 | |
| 91 | -/-- The backward stress controls the positive radial boundary term. -/ | |
| 92 | -theorem backwardStress_ge_boundary {K f T : ℝ → ℝ} {r : ℝ} (hr : 0 < r) | |
| 93 | - (hK : ∀ u ∈ Ici r, DifferentiableAt ℝ K u) | |
| 94 | - (hf : ∀ u ∈ Ici r, ContDiffAt ℝ 2 f u) | |
| 95 | - (hv : IntegrableOn (fun u => u ^ 2 * viscousResidual K f u) (Ioi r)) | |
| 96 | - (hc : IntegrableOn (correction K f) (Ioi r)) | |
| 97 | - (ht : IntegrableOn (fun u => u ^ 2 * T u) (Ioi r)) | |
| 98 | - (hboundary : Tendsto (boundary K f) atTop (𝓝 0)) | |
| 99 | - (hKpos : ∀ u ∈ Ioi r, 0 ≤ K u) (hKdec : ∀ u ∈ Ioi r, deriv K u ≤ 0) | |
| 100 | - (hfinc : ∀ u ∈ Ioi r, 0 ≤ deriv f u) (hTpos : ∀ u ∈ Ioi r, 0 ≤ T u) : | |
| 101 | - K r * deriv f r ≤ backwardStress (fun u => T u + viscousResidual K f u) r := by | |
| 102 | - rw [backwardStress_formula hr hK hf hv hc ht hboundary] | |
| 103 | - have ht0 : 0 ≤ ∫ u in Ioi r, u ^ 2 * T u := | |
| 104 | - setIntegral_nonneg measurableSet_Ioi (fun u hu => mul_nonneg (sq_nonneg u) (hTpos u hu)) | |
| 105 | - have hc0 : 0 ≤ ∫ u in Ioi r, correction K f u := | |
| 106 | - setIntegral_nonneg measurableSet_Ioi (fun u hu => | |
| 107 | - correction_nonneg (hr.le.trans hu.le) (hKpos u hu) (hKdec u hu) (hfinc u hu)) | |
| 108 | - exact le_add_of_nonneg_right (div_nonneg (add_nonneg ht0 hc0) (sq_nonneg r)) | |
| 109 | - | |
| 110 | 91 | /-- A precise version of the time-integral lower comparison. The extra |
| 111 | 92 | coefficient comparison is distinct from mere monotonicity of `K`. -/ |
| 112 | 93 | theorem backwardStress_ge_mass {K f T : ℝ → ℝ} {r c : ℝ} (hr : 0 < r) |
| @@ -529,16 +510,6 @@ theorem pureSwirl_navierStokesResidual {F P : PhysicalProfile} {t : ℝ} {x : Pr | ||
| 529 | 510 | · ring |
| 530 | 511 | · ring |
| 531 | 512 | |
| 532 | -/-- Exact axial viscosity retained in the terminal physical residual. -/ | |
| 533 | -noncomputable def axialViscosity (C h : ℝ) (f : ℝ → ℝ) (p : PhysicalPoint) : ℝ := | |
| 534 | - Real.sqrt (2 * p.2.1) * partialZ (partialZ (swirlCoefficient C h f)) p | |
| 535 | - | |
| 536 | -noncomputable def terminalVelocity (C h : ℝ) (f : ℝ → ℝ) : ProblemStatement.VelocityField := | |
| 537 | - AxisymmetricResidual.velocity (fun _ => 0) (swirlCoefficient C h f) (fun _ => 0) | |
| 538 | - | |
| 539 | -noncomputable def terminalPressure (C h : ℝ) (f : ℝ → ℝ) : ProblemStatement.PressureField := | |
| 540 | - AxisymmetricResidual.pressure (canonicalPressure (swirlCoefficient C h f)) | |
| 541 | - | |
| 542 | 513 | theorem radiusPoint_profilePoint {t : ℝ} {x : ProblemStatement.Space} |
| 543 | 514 | (hs : 0 ≤ AxisymmetricFields.radialEnergy x) : |
| 544 | 515 | radiusPoint t (Real.sqrt (2 * AxisymmetricFields.radialEnergy x)) (x 2) = |
| @@ -547,74 +518,6 @@ theorem radiusPoint_profilePoint {t : ℝ} {x : ProblemStatement.Space} | ||
| 547 | 518 | rw [Real.sq_sqrt (show 0 ≤ 2 * AxisymmetricFields.radialEnergy x by positivity)] |
| 548 | 519 | simp |
| 549 | 520 | |
| 550 | -/-- Full terminal residual, with canonical radial balance and the omitted | |
| 551 | -axial-viscosity term displayed. The pressure's joint differentiability and | |
| 552 | -the tail-integral hypotheses are explicit and do not impose a residual identity. -/ | |
| 553 | -theorem terminal_navierStokesResidual (C : ℝ) {h t : ℝ} {x : ProblemStatement.Space} | |
| 554 | - (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) | |
| 555 | - (hs : 0 < AxisymmetricFields.radialEnergy x) {f : ℝ → ℝ} | |
| 556 | - (hf : ContDiffAt ℝ 2 f | |
| 557 | - (Real.log (SimilarityProfile.X h (AxisymmetricFields.profilePoint t x)))) | |
| 558 | - {a : ℝ} (ha : a < AxisymmetricFields.radialEnergy x) | |
| 559 | - (hi : IntegrableOn (fun s => swirlCoefficient C h f (t, (s, x 2)) ^ 2) (Ioi a)) | |
| 560 | - (hc : ContinuousOn (fun s => swirlCoefficient C h f (t, (s, x 2)) ^ 2) (Ioi a)) | |
| 561 | - (hP : DifferentiableAt ℝ (canonicalPressure (swirlCoefficient C h f)) | |
| 562 | - (AxisymmetricFields.profilePoint t x)) : | |
| 563 | - ProblemStatement.navierStokesResidual (terminalVelocity C h f) (terminalPressure C h f) t x = | |
| 564 | - AxisymmetricResidual.pack | |
| 565 | - (-x 1 / Real.sqrt (2 * AxisymmetricFields.radialEnergy x) * | |
| 566 | - (leadingResidual C h f t (Real.sqrt (2 * AxisymmetricFields.radialEnergy x)) (x 2) - | |
| 567 | - axialViscosity C h f (AxisymmetricFields.profilePoint t x))) | |
| 568 | - (x 0 / Real.sqrt (2 * AxisymmetricFields.radialEnergy x) * | |
| 569 | - (leadingResidual C h f t (Real.sqrt (2 * AxisymmetricFields.radialEnergy x)) (x 2) - | |
| 570 | - axialViscosity C h f (AxisymmetricFields.profilePoint t x))) | |
| 571 | - (partialZ (canonicalPressure (swirlCoefficient C h f)) (AxisymmetricFields.profilePoint t x)) := by | |
| 572 | - have hF : ContDiffAt ℝ 2 (swirlCoefficient C h f) (AxisymmetricFields.profilePoint t x) := | |
| 573 | - swirlCoefficient_contDiffAt C (p := AxisymmetricFields.profilePoint t x) (f := f) hh hh1 ht hs hf | |
| 574 | - have hpS : partialS (canonicalPressure (swirlCoefficient C h f)) (AxisymmetricFields.profilePoint t x) = | |
| 575 | - swirlCoefficient C h f (AxisymmetricFields.profilePoint t x) ^ 2 := | |
| 576 | - canonicalPressure_partialS (F := swirlCoefficient C h f) (p := AxisymmetricFields.profilePoint t x) ha hi hc hP | |
| 577 | - have hr : 0 < Real.sqrt (2 * AxisymmetricFields.radialEnergy x) := Real.sqrt_pos.2 (by positivity) | |
| 578 | - have hpoint := radiusPoint_profilePoint (t := t) hs.le | |
| 579 | - have hf' : ContDiffAt ℝ 2 f | |
| 580 | - (Real.log (SimilarityProfile.X h (radiusPoint t (Real.sqrt (2 * AxisymmetricFields.radialEnergy x)) (x 2)))) := by | |
| 581 | - rw [hpoint] | |
| 582 | - exact hf | |
| 583 | - have hlead := swirlCoefficient_leading_residual C (h := h) (t := t) | |
| 584 | - (r := Real.sqrt (2 * AxisymmetricFields.radialEnergy x)) (z := x 2) (f := f) hh hh1 ht hr hf' | |
| 585 | - rw [hpoint] at hlead | |
| 586 | - have hcoef : residualCoefficient (swirlCoefficient C h f) (AxisymmetricFields.profilePoint t x) = | |
| 587 | - (leadingResidual C h f t (Real.sqrt (2 * AxisymmetricFields.radialEnergy x)) (x 2) - | |
| 588 | - axialViscosity C h f (AxisymmetricFields.profilePoint t x)) / | |
| 589 | - Real.sqrt (2 * AxisymmetricFields.radialEnergy x) := by | |
| 590 | - apply (eq_div_iff hr.ne').2 | |
| 591 | - dsimp [residualCoefficient, axialViscosity] | |
| 592 | - change _ = _ - Real.sqrt (2 * AxisymmetricFields.radialEnergy x) * _ | |
| 593 | - linear_combination hlead | |
| 594 | - unfold terminalVelocity terminalPressure | |
| 595 | - rw [pureSwirl_navierStokesResidual (F := swirlCoefficient C h f) | |
| 596 | - (P := canonicalPressure (swirlCoefficient C h f)) hF hP, | |
| 597 | - hpS, sub_self, mul_zero, mul_zero, zero_sub, zero_add, hcoef] | |
| 598 | - apply congrArg₂ (fun a b : ℝ => AxisymmetricResidual.pack a b | |
| 599 | - (partialZ (canonicalPressure (swirlCoefficient C h f)) (AxisymmetricFields.profilePoint t x))) | |
| 600 | - · ring | |
| 601 | - · ring | |
| 602 | - | |
| 603 | -/-- A backward stress solves the actual radial divergence equation without | |
| 604 | -any hypothesis about its integral over the whole radius. -/ | |
| 605 | -theorem backwardStress_divergence {R : ℝ → ℝ} {a r : ℝ} (hr : r ≠ 0) (ha : a < r) | |
| 606 | - (hi : IntegrableOn (fun u => u ^ 2 * R u) (Ioi a)) | |
| 607 | - (hc : ContinuousOn (fun u => u ^ 2 * R u) (Ioi a)) : | |
| 608 | - deriv (backwardStress R) r + 2 * backwardStress R r / r = -R r := by | |
| 609 | - have hd := (neg_tailIntegral_hasDerivAt ha hi hc).fun_neg | |
| 610 | - have hd' : HasDerivAt (fun x => ∫ u in Ioi x, u ^ 2 * R u) (-(r ^ 2 * R r)) r := by | |
| 611 | - simpa only [neg_neg] using hd | |
| 612 | - have hT := hd'.fun_div ((hasDerivAt_id r).fun_pow 2) (pow_ne_zero 2 hr) | |
| 613 | - rw [show deriv (backwardStress R) r = _ from hT.deriv] | |
| 614 | - unfold backwardStress | |
| 615 | - simp only [Nat.cast_ofNat, Nat.reduceSub, pow_one, mul_one, id_eq] | |
| 616 | - field_simp ; ring | |
| 617 | - | |
| 618 | 521 | noncomputable def forwardStress (R : ℝ → ℝ) (r : ℝ) : ℝ := |
| 619 | 522 | -(∫ u in (0 : ℝ)..r, u ^ 2 * R u) / r ^ 2 |
| 620 | 523 | |
| @@ -648,23 +551,6 @@ theorem leadingResidual_eq_time_add (C h : ℝ) (f : ℝ → ℝ) (t r z : ℝ) | ||
| 648 | 551 | rw [mul_div_assoc] |
| 649 | 552 | rfl |
| 650 | 553 | |
| 651 | -theorem timeResidual_nonneg {C h t r z : ℝ} (hC : 0 < C) (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 652 | - (ht : t < 1) (hr : 0 < r) {f : ℝ → ℝ} | |
| 653 | - (hf : 0 ≤ deriv f (Real.log (SimilarityProfile.X h (radiusPoint t r z)))) : | |
| 654 | - 0 ≤ timeResidual C h f t z r := | |
| 655 | - div_nonneg (mul_nonneg (heatAmplitude_pos hC (by linarith) ht hr).le hf) | |
| 656 | - (timeDenominator_pos hh hh1 ht).le | |
| 657 | - | |
| 658 | -theorem terminal_correction_nonneg {C h t r z : ℝ} (hC : 0 < C) (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 659 | - (ht : t < 1) (hr : 0 < r) {f : ℝ → ℝ} | |
| 660 | - (hf : DifferentiableAt ℝ f (Real.log (SimilarityProfile.X h (radiusPoint t r z)))) | |
| 661 | - (hfpos : 0 ≤ deriv f (Real.log (SimilarityProfile.X h (radiusPoint t r z)))) : | |
| 662 | - 0 ≤ correction (heatAmplitude C (1 + h) t) (radialSlice (flattening h f) t z) r := by | |
| 663 | - apply correction_nonneg hr.le (heatAmplitude_pos hC (by linarith) ht hr).le | |
| 664 | - (heatAmplitude_deriv_neg hC (by linarith) ht hr).le | |
| 665 | - rw [(flattening_radial_hasDerivAt hh hh1 ht hr hf).deriv] | |
| 666 | - exact div_nonneg (mul_nonneg (by norm_num) hfpos) hr.le | |
| 667 | - | |
| 668 | 554 | theorem heatAmplitude_antitoneOn {C a t : ℝ} (hC : 0 < C) (ha : 1 < a) (ht : t < 1) : |
| 669 | 555 | AntitoneOn (heatAmplitude C a t) (Ioi 0) := by |
| 670 | 556 | apply antitoneOn_of_deriv_nonpos (convex_Ioi 0) |
| @@ -751,46 +637,6 @@ theorem terminalStress_formula (C : ℝ) {h t r z : ℝ} | ||
| 751 | 637 | rw [he] |
| 752 | 638 | exact backwardStress_formula hr hK hF hv hc hT hb |
| 753 | 639 | |
| 754 | -theorem terminalStress_ge_boundary {C h t r z : ℝ} | |
| 755 | - (hC : 0 < C) (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) (hr : 0 < r) | |
| 756 | - {f : ℝ → ℝ} (hf : ContDiff ℝ 2 f) (hmono : ∀ y, 0 ≤ deriv f y) | |
| 757 | - (hv : IntegrableOn (fun u => u ^ 2 * viscousResidual (heatAmplitude C (1 + h) t) | |
| 758 | - (radialSlice (flattening h f) t z) u) (Ioi r)) | |
| 759 | - (hc : IntegrableOn (correction (heatAmplitude C (1 + h) t) | |
| 760 | - (radialSlice (flattening h f) t z)) (Ioi r)) | |
| 761 | - (hT : IntegrableOn (fun u => u ^ 2 * timeResidual C h f t z u) (Ioi r)) | |
| 762 | - (hb : Tendsto (boundary (heatAmplitude C (1 + h) t) | |
| 763 | - (radialSlice (flattening h f) t z)) atTop (𝓝 0)) : | |
| 764 | - heatAmplitude C (1 + h) t r * deriv (radialSlice (flattening h f) t z) r ≤ | |
| 765 | - terminalStress C h f t z r := by | |
| 766 | - rw [terminalStress_formula C hh hh1 ht hr hf hv hc hT hb] | |
| 767 | - apply le_add_of_nonneg_right | |
| 768 | - apply div_nonneg _ (sq_nonneg r) | |
| 769 | - apply add_nonneg | |
| 770 | - · apply setIntegral_nonneg measurableSet_Ioi | |
| 771 | - intro u hu | |
| 772 | - exact mul_nonneg (sq_nonneg u) (timeResidual_nonneg hC hh hh1 ht (hr.trans hu) (hmono _)) | |
| 773 | - · apply setIntegral_nonneg measurableSet_Ioi | |
| 774 | - intro u hu | |
| 775 | - exact terminal_correction_nonneg hC hh hh1 ht (hr.trans hu) | |
| 776 | - (hf.differentiable (by norm_num) _) (hmono _) | |
| 777 | - | |
| 778 | -theorem terminalStress_nonneg {C h t r z : ℝ} | |
| 779 | - (hC : 0 < C) (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) (hr : 0 < r) | |
| 780 | - {f : ℝ → ℝ} (hf : ContDiff ℝ 2 f) (hmono : ∀ y, 0 ≤ deriv f y) | |
| 781 | - (hv : IntegrableOn (fun u => u ^ 2 * viscousResidual (heatAmplitude C (1 + h) t) | |
| 782 | - (radialSlice (flattening h f) t z) u) (Ioi r)) | |
| 783 | - (hc : IntegrableOn (correction (heatAmplitude C (1 + h) t) | |
| 784 | - (radialSlice (flattening h f) t z)) (Ioi r)) | |
| 785 | - (hT : IntegrableOn (fun u => u ^ 2 * timeResidual C h f t z u) (Ioi r)) | |
| 786 | - (hb : Tendsto (boundary (heatAmplitude C (1 + h) t) | |
| 787 | - (radialSlice (flattening h f) t z)) atTop (𝓝 0)) : | |
| 788 | - 0 ≤ terminalStress C h f t z r := by | |
| 789 | - apply le_trans _ (terminalStress_ge_boundary hC hh hh1 ht hr hf hmono hv hc hT hb) | |
| 790 | - apply mul_nonneg (heatAmplitude_pos hC (by linarith) ht hr).le | |
| 791 | - rw [(flattening_radial_hasDerivAt hh hh1 ht hr (hf.differentiable (by norm_num) _)).deriv] | |
| 792 | - exact div_nonneg (mul_nonneg (by norm_num) (hmono _)) hr.le | |
| 793 | - | |
| 794 | 640 | /-- A plateau at infinity automatically removes the radial boundary term, |
| 795 | 641 | irrespective of the behavior of the heat carrier there. -/ |
| 796 | 642 | theorem deriv_eventually_zero_of_eventually_const {g : ℝ → ℝ} {c : ℝ} |
| @@ -918,38 +764,6 @@ section ParametricEdge | ||
| 918 | 764 | |
| 919 | 765 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 920 | 766 | |
| 921 | -/-- The boundary term and actual backward integrals after the edge change of variables. -/ | |
| 922 | -noncomputable def edgeStress (c : ℝ) (b a : E × ℝ → ℝ) (y : E × ℝ) : ℝ := | |
| 923 | - (FlatCutoff.edge c y.2 / y.2 ^ 3) * b y + ParametricFlatFactor.primitive c 3 a y | |
| 924 | - | |
| 925 | -noncomputable def normalizedEdgeStress (c : ℝ) (b a : E × ℝ → ℝ) (y : E × ℝ) : ℝ := | |
| 926 | - b y + y.2 ^ 3 * ParametricFlatFactor.factor c 3 a y | |
| 927 | - | |
| 928 | -omit [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] in | |
| 929 | -/-- Actual integral factorization, including auxiliary parameters. -/ | |
| 930 | -theorem edgeStress_factorization (c : ℝ) (b a : E × ℝ → ℝ) (y : E × ℝ) : | |
| 931 | - edgeStress c b a y = (FlatCutoff.edge c y.2 / y.2 ^ 3) * normalizedEdgeStress c b a y := by | |
| 932 | - rw [edgeStress, ParametricFlatFactor.primitive_eq_scale_mul_factor] | |
| 933 | - unfold FlatPrimitive.scale normalizedEdgeStress | |
| 934 | - ring | |
| 935 | - | |
| 936 | -theorem normalizedEdgeStress_contDiff {c : ℝ} (hc : 0 < c) {b a : E × ℝ → ℝ} | |
| 937 | - (hb : ContDiff ℝ ∞ b) (ha : ContDiff ℝ ∞ a) : | |
| 938 | - ContDiff ℝ ∞ (normalizedEdgeStress c b a) := | |
| 939 | - hb.add ((contDiff_snd.pow 3).mul (ParametricFlatFactor.factor_contDiff hc 3 ha)) | |
| 940 | - | |
| 941 | -omit [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] in | |
| 942 | -theorem normalizedEdgeStress_zero (c : ℝ) (b a : E × ℝ → ℝ) (p : E) : | |
| 943 | - normalizedEdgeStress c b a (p, 0) = b (p, 0) := by simp [normalizedEdgeStress] | |
| 944 | - | |
| 945 | -theorem normalizedEdgeStress_eventually_pos {c : ℝ} (hc : 0 < c) {b a : E × ℝ → ℝ} | |
| 946 | - (hb : ContDiff ℝ ∞ b) (ha : ContDiff ℝ ∞ a) (p : E) (hbp : 0 < b (p, 0)) : | |
| 947 | - ∀ᶠ y in 𝓝 (p, 0), 0 < normalizedEdgeStress c b a y := by | |
| 948 | - have hp : 0 < normalizedEdgeStress c b a (p, 0) := by | |
| 949 | - rw [normalizedEdgeStress_zero] | |
| 950 | - exact hbp | |
| 951 | - exact (normalizedEdgeStress_contDiff hc hb ha).continuous.continuousAt.eventually (Ioi_mem_nhds hp) | |
| 952 | - | |
| 953 | 767 | end ParametricEdge |
| 954 | 768 | |
| 955 | 769 | end NavierStokes.TerminalStress |
+50 −0 routes/s1-ns-terminal-1/README.md added View file
| @@ -0,0 +1,50 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-terminal-1 | |
| 6 | + | |
| 7 | +One declarations unit of S-1 (issue #10), family `NavierStokes/Terminal*`: deletes 79 | |
| 8 | +declarations that nothing uses, 1042 lines in `TerminalCompensation.lean`, | |
| 9 | +`TerminalCone.lean`, `TerminalEdgeFactor.lean`, `TerminalHistoryBridge.lean`, | |
| 10 | +`TerminalPressure.lean` and `TerminalStress.lean`. The diff is deletions only; no | |
| 11 | +statement or proof that stays is changed. | |
| 12 | + | |
| 13 | +The unit was cut from Treant's run of 2026-12-03 (TitiSkywalker/NavierStokesAndEuler) and | |
| 14 | +from the declaration graph of this project's `main`, under this project's rule that the | |
| 15 | +paper's results stay (`NavierStokes/PaperResults.lean` and what it imports, | |
| 16 | +`NavierStokes/R3/Theorem.lean`, `NavierStokes/LocalPaperTheorem.lean`). None of the 79 | |
| 17 | +deleted is named by the text of a declaration that stays, and no deleted docstring cites | |
| 18 | +the paper. | |
| 19 | + | |
| 20 | +Kept back at review. `NavierStokes/TerminalEdgePaper.profileStress_lower_bound` is a | |
| 21 | +result the paper prints — its docstring names the printed exponential-over-cubic lower | |
| 22 | +bound on the collar — and `NavierStokes/PaperAdditionalResults.lean`, one of the files | |
| 23 | +carrying the paper's results, imports `NavierStokes/TerminalEdgePaper.lean`; the theorem | |
| 24 | +and its file stay, as the review asked. Its proof is the text of `main` and calls | |
| 25 | +`profile_uniform_cone` in `NavierStokes/TerminalEdgeFactor.lean`, so that theorem stays, | |
| 26 | +and with it the three lemmas its proof calls: `profileTilt_contDiffAt`, | |
| 27 | +`profileSpeed_contDiffAt` and `profileConeGap_zero`. Five of the original 84 are | |
| 28 | +withdrawn from the unit for that reason; none of them has a user on `main` either, and | |
| 29 | +nothing else is changed. | |
| 30 | + | |
| 31 | +Checked on this branch. `git grep -n -w` over the Lean tree finds none of the 79 short | |
| 32 | +names except other declarations of the same short name that stay: `bump_nonneg` and | |
| 33 | +`bump_le_one` in `AngularMomentReset.lean` and `LocalizedMomentRepair.lean`, | |
| 34 | +`carrier_pos` in `ActualSignedCoherence.lean` and `OutgoingTail.lean`, | |
| 35 | +`correction_hasCompactSupport` in `FiveProfileMoments.lean`, `angularHistory_integrable`, | |
| 36 | +`angularHistory_eq_power_sub_future` and `energyHistory_eq_square_future` in | |
| 37 | +`HeatTailHistoryLimits.lean`, `profileStress_jets` in `SlowFirstOrderEdge.lean`, and | |
| 38 | +`profile_relative_cone` in `TerminalCone.lean`. `profileTilt_contDiffAt` was declared | |
| 39 | +twice (`TerminalCone.lean` and `TerminalEdgeFactor.lean`): the `TerminalCone` copy is | |
| 40 | +deleted, the `TerminalEdgeFactor` copy stays with the theorem that uses it. No deleted | |
| 41 | +docstring cites a numbered Lemma, Theorem, Proposition, Corollary, Section or Equation of | |
| 42 | +a paper. | |
| 43 | + | |
| 44 | +`python3 checks/challenge.py .` ends `ok: 4 challenge files and the build configuration as | |
| 45 | +approved; 2588 Lean files, 537195 lines, toolchain leanprover/lean4:v4.34.0-rc2`. | |
| 46 | + | |
| 47 | +## Next | |
| 48 | + | |
| 49 | +The maintainer's review of this head; the other declaration units of #10 follow in pull | |
| 50 | +requests of their own. | |