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 #587 from s2-ns-phase-1
Browse filesperf(NavierStokes/Phase): 2 files cheaper to elaborate (−7.2%, measured)
main maintainer-statement s1-euler-angle-9 s1-ns-harmonic-11 s1-ns-particular-10 s1-ns-radial-9 s1-ns-wave-11 s1-ns-weighted-10 s1-ns-weighted-12 s2-euler-correction-1 s2-euler-cylinder-1 s2-euler-dirichlet-1 s2-euler-euler-1 s2-euler-finite-1 s2-euler-mean-1 s2-euler-ordinary-2 s2-euler-packet-1 s2-euler-transverse-1 s2-ns-actual-1 s2-ns-annular-1 s2-ns-base-1 s2-ns-common-1 s2-ns-correction-1 s2-ns-current-1 s2-ns-five-1 s2-ns-flat-1 s2-ns-global-1 s2-ns-heat-1 s2-ns-mean-1 s2-ns-modulated-1 s2-ns-moment-1 s2-ns-outgoing-2 s2-ns-periodic-1 s2-ns-periodized-1 s2-ns-physical-1 s2-ns-positive-1 s2-ns-pressure-1 s2-ns-primary-1 s2-ns-reserved-1 s2-ns-residual-1 s2-ns-scaled-2 s2-ns-signed-1 s2-ns-slow-1 s2-ns-smooth-1 s2-ns-temporal-1 s2-ns-uniform-1 s2-ns-variable-1 s2-ns-viscous-1 s2-ns-volterra-2
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+14 −14 NavierStokes/PhaseEstimates.lean View file
| @@ -280,8 +280,8 @@ theorem representative_coordinate_errors | ||
| 280 | 280 | have h (i : Fin 2) := PiLp.norm_apply_le (representativeFrequency B sigma u L K g - B • K) i |
| 281 | 281 | rw [representative_tilt, ← hfreq] at h |
| 282 | 282 | constructor |
| 283 | - · simpa using h 0 | |
| 284 | - · simpa using h 1 | |
| 283 | + · exact h 0 | |
| 284 | + · exact h 1 | |
| 285 | 285 | |
| 286 | 286 | /-- The complete finite estimate starts from the chosen representative and |
| 287 | 287 | the local derivatives of the actual base. -/ |
| @@ -332,7 +332,7 @@ theorem inverse_cube_bounds {S : ℝ} (hS : 1 ≤ S) : | ||
| 332 | 332 | have h2 : S ≤ S ^ 2 := by nlinarith only [hS] |
| 333 | 333 | have h3 : S ^ 2 ≤ S ^ 3 := by |
| 334 | 334 | have h := mul_le_mul_of_nonneg_left hS (sq_nonneg S) |
| 335 | - nlinarith only [h] | |
| 335 | + linarith only [h] | |
| 336 | 336 | constructor |
| 337 | 337 | · exact one_div_le_one_div_of_le hS0 (h2.trans h3) |
| 338 | 338 | · have heq : S * (1 / S ^ 3) = 1 / S ^ 2 := by field_simp |
| @@ -403,20 +403,20 @@ theorem assembled_error_scaled {M S ε k v tilt : ℝ} | ||
| 403 | 403 | have h2 : M ≤ M ^ 2 := by nlinarith only [hM] |
| 404 | 404 | have h3 : M ^ 2 ≤ M ^ 3 := by |
| 405 | 405 | have h := mul_le_mul_of_nonneg_left hM (sq_nonneg M) |
| 406 | - nlinarith only [h] | |
| 406 | + linarith only [h] | |
| 407 | 407 | have hcoeff : M ^ 2 + M ≤ 2 * M ^ 3 := by linarith only [h2, h3] |
| 408 | 408 | have hlast := mul_le_mul_of_nonneg_right hcoeff hE |
| 409 | 409 | unfold phaseConstant |
| 410 | - nlinarith only [hround, hbase, hangle, hdiam, htilt', haxial, hlast] | |
| 410 | + linarith only [hround, hbase, hangle, hdiam, htilt', haxial, hlast] | |
| 411 | 411 | |
| 412 | 412 | theorem phaseError_le_four_div {S ε k : ℝ} (hS : 0 < S) |
| 413 | 413 | (hε2 : S ^ 2 * ε ^ 2 ≤ 1) (hk2 : S ^ 2 / k ≤ 1) (hε1 : ε * S ^ 2 ≤ 1) : |
| 414 | 414 | phaseError S ε k ≤ 4 / S := by |
| 415 | - have h1 : S * ε ^ 2 ≤ 1 / S := (le_div_iff₀ hS).2 (by nlinarith only [hε2]) | |
| 415 | + have h1 : S * ε ^ 2 ≤ 1 / S := (le_div_iff₀ hS).2 (by linarith only [hε2]) | |
| 416 | 416 | have h2 : S / k ≤ 1 / S := (le_div_iff₀ hS).2 (by |
| 417 | 417 | have heq : S / k * S = S ^ 2 / k := by ring |
| 418 | 418 | rwa [heq]) |
| 419 | - have h3 : ε * S ≤ 1 / S := (le_div_iff₀ hS).2 (by nlinarith only [hε1]) | |
| 419 | + have h3 : ε * S ≤ 1 / S := (le_div_iff₀ hS).2 (by linarith only [hε1]) | |
| 420 | 420 | unfold phaseError |
| 421 | 421 | rw [show 4 / S = 4 * (1 / S) by ring] |
| 422 | 422 | linarith only [h1, h2, h3] |
| @@ -481,20 +481,20 @@ theorem velocity_error_scaled {M S ε k : ℝ} | ||
| 481 | 481 | (add_le_add (inverse_cube_bounds hS).1 |
| 482 | 482 | (by simpa only [one_mul] using mul_le_mul_of_nonneg_right hS (sq_nonneg ε))).trans h1 |
| 483 | 483 | have hh' := mul_le_mul_of_nonneg_left hh (show 0 ≤ 2 * M ^ 2 by positivity) |
| 484 | - nlinarith only [hh'] | |
| 484 | + linarith only [hh'] | |
| 485 | 485 | have hd : |ε| * (3 * M ^ 2) ≤ 3 * M ^ 2 * phaseError S ε k := by |
| 486 | 486 | rw [abs_of_nonneg hε] |
| 487 | 487 | have hεle : ε ≤ ε * S := by simpa only [mul_one] using mul_le_mul_of_nonneg_left hS hε |
| 488 | 488 | have hh : ε ≤ phaseError S ε k := hεle.trans h3 |
| 489 | - nlinarith only [mul_le_mul_of_nonneg_left hh (show 0 ≤ 3 * M ^ 2 by positivity)] | |
| 489 | + linarith only [mul_le_mul_of_nonneg_left hh (show 0 ≤ 3 * M ^ 2 by positivity)] | |
| 490 | 490 | have hm2 : M ≤ M ^ 2 := by nlinarith only [hM] |
| 491 | 491 | have hm3 : M ^ 2 ≤ M ^ 3 := by |
| 492 | - nlinarith only [mul_le_mul_of_nonneg_left hM (sq_nonneg M)] | |
| 492 | + linarith only [mul_le_mul_of_nonneg_left hM (sq_nonneg M)] | |
| 493 | 493 | have hm4 : 0 ≤ M ^ 4 := pow_nonneg hM0 _ |
| 494 | 494 | have hcoeff : M ^ 3 + M + 5 * M ^ 2 ≤ phaseConstant M := by |
| 495 | 495 | unfold phaseConstant |
| 496 | 496 | linarith only [hm2, hm3, hm4, pow_nonneg hM0 3] |
| 497 | - nlinarith only [ha, hb, hc, hd, mul_le_mul_of_nonneg_right hcoeff hE] | |
| 497 | + linarith only [ha, hb, hc, hd, mul_le_mul_of_nonneg_right hcoeff hE] | |
| 498 | 498 | |
| 499 | 499 | /-- Quantitative estimates for the actual rounded phase. The C2 comparison |
| 500 | 500 | lemma above supplies the two `M (S⁻³ + ε²)` derivative hypotheses. -/ |
| @@ -860,7 +860,7 @@ theorem localBase_shear_error {F G F0 G0 : Slow → ℝ} {U : Set Slow} | ||
| 860 | 860 | have hh := mul_le_mul_of_nonneg_right hm2 he0 |
| 861 | 861 | have hd' : M * diameter ≤ M * (diameter + ε ^ 2) := |
| 862 | 862 | mul_le_mul_of_nonneg_left (le_add_of_nonneg_right (sq_nonneg _)) hM0 |
| 863 | - nlinarith only [hn, ha, hG, hh, hd', mul_nonneg (sq_nonneg M) he0] | |
| 863 | + linarith only [hn, ha, hG, hh, hd', mul_nonneg (sq_nonneg M) he0] | |
| 864 | 864 | |
| 865 | 865 | /-- The principal estimate stated for the actual PhaseCalculus normal, with |
| 866 | 866 | local C1/C2 hypotheses and the actual punctured-lattice rounded frequency. -/ |
| @@ -900,7 +900,7 @@ theorem radialSlope_uniform_bound {n : Space} {K : Plane} {B s δ A : ℝ} | ||
| 900 | 900 | have hscale : 2 * (1 + |s|) * δ / B ≤ 1 + |s| := by |
| 901 | 901 | apply (div_le_iff₀ hB).2 |
| 902 | 902 | have h := mul_le_mul_of_nonneg_left hδ (show 0 ≤ 2 * (1 + |s|) by positivity) |
| 903 | - nlinarith only [h] | |
| 903 | + linarith only [h] | |
| 904 | 904 | have h := abs_add_le (MovingFrameODE.radialSlope n - s) s |
| 905 | 905 | rw [sub_add_cancel] at h |
| 906 | 906 | linarith only [hc, hscale, h, hs] |
| @@ -931,7 +931,7 @@ theorem representative_uniform_frequency_bounds | ||
| 931 | 931 | calc |
| 932 | 932 | |target| = |R0| * |target / R0| := by nth_rw 1 [heq]; rw [abs_mul] |
| 933 | 933 | _ ≤ M * (M + M ^ 4) := mul_le_mul hRbound htarget (abs_nonneg _) hM |
| 934 | - · simpa using h1 | |
| 934 | + · exact h1 | |
| 935 | 935 | |
| 936 | 936 | theorem chart_carrier_ge_one (h : ℝ) (n : ℕ) : 1 ≤ (ChartScales.carrier h n : ℝ) := by |
| 937 | 937 | have hk : 0 < (ChartScales.carrier h n : ℝ) := |
+23 −27 NavierStokes/PhaseJetBounds.lean View file
| @@ -117,8 +117,7 @@ theorem PolynomialJets.add {f g : ι → E → F} | ||
| 117 | 117 | nlinarith |
| 118 | 118 | |
| 119 | 119 | theorem PolynomialJets.neg {f : ι → E → F} (hf : PolynomialJets D f) : |
| 120 | - PolynomialJets D (fun i x => -f i x) := by | |
| 121 | - simpa using hf.clm (-ContinuousLinearMap.id ℝ F) | |
| 120 | + PolynomialJets D (fun i x => -f i x) := hf.clm (-ContinuousLinearMap.id ℝ F) | |
| 122 | 121 | |
| 123 | 122 | theorem PolynomialJets.sub {f g : ι → E → F} |
| 124 | 123 | (hf : PolynomialJets D f) (hg : PolynomialJets D g) : |
| @@ -142,7 +141,7 @@ theorem PolynomialJets.bilinear {f : ι → E → F} {g : ι → E → G} | ||
| 142 | 141 | obtain ⟨C, hC, c, hc⟩ := hg.bound N |
| 143 | 142 | refine ⟨(‖B‖ + 1) * 2 ^ N * A * C, ?_, a + c, ?_⟩ |
| 144 | 143 | · have hpow : (1 : ℝ) ≤ 2 ^ N := one_le_pow₀ (by norm_num) |
| 145 | - have hba : 1 ≤ (‖B‖ + 1) * 2 ^ N := one_le_mul' (by nlinarith [norm_nonneg B]) hpow | |
| 144 | + have hba : 1 ≤ (‖B‖ + 1) * 2 ^ N := one_le_mul' (by linarith [norm_nonneg B]) hpow | |
| 146 | 145 | exact one_le_mul' (one_le_mul' hba hA) hC |
| 147 | 146 | intro i |
| 148 | 147 | apply (JetBounds.FiniteJetBound.bilinear B (D.isOpen i) |
| @@ -157,13 +156,11 @@ theorem PolynomialJets.bilinear {f : ι → E → F} {g : ι → E → G} | ||
| 157 | 156 | |
| 158 | 157 | theorem PolynomialJets.mul {f g : ι → E → ℝ} |
| 159 | 158 | (hf : PolynomialJets D f) (hg : PolynomialJets D g) : |
| 160 | - PolynomialJets D (fun i x => f i x * g i x) := by | |
| 161 | - simpa using hf.bilinear hg (ContinuousLinearMap.mul ℝ ℝ) | |
| 159 | + PolynomialJets D (fun i x => f i x * g i x) := hf.bilinear hg (ContinuousLinearMap.mul ℝ ℝ) | |
| 162 | 160 | |
| 163 | 161 | theorem PolynomialJets.smul {f : ι → E → ℝ} {g : ι → E → F} |
| 164 | 162 | (hf : PolynomialJets D f) (hg : PolynomialJets D g) : |
| 165 | - PolynomialJets D (fun i x => f i x • g i x) := by | |
| 166 | - simpa using hf.bilinear hg (ContinuousLinearMap.lsmul ℝ ℝ) | |
| 163 | + PolynomialJets D (fun i x => f i x • g i x) := hf.bilinear hg (ContinuousLinearMap.lsmul ℝ ℝ) | |
| 167 | 164 | |
| 168 | 165 | theorem PolynomialJets.fderiv {f : ι → E → F} (hf : PolynomialJets D f) : |
| 169 | 166 | PolynomialJets D (fun i => fderiv ℝ (f i)) := by |
| @@ -182,7 +179,7 @@ theorem PolynomialJets.affine (L : E →L[ℝ] F) (c : ι → F) {C : ℝ} {m : | ||
| 182 | 179 | PolynomialJets D (fun i x => L x + c i) := by |
| 183 | 180 | refine ⟨fun _ => L.contDiff.contDiffOn.add contDiffOn_const, ?_⟩ |
| 184 | 181 | intro N |
| 185 | - refine ⟨C + ‖L‖, by nlinarith [norm_nonneg L], m, ?_⟩ | |
| 182 | + refine ⟨C + ‖L‖, by linarith [norm_nonneg L], m, ?_⟩ | |
| 186 | 183 | intro i n hn x hx |
| 187 | 184 | have hs : 1 ≤ D.scale i ^ m := one_le_pow₀ (D.one_le_scale i) |
| 188 | 185 | have hfd : _root_.fderiv ℝ (fun y => L y + c i) = fun _ => L := by |
| @@ -237,11 +234,11 @@ theorem PolynomialJets.precomp_affine {D' : Domain ι F} {f : ι → F → G} | ||
| 237 | 234 | (L.contDiff.contDiffOn.add contDiffOn_const) (hmap i), ?_⟩ |
| 238 | 235 | intro N |
| 239 | 236 | obtain ⟨C, hC, m, hm⟩ := hf.bound N |
| 240 | - refine ⟨C * (‖L‖ + 1) ^ N, one_le_mul' hC (one_le_pow₀ (by nlinarith [norm_nonneg L])), m, ?_⟩ | |
| 237 | + refine ⟨C * (‖L‖ + 1) ^ N, one_le_mul' hC (one_le_pow₀ (by linarith [norm_nonneg L])), m, ?_⟩ | |
| 241 | 238 | intro i n hn x hx |
| 242 | 239 | have hp : ‖L‖ ^ n ≤ (‖L‖ + 1) ^ N := |
| 243 | 240 | (pow_le_pow_left₀ (norm_nonneg L) (by linarith) n).trans |
| 244 | - (pow_le_pow_right₀ (by nlinarith [norm_nonneg L]) hn) | |
| 241 | + (pow_le_pow_right₀ (by linarith [norm_nonneg L]) hn) | |
| 245 | 242 | calc |
| 246 | 243 | _ ≤ ‖iteratedFDeriv ℝ n (f i) (L x + c i)‖ * ‖L‖ ^ n := |
| 247 | 244 | norm_jet_comp_affine (D'.isOpen i) (hf.smooth i) L (c i) (hmap i x hx) n |
| @@ -550,13 +547,13 @@ theorem PhaseFamily.polynomial_jets (a : PhaseFamily ι) (D : Domain ι Slow) | ||
| 550 | 547 | PolynomialJets (D.slot V hV) a.velocity ∧ |
| 551 | 548 | PolynomialJets (D.slot V hV) a.shear := by |
| 552 | 549 | have hpε : PolynomialJets (D.slot V hV) (fun i _ => a.epsilon i) := |
| 553 | - PolynomialJets.const_uniform _ hM (fun i => by simpa using (hconstant i).1) | |
| 550 | + PolynomialJets.const_uniform _ hM (fun i => (hconstant i).1) | |
| 554 | 551 | have hpp : PolynomialJets (D.slot V hV) (fun i _ => a.p i) := |
| 555 | - PolynomialJets.const_uniform _ hM (fun i => by simpa using (hconstant i).2.1) | |
| 552 | + PolynomialJets.const_uniform _ hM (fun i => (hconstant i).2.1) | |
| 556 | 553 | have hppz : PolynomialJets (D.slot V hV) (fun i _ => a.pz i) := |
| 557 | - PolynomialJets.const_uniform _ hM (fun i => by simpa using (hconstant i).2.2.1) | |
| 554 | + PolynomialJets.const_uniform _ hM (fun i => (hconstant i).2.2.1) | |
| 558 | 555 | have hpx : PolynomialJets (D.slot V hV) (fun i _ => a.x0 i) := |
| 559 | - PolynomialJets.const_uniform _ hM (fun i => by simpa using (hconstant i).2.2.2) | |
| 556 | + PolynomialJets.const_uniform _ hM (fun i => (hconstant i).2.2.2) | |
| 560 | 557 | have hpR : PolynomialJets D (fun _ q => q.1) := by |
| 561 | 558 | simpa only [ContinuousLinearMap.coe_fst', add_zero] using |
| 562 | 559 | (PolynomialJets.affine (D := D) (ContinuousLinearMap.fst ℝ ℝ (ℝ × ℝ)) |
| @@ -658,13 +655,13 @@ theorem FrameJets.modal_errors {d : ι → PrimaryODE.FrameData Q} (h : FrameJet | ||
| 658 | 655 | simpa only [PrimaryODE.FrameData.error11, MovingFrameODE.modal11, div_eq_mul_inv] using |
| 659 | 656 | (((h.errorA.add hb).add hc).sub h.eigenRate).div_const 2 |
| 660 | 657 | · unfold PrimaryODE.FrameData.error12 |
| 661 | - simpa only [PrimaryODE.FrameData.error12, MovingFrameODE.modal12, div_eq_mul_inv] using | |
| 658 | + simpa only [MovingFrameODE.modal12, div_eq_mul_inv] using | |
| 662 | 659 | (((h.errorA.sub hb).add hc).add h.eigenRate).div_const 2 |
| 663 | 660 | · unfold PrimaryODE.FrameData.error21 |
| 664 | - simpa only [PrimaryODE.FrameData.error21, MovingFrameODE.modal21, div_eq_mul_inv] using | |
| 661 | + simpa only [MovingFrameODE.modal21, div_eq_mul_inv] using | |
| 665 | 662 | (((h.errorA.add hb).sub hc).add h.eigenRate).div_const 2 |
| 666 | 663 | · unfold PrimaryODE.FrameData.error22 |
| 667 | - simpa only [PrimaryODE.FrameData.error22, MovingFrameODE.modal22, div_eq_mul_inv] using | |
| 664 | + simpa only [MovingFrameODE.modal22, div_eq_mul_inv] using | |
| 668 | 665 | (((h.errorA.sub hb).sub hc).sub h.eigenRate).div_const 2 |
| 669 | 666 | |
| 670 | 667 | theorem FrameJets.coefficient {d : ι → PrimaryODE.FrameData Q} (h : FrameJets D d) (j : ℤ) : |
| @@ -680,8 +677,7 @@ theorem FrameJets.coefficient {d : ι → PrimaryODE.FrameData Q} (h : FrameJets | ||
| 680 | 677 | apply hh.congr |
| 681 | 678 | intro i z _ |
| 682 | 679 | ext w k |
| 683 | - fin_cases k <;> simp [PrimaryODE.FrameData.coefficient, PrimaryODE.FrameData.damping, | |
| 684 | - GrowingMode.modalOperator] | |
| 680 | + fin_cases k <;> simp [PrimaryODE.FrameData.coefficient, PrimaryODE.FrameData.damping] | |
| 685 | 681 | |
| 686 | 682 | /-- The actual projection and eigenbasis conversion of a supplied source |
| 687 | 683 | preserve polynomial jets. A scalar weight on the source can be carried |
| @@ -746,13 +742,13 @@ theorem PolynomialJets.parameter_bound {F : Type*} [NormedAddCommGroup F] [Norme | ||
| 746 | 742 | obtain ⟨C, hC, m, hm⟩ := hf.bound N |
| 747 | 743 | let L := ContinuousLinearMap.inl ℝ Q ℝ |
| 748 | 744 | refine ⟨C * (‖L‖ + 1) ^ N, |
| 749 | - one_le_mul' hC (one_le_pow₀ (by nlinarith [norm_nonneg L])), m, ?_⟩ | |
| 745 | + one_le_mul' hC (one_le_pow₀ (by linarith [norm_nonneg L])), m, ?_⟩ | |
| 750 | 746 | intro i p v hp k hk |
| 751 | 747 | have hmap : L p + (0, v) ∈ D.carrier i := by simpa [L] using hp |
| 752 | 748 | have hjet := norm_jet_comp_affine (D.isOpen i) (hf.smooth i) L (0, v) hmap k |
| 753 | 749 | have hfac : ‖L‖ ^ k ≤ (‖L‖ + 1) ^ N := |
| 754 | 750 | (pow_le_pow_left₀ (norm_nonneg L) (by linarith) k).trans |
| 755 | - (pow_le_pow_right₀ (by nlinarith [norm_nonneg L]) hk) | |
| 751 | + (pow_le_pow_right₀ (by linarith [norm_nonneg L]) hk) | |
| 756 | 752 | calc |
| 757 | 753 | _ ≤ ‖iteratedFDeriv ℝ k (f i) (p, v)‖ * ‖L‖ ^ k := by simpa [L] using hjet |
| 758 | 754 | _ ≤ (C * D.scale i ^ m) * (‖L‖ + 1) ^ N := |
| @@ -797,7 +793,7 @@ theorem normal_range_of_reference_close {n : ι → E → Space} | ||
| 797 | 793 | have h1 := mul_le_mul (hB i).2 (hs i z hz) (abs_nonneg _) (by linarith : 0 ≤ M) |
| 798 | 794 | have h2 := mul_le_mul (hB i).2 (hc 0) (abs_nonneg _) (by linarith : 0 ≤ M) |
| 799 | 795 | have h3 := mul_le_mul (hB i).2 (hc 1) (abs_nonneg _) (by linarith : 0 ≤ M) |
| 800 | - nlinarith | |
| 796 | + linarith | |
| 801 | 797 | have hh := norm_sub_le_norm_sub_add_norm_sub (n i z) |
| 802 | 798 | (MovingFrameODE.pack (B i * s i z) (B i • K i)) 0 |
| 803 | 799 | simp only [sub_zero] at hh |
| @@ -849,11 +845,11 @@ theorem reference_jets (lam c0 u ell : ι → ℝ) | ||
| 849 | 845 | |PrimaryODE.referenceProfile (c0 i) (u i) (ell i) z.2| ≤ M * (1 + M + M ^ 2)) := by |
| 850 | 846 | have hq (i) : |u i / ell i| ≤ M := by |
| 851 | 847 | nlinarith [hrate i, D.one_le_scale i, abs_nonneg (u i / ell i)] |
| 852 | - have pu := PolynomialJets.const_uniform (D := D) u hM (fun i => by simpa using hu i) | |
| 848 | + have pu := PolynomialJets.const_uniform (D := D) u hM (fun i => hu i) | |
| 853 | 849 | have pq := PolynomialJets.const_uniform (D := D) (fun i => u i / ell i) hM |
| 854 | 850 | (fun i => by simpa only [Real.norm_eq_abs] using hq i) |
| 855 | - have plam := PolynomialJets.const_uniform (D := D) lam hM (fun i => by simpa using hlam i) | |
| 856 | - have pc := PolynomialJets.const_uniform (D := D) c0 hM (fun i => by simpa using (hc i).2) | |
| 851 | + have plam := PolynomialJets.const_uniform (D := D) lam hM (fun i => hlam i) | |
| 852 | + have pc := PolynomialJets.const_uniform (D := D) c0 hM (fun i => (hc i).2) | |
| 857 | 853 | have pv : PolynomialJets D (fun _ z => z.2) := by |
| 858 | 854 | simpa only [ContinuousLinearMap.coe_snd', add_zero] using |
| 859 | 855 | (PolynomialJets.affine (D := D) (ContinuousLinearMap.snd ℝ Q ℝ) |
| @@ -872,7 +868,7 @@ theorem reference_jets (lam c0 u ell : ι → ℝ) | ||
| 872 | 868 | rw [abs_mul] |
| 873 | 869 | have hh := mul_le_mul_of_nonneg_left (hslot i z hz) (abs_nonneg (u i / ell i)) |
| 874 | 870 | have hh' := mul_le_mul_of_nonneg_right (hrate i) (show 0 ≤ M by linarith) |
| 875 | - nlinarith | |
| 871 | + linarith | |
| 876 | 872 | exact (abs_add_le _ _).trans (by linarith) |
| 877 | 873 | obtain ⟨pr, pri, pdi⟩ := ps.radius hsb |
| 878 | 874 | refine ⟨?_, ?_, ?_, ?_, ?_⟩ |
| @@ -888,7 +884,7 @@ theorem reference_jets (lam c0 u ell : ι → ℝ) | ||
| 888 | 884 | (add_le_add_right (hsb i z hz) 1) |
| 889 | 885 | simp only [PrimaryODE.referenceProfile, abs_mul, abs_of_nonneg (Real.sqrt_nonneg _)] |
| 890 | 886 | have hh := mul_le_mul (hc i).2 h (Real.sqrt_nonneg _) (show 0 ≤ M by linarith) |
| 891 | - nlinarith | |
| 887 | + linarith | |
| 892 | 888 | |
| 893 | 889 | end ReferenceJets |
| 894 | 890 | |
+18 −0 routes/s2-ns-phase-1/README.md added View file
| @@ -0,0 +1,18 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-phase-1 | |
| 6 | + | |
| 7 | +The family `NavierStokes/Phase*`, two files: `PhaseEstimates.lean` and `PhaseJetBounds.lean`. I carry | |
| 8 | +Treant's `speedup_trials` edits (TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03 at upstream | |
| 9 | +`f9e8bc5`) onto main at `d956c7c` and count them again there. The edits are inside proofs only: `nlinarith` | |
| 10 | +becomes `linarith` where the goal is linear, a `simp` argument list loses entries that do not change the goal, | |
| 11 | +and `simpa using h` becomes `exact h` (or the term itself). No statement, import line or docstring changes, | |
| 12 | +and no `maxHeartbeats`. The measurements and how they were taken are in the pull request. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +The pull request is open; `build` is what says whether the proofs elaborate. If it fails, the next step is to | |
| 17 | +drop the file whose edit does not go through and keep the other, since each file's numbers are for all of its | |
| 18 | +edits together. | |