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 #189 from s1-ns-extended-1
Browse fileschore(NavierStokes/Extended): delete 64 declarations nothing uses
main maintainer-statement s1-euler-all-2 s1-euler-all-3 s1-euler-base-2 s1-euler-bounded-2 s1-euler-child-2 s1-euler-common-2 s1-euler-constant-2 s1-euler-continuous-2 s1-euler-correction-2 s1-euler-correction-3 s1-euler-cylinder-2 s1-euler-cylinder-3 s1-euler-dirichlet-6 s1-euler-euler-1 s1-euler-euler-2 s1-euler-euler-6 s1-euler-exact-3 s1-euler-field-2 s1-euler-finite-3 s1-euler-flow-2 s1-euler-frozen-2 s1-euler-general-2 s1-euler-heat-2 s1-euler-hilbert-6 s1-euler-isometric-2 s1-euler-lp-2 s1-euler-lp-3 s1-euler-mean-2 s1-euler-ordinary-6 s1-euler-packet-2 s1-euler-packet-3 s1-euler-parent-2 s1-euler-quadratic-2 s1-euler-resolvent-2 s1-euler-separating-2 s1-euler-smooth-2 s1-euler-sobolev-2 s1-euler-source-6 s1-euler-time-2 s1-euler-transverse-1 s1-euler-transverse-2 s1-euler-transverse-6 s1-euler-volume-3 s1-euler-vorticity-2 s1-euler-weighted-2 s1-ns-activation-2 s1-ns-active-2 s1-ns-actual-2 s1-ns-actual-3 s1-ns-aligned-2 s1-ns-angular-2 s1-ns-annular-6 s1-ns-assembled-2 s1-ns-assembled-7 s1-ns-axis-2 s1-ns-axisymmetric-2 s1-ns-band-2 s1-ns-base-1 s1-ns-base-2 s1-ns-base-6 s1-ns-borel-2 s1-ns-borel-3 s1-ns-boundary-2 s1-ns-cauchy-2 s1-ns-closed-2 s1-ns-common-2 s1-ns-common-6 s1-ns-compact-2 s1-ns-constructed-2 s1-ns-constructed-3 s1-ns-copy-6 s1-ns-correction-2 s1-ns-correction-3 s1-ns-curl-2 s1-ns-curl-6 s1-ns-current-3 s1-ns-cycle-2 s1-ns-cycle-3 s1-ns-defect-2 s1-ns-direct-2 s1-ns-edge-6 s1-ns-entrance-2 s1-ns-error-2 s1-ns-error-3 s1-ns-even-2 s1-ns-even-3 s1-ns-exponent-2 s1-ns-final-2 s1-ns-final-6 s1-ns-first-2 s1-ns-first-3 s1-ns-flat-2 s1-ns-flat-3 s1-ns-flatness-2 s1-ns-fourier-2 s1-ns-fourier-3 s1-ns-future-2 s1-ns-gauge-2 s1-ns-gaussian-2 s1-ns-global-2 s1-ns-graph-6 s1-ns-harmonic-6 s1-ns-harmonic-7 s1-ns-heat-2 s1-ns-heat-3 s1-ns-initialized-2 s1-ns-integrated-1 s1-ns-joint-2 s1-ns-joint-3 s1-ns-label-6 s1-ns-linear-2 s1-ns-linear-6 s1-ns-linear-7 s1-ns-local-2 s1-ns-localized-1 s1-ns-localized-2 s1-ns-localized-6 s1-ns-maximal-2 s1-ns-mean-1 s1-ns-mean-2 s1-ns-mixed-2 s1-ns-modulated-3 s1-ns-moment-6 s1-ns-native-2 s1-ns-natural-1 s1-ns-natural-2 s1-ns-nilpotent-2 s1-ns-offplane-1 s1-ns-offplane-2 s1-ns-offplane-6 s1-ns-oscillatory-2 s1-ns-parametric-2 s1-ns-parametric-6 s1-ns-particular-1 s1-ns-particular-2 s1-ns-particular-6 s1-ns-partitioned-6 s1-ns-past-2 s1-ns-periodic-2 s1-ns-periodic-3 s1-ns-periodized-2 s1-ns-periodized-6 s1-ns-phase-2 s1-ns-physical-2 s1-ns-physical-3 s1-ns-positive-2 s1-ns-prepared-6 s1-ns-pressure-2 s1-ns-primary-1 s1-ns-primary-2 s1-ns-primary-6 s1-ns-pulse-2 s1-ns-r3-2 s1-ns-radial-2 s1-ns-reference-2 s1-ns-regular-2 s1-ns-renormalized-2 s1-ns-residual-2 s1-ns-residual-3 s1-ns-scaled-3 s1-ns-scaling-2 s1-ns-schedule-2 s1-ns-sharp-2 s1-ns-signed-2 s1-ns-signed-3 s1-ns-similarity-2 s1-ns-slot-2 s1-ns-slow-2 s1-ns-slow-6 s1-ns-smooth-2 s1-ns-smooth-3 s1-ns-solenoidal-2 s1-ns-spacetime-3 s1-ns-spatial-2 s1-ns-squared-2 s1-ns-state-2 s1-ns-subcover-2 s1-ns-tail-2 s1-ns-temporal-2 s1-ns-temporal-3 s1-ns-terminal-1 s1-ns-terminal-6 s1-ns-time-2 s1-ns-torus-2 s1-ns-torus-3 s1-ns-transition-2 s1-ns-transport-2 s1-ns-true-1 s1-ns-uniform-2 s1-ns-variable-2 s1-ns-variable-3 s1-ns-viscous-6 s1-ns-volterra-2 s1-ns-wave-2 s1-ns-wave-3 s1-ns-weighted-2 s1-ns-weighted-3 s1-ns-whole-3 s1-ns-within-2 s1-ns-within-6 s2-euler-heat-1
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+0 −237 NavierStokes/ExtendedHeatDebts.lean View file
| @@ -356,18 +356,6 @@ theorem weightedDebtJet_bound (square : Bool) (n : ℕ) {L ν : ℝ} | ||
| 356 | 356 | simpa only [weightedDebtJet, Real.norm_eq_abs, integral_const_mul, |
| 357 | 357 | integral_weightedKernel (lt_of_lt_of_le zero_lt_one hK) hpq, mul_div_assoc] using hb' |
| 358 | 358 | |
| 359 | -theorem weightedJet_integrable (square : Bool) (n : ℕ) (ν : ℝ) : | |
| 360 | - IntegrableOn (weightedJet W square h K q n ν) (Ioi K) := | |
| 361 | - chain_integrable (weightedJet_measurable hh hK hW square) | |
| 362 | - (weightedJet_dominated hh hK hB hweight hpq square) n ν | |
| 363 | - | |
| 364 | -theorem weightedDebtJet_hasDerivAt (square : Bool) (n : ℕ) (ν : ℝ) : | |
| 365 | - HasDerivAt (weightedDebtJet W square h K q n) | |
| 366 | - (weightedDebtJet W square h K q (n + 1) ν) ν := | |
| 367 | - integral_chain_hasDerivAt (weightedJet_derivative hh square) | |
| 368 | - (weightedJet_measurable hh hK hW square) | |
| 369 | - (weightedJet_dominated hh hK hB hweight hpq square) n ν | |
| 370 | - | |
| 371 | 359 | theorem weightedDebtJet_eq_iteratedDeriv (square : Bool) (n : ℕ) (ν : ℝ) : |
| 372 | 360 | iteratedDeriv n (weightedDebtJet W square h K q 0) ν = |
| 373 | 361 | weightedDebtJet W square h K q n ν := |
| @@ -396,14 +384,6 @@ theorem nuConstant_nonneg (d : TailData) {L : ℝ} (hL : 0 ≤ L) (square : Bool | ||
| 396 | 384 | exact div_nonneg (mul_nonneg (tailSize_nonneg d square) |
| 397 | 385 | (editBound_nonneg square d.h hL n)) (by linarith) |
| 398 | 386 | |
| 399 | -theorem nuDebtJet_hasDerivAt (d : TailData) {K : ℝ} (hK : 1 ≤ K) (square : Bool) | |
| 400 | - {q : ℝ} (hq : tailDecay d square + q < 0) (n : ℕ) (ν : ℝ) : | |
| 401 | - HasDerivAt (nuDebtJet d K square q n) (nuDebtJet d K square q (n + 1) ν) ν := | |
| 402 | - weightedDebtJet_hasDerivAt d.h_pos hK | |
| 403 | - (tailWeight_continuousOn d (lt_of_lt_of_le zero_lt_one hK) square) | |
| 404 | - (tailSize_nonneg d square) (tailWeight_bound d (lt_of_lt_of_le zero_lt_one hK) square) | |
| 405 | - hq square n ν | |
| 406 | - | |
| 407 | 387 | theorem nuDebt_contDiff (d : TailData) {K : ℝ} (hK : 1 ≤ K) (square : Bool) |
| 408 | 388 | {q : ℝ} (hq : tailDecay d square + q < 0) : ContDiff ℝ ∞ (nuDebtJet d K square q 0) := |
| 409 | 389 | weightedDebt_contDiff d.h_pos hK |
| @@ -519,68 +499,6 @@ theorem physicalAngular_eq_original (d : TailData) {K η : ℝ} (hK : 0 < K) | ||
| 519 | 499 | |
| 520 | 500 | /-! ## Exact radius rescaling and joint smoothness -/ |
| 521 | 501 | |
| 522 | -theorem correction_scale (h ν : ℝ) {K : ℝ} (hK : K ≠ 0) (X : ℝ) : | |
| 523 | - correction h K ν (K * X) = correction h 1 (ν / K) X := by | |
| 524 | - unfold correction switch HeatProfileExtension.scaledProfile | |
| 525 | - simp only [mul_div_cancel_left₀ X hK, div_one] | |
| 526 | - congr 2 | |
| 527 | - simp only [div_eq_mul_inv, mul_inv_rev] | |
| 528 | - ring_nf | |
| 529 | - | |
| 530 | -theorem tailWeight_scale (d : TailData) {K : ℝ} (hK : K ≠ 0) (square : Bool) (X : ℝ) : | |
| 531 | - tailWeight d K square (K * X) = tailWeight d 1 square X := by | |
| 532 | - cases square <;> simp only [tailWeight, Bool.false_eq_true, ite_false, ite_true, | |
| 533 | - powerTail, mul_div_cancel_left₀ X hK, div_one] | |
| 534 | - | |
| 535 | -theorem editJet_scale_zero (h ν : ℝ) {K : ℝ} (hK : K ≠ 0) (square : Bool) (X : ℝ) : | |
| 536 | - editJet square h K 0 ν (K * X) = editJet square h 1 0 (ν / K) X := by | |
| 537 | - cases square | |
| 538 | - · exact correction_scale h ν hK X | |
| 539 | - · simp only [editJet, ite_true, squareCorrectionJet_zero, multiplier, correction_scale h ν hK X] | |
| 540 | - | |
| 541 | -theorem weightedJet_scale_zero (d : TailData) {K : ℝ} (hK : 0 < K) | |
| 542 | - (square : Bool) (q ν : ℝ) {X : ℝ} (hX : 0 ≤ X) : | |
| 543 | - weightedJet (tailWeight d K square) square d.h K q 0 ν (K * X) = | |
| 544 | - K ^ q * weightedJet (tailWeight d 1 square) square d.h 1 q 0 (ν / K) X := by | |
| 545 | - unfold weightedJet | |
| 546 | - rw [Real.mul_rpow hK.le hX, tailWeight_scale d hK.ne', editJet_scale_zero d.h ν hK.ne'] | |
| 547 | - ring | |
| 548 | - | |
| 549 | -/-- A genuine change of variables in the improper integral gives all radius | |
| 550 | -dependence through an explicit power and the rescaled diffusion. -/ | |
| 551 | -theorem nuDebt_scale (d : TailData) {K : ℝ} (hK : 0 < K) | |
| 552 | - (square : Bool) (q ν : ℝ) : | |
| 553 | - nuDebtJet d K square q 0 ν = K ^ (q + 1) * nuDebtJet d 1 square q 0 (ν / K) := by | |
| 554 | - let g : ℝ → ℝ := weightedJet (tailWeight d K square) square d.h K q 0 ν | |
| 555 | - have hcv := integral_comp_mul_left_Ioi g 1 hK | |
| 556 | - simp only [mul_one, smul_eq_mul] at hcv | |
| 557 | - have hcv' : nuDebtJet d K square q 0 ν = K * ∫ X in Ioi 1, g (K * X) := by | |
| 558 | - rw [hcv, ← mul_assoc, mul_inv_cancel₀ hK.ne', one_mul] | |
| 559 | - rfl | |
| 560 | - rw [hcv'] | |
| 561 | - have heq : (∫ X in Ioi (1 : ℝ), g (K * X)) = | |
| 562 | - K ^ q * nuDebtJet d 1 square q 0 (ν / K) := by | |
| 563 | - unfold nuDebtJet weightedDebtJet | |
| 564 | - rw [← integral_const_mul] | |
| 565 | - apply setIntegral_congr_fun measurableSet_Ioi | |
| 566 | - intro X hX | |
| 567 | - exact weightedJet_scale_zero d hK square q ν (zero_le_one.trans hX.le) | |
| 568 | - rw [heq, Real.rpow_add_one hK.ne'] | |
| 569 | - ring | |
| 570 | - | |
| 571 | -theorem nuDebt_joint_contDiffOn (d : TailData) (square : Bool) {q : ℝ} | |
| 572 | - (hq : tailDecay d square + q < 0) : | |
| 573 | - ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => nuDebtJet d p.1 square q 0 p.2) | |
| 574 | - (Ioi 0 ×ˢ (univ : Set ℝ)) := by | |
| 575 | - have hp : ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => p.1 ^ (q + 1)) | |
| 576 | - (Ioi 0 ×ˢ (univ : Set ℝ)) := | |
| 577 | - contDiffOn_fst.rpow_const_of_ne (fun p hp => (show 0 < p.1 from hp.1).ne') | |
| 578 | - have hr : ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => p.2 / p.1) | |
| 579 | - (Ioi 0 ×ˢ (univ : Set ℝ)) := | |
| 580 | - contDiffOn_snd.div contDiffOn_fst (fun p hp => (show 0 < p.1 from hp.1).ne') | |
| 581 | - have hout := hp.mul ((nuDebt_contDiff d (K := 1) le_rfl square hq).comp_contDiffOn hr) | |
| 582 | - exact hout.congr (fun p hp => nuDebt_scale d hp.1 square q p.2) | |
| 583 | - | |
| 584 | 502 | noncomputable def etaDebt (d : TailData) (K : ℝ) (square : Bool) (q η : ℝ) : ℝ := |
| 585 | 503 | nuDebtJet d K square q 0 (diffusion η) |
| 586 | 504 | |
| @@ -588,47 +506,10 @@ theorem etaDebt_contDiff (d : TailData) {K : ℝ} (hK : 1 ≤ K) (square : Bool) | ||
| 588 | 506 | {q : ℝ} (hq : tailDecay d square + q < 0) : ContDiff ℝ ∞ (etaDebt d K square q) := |
| 589 | 507 | (nuDebt_contDiff d hK square hq).comp diffusion_contDiff |
| 590 | 508 | |
| 591 | -theorem etaDebt_hasDerivAt (d : TailData) {K : ℝ} (hK : 1 ≤ K) (square : Bool) | |
| 592 | - {q : ℝ} (hq : tailDecay d square + q < 0) (η : ℝ) : | |
| 593 | - HasDerivAt (etaDebt d K square q) | |
| 594 | - (nuDebtJet d K square q 1 (diffusion η) * (-2 * η)) η := | |
| 595 | - (nuDebtJet_hasDerivAt d hK square hq 0 (diffusion η)).comp η (diffusion_hasDerivAt η) | |
| 596 | - | |
| 597 | -theorem etaDebt_joint_contDiffOn (d : TailData) (square : Bool) {q : ℝ} | |
| 598 | - (hq : tailDecay d square + q < 0) : | |
| 599 | - ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => etaDebt d p.1 square q p.2) | |
| 600 | - (Ioi 0 ×ˢ (univ : Set ℝ)) := by | |
| 601 | - exact (nuDebt_joint_contDiffOn d square hq).comp | |
| 602 | - (contDiffOn_fst.prodMk (diffusion_contDiff.comp_contDiffOn contDiffOn_snd)) | |
| 603 | - (fun p hp => ⟨hp.1, mem_univ _⟩) | |
| 604 | - | |
| 605 | -theorem physicalPressure_joint_contDiffOn (d : TailData) : | |
| 606 | - ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => physicalPressure d p.1 p.2) | |
| 607 | - (Ioi 0 ×ˢ (univ : Set ℝ)) := | |
| 608 | - (etaDebt_joint_contDiffOn d true (ParametricHeatTail.pressure_decay d)).congr | |
| 609 | - (fun p hp => physicalPressure_eq d hp.1 p.2) | |
| 610 | - | |
| 611 | -theorem physicalEnergy_joint_contDiffOn (d : TailData) : | |
| 612 | - ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => physicalEnergy d p.1 p.2) | |
| 613 | - (Ioi 0 ×ˢ (univ : Set ℝ)) := | |
| 614 | - (etaDebt_joint_contDiffOn d true (ParametricHeatTail.energy_decay d)).congr | |
| 615 | - (fun p hp => physicalEnergy_eq d hp.1 p.2) | |
| 616 | - | |
| 617 | -theorem physicalAngular_joint_contDiffOn (d : TailData) : | |
| 618 | - ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => physicalAngular d p.1 p.2) | |
| 619 | - (Ioi 0 ×ˢ (univ : Set ℝ)) := | |
| 620 | - (contDiffOn_const.mul (etaDebt_joint_contDiffOn d false (ParametricHeatTail.angular_decay d))).congr | |
| 621 | - (fun p hp => physicalAngular_eq d hp.1 p.2) | |
| 622 | - | |
| 623 | 509 | /-! ## Uniform estimates on a fixed enlarged physical band -/ |
| 624 | 510 | |
| 625 | 511 | noncomputable def enlargedBand : Set ℝ := Icc (-(3 / 2 : ℝ)) (3 / 2) |
| 626 | 512 | |
| 627 | -theorem physicalBand_subset_enlargedBand : Icc (-1 : ℝ) 1 ⊆ enlargedBand := by | |
| 628 | - intro η hη | |
| 629 | - change -(3 / 2 : ℝ) ≤ η ∧ η ≤ 3 / 2 | |
| 630 | - constructor <;> linarith [hη.1, hη.2] | |
| 631 | - | |
| 632 | 513 | theorem enlargedBand_diffusion_bound {η : ℝ} (hη : η ∈ enlargedBand) : |diffusion η| ≤ 3 := by |
| 633 | 514 | have hη' : -(3 / 2 : ℝ) ≤ η ∧ η ≤ 3 / 2 := hη |
| 634 | 515 | have hp : 0 ≤ (3 / 2 - η) * (3 / 2 + η) := |
| @@ -999,34 +880,12 @@ theorem etaIntegrandJet_dominated (d : TailData) {K : ℝ} (hK : 1 ≤ K) | ||
| 999 | 880 | · intro i hi _ |
| 1000 | 881 | exact diffusion_iterated_bound hL.le hη i hi |
| 1001 | 882 | |
| 1002 | -theorem etaIntegrandJet_derivative (d : TailData) (K : ℝ) (square : Bool) (q : ℝ) : | |
| 1003 | - ∀ᵐ X ∂volume.restrict (Ioi K), ∀ n η, | |
| 1004 | - HasDerivAt (fun θ => etaIntegrandJet d K square q n θ X) | |
| 1005 | - (etaIntegrandJet d K square q (n + 1) η X) η := by | |
| 1006 | - apply Eventually.of_forall | |
| 1007 | - intro X n η | |
| 1008 | - have hc := (weightedJet_zero_contDiff d.h_pos (tailWeight d K square) K q X square).comp | |
| 1009 | - diffusion_contDiff | |
| 1010 | - have hd := hc.differentiable_iteratedDeriv n | |
| 1011 | - (ENat.natCast_lt_of_coe_top_le_withTop le_rfl n) η | |
| 1012 | - simpa only [etaIntegrandJet, iteratedDeriv_succ, Function.comp_def] using hd.hasDerivAt | |
| 1013 | - | |
| 1014 | 883 | theorem etaIntegrandJet_integrable (d : TailData) {K : ℝ} (hK : 1 ≤ K) |
| 1015 | 884 | (square : Bool) {q : ℝ} (hq : tailDecay d square + q < 0) (n : ℕ) (η : ℝ) : |
| 1016 | 885 | IntegrableOn (etaIntegrandJet d K square q n η) (Ioi K) := |
| 1017 | 886 | chain_integrable (etaIntegrandJet_measurable d hK square q) |
| 1018 | 887 | (etaIntegrandJet_dominated d hK square hq) n η |
| 1019 | 888 | |
| 1020 | -/-- Every genuine eta derivative of the improper debt is the integral of | |
| 1021 | -the same genuine derivative of its integrand. -/ | |
| 1022 | -theorem etaDebt_derivative_integral (d : TailData) {K : ℝ} (hK : 1 ≤ K) | |
| 1023 | - (square : Bool) {q : ℝ} (hq : tailDecay d square + q < 0) (n : ℕ) (η : ℝ) : | |
| 1024 | - iteratedDeriv n (etaDebt d K square q) η = | |
| 1025 | - ∫ X in Ioi K, etaIntegrandJet d K square q n η X := | |
| 1026 | - iteratedDeriv_integral_chain (etaIntegrandJet_derivative d K square q) | |
| 1027 | - (etaIntegrandJet_measurable d hK square q) | |
| 1028 | - (etaIntegrandJet_dominated d hK square hq) n η | |
| 1029 | - | |
| 1030 | 889 | theorem pressure_integrand_eq (d : TailData) {K X : ℝ} (hK : 0 < K) (hX : K < X) (η : ℝ) : |
| 1031 | 890 | squareChange (outgoingProfile d K η) d.h (diffusion η) K X / X = |
| 1032 | 891 | weightedJet (tailWeight d K true) true d.h K (-1) 0 (diffusion η) X := by |
| @@ -1074,61 +933,6 @@ theorem physical_debts_integrable (d : TailData) {K : ℝ} (hK : 1 ≤ K) (η : | ||
| 1074 | 933 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with X hX |
| 1075 | 934 | exact (angular_integrand_eq d hKp hX η).symm |
| 1076 | 935 | |
| 1077 | -/-- Differentiation under the literal pressure-debt improper integral. -/ | |
| 1078 | -theorem physicalPressure_derivative_integral (d : TailData) {K : ℝ} (hK : 1 ≤ K) (n : ℕ) (η : ℝ) : | |
| 1079 | - iteratedDeriv n (physicalPressure d K) η = | |
| 1080 | - ∫ X in Ioi K, iteratedDeriv n | |
| 1081 | - (fun θ => squareChange (outgoingProfile d K θ) d.h (diffusion θ) K X / X) η := by | |
| 1082 | - have hKp : 0 < K := lt_of_lt_of_le zero_lt_one hK | |
| 1083 | - rw [show physicalPressure d K = etaDebt d K true (-1) from funext (physicalPressure_eq d hKp), | |
| 1084 | - etaDebt_derivative_integral d hK true (ParametricHeatTail.pressure_decay d)] | |
| 1085 | - apply setIntegral_congr_fun measurableSet_Ioi | |
| 1086 | - intro X hX | |
| 1087 | - dsimp only | |
| 1088 | - rw [show (fun θ => squareChange (outgoingProfile d K θ) d.h (diffusion θ) K X / X) = | |
| 1089 | - (fun θ => weightedJet (tailWeight d K true) true d.h K (-1) 0 (diffusion θ) X) from | |
| 1090 | - funext (pressure_integrand_eq d hKp hX)] | |
| 1091 | - rfl | |
| 1092 | - | |
| 1093 | -/-- Differentiation under the literal energy-debt improper integral. -/ | |
| 1094 | -theorem physicalEnergy_derivative_integral (d : TailData) {K : ℝ} (hK : 1 ≤ K) (n : ℕ) (η : ℝ) : | |
| 1095 | - iteratedDeriv n (physicalEnergy d K) η = | |
| 1096 | - ∫ X in Ioi K, iteratedDeriv n | |
| 1097 | - (fun θ => squareChange (outgoingProfile d K θ) d.h (diffusion θ) K X) η := by | |
| 1098 | - have hKp : 0 < K := lt_of_lt_of_le zero_lt_one hK | |
| 1099 | - rw [show physicalEnergy d K = etaDebt d K true 0 from funext (physicalEnergy_eq d hKp), | |
| 1100 | - etaDebt_derivative_integral d hK true (ParametricHeatTail.energy_decay d)] | |
| 1101 | - apply setIntegral_congr_fun measurableSet_Ioi | |
| 1102 | - intro X hX | |
| 1103 | - dsimp only | |
| 1104 | - rw [show (fun θ => squareChange (outgoingProfile d K θ) d.h (diffusion θ) K X) = | |
| 1105 | - (fun θ => weightedJet (tailWeight d K true) true d.h K 0 0 (diffusion θ) X) from | |
| 1106 | - funext (energy_integrand_eq d hKp hX)] | |
| 1107 | - rfl | |
| 1108 | - | |
| 1109 | -/-- Differentiation under the literal angular-debt improper integral. -/ | |
| 1110 | -theorem physicalAngular_derivative_integral (d : TailData) {K : ℝ} (hK : 1 ≤ K) (n : ℕ) (η : ℝ) : | |
| 1111 | - iteratedDeriv n (physicalAngular d K) η = | |
| 1112 | - ∫ X in Ioi K, iteratedDeriv n | |
| 1113 | - (fun θ => Real.sqrt (2 * X) * change (outgoingProfile d K θ) d.h (diffusion θ) K X) η := by | |
| 1114 | - have hKp : 0 < K := lt_of_lt_of_le zero_lt_one hK | |
| 1115 | - rw [show physicalAngular d K = (fun θ => Real.sqrt 2 * etaDebt d K false (1 / 2) θ) from | |
| 1116 | - funext (physicalAngular_eq d hKp), | |
| 1117 | - iteratedDeriv_const_mul _ ((etaDebt_contDiff d hK false (ParametricHeatTail.angular_decay d)).of_le | |
| 1118 | - (ENat.natCast_le_of_coe_top_le_withTop le_rfl n)).contDiffAt, | |
| 1119 | - etaDebt_derivative_integral d hK false (ParametricHeatTail.angular_decay d), ← integral_const_mul] | |
| 1120 | - apply setIntegral_congr_fun measurableSet_Ioi | |
| 1121 | - intro X hX | |
| 1122 | - dsimp only | |
| 1123 | - rw [show (fun θ => Real.sqrt (2 * X) * change (outgoingProfile d K θ) d.h (diffusion θ) K X) = | |
| 1124 | - (fun θ => Real.sqrt 2 * weightedJet (tailWeight d K false) false d.h K (1 / 2) 0 (diffusion θ) X) from | |
| 1125 | - funext (angular_integrand_eq d hKp hX)] | |
| 1126 | - have hc := (weightedJet_zero_contDiff d.h_pos (tailWeight d K false) K (1 / 2) X false).comp | |
| 1127 | - diffusion_contDiff | |
| 1128 | - simpa only [Function.comp_def, etaIntegrandJet] using | |
| 1129 | - (iteratedDeriv_const_mul (Real.sqrt 2) (hc.of_le | |
| 1130 | - (ENat.natCast_le_of_coe_top_le_withTop le_rfl n)).contDiffAt).symm | |
| 1131 | - | |
| 1132 | 936 | theorem physicalDebt_eq_original (d : TailData) {K η : ℝ} (hK : 0 < K) |
| 1133 | 937 | (hη : η ∈ Icc (-1 : ℝ) 1) : |
| 1134 | 938 | physicalDebt d K η = ParametricTerminalCompensation.physicalDebt d K η := by |
| @@ -1136,12 +940,6 @@ theorem physicalDebt_eq_original (d : TailData) {K η : ℝ} (hK : 0 < K) | ||
| 1136 | 940 | physicalPressure_eq_original d hK hη, physicalEnergy_eq_original d hK hη, |
| 1137 | 941 | physicalAngular_eq_original d hK hη] |
| 1138 | 942 | |
| 1139 | -theorem normalizedDebt_eq_original (d : TailData) {K η : ℝ} (hK : 0 < K) | |
| 1140 | - (hη : η ∈ Icc (-1 : ℝ) 1) : | |
| 1141 | - normalizedDebt d K η = | |
| 1142 | - TerminalCompensation.scaledDebt K (ParametricTerminalCompensation.physicalDebt d K η) := by | |
| 1143 | - rw [normalizedDebt, physicalDebt_eq_original d hK hη] | |
| 1144 | - | |
| 1145 | 943 | theorem enlargedBand_isCompact : IsCompact enlargedBand := isCompact_Icc |
| 1146 | 944 | |
| 1147 | 945 | theorem enlargedBand_uniqueDiffOn : UniqueDiffOn ℝ enlargedBand := |
| @@ -1170,39 +968,4 @@ theorem exists_normalized_C1_within_bounds (d : TailData) : | ||
| 1170 | 968 | rw [normalizedDebt_derivWithin d hK hη] |
| 1171 | 969 | exact hb K hK η hη |
| 1172 | 970 | |
| 1173 | -theorem physicalEdit_joint_contDiffOn (d : TailData) {K : ℝ} (hK : 0 < K) : | |
| 1174 | - ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => physicalEdit d K p.2 p.1) | |
| 1175 | - (Ioi 0 ×ˢ (univ : Set ℝ)) := by | |
| 1176 | - have hs : ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => switch K p.1) | |
| 1177 | - (Ioi 0 ×ˢ (univ : Set ℝ)) := | |
| 1178 | - (switch_contDiffOn hK).comp contDiffOn_fst (fun _ hp => hp.1) | |
| 1179 | - have hH : ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => | |
| 1180 | - HeatProfileExtension.scaledProfile (1 + d.h) p.1 (diffusion p.2)) | |
| 1181 | - (Ioi 0 ×ˢ (univ : Set ℝ)) := | |
| 1182 | - HeatProfileExtension.physicalProfile_contDiffOn (a := 1 + d.h) (by linarith [d.h_pos]) | |
| 1183 | - exact (outgoingProfile_joint_contDiffOn d hK).mul | |
| 1184 | - (contDiffOn_const.add (hs.mul (hH.sub contDiffOn_const))) | |
| 1185 | - | |
| 1186 | -theorem physicalEdit_eq_original (d : TailData) (K : ℝ) {η X : ℝ} | |
| 1187 | - (hη : η ∈ Icc (-1 : ℝ) 1) (hX : 0 < X) : | |
| 1188 | - physicalEdit d K η X = ParametricHeatTail.physicalEdit d K η X := | |
| 1189 | - edit_eq_original (outgoingProfile d K η) d.h (ParametricHeatTail.diffusion_mem hη).1 hX | |
| 1190 | - | |
| 1191 | -theorem normalizedDebt_joint_contDiffOn (d : TailData) : | |
| 1192 | - ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => normalizedDebt d p.1 p.2) | |
| 1193 | - (Ioi 0 ×ˢ (univ : Set ℝ)) := by | |
| 1194 | - have hroot : ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => Real.sqrt (2 * p.1)) | |
| 1195 | - (Ioi 0 ×ˢ (univ : Set ℝ)) := | |
| 1196 | - (contDiffOn_const.mul contDiffOn_fst).sqrt | |
| 1197 | - (fun p hp => (mul_pos (by norm_num) (show 0 < p.1 from hp.1)).ne') | |
| 1198 | - apply contDiffOn_pi.mpr | |
| 1199 | - intro j | |
| 1200 | - fin_cases j | |
| 1201 | - · exact physicalPressure_joint_contDiffOn d | |
| 1202 | - · exact (physicalEnergy_joint_contDiffOn d).div contDiffOn_fst | |
| 1203 | - (fun p hp => (show 0 < p.1 from hp.1).ne') | |
| 1204 | - · exact (physicalAngular_joint_contDiffOn d).div (contDiffOn_fst.mul hroot) | |
| 1205 | - (fun p hp => mul_ne_zero (show p.1 ≠ 0 from (show 0 < p.1 from hp.1).ne') | |
| 1206 | - (Real.sqrt_pos.mpr (mul_pos (by norm_num) (show 0 < p.1 from hp.1))).ne') | |
| 1207 | - | |
| 1208 | 971 | end NavierStokes.ExtendedHeatDebts |
+0 −332 NavierStokes/ExtendedHeatedOutgoing.lean View file
| @@ -203,18 +203,6 @@ theorem E_eq_physical (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta X : ℝ) | ||
| 203 | 203 | (show (X, eta) ∈ HeatedOutgoing.domain from ⟨hX, heta⟩)] |
| 204 | 204 | rfl |
| 205 | 205 | |
| 206 | -theorem H_eq_physical (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta X : ℝ) | |
| 207 | - (heta : eta ∈ HeatedOutgoing.parameterDomain) (hX : 0 < X) : | |
| 208 | - H F XR c (X, eta) = HeatedOutgoing.H F XR c (X, eta) := by | |
| 209 | - rw [H, HeatedOutgoing.H, E_eq_physical F XR c eta X heta hX] | |
| 210 | - | |
| 211 | -theorem Pi_eq_physical (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta X : ℝ) | |
| 212 | - (heta : eta ∈ HeatedOutgoing.parameterDomain) (hX : 0 ≤ X) : | |
| 213 | - Pi F XR c (X, eta) = HeatedOutgoing.Pi F XR c (X, eta) := by | |
| 214 | - unfold Pi HeatedOutgoing.Pi canonicalKernel HeatedOutgoing.canonicalKernel | |
| 215 | - congr 1 | |
| 216 | - exact setIntegral_congr_fun measurableSet_Ioi (fun u hu => by rw [E_eq_physical F XR c eta u heta (hX.trans_lt hu)]) | |
| 217 | - | |
| 218 | 206 | theorem heatE_eq_edit (F : Profile) (XR eta X : ℝ) : |
| 219 | 207 | heatE F XR (X, eta) = ExtendedHeatDebts.edit (fun u => OutgoingDilation.E F XR (u, eta)) |
| 220 | 208 | F.data.h (ParametricHeatTail.diffusion eta) (switchRadius F XR) X := rfl |
| @@ -236,12 +224,6 @@ theorem heatE_after (F : Profile) (XR eta X : ℝ) (hXR : 0 < XR) (hle : switchR | ||
| 236 | 224 | dsimp only |
| 237 | 225 | rw [OutgoingDilation.E_eq_clean_switch_profile F XR eta X hXR hle] |
| 238 | 226 | |
| 239 | -theorem E_after_switch (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta X : ℝ) (hXR : 0 < XR) | |
| 240 | - (hle : switchRadius F XR ≤ X) : | |
| 241 | - E F XR c (X, eta) = ExtendedHeatDebts.physicalEdit F.data (switchRadius F XR) eta X := by | |
| 242 | - rw [E, HeatedOutgoing.patchIncrement, OutgoingDilation.correction_zero_after_switch F XR X hXR (c eta) hle, | |
| 243 | - mul_zero, add_zero, heatE_after F XR eta X hXR hle] | |
| 244 | - | |
| 245 | 227 | theorem E_before_patch (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta X : ℝ) |
| 246 | 228 | (hXR : 0 < XR) (hX : 0 < X) (hp : X ≤ patchRadius F XR) : |
| 247 | 229 | E F XR c (X, eta) = OutgoingDilation.E F XR (X, eta) := by |
| @@ -382,49 +364,6 @@ theorem kernel_decomposition (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta X | ||
| 382 | 364 | (E F XR c (X, eta) ^ 2 - OutgoingDilation.E F XR (X, eta) ^ 2) / X |
| 383 | 365 | ring |
| 384 | 366 | |
| 385 | -theorem energy_decomposition (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta X : ℝ) : | |
| 386 | - energyDensity F XR c eta X = OutgoingDilation.energyDensity F XR eta X - changeRow F XR c eta 1 X / 2 := by | |
| 387 | - change OutgoingDilation.U F XR (X, eta) ^ 2 - E F XR c (X, eta) ^ 2 / 2 = | |
| 388 | - OutgoingDilation.U F XR (X, eta) ^ 2 - OutgoingDilation.E F XR (X, eta) ^ 2 / 2 - | |
| 389 | - (E F XR c (X, eta) ^ 2 - OutgoingDilation.E F XR (X, eta) ^ 2) / 2 | |
| 390 | - ring | |
| 391 | - | |
| 392 | -theorem renormalized_decomposition (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta X : ℝ) : | |
| 393 | - H F XR c (X, eta) - OutgoingDilation.powerH F XR X = | |
| 394 | - (OutgoingDilation.H F XR (X, eta) - OutgoingDilation.powerH F XR X) + changeRow F XR c eta 2 X := by | |
| 395 | - change Real.sqrt (2 * X) * E F XR c (X, eta) - _ = | |
| 396 | - (Real.sqrt (2 * X) * OutgoingDilation.E F XR (X, eta) - _) + | |
| 397 | - Real.sqrt (2 * X) * (E F XR c (X, eta) - OutgoingDilation.E F XR (X, eta)) | |
| 398 | - ring | |
| 399 | - | |
| 400 | -theorem E_times_U (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta X : ℝ) | |
| 401 | - (hXR : 0 < XR) (hX : 0 < X) : | |
| 402 | - E F XR c (X, eta) * U F XR (X, eta) = OutgoingDilation.E F XR (X, eta) * U F XR (X, eta) := by | |
| 403 | - have hh : heatE F XR (X, eta) * U F XR (X, eta) = OutgoingDilation.E F XR (X, eta) * U F XR (X, eta) := by | |
| 404 | - by_cases hle : X ≤ switchRadius F XR | |
| 405 | - · rw [heatE_before F XR eta X hXR hX hle] | |
| 406 | - · have hu : U F XR (X, eta) = 0 := HeatedOutgoing.U_after_switch F XR eta X hXR (lt_of_not_ge hle).le | |
| 407 | - rw [hu, mul_zero, mul_zero] | |
| 408 | - have hp : HeatedOutgoing.patchIncrement F XR c (X, eta) * U F XR (X, eta) = 0 := by | |
| 409 | - rw [HeatedOutgoing.patchIncrement, mul_assoc] | |
| 410 | - change shapedPatchAmplitude F eta * | |
| 411 | - (TerminalCompensation.correction compensationPatch (c eta) (X / patchRadius F XR) * | |
| 412 | - OutgoingDilation.U F XR (X, eta)) = 0 | |
| 413 | - rw [OutgoingDilation.correction_times_U_zero F XR eta X hXR, mul_zero] | |
| 414 | - rw [E, add_mul, hh, hp, add_zero] | |
| 415 | - | |
| 416 | -theorem J_integrand_eq (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta X : ℝ) | |
| 417 | - (hXR : 0 < XR) (hX : 0 < X) : | |
| 418 | - H F XR c (X, eta) * U F XR (X, eta) = OutgoingDilation.H F XR (X, eta) * OutgoingDilation.U F XR (X, eta) := by | |
| 419 | - simpa only [H, OutgoingDilation.H, U, HeatedOutgoing.U, mul_assoc] using | |
| 420 | - congrArg (fun z => Real.sqrt (2 * X) * z) (E_times_U F XR c eta X hXR hX) | |
| 421 | - | |
| 422 | -theorem M_unchanged (F : Profile) (XR eta X : ℝ) : M F XR eta X = OutgoingDilation.M F XR eta X := rfl | |
| 423 | - | |
| 424 | -theorem J_unchanged (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta X : ℝ) (hXR : 0 < XR) : | |
| 425 | - J F XR c eta X = OutgoingDilation.J F XR eta X := | |
| 426 | - setIntegral_congr_fun measurableSet_Ioc (fun u hu => J_integrand_eq F XR c eta u hXR hu.1) | |
| 427 | - | |
| 428 | 367 | theorem canonicalKernel_comp_exp (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta y : ℝ) : |
| 429 | 368 | |Real.exp y| • canonicalKernel F XR c eta (Real.exp y) = E F XR c (Real.exp y, eta) ^ 2 := by |
| 430 | 369 | simp only [abs_of_pos (Real.exp_pos y), smul_eq_mul, canonicalKernel] |
| @@ -449,68 +388,6 @@ theorem canonicalKernel_integrable (eta : ℝ) : | ||
| 449 | 388 | rw [funext (kernel_decomposition F XR w.coefficients eta)] |
| 450 | 389 | exact (OutgoingDilation.canonicalKernel_integrable F XR eta w.radius_pos).add (w.changeRow_integrable eta 0) |
| 451 | 390 | |
| 452 | -theorem pressure_integral_unchanged (eta : ℝ) (heta : eta ∈ parameterDomain) : | |
| 453 | - (∫ X in Ioi 0, canonicalKernel F XR w.coefficients eta X) = | |
| 454 | - ∫ X in Ioi 0, OutgoingDilation.canonicalKernel F XR eta X := by | |
| 455 | - simp_rw [kernel_decomposition] | |
| 456 | - rw [integral_add (OutgoingDilation.canonicalKernel_integrable F XR eta w.radius_pos) | |
| 457 | - (w.changeRow_integrable eta 0), w.changeRow_integral_zero eta 0 heta, add_zero] | |
| 458 | - | |
| 459 | -theorem axisDatum_eq (eta : ℝ) (heta : eta ∈ parameterDomain) : | |
| 460 | - axisDatum F XR w.coefficients eta = F.axisDatum eta := by | |
| 461 | - rw [axisDatum, w.pressure_integral_unchanged eta heta] | |
| 462 | - change OutgoingDilation.axisDatum F XR eta = F.axisDatum eta | |
| 463 | - rw [OutgoingDilation.axisDatum_unchanged F XR w.radius_pos] | |
| 464 | - | |
| 465 | -theorem energy_integrable (eta : ℝ) : IntegrableOn (energyDensity F XR w.coefficients eta) (Ioi 0) := by | |
| 466 | - rw [funext (energy_decomposition F XR w.coefficients eta)] | |
| 467 | - exact (OutgoingDilation.energy_integrable F XR eta w.radius_pos).sub ((w.changeRow_integrable eta 1).div_const 2) | |
| 468 | - | |
| 469 | -theorem totalS_eq (eta : ℝ) (heta : eta ∈ parameterDomain) : | |
| 470 | - totalS F XR w.coefficients eta = OutgoingDilation.totalS F XR eta := by | |
| 471 | - unfold totalS OutgoingDilation.totalS | |
| 472 | - simp_rw [energy_decomposition] | |
| 473 | - rw [integral_sub (OutgoingDilation.energy_integrable F XR eta w.radius_pos) | |
| 474 | - ((w.changeRow_integrable eta 1).div_const 2), integral_div, | |
| 475 | - w.changeRow_integral_zero eta 1 heta, zero_div, sub_zero] | |
| 476 | - | |
| 477 | -theorem renormalized_integrable (eta : ℝ) : | |
| 478 | - IntegrableOn (fun X => H F XR w.coefficients (X, eta) - OutgoingDilation.powerH F XR X) (Ioi 0) := by | |
| 479 | - rw [funext (renormalized_decomposition F XR w.coefficients eta)] | |
| 480 | - exact (OutgoingDilation.renormalized_integrable F XR eta w.radius_pos).add (w.changeRow_integrable eta 2) | |
| 481 | - | |
| 482 | -theorem renormalized_zero (eta : ℝ) (heta : eta ∈ parameterDomain) : | |
| 483 | - (∫ X in Ioi 0, H F XR w.coefficients (X, eta) - OutgoingDilation.powerH F XR X) = 0 := by | |
| 484 | - simp_rw [renormalized_decomposition] | |
| 485 | - rw [integral_add (OutgoingDilation.renormalized_integrable F XR eta w.radius_pos) | |
| 486 | - (w.changeRow_integrable eta 2), w.changeRow_integral_zero eta 2 heta, add_zero] | |
| 487 | - exact OutgoingDilation.renormalized_zero F XR eta w.radius_pos | |
| 488 | - | |
| 489 | -include w in | |
| 490 | -theorem mass_integrable (eta : ℝ) : IntegrableOn (fun X => U F XR (X, eta)) (Ioi 0) := | |
| 491 | - OutgoingDilation.mass_integrable F XR eta w.radius_pos | |
| 492 | - | |
| 493 | -theorem angular_integrable (eta : ℝ) : | |
| 494 | - IntegrableOn (fun X => H F XR w.coefficients (X, eta) * U F XR (X, eta)) (Ioi 0) := | |
| 495 | - IntegrableOn.congr_fun (OutgoingDilation.angular_integrable F XR eta w.radius_pos) | |
| 496 | - (fun X hX => (J_integrand_eq F XR w.coefficients eta X w.radius_pos hX).symm) measurableSet_Ioi | |
| 497 | - | |
| 498 | -include w in | |
| 499 | -theorem mass_zero (eta : ℝ) : (∫ X in Ioi 0, U F XR (X, eta)) = 0 := | |
| 500 | - OutgoingDilation.mass_total_zero F XR eta w.radius_pos | |
| 501 | - | |
| 502 | -theorem angular_zero (eta : ℝ) : | |
| 503 | - (∫ X in Ioi 0, H F XR w.coefficients (X, eta) * U F XR (X, eta)) = 0 := by | |
| 504 | - calc | |
| 505 | - _ = ∫ X in Ioi 0, OutgoingDilation.H F XR (X, eta) * OutgoingDilation.U F XR (X, eta) := | |
| 506 | - setIntegral_congr_fun measurableSet_Ioi (fun X hX => J_integrand_eq F XR w.coefficients eta X w.radius_pos hX) | |
| 507 | - _ = 0 := OutgoingDilation.angular_total_zero F XR eta w.radius_pos | |
| 508 | - | |
| 509 | -theorem after_pulse (eta X : ℝ) (hX : 0 < X) (hfar : OutgoingDilation.pulseEndRadius F XR ≤ X) : | |
| 510 | - U F XR (X, eta) = 0 ∧ M F XR eta X = 0 ∧ J F XR w.coefficients eta X = 0 := by | |
| 511 | - rw [M_unchanged, J_unchanged F XR w.coefficients eta X w.radius_pos] | |
| 512 | - exact OutgoingDilation.after_pulse F XR eta X w.radius_pos hX hfar | |
| 513 | - | |
| 514 | 391 | theorem Pi_before_patch (eta X : ℝ) (heta : eta ∈ parameterDomain) (hX : 0 < X) |
| 515 | 392 | (hpatch : X ≤ patchRadius F XR) : Pi F XR w.coefficients (X, eta) = OutgoingDilation.Pi F XR (X, eta) := by |
| 516 | 393 | have hs : Ioi X ⊆ Ioi (0 : ℝ) := fun u hu => hX.trans hu |
| @@ -525,17 +402,6 @@ theorem Pi_before_patch (eta X : ℝ) (heta : eta ∈ parameterDomain) (hX : 0 < | ||
| 525 | 402 | rw [integral_add hb hi, hz, add_zero] |
| 526 | 403 | exact (OutgoingDilation.Pi_canonical F XR eta X w.radius_pos hX).symm |
| 527 | 404 | |
| 528 | -theorem ideal_prefix (eta X : ℝ) (heta : eta ∈ parameterDomain) (hX : 0 < X) (hX' : X ≤ XR) : | |
| 529 | - E F XR w.coefficients (X, eta) = F.data.core.P * OutgoingSchedule.shape eta * (X / XR) ^ (1 / 10 : ℝ) ∧ | |
| 530 | - U F XR (X, eta) = 4 * eta ∧ | |
| 531 | - Pi F XR w.coefficients (X, eta) = F.axisDatum eta + | |
| 532 | - (5 / 2) * F.data.core.P ^ 2 * OutgoingSchedule.shape eta ^ 2 * (X / XR) ^ (1 / 5 : ℝ) := by | |
| 533 | - have hp := hX'.trans (HeatedOutgoing.entrance_before_patch F XR w.radius_pos).le | |
| 534 | - rw [E_before_patch F XR w.coefficients eta X w.radius_pos hX hp, w.Pi_before_patch eta X heta hX hp] | |
| 535 | - have h := OutgoingDilation.ideal_prefix F XR eta X w.radius_pos hX hX' | |
| 536 | - rw [OutgoingDilation.axisDatum_unchanged F XR w.radius_pos] at h | |
| 537 | - exact h | |
| 538 | - | |
| 539 | 405 | theorem logE_square_integrable (eta : ℝ) : |
| 540 | 406 | Integrable (fun y => E F XR w.coefficients (Real.exp y, eta) ^ 2) := by |
| 541 | 407 | have hi := w.canonicalKernel_integrable eta |
| @@ -598,17 +464,6 @@ theorem fields_contDiffAt {p : ℝ × ℝ} (hp : p ∈ domain) : | ||
| 598 | 464 | (H_contDiffOn F XR w.radius_pos w.coefficients_contDiffOn).contDiffAt hn, |
| 599 | 465 | w.Pi_contDiffOn.contDiffAt hn⟩ |
| 600 | 466 | |
| 601 | -theorem Pi_tendsto_axis (eta : ℝ) (heta : eta ∈ parameterDomain) : | |
| 602 | - Tendsto (fun X => Pi F XR w.coefficients (X, eta)) (𝓝[>] (0 : ℝ)) (𝓝 (F.axisDatum eta)) := by | |
| 603 | - have he : (fun X => Pi F XR w.coefficients (X, eta)) =ᶠ[𝓝[>] (0 : ℝ)] | |
| 604 | - (fun X => OutgoingDilation.Pi F XR (X, eta)) := by | |
| 605 | - filter_upwards [self_mem_nhdsWithin, | |
| 606 | - mem_nhdsWithin_of_mem_nhds (Iio_mem_nhds (OutgoingDilation.patchRadius_pos F XR w.radius_pos))] with X hX hp | |
| 607 | - exact w.Pi_before_patch eta X heta hX hp.le | |
| 608 | - have ht := OutgoingDilation.Pi_tendsto_axis F XR eta w.radius_pos | |
| 609 | - rw [OutgoingDilation.axisDatum_unchanged F XR w.radius_pos] at ht | |
| 610 | - exact ht.congr' he.symm | |
| 611 | - | |
| 612 | 467 | end Witness |
| 613 | 468 | |
| 614 | 469 | /-! The original amplitude is a globally smooth clamped formula. Its actual |
| @@ -618,39 +473,15 @@ place the entire physical band strictly inside that set. -/ | ||
| 618 | 473 | noncomputable def energyDomain (F : Profile) : Set ℝ := |
| 619 | 474 | parameterDomain ∩ {eta | CorrectedPulseAmplitude.constantTerm F.data F.reset.coefficients eta < -(1 / 5)} |
| 620 | 475 | |
| 621 | -theorem energyDomain_open (F : Profile) : IsOpen (energyDomain F) := | |
| 622 | - parameterDomain_open.inter | |
| 623 | - (isOpen_lt (CorrectedPulseAmplitude.constantTerm_contDiff F.data F.reset.smooth).continuous continuous_const) | |
| 624 | - | |
| 625 | 476 | structure ScheduleBounds (F : Profile) : Prop where |
| 626 | 477 | coefficient_pos : 0 < F.coefficientBound |
| 627 | 478 | lambda_small : F.data.core.lam ≤ 1 / 120 |
| 628 | 479 | wait_eq : F.data.core.wait = 60 * Real.log (1 / F.data.core.lam) |
| 629 | 480 | scale_small : CorrectedPulseAmplitude.combinedScale F.data F.coefficientBound ≤ 1 / 1000 |
| 630 | 481 | |
| 631 | -theorem ScheduleBounds.constantTerm_bound {F : Profile} (b : ScheduleBounds F) | |
| 632 | - {eta : ℝ} (heta : eta ∈ HeatedOutgoing.parameterDomain) : | |
| 633 | - CorrectedPulseAmplitude.constantTerm F.data F.reset.coefficients eta ≤ -(23 / 100) := by | |
| 634 | - have he := HeatedOutgoing.parameter_sq_le_one heta | |
| 635 | - have ho := CorrectedPulseAmplitude.old_error_bounds F.data F.coefficientBound b.coefficient_pos | |
| 636 | - b.lambda_small b.wait_eq eta he | |
| 637 | - have hs := CorrectedPulseAmplitude.energyShift_bounds F.reset b.coefficient_pos eta he | |
| 638 | - exact (CorrectedPulseAmplitude.numerical_coefficient_bounds F.data F.reset.coefficients eta | |
| 639 | - (CorrectedPulseAmplitude.combinedScale F.data F.coefficientBound) he ho hs.1 b.scale_small).2.2.2.2 | |
| 640 | - | |
| 641 | -theorem ScheduleBounds.physicalBand_subset {F : Profile} (b : ScheduleBounds F) : | |
| 642 | - HeatedOutgoing.parameterDomain ⊆ energyDomain F := by | |
| 643 | - intro eta heta | |
| 644 | - exact ⟨NavierStokes.ExtendedHeatedOutgoing.physicalBand_subset heta, | |
| 645 | - lt_of_le_of_lt (b.constantTerm_bound heta) (by norm_num)⟩ | |
| 646 | - | |
| 647 | 482 | noncomputable def amplitudeBound (F : Profile) : ℝ := |
| 648 | 483 | 128 * CorrectedPulseAmplitude.combinedConstant F.data.core.P F.data.core.m F.coefficientBound |
| 649 | 484 | |
| 650 | -theorem ScheduleBounds.amplitudeBound_pos {F : Profile} (b : ScheduleBounds F) : | |
| 651 | - 0 < amplitudeBound F := mul_pos (by norm_num) | |
| 652 | - (CorrectedPulseAmplitude.combinedConstant_pos F.data.core.P_pos F.data.core.m _ b.coefficient_pos) | |
| 653 | - | |
| 654 | 485 | /-- The same reset and amplitude provide the original full specification, |
| 655 | 486 | with the stronger quantitative data retained for the open extension. -/ |
| 656 | 487 | theorem ScheduleBounds.specification {F : Profile} (b : ScheduleBounds F) : |
| @@ -694,84 +525,6 @@ theorem ScheduleBounds.specification {F : Profile} (b : ScheduleBounds F) : | ||
| 694 | 525 | rw [F.totalS_eq] |
| 695 | 526 | exact (hs.2 eta heta).2.2.1 |
| 696 | 527 | |
| 697 | -theorem base_energy_zero (F : Profile) (XR eta : ℝ) (hXR : 0 < XR) | |
| 698 | - (heta : eta ∈ energyDomain F) : OutgoingDilation.totalS F XR eta = 0 := by | |
| 699 | - rw [OutgoingDilation.totalS_scaling F XR eta hXR, F.totalS_eq] | |
| 700 | - have h := CorrectedPulseAmplitude.amplitude_totalEnergy_zero F.data F.reset.coefficients eta heta.2.le | |
| 701 | - change CorrectedPulseAmplitude.totalEnergy F.data F.reset.coefficients (F.amp eta) eta = 0 at h | |
| 702 | - rw [h, mul_zero] | |
| 703 | - | |
| 704 | -theorem Witness.energy_zero {F : Profile} {XR C : ℝ} (w : Witness F XR C) | |
| 705 | - (eta : ℝ) (heta : eta ∈ energyDomain F) : totalS F XR w.coefficients eta = 0 := by | |
| 706 | - rw [w.totalS_eq eta heta.1] | |
| 707 | - exact base_energy_zero F XR eta w.radius_pos heta | |
| 708 | - | |
| 709 | -/-- The quantitative schedule is chosen directly with one actual reset. | |
| 710 | -The amplitude attached to the resulting `Profile` is unchanged thereafter. -/ | |
| 711 | -theorem exists_scheduled_profile (P m : ℝ) (hP : 0 < P) (hm : 0 < m) : | |
| 712 | - ∃ lam B : ℝ, 0 < lam ∧ 0 < B ∧ ∀ h : ℝ, 0 < h → 2 * h < lam → | |
| 713 | - ∃ F : Profile, F.data.core.P = P ∧ F.data.core.m = m ∧ F.data.core.lam = lam ∧ | |
| 714 | - F.data.h = h ∧ ScheduleBounds F ∧ OutgoingProfile.Specification F B := by | |
| 715 | - obtain ⟨resetLam, K, hresetLam, hK, hreset⟩ := UniformAngularReset.exists_scheduled_reset | |
| 716 | - obtain ⟨delta, hdelta, hrate⟩ := PulseAmplitude.exists_rate_threshold | |
| 717 | - (CorrectedPulseAmplitude.combinedConstant P m K) | |
| 718 | - let lam₀ := min resetLam (min delta (1 / 120 : ℝ)) | |
| 719 | - have hlam₀ : 0 < lam₀ := lt_min hresetLam (lt_min hdelta (by norm_num)) | |
| 720 | - let lam := lam₀ / 2 | |
| 721 | - have hlam : 0 < lam := half_pos hlam₀ | |
| 722 | - have hlam₀' : lam < lam₀ := half_lt_self hlam₀ | |
| 723 | - have hreset' : lam < resetLam := hlam₀'.trans_le (min_le_left _ _) | |
| 724 | - have hdelta' : lam < delta := hlam₀'.trans_le ((min_le_right _ _).trans (min_le_left _ _)) | |
| 725 | - have hsmall : lam < 1 / 120 := hlam₀'.trans_le ((min_le_right _ _).trans (min_le_right _ _)) | |
| 726 | - refine ⟨lam, 128 * CorrectedPulseAmplitude.combinedConstant P m K, hlam, | |
| 727 | - mul_pos (by norm_num) (CorrectedPulseAmplitude.combinedConstant_pos hP m K hK), ?_⟩ | |
| 728 | - intro h hh htail | |
| 729 | - let d : OutgoingTail.TailData := ⟨OutgoingSchedule.paperParameters P m lam hP hm hlam (by linarith), h, hh, htail⟩ | |
| 730 | - obtain ⟨r⟩ := hreset d hreset' | |
| 731 | - let F : Profile := ⟨d, K, r⟩ | |
| 732 | - have b : ScheduleBounds F := { | |
| 733 | - coefficient_pos := hK | |
| 734 | - lambda_small := hsmall.le | |
| 735 | - wait_eq := rfl | |
| 736 | - scale_small := hrate lam hlam hdelta' } | |
| 737 | - exact ⟨F, rfl, rfl, rfl, rfl, b, b.specification⟩ | |
| 738 | - | |
| 739 | -theorem E_full_switch (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta X : ℝ) | |
| 740 | - (hXR : 0 < XR) (hX : 0 < X) | |
| 741 | - (hfull : 1 / 2 ≤ Real.log (X / switchRadius F XR) + 1 / 5) : | |
| 742 | - E F XR c (X, eta) = | |
| 743 | - (OutgoingDilation.carrierAmplitude F * (switchRadius F XR) ^ HeatTailEdit.exponent F.data.h) * | |
| 744 | - X ^ (-HeatTailEdit.exponent F.data.h) * HeatProfileExtension.physicalProfile (1 + F.data.h) X eta * | |
| 745 | - OutgoingTail.tailShape F.data (Real.log (X / switchRadius F XR) + 1 / 5) := by | |
| 746 | - have hK := OutgoingDilation.switchRadius_pos F XR hXR | |
| 747 | - rw [E_after_switch F XR c eta X hXR (HeatedOutgoing.full_switch_above_radius hK hX hfull)] | |
| 748 | - unfold ExtendedHeatDebts.physicalEdit ExtendedHeatDebts.edit ExtendedHeatDebts.multiplier ExtendedHeatDebts.correction | |
| 749 | - rw [HeatTailEdit.switch_one (by linarith), one_mul, add_sub_cancel, | |
| 750 | - HeatTailEdit.outgoingProfile_eq_powerTail_of_log F.data hK hX (by linarith)] | |
| 751 | - change HeatTailEdit.outgoingAmplitude F.data * (X / switchRadius F XR) ^ (-HeatTailEdit.exponent F.data.h) * | |
| 752 | - OutgoingTail.tailShape F.data (Real.log (X / switchRadius F XR) + 1 / 5) * | |
| 753 | - HeatProfileExtension.physicalProfile (1 + F.data.h) X eta = _ | |
| 754 | - rw [Real.div_rpow hX.le hK.le, Real.rpow_neg hK.le, div_inv_eq_mul] | |
| 755 | - unfold OutgoingDilation.carrierAmplitude | |
| 756 | - ring | |
| 757 | - | |
| 758 | -theorem E_eventual_extended_heat (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta X : ℝ) | |
| 759 | - (hXR : 0 < XR) (hX : 0 < X) | |
| 760 | - (hlate : 3 ≤ Real.log (X / switchRadius F XR) + 1 / 5) : | |
| 761 | - E F XR c (X, eta) = | |
| 762 | - (OutgoingDilation.carrierAmplitude F * (switchRadius F XR) ^ HeatTailEdit.exponent F.data.h) * | |
| 763 | - X ^ (-HeatTailEdit.exponent F.data.h) * HeatProfileExtension.physicalProfile (1 + F.data.h) X eta := by | |
| 764 | - rw [E_full_switch F XR c eta X hXR hX (by linarith), OutgoingTail.tailShape_late F.data hlate, mul_one] | |
| 765 | - | |
| 766 | -theorem E_eventual_heat (F : Profile) (XR : ℝ) (c : ℝ → Coeff) (eta X : ℝ) | |
| 767 | - (hXR : 0 < XR) (hX : 0 < X) (heta : eta ∈ HeatedOutgoing.parameterDomain) | |
| 768 | - (hlate : 3 ≤ Real.log (X / switchRadius F XR) + 1 / 5) : | |
| 769 | - E F XR c (X, eta) = | |
| 770 | - (OutgoingDilation.carrierAmplitude F * (switchRadius F XR) ^ HeatTailEdit.exponent F.data.h) * | |
| 771 | - RadialHeatProfile.spatialProfile (1 + F.data.h) (ParametricHeatTail.diffusion eta) X := by | |
| 772 | - rw [E_eq_physical F XR c eta X heta hX] | |
| 773 | - exact HeatedOutgoing.E_eventual_heat F XR c eta X hXR hX hlate | |
| 774 | - | |
| 775 | 528 | theorem E_between_patch_and_switch (F : Profile) (XR : ℝ) (c : ℝ → Coeff) |
| 776 | 529 | (eta X : ℝ) (hXR : 0 < XR) (hX : 0 < X) |
| 777 | 530 | (hp : patchRadius F XR * compensationPatch.right ≤ X) (hK : X ≤ switchRadius F XR) : |
| @@ -805,40 +558,10 @@ theorem exists_symmetric_neighborhood {V : Set ℝ} (hV : IsOpen V) | ||
| 805 | 558 | linarith [heta.2] |
| 806 | 559 | · exact hband ⟨le_of_not_gt hlow, le_of_not_gt hhigh⟩ |
| 807 | 560 | |
| 808 | -theorem ScheduleBounds.exists_parameter_interval {F : Profile} (b : ScheduleBounds F) : | |
| 809 | - ∃ a : ℝ, 1 < a ∧ a < 3 / 2 ∧ Ioo (-a) a ⊆ energyDomain F := | |
| 810 | - exists_symmetric_neighborhood (energyDomain_open F) b.physicalBand_subset | |
| 811 | - | |
| 812 | 561 | namespace Witness |
| 813 | 562 | |
| 814 | 563 | variable {F : Profile} {XR C : ℝ} (w : Witness F XR C) |
| 815 | 564 | |
| 816 | -theorem first_jet_open {eta : ℝ} (heta : eta ∈ parameterDomain) : | |
| 817 | - TerminalCompensation.FirstJetBound compensationPatch (shapedPatchAmplitude F) | |
| 818 | - w.coefficients eta (C / switchRadius F XR) := | |
| 819 | - (w.first_jet eta (parameterDomain_subset heta)).toFirstJetBound (enlargedBand_mem_nhds heta) | |
| 820 | - | |
| 821 | -theorem physical_specification (b : ScheduleBounds F) : | |
| 822 | - HeatedOutgoing.Specification F XR w.physical.coefficients := | |
| 823 | - w.physical.specification b.specification | |
| 824 | - | |
| 825 | -theorem fields_eq_physical (eta X : ℝ) (heta : eta ∈ HeatedOutgoing.parameterDomain) (hX : 0 < X) : | |
| 826 | - E F XR w.coefficients (X, eta) = HeatedOutgoing.E F XR w.physical.coefficients (X, eta) ∧ | |
| 827 | - U F XR (X, eta) = HeatedOutgoing.U F XR (X, eta) ∧ | |
| 828 | - H F XR w.coefficients (X, eta) = HeatedOutgoing.H F XR w.physical.coefficients (X, eta) ∧ | |
| 829 | - Pi F XR w.coefficients (X, eta) = HeatedOutgoing.Pi F XR w.physical.coefficients (X, eta) := | |
| 830 | - ⟨E_eq_physical F XR w.coefficients eta X heta hX, rfl, | |
| 831 | - H_eq_physical F XR w.coefficients eta X heta hX, Pi_eq_physical F XR w.coefficients eta X heta hX.le⟩ | |
| 832 | - | |
| 833 | -theorem axisDatum_analytic_extension : | |
| 834 | - AnalyticOnNhd ℂ (SchedulePressure.complexAxisPressure F.data) PressureDatum.strip ∧ | |
| 835 | - ∀ eta ∈ parameterDomain, SchedulePressure.complexAxisPressure F.data (eta : ℂ) = | |
| 836 | - (axisDatum F XR w.coefficients eta : ℂ) := by | |
| 837 | - refine ⟨F.axisDatum_analytic_extension.1, ?_⟩ | |
| 838 | - intro eta heta | |
| 839 | - rw [w.axisDatum_eq eta heta] | |
| 840 | - exact F.axisDatum_analytic_extension.2 eta | |
| 841 | - | |
| 842 | 565 | end Witness |
| 843 | 566 | |
| 844 | 567 | /-- The complete open-neighborhood specification. All functions are the |
| @@ -888,59 +611,4 @@ structure Specification (F : Profile) (XR : ℝ) (c : ℝ → Coeff) : Prop wher | ||
| 888 | 611 | X ^ (-HeatTailEdit.exponent F.data.h) * HeatProfileExtension.physicalProfile (1 + F.data.h) X eta |
| 889 | 612 | physical_specification : HeatedOutgoing.Specification F XR c |
| 890 | 613 | |
| 891 | -theorem Witness.specification {F : Profile} {XR C : ℝ} (w : Witness F XR C) (b : ScheduleBounds F) : | |
| 892 | - Specification F XR w.coefficients where | |
| 893 | - neighborhood_open := energyDomain_open F | |
| 894 | - neighborhood_contains := b.physicalBand_subset | |
| 895 | - fields_smooth := fun _ hp => w.fields_contDiffAt ⟨hp.1, hp.2.1⟩ | |
| 896 | - angular_positive := fun eta heta X hX => w.positive eta X heta.1 hX | |
| 897 | - axial_unchanged := rfl | |
| 898 | - mass_unchanged := M_unchanged F XR | |
| 899 | - angular_unchanged := fun eta X => J_unchanged F XR w.coefficients eta X w.radius_pos | |
| 900 | - mass_integrable := w.mass_integrable | |
| 901 | - angular_integrable := w.angular_integrable | |
| 902 | - energy_integrable := w.energy_integrable | |
| 903 | - pressure_integrable := w.canonicalKernel_integrable | |
| 904 | - renormalized_integrable := w.renormalized_integrable | |
| 905 | - mass_zero := w.mass_zero | |
| 906 | - angular_zero := w.angular_zero | |
| 907 | - energy_zero := w.energy_zero | |
| 908 | - renormalized_zero := fun eta heta => w.renormalized_zero eta heta.1 | |
| 909 | - pressure_canonical := fun _ _ => rfl | |
| 910 | - axis_unchanged := fun eta heta => w.axisDatum_eq eta heta.1 | |
| 911 | - axis_limit := fun eta heta => w.Pi_tendsto_axis eta heta.1 | |
| 912 | - analytic_axis_datum := ⟨w.axisDatum_analytic_extension.1, | |
| 913 | - fun eta heta => w.axisDatum_analytic_extension.2 eta heta.1⟩ | |
| 914 | - after_pulse := w.after_pulse | |
| 915 | - before_patch := fun eta heta X hX hp => | |
| 916 | - ⟨E_before_patch F XR w.coefficients eta X w.radius_pos hX hp, w.Pi_before_patch eta X heta.1 hX hp⟩ | |
| 917 | - ideal_prefix := fun eta heta X hX hp => w.ideal_prefix eta X heta.1 hX hp | |
| 918 | - terminal_extended_heat := fun eta X hX htail => E_eventual_extended_heat F XR w.coefficients eta X w.radius_pos hX htail | |
| 919 | - physical_specification := w.physical_specification b | |
| 920 | - | |
| 921 | -theorem exists_open_profile {F : Profile} (b : ScheduleBounds F) : | |
| 922 | - ∃ XR₀ C : ℝ, 0 < XR₀ ∧ 0 < C ∧ ∀ XR : ℝ, XR₀ ≤ XR → | |
| 923 | - ∃ w : Witness F XR C, Specification F XR w.coefficients := by | |
| 924 | - obtain ⟨XR₀, C, hXR₀, hC, hc⟩ := exists_witness F | |
| 925 | - exact ⟨XR₀, C, hXR₀, hC, fun XR hXR => by | |
| 926 | - obtain ⟨w⟩ := hc XR hXR | |
| 927 | - exact ⟨w, w.specification b⟩⟩ | |
| 928 | - | |
| 929 | -/-- One schedule and one reset/amplitude pair yield an open parameter | |
| 930 | -interval and the actual compensated profile at every sufficiently large | |
| 931 | -entrance radius. The physical witness is the constructed restriction. -/ | |
| 932 | -theorem exists_fixed_schedule (P m : ℝ) (hP : 0 < P) (hm : 0 < m) : | |
| 933 | - ∃ lam B : ℝ, 0 < lam ∧ 0 < B ∧ ∀ h : ℝ, 0 < h → 2 * h < lam → | |
| 934 | - ∃ F : Profile, F.data.core.P = P ∧ F.data.core.m = m ∧ F.data.core.lam = lam ∧ | |
| 935 | - F.data.h = h ∧ ScheduleBounds F ∧ OutgoingProfile.Specification F B ∧ | |
| 936 | - ∃ a : ℝ, 1 < a ∧ a < 3 / 2 ∧ Ioo (-a) a ⊆ energyDomain F ∧ | |
| 937 | - ∃ XR₀ C : ℝ, 0 < XR₀ ∧ 0 < C ∧ ∀ XR : ℝ, XR₀ ≤ XR → | |
| 938 | - ∃ w : Witness F XR C, Specification F XR w.coefficients := by | |
| 939 | - obtain ⟨lam, B, hlam, hB, hc⟩ := exists_scheduled_profile P m hP hm | |
| 940 | - refine ⟨lam, B, hlam, hB, ?_⟩ | |
| 941 | - intro h hh hsmall | |
| 942 | - obtain ⟨F, hP', hm', hlam', hh', b, hs⟩ := hc h hh hsmall | |
| 943 | - obtain ⟨a, ha, ha', hsub⟩ := b.exists_parameter_interval | |
| 944 | - exact ⟨F, hP', hm', hlam', hh', b, hs, a, ha, ha', hsub, exists_open_profile b⟩ | |
| 945 | - | |
| 946 | 614 | end NavierStokes.ExtendedHeatedOutgoing |
+38 −0 routes/s1-ns-extended-1/README.md added View file
| @@ -0,0 +1,38 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-extended-1 | |
| 6 | + | |
| 7 | +One unit of S-1 (issue #10, "Delete declarations that nothing uses"), family `NavierStokes/Extended*`: | |
| 8 | +delete 64 declarations, 569 lines, from `NavierStokes/ExtendedHeatDebts.lean` (24 declarations) and | |
| 9 | +`NavierStokes/ExtendedHeatedOutgoing.lean` (40 declarations). The diff is deletions only; no statement | |
| 10 | +or proof that stays is changed. | |
| 11 | + | |
| 12 | +The unit was cut from Treant's run of 2026-12-03 (`TitiSkywalker/NavierStokesAndEuler`, upstream | |
| 13 | +`f9e8bc5`) and re-read against this project's declaration graph on `main` under this project's rule: | |
| 14 | +a declaration Treant deleted stays when one of the paper's results reaches it (the files | |
| 15 | +`NavierStokes/PaperResults.lean` imports, `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. 640 of Treant's deletions stay for that; none of them is in this | |
| 18 | +change. | |
| 19 | + | |
| 20 | +Checks made here: | |
| 21 | + | |
| 22 | +- `git grep -n -w <short name>` for all 64 names: every hit in the two edited files is another | |
| 23 | + declaration of the same short name (the surviving `Specification` structure's fields, the separate | |
| 24 | + top-level `physicalBand_subset`, or `F.<field>` on `Profile`, which resolves to `OutgoingProfile`); | |
| 25 | + no remaining line uses a deleted declaration. | |
| 26 | +- `git grep -rn -w ExtendedHeatDebts.<name>` and `ExtendedHeatedOutgoing.<name>`: no use outside the | |
| 27 | + two files. | |
| 28 | +- No deleted docstring names a numbered result of the paper (Lemma, Theorem, Proposition, Corollary, | |
| 29 | + Section or Equation). | |
| 30 | +- `python3 checks/challenge.py .` ends with `ok: 4 challenge files and the build configuration as | |
| 31 | + approved; 2590 Lean files, 616566 lines, toolchain leanprover/lean4:v4.34.0-rc2`. | |
| 32 | + | |
| 33 | +No file under `ComparatorChallenges/`, `checks/` or `lakefile.toml` is touched. | |
| 34 | + | |
| 35 | +## Next | |
| 36 | + | |
| 37 | +Push and open the pull request (`Part of #10`); `build` will say whether the two modules compile. | |
| 38 | +The other units of #10 are separate pull requests. | |