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

Comparing changes
Choose two branches to see what changed, then open a pull request to bring the work across.
Able to merge. These branches can be merged automatically.
A pull request is already open: #659 perf(NavierStokes/Primary): 7 files cheaper to elaborate (−11.3%, measured)
1 commit
+5 −6 NavierStokes/PrimaryCopyBounds.lean View file
| @@ -266,7 +266,7 @@ theorem covariance_weights_jets | ||
| 266 | 266 | have h2 := mul_le_mul (hentry i x hx 0 1) (hentry i x hx 1 0) |
| 267 | 267 | (abs_nonneg _) (zero_le_one.trans hM) |
| 268 | 268 | simp only [abs_mul] at h1 h2 ⊢ |
| 269 | - nlinarith | |
| 269 | + linarith | |
| 270 | 270 | have hi := hD.inv hb hdet hDupper |
| 271 | 271 | have hscale := (hr.pow 2).mul hi |
| 272 | 272 | have hP (k l j : Fin 2) : NativeJets V w (fun i x => T i x j * H i x k l) := by |
| @@ -274,11 +274,10 @@ theorem covariance_weights_jets | ||
| 274 | 274 | have hnum : NativeJets V w (fun i x => SmoothCovariance.cramerNumerator (H i x) (T i x) j) := by |
| 275 | 275 | fin_cases j |
| 276 | 276 | · have he := (hP 1 1 0).sub (hP 0 1 1) |
| 277 | - simp only [SmoothCovariance.cramerNumerator, mul_comm] at he ⊢ | |
| 277 | + simp only [mul_comm] at he ⊢ | |
| 278 | 278 | exact he |
| 279 | 279 | · have he := (hP 0 0 1).sub (hP 1 0 0) |
| 280 | - simp only [SmoothCovariance.cramerNumerator, | |
| 281 | - mul_comm] at he ⊢ | |
| 280 | + simp only [mul_comm] at he ⊢ | |
| 282 | 281 | exact he |
| 283 | 282 | apply (hnum.polynomial_mul hscale).congr |
| 284 | 283 | intro i x hx |
| @@ -340,7 +339,7 @@ theorem pressureCoefficient_jets | ||
| 340 | 339 | simp only [one_mul] at he |
| 341 | 340 | exact he |
| 342 | 341 | simpa only [TangentProjection.pressureCoefficient, inner_zero_right, add_zero, |
| 343 | - real_inner_self_eq_norm_sq, div_eq_mul_inv, mul_comm] using hnum.polynomial_mul hInv | |
| 342 | + div_eq_mul_inv, mul_comm] using hnum.polynomial_mul hInv | |
| 344 | 343 | |
| 345 | 344 | end Pressure |
| 346 | 345 | |
| @@ -1126,7 +1125,7 @@ theorem nativeMask_jets (U : Domain ι PhaseCalculus.Slow) | ||
| 1126 | 1125 | refine ⟨hb.smooth, ?_⟩ |
| 1127 | 1126 | intro m |
| 1128 | 1127 | obtain ⟨C, hC, p, hp⟩ := hb.bound m |
| 1129 | - exact ⟨C, hC, p, fun i j hj x hx => by simpa only [V, mul_one] using hp i x hx j hj⟩ | |
| 1128 | + exact ⟨C, hC, p, fun i j hj x hx => by simpa only [mul_one] using hp i x hx j hj⟩ | |
| 1130 | 1129 | |
| 1131 | 1130 | theorem nativeMask_comp_jets (U : Domain ι D) |
| 1132 | 1131 | (χ : ι → D → PhaseCalculus.Slow) (hχ : PolynomialJets U χ) |
+5 −5 NavierStokes/PrimaryCovarianceBounds.lean View file
| @@ -156,7 +156,7 @@ theorem slotCutoff_bounds {r : ℝ} (hr : 1 ≤ r) : | ||
| 156 | 156 | · intro v hv |
| 157 | 157 | apply GaussianTailFlat.slotCutoff_one hr2 |
| 158 | 158 | apply abs_le.mpr |
| 159 | - constructor <;> nlinarith [hv.1, hv.2] | |
| 159 | + constructor <;> linarith [hv.1, hv.2] | |
| 160 | 160 | |
| 161 | 161 | /-! ## Native chart scale and the positive scalar column sizes -/ |
| 162 | 162 | |
| @@ -198,9 +198,9 @@ theorem chart_scalar_factor_bounds {r0 h : ℝ} (hr0 : 0 < r0) (hh : 0 ≤ h) | ||
| 198 | 198 | · apply (div_le_iff₀ ChartScales.Tg_pos).mpr |
| 199 | 199 | have ht := (div_le_iff₀ (mul_pos ChartScales.Tg_pos hS)).mp hb.1 |
| 200 | 200 | dsimp [S, c] at * |
| 201 | - nlinarith | |
| 201 | + linarith | |
| 202 | 202 | · have ht := (le_div_iff₀ hS).mp hb.2 |
| 203 | - nlinarith | |
| 203 | + linarith | |
| 204 | 204 | have hRsq : R ^ 2 = 2 * r0 * (S * c) := by |
| 205 | 205 | dsimp [R] |
| 206 | 206 | calc |
| @@ -286,7 +286,7 @@ theorem eventually_slotRadius_large {r0 h : ℝ} (hr0 : 0 < r0) (hh : 0 ≤ h) ( | ||
| 286 | 286 | have hRn : R ≤ Real.sqrt (2 * r0) * n := by |
| 287 | 287 | have hd : R / Real.sqrt (2 * r0) ≤ n := (le_max_right _ _).trans (hN.trans hnN) |
| 288 | 288 | have hx := (div_le_iff₀ hroot).mp hd |
| 289 | - nlinarith | |
| 289 | + linarith | |
| 290 | 290 | apply hRn.trans |
| 291 | 291 | have hlen := (ChartScales.slotLength_bounds r0 h hr0.le hh hn4).1 |
| 292 | 292 | have hsq := slotRadius_sq hr0 h n |
| @@ -398,7 +398,7 @@ theorem compact_chart_pair_bounds {X : Type*} [TopologicalSpace X] {K : Set X} | ||
| 398 | 398 | have hsmall : Q / slotRadius r0 h n ≤ rho := by |
| 399 | 399 | apply (div_le_iff₀ hr).mpr |
| 400 | 400 | have ht := (div_le_iff₀ hrho).mp hrlarge |
| 401 | - nlinarith | |
| 401 | + linarith | |
| 402 | 402 | have hclose (i j : Fin 2) : |normalizedPair P i j - H0 p i j| ≤ rho := by |
| 403 | 403 | have he := normalizedPair_entry_error P hP (H0 p) hE hD |
| 404 | 404 | (by simpa only [slotRadius_sq hr0] using hratio) i j |
+1 −1 NavierStokes/PrimaryGeometryAssembly.lean View file
| @@ -371,7 +371,7 @@ theorem radius_lower_of_majorant {lo M : ℝ} (hlo : 0 < lo) (hM : 1 ≤ M) | ||
| 371 | 371 | have hs : 0 < Real.sqrt lo := Real.sqrt_pos.mpr hlo |
| 372 | 372 | have hb := (div_le_iff₀ hs).mp hbound |
| 373 | 373 | apply (div_le_iff₀ hM0).mpr |
| 374 | - nlinarith | |
| 374 | + linarith | |
| 375 | 375 | |
| 376 | 376 | /-- The smooth summed base, its positive mask representatives, and the |
| 377 | 377 | actual strict cone supply every datum used by the phase theorem. The |
+4 −4 NavierStokes/PrimaryODE.lean View file
| @@ -306,7 +306,7 @@ private theorem modalOperator_expansion (lam damping e11 e12 e21 e22 : ℝ) : | ||
| 306 | 306 | e21 • GrowingMode.modalOperator 0 0 0 0 1 0 + |
| 307 | 307 | (-lam - damping + e22) • GrowingMode.modalOperator 0 0 0 0 0 1 := by |
| 308 | 308 | ext z i |
| 309 | - fin_cases i <;> simp [GrowingMode.modalOperator] | |
| 309 | + fin_cases i <;> simp | |
| 310 | 310 | |
| 311 | 311 | theorem FrameData.SmoothOn.coefficient {d : FrameData Q} {Ω : Set (Q × ℝ)} |
| 312 | 312 | (h : d.SmoothOn Ω) (j : ℤ) : ContDiffOn ℝ ∞ (d.coefficient j) Ω := by |
| @@ -444,9 +444,9 @@ theorem primary_bounds (hab : a ≤ b) (d : FrameData Q) (P : Q × ℝ → ℝ) | ||
| 444 | 444 | · change 0 < primary hab d P p v 0 + primary hab d P p v 1 |
| 445 | 445 | linarith |
| 446 | 446 | · change _ ≤ primary hab d P p v 0 + primary hab d P p v 1 |
| 447 | - nlinarith | |
| 447 | + linarith | |
| 448 | 448 | · change primary hab d P p v 0 + primary hab d P p v 1 ≤ _ |
| 449 | - nlinarith | |
| 449 | + linarith | |
| 450 | 450 | |
| 451 | 451 | end Primary |
| 452 | 452 | |
| @@ -491,7 +491,7 @@ theorem hasDerivAt_referenceProfile (c₀ u ell v : ℝ) : | ||
| 491 | 491 | simp only [Nat.cast_ofNat, Nat.reduceSub, pow_one] |
| 492 | 492 | generalize u / ell = q |
| 493 | 493 | field_simp [hp.ne', (PulseGrowth.one_add_sq_pos (PulseGrowth.slotMagnitude u ell v)).ne'] |
| 494 | - nlinarith only [congrArg (fun z : ℝ => c₀ * PulseGrowth.slotMagnitude u ell v * q * z) hsq] | |
| 494 | + linarith only [congrArg (fun z : ℝ => c₀ * PulseGrowth.slotMagnitude u ell v * q * z) hsq] | |
| 495 | 495 | |
| 496 | 496 | theorem referenceProfile_ne_zero {c₀ : ℝ} (hc₀ : c₀ ≠ 0) (u ell v : ℝ) : |
| 497 | 497 | referenceProfile c₀ u ell v ≠ 0 := |
+12 −12 NavierStokes/PrimaryPulseBounds.lean View file
| @@ -144,7 +144,7 @@ noncomputable def rescaleConstant (N : ℕ) (K : ℝ) : ℝ := 2 ^ N * K ^ 2 + K | ||
| 144 | 144 | |
| 145 | 145 | theorem le_rescaleConstant (N : ℕ) (K : ℝ) : K ≤ rescaleConstant N K := by |
| 146 | 146 | unfold rescaleConstant |
| 147 | - nlinarith [mul_nonneg (pow_nonneg (by norm_num : (0 : ℝ) ≤ 2) N) (sq_nonneg K)] | |
| 147 | + linarith [mul_nonneg (pow_nonneg (by norm_num : (0 : ℝ) ≤ 2) N) (sq_nonneg K)] | |
| 148 | 148 | |
| 149 | 149 | section JointEstimate |
| 150 | 150 | |
| @@ -234,11 +234,11 @@ theorem homogeneous_joint_jet_bound | ||
| 234 | 234 | cases k with |
| 235 | 235 | | zero => |
| 236 | 236 | rw [norm_iteratedFDeriv_zero, norm_smul, Real.norm_eq_abs, abs_of_pos (hP 0)] |
| 237 | - simp only [one_mul, zero_mul] | |
| 237 | + simp only [zero_mul] | |
| 238 | 238 | nlinarith [hP 0] |
| 239 | 239 | | succ k => |
| 240 | 240 | rw [iteratedFDeriv_succ_const] |
| 241 | - simp only [Pi.zero_apply, norm_zero, one_mul, zero_mul] | |
| 241 | + simp only [Pi.zero_apply, norm_zero, zero_mul] | |
| 242 | 242 | have hp0 := hP 0 |
| 243 | 243 | positivity |
| 244 | 244 | have hfjet : ∀ k ≤ N, ∀ σ : Icc (0 : ℝ) 1, |
| @@ -261,7 +261,7 @@ theorem homogeneous_joint_jet_bound | ||
| 261 | 261 | (show (1 : ℝ) - 0 ≤ K' * S by nlinarith) (m + 1) N hAjet hxjet hfjet j hj |
| 262 | 262 | ⟨1, zero_le_one, le_rfl⟩ |
| 263 | 263 | unfold JointODE.reparamSolution |
| 264 | - simpa only [one_mul, Nat.add_assoc] using hh | |
| 264 | + simpa only [one_mul] using hh | |
| 265 | 265 | |
| 266 | 266 | end JointEstimate |
| 267 | 267 | |
| @@ -646,7 +646,7 @@ theorem fundamental_eq_primary {d : PrimaryODE.FrameData Q} {lam u L : ℝ} (hL | ||
| 646 | 646 | hA continuousOn_const (z := (p, t)) ⟨hp, ht⟩ |
| 647 | 647 | convert! he using 1 |
| 648 | 648 | simp only [PrimaryODE.primary, PrimaryODE.solution, PrimaryODE.extendedFamily, |
| 649 | - JointODE.actualSolution, PrimaryODE.FrameData.forcing_zero_function] | |
| 649 | + PrimaryODE.FrameData.forcing_zero_function] | |
| 650 | 650 | congr 2 |
| 651 | 651 | ext k |
| 652 | 652 | fin_cases k <;> simp [PrimaryODE.primarySeed, positiveSeed] |
| @@ -692,7 +692,7 @@ theorem EnvelopeJets.normalize_slot | ||
| 692 | 692 | change max 1 (L i) ≤ (M + 1) * D.scale i |
| 693 | 693 | apply max_le |
| 694 | 694 | · nlinarith [D.one_le_scale i] |
| 695 | - · nlinarith [hslot i, D.one_le_scale i] | |
| 695 | + · linarith [hslot i, D.one_le_scale i] | |
| 696 | 696 | |
| 697 | 697 | end NormalizeSlot |
| 698 | 698 | |
| @@ -709,7 +709,7 @@ theorem ambient_eq_synthesis (d : PrimaryODE.FrameData Q) (z : Q × ℝ) (w : St | ||
| 709 | 709 | d.ambient z w = w 0 • synthesisColumn d 0 z + w 1 • synthesisColumn d 1 z := by |
| 710 | 710 | ext i |
| 711 | 711 | fin_cases i <;> |
| 712 | - simp [PrimaryODE.FrameData.ambient, MovingFrameODE.tangent, MovingFrameODE.pack, synthesisColumn] <;> ring | |
| 712 | + simp [PrimaryODE.FrameData.ambient, MovingFrameODE.tangent, synthesisColumn] <;> ring | |
| 713 | 713 | |
| 714 | 714 | theorem synthesisColumn_polynomial {D : PhaseJetBounds.Domain ι (Q × ℝ)} |
| 715 | 715 | {d : ι → PrimaryODE.FrameData Q} (hd : PhaseJetBounds.FrameJets D d) (j : Fin 2) : |
| @@ -724,7 +724,7 @@ theorem synthesisColumn_polynomial {D : PhaseJetBounds.Domain ι (Q × ℝ)} | ||
| 724 | 724 | intro i x hx |
| 725 | 725 | change MovingFrameODE.pack 1 ((-(d i).rho x) • (d i).frame x 0 - |
| 726 | 726 | (d i).eigenvector x • (d i).frame x 1) = synthesisColumn (d i) 1 x |
| 727 | - simp [synthesisColumn, sub_eq_add_neg, neg_smul] | |
| 727 | + simp [synthesisColumn, sub_eq_add_neg] | |
| 728 | 728 | |
| 729 | 729 | end GeometrySynthesis |
| 730 | 730 | |
| @@ -881,7 +881,7 @@ theorem sqrt_slow_polynomial (s : StripData E) : | ||
| 881 | 881 | PhaseJetBounds.PolynomialJets (phaseDomain s) (fun n _ => Real.sqrt (s.slow n)) := by |
| 882 | 882 | apply PhaseJetBounds.PolynomialJets.const _ (C := 1) (m := 1) le_rfl |
| 883 | 883 | intro n |
| 884 | - simp only [Real.norm_eq_abs, abs_of_nonneg (Real.sqrt_nonneg _), one_mul, pow_one, | |
| 884 | + simp only [Real.norm_eq_abs, abs_of_nonneg (Real.sqrt_nonneg _), pow_one, | |
| 885 | 885 | phaseDomain] |
| 886 | 886 | have hs := s.one_le_slow n |
| 887 | 887 | have hsq := Real.sq_sqrt (zero_le_one.trans hs) |
| @@ -934,7 +934,7 @@ theorem EnvelopeJets.map {f : ι → E → F} (hf : EnvelopeJets D w f) | ||
| 934 | 934 | have hs := pow_nonneg (zero_le_one.trans (D.one_le_scale i)) m |
| 935 | 935 | have hw := hf.nonneg i x hx |
| 936 | 936 | have hcw : 0 ≤ C * D.scale i ^ m * w i x := by positivity |
| 937 | - nlinarith [mul_nonneg (show 0 ≤ C by linarith) (mul_nonneg hs hw)] | |
| 937 | + linarith [mul_nonneg (show 0 ≤ C by linarith) (mul_nonneg hs hw)] | |
| 938 | 938 | |
| 939 | 939 | theorem EnvelopeJets.add {f g : ι → E → F} |
| 940 | 940 | (hf : EnvelopeJets D w f) (hg : EnvelopeJets D w g) : |
| @@ -1114,7 +1114,7 @@ theorem actualColumn_normalization | ||
| 1114 | 1114 | rw [Measure.integral_comp_div, abs_of_pos hL, smul_eq_mul] |
| 1115 | 1115 | _ = _ := by |
| 1116 | 1116 | rw [← intervalIntegral.integral_eq_integral_of_support_subset hsupp] |
| 1117 | - dsimp [g] | |
| 1117 | + dsimp | |
| 1118 | 1118 | ring |
| 1119 | 1119 | |
| 1120 | 1120 | omit [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| @@ -1379,7 +1379,7 @@ theorem localPrimaryProfile_radial | ||
| 1379 | 1379 | (PrimaryODE.primary hL.le d (fun w => referenceP lam u L w.2) p z.2)) 0) : |
| 1380 | 1380 | P.radialProfile radius z = localPrimaryProfile d lam u L radius p z 0 := by |
| 1381 | 1381 | rw [localPrimaryProfile, cutoffPulse_eq_ambient_primary d lam u hL U hA hp hz] |
| 1382 | - simp only [PartitionedCovariance.Pulse.radialProfile, PiLp.smul_apply, smul_eq_mul, hψ, hx] | |
| 1382 | + simp only [PartitionedCovariance.Pulse.radialProfile, PiLp.smul_apply, hψ, hx] | |
| 1383 | 1383 | ring |
| 1384 | 1384 | |
| 1385 | 1385 | theorem localPrimaryProfile_tangent |
+4 −4 NavierStokes/PrimaryRepresentatives.lean View file
| @@ -173,7 +173,7 @@ theorem referenceCone_of_shear_coordinates {F a b : ℝ} (hF : 0 < F) (ha : 0 < | ||
| 173 | 173 | change ‖F • !₂[-a, b]‖ ^ 2 = (F * -a) ^ 2 + (F * b) ^ 2 at hn |
| 174 | 174 | change 0 < 2 * F * (F * -a) + ‖F • !₂[-a, b]‖ ^ 2 |
| 175 | 175 | rw [hn] |
| 176 | - nlinarith [mul_pos (sq_pos_of_pos hF) (sub_pos.mpr hv)] | |
| 176 | + linarith [mul_pos (sq_pos_of_pos hF) (sub_pos.mpr hv)] | |
| 177 | 177 | |
| 178 | 178 | theorem normalDirection_unit {g : Plane} (hg : g ≠ 0) : ‖normalDirection g‖ = 1 := by |
| 179 | 179 | simp only [normalDirection, norm_smul, norm_inv, norm_norm] |
| @@ -323,7 +323,7 @@ theorem compact_parameter_bounds {K : Set Slow} (hK : IsCompact K) | ||
| 323 | 323 | · simpa [parameterScalars, abs_of_pos (hc q hq).lambda0_pos] using hb 3 |
| 324 | 324 | · simpa [parameterScalars] using hb 4 |
| 325 | 325 | · simpa [parameterScalars, abs_of_pos (inv_pos.mpr (hR q hq))] using hb 5 |
| 326 | - · simpa [parameterScalars, abs_of_pos (inv_pos.mpr hgq)] using hb 6 | |
| 326 | + · simpa [parameterScalars] using hb 6 | |
| 327 | 327 | · simpa [parameterScalars, abs_of_pos (inv_pos.mpr (hc q hq).lambda0_pos)] using hb 7 |
| 328 | 328 | · simpa [parameterScalars, abs_inv] using hb 8 |
| 329 | 329 | |
| @@ -459,7 +459,7 @@ theorem physicalMask_normalized_mem {h a b : ℝ} (L : Label) {q : ℝ} {x : Pos | ||
| 459 | 459 | (x 1 / ChartScales.Q L.1 ^ CoordinateAlgebra.D h) (q / ChartScales.Q L.1) = |
| 460 | 460 | x 2 / ChartScales.Q L.1 := by |
| 461 | 461 | apply (eq_div_iff hQ.ne').mpr |
| 462 | - nlinarith [hs] | |
| 462 | + linarith [hs] | |
| 463 | 463 | have hroot : (ChartScales.Q L.1 ^ (1 / 2 : ℝ)) ^ 2 = ChartScales.Q L.1 := by |
| 464 | 464 | rw [← Real.rpow_mul_natCast hQ.le] |
| 465 | 465 | norm_num |
| @@ -495,7 +495,7 @@ theorem exists_slopeRatio_gt {r : ℝ} (hr : 0 ≤ r) (hr1 : r < 1) : | ||
| 495 | 495 | have hroot : 0 < Real.sqrt (1 + u ^ 2) := Real.sqrt_pos.mpr (by positivity) |
| 496 | 496 | have hsquare : (r * Real.sqrt (1 + u ^ 2)) ^ 2 < u ^ 2 := by |
| 497 | 497 | rw [mul_pow, Real.sq_sqrt (show 0 ≤ 1 + u ^ 2 by positivity)] |
| 498 | - nlinarith | |
| 498 | + linarith | |
| 499 | 499 | refine ⟨u, hu, (lt_div_iff₀ hroot).mpr ?_⟩ |
| 500 | 500 | by_contra! hn |
| 501 | 501 | have hbad := pow_le_pow_left₀ hu.le hn 2 |
+6 −6 NavierStokes/PrimaryTargetBounds.lean View file
| @@ -45,7 +45,7 @@ theorem basisMatrix_det (K : Plane) (hK : ‖K‖ = 1) : (basisMatrix K).det = - | ||
| 45 | 45 | simp only [basisMatrix, Matrix.det_fin_two, ite_true, show (1 : Fin 2) ≠ 0 by decide, |
| 46 | 46 | ite_false] |
| 47 | 47 | change -K 1 * K 1 - K 0 * K 0 = -1 |
| 48 | - nlinarith | |
| 48 | + linarith | |
| 49 | 49 | |
| 50 | 50 | theorem modelMatrix_column (c u : ℝ) (K : Plane) (i j : Fin 2) : |
| 51 | 51 | modelMatrix c u K i j = |
| @@ -64,7 +64,7 @@ theorem basisMatrix_target (K T : Plane) (hK : ‖K‖ = 1) : | ||
| 64 | 64 | fin_cases i <;> |
| 65 | 65 | simp [basisMatrix, Covariance.target, modelNormal, modelTransverse, Matrix.mulVec, |
| 66 | 66 | dotProduct, Fin.sum_univ_two, PiLp.inner_apply, MovingFrameODE.quarterTurn] <;> |
| 67 | - nlinarith [congrArg (fun x : ℝ => x * T 0) hs, congrArg (fun x : ℝ => x * T 1) hs] | |
| 67 | + linarith [congrArg (fun x : ℝ => x * T 0) hs, congrArg (fun x : ℝ => x * T 1) hs] | |
| 68 | 68 | |
| 69 | 69 | theorem weights_unique {H : Mat2} {T z : Vec2} (hd : H.det ≠ 0) (he : H.mulVec z = T) : |
| 70 | 70 | SmoothCovariance.weights H T = z := by |
| @@ -95,7 +95,7 @@ theorem modelMatrix_strictCone {c u eta : ℝ} {K T : Plane} | ||
| 95 | 95 | apply (div_lt_iff₀ hmp).mpr |
| 96 | 96 | have hh := mul_pos heta hmp |
| 97 | 97 | change |c * modelTransverse K T| < PrimaryRepresentatives.slopeRatio u * modelNormal K T |
| 98 | - nlinarith | |
| 98 | + linarith | |
| 99 | 99 | have hbase := PulseCovariance.signedModel_strictCone hc hu (Covariance.cone_of_ratio hmp hratio) |
| 100 | 100 | have hh := strictCone_mul_left (B := basisMatrix K) (by rw [basisMatrix_det K hK]; norm_num) hbase |
| 101 | 101 | rwa [basisMatrix_target K T hK] at hh |
| @@ -310,7 +310,7 @@ theorem primary_ratio_error (i : ι) {p : Slow} (hp : p ∈ D.carrier i) | ||
| 310 | 310 | have hc := a.coefficientControl hh hr hM hu huM hL hslot i (hlarge i) hp |
| 311 | 311 | have hA := coefficient_continuous a hh hr hM hu huM hL hslot hlarge i |
| 312 | 312 | have hslotL : a.length i ≤ (2*r0*ChartScales.Tg) * D.scale i := by |
| 313 | - simpa only [FamilyData.length, a.scale_eq i, mul_assoc] using | |
| 313 | + simpa only [FamilyData.length, a.scale_eq i] using | |
| 314 | 314 | (ChartScales.slotLength_bounds r0 h hr.le hh (hlarge i).four_le).2 |
| 315 | 315 | have hP (t : ℝ) (_ht : t ∈ Icc 0 (a.length i)) := |
| 316 | 316 | PrimaryPulseBounds.referenceP_pos (a.lam i) u (a.length i) t |
| @@ -337,7 +337,7 @@ theorem primary_ratio_error (i : ι) {p : Slow} (hp : p ∈ D.carrier i) | ||
| 337 | 337 | have hprof := reference_profile_bounds (one_div_pos.mpr (zero_lt_one.trans_le hM)) |
| 338 | 338 | (a.ratio_bound i).1 (a.ratio_bound i).2 (a.magnitude_bound hr hu.le huM hv') |
| 339 | 339 | have hH : |PrimaryODE.referenceProfile (a.c0 i) u (a.length i) v| ≤ eigenBound M := |
| 340 | - hprof.1.trans (by unfold eigenBound; nlinarith [show 0 ≤ M by linarith]) | |
| 340 | + hprof.1.trans (by unfold eigenBound; linarith [show 0 ≤ M by linarith]) | |
| 341 | 341 | have hgeom := tangent_ratio_error hB (a.unit i) hsmall hnormal |
| 342 | 342 | (r := PrimaryODE.transversePrimary hlength.le (a.frame i) |
| 343 | 343 | (fun z => PrimaryPulseBounds.referenceP (a.lam i) u (a.length i) z.2) p v / |
| @@ -430,7 +430,7 @@ theorem primary_center_error (i : ι) (j : Fin 2) (hsign : a.sigma i = phaseSign | ||
| 430 | 430 | have hratioL : ratioConstant M u gap / D.scale i ≤ |
| 431 | 431 | ((2*r0*ChartScales.Tg) * ratioConstant M u gap) / a.length i := by |
| 432 | 432 | apply (div_le_div_iff₀ hS hlength).mpr |
| 433 | - nlinarith [mul_le_mul_of_nonneg_left hslotL (ratioConstant_nonneg (u := u) hM hgap)] | |
| 433 | + linarith [mul_le_mul_of_nonneg_left hslotL (ratioConstant_nonneg (u := u) hM hgap)] | |
| 434 | 434 | have hcomponent := (PiLp.norm_apply_le |
| 435 | 435 | (pulseRatio (a.frame i) (a.lam i) u (a.length i) p v - |
| 436 | 436 | modelVector (a.c0 i) (phaseSign j*u) (a.K i)) k) |
+20 −0 routes/s2-ns-primary-1/README.md added View file
| @@ -0,0 +1,20 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-primary-1 | |
| 6 | + | |
| 7 | +Unit S-2 for the family `NavierStokes/Primary*` (7 files): carry Treant's | |
| 8 | +`speedup_trials` edits (TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03 at | |
| 9 | +upstream `f9e8bc5`) onto this project's main, counted here file by file. The edits | |
| 10 | +are inside proofs only — `nlinarith` to `linarith` where the goal is linear, | |
| 11 | +redundant entries dropped from `simp`/`simpa` lists, a `dsimp` without its | |
| 12 | +definition name — with no statement, import, docstring or `maxHeartbeats` | |
| 13 | +change. The counts before and after, and how they were taken, are in the pull | |
| 14 | +request. | |
| 15 | + | |
| 16 | +## Next | |
| 17 | + | |
| 18 | +The pull request is open; `build` on its head is what says whether it compiles. | |
| 19 | +If an edit there is judged to make a proof harder to read, remove that whole | |
| 20 | +file (and its table row) before anything else is pushed. | |