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

| 1 | import Euler.ParentFrameReframe |
| 2 | import Euler.ParentPacketRestriction |
| 3 | import Euler.PacketNestedHorizons |
| 4 | |
| 5 | /-! Restricting the actual parent frame to the next packet horizon, |
| 6 | and identifying its physical and scaled times with the literal scales. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerPacketSourceGeometry.ParentFrame |
| 11 | |
| 12 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 13 | EulerParentPacketFrames EulerTransversePacketProvider EulerTransverseFrameCoordinates |
| 14 | EulerPacketMovingFrame EulerTimeIntervalRestriction |
| 15 | |
| 16 | variable {A : Parent} {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 17 | {m : Space} {hm : ‖m‖=1} {R : U ≃ₗᵢ[ℝ] referencePlane m} |
| 18 | {support : Set Space} {hSupport : IsCompact support} {τ : ℝ} |
| 19 | (P : ParentFrame (A.transverseData m hm R support hSupport) τ) |
| 20 | (S : ℝ) (hS : 0 < S) (hST : S ≤ A.T) (hτ : 0 ≤ τ) |
| 21 | |
| 22 | def restrictTime : ParentFrame ((A.restrictTime S hS hST).transverseData m hm R support hSupport) τ where |
| 23 | B := P.B |
| 24 | B₁ := P.B₁ |
| 25 | m := P.m |
| 26 | v := P.v |
| 27 | c := P.c |
| 28 | G := P.G |
| 29 | error := P.error |
| 30 | G_lower := P.G_lower |
| 31 | error_nonneg := P.error_nonneg |
| 32 | B_derivative t ht := (P.B_derivative t ⟨ht.1,ht.2.trans hST⟩).mono (Icc_subset_Icc le_rfl hST) |
| 33 | ray_equation t ht := (P.ray_equation t ⟨ht.1,ht.2.trans hST⟩).mono (Icc_subset_Icc le_rfl hST) |
| 34 | velocity_equation t ht := (P.velocity_equation t ⟨ht.1,ht.2.trans hST⟩).mono (Icc_subset_Icc le_rfl hST) |
| 35 | ray_nonzero t ht := P.ray_nonzero t ⟨ht.1,ht.2.trans hST⟩ |
| 36 | velocity_nonzero t ht := P.velocity_nonzero t ⟨ht.1,ht.2.trans hST⟩ |
| 37 | tangent t ht := P.tangent t ⟨ht.1,ht.2.trans hST⟩ |
| 38 | B_bound t ht := P.B_bound t ⟨ht.1,ht.2.trans hST⟩ |
| 39 | B₁_bound t ht := P.B₁_bound t ⟨ht.1,ht.2.trans hST⟩ |
| 40 | remainder_bound t ht := by |
| 41 | let ts : Icc (0 : ℝ) S := ⟨t,hτ.trans ht.1,ht.2⟩ |
| 42 | let ta : Icc (0 : ℝ) A.T := ⟨t,hτ.trans ht.1,ht.2.trans hST⟩ |
| 43 | have h := P.remainder_bound t ⟨ht.1,ht.2.trans hST⟩ |
| 44 | rw [Data.clamp_coe (A.transverseData m hm R support hSupport) ta] at h |
| 45 | change ‖(A.restrictTime S hS hST).strain.field |
| 46 | (((A.restrictTime S hS hST).transverseData m hm R support hSupport).clamp t) 0- |
| 47 | P.B t-primaryShear P.c P.m P.v t • |
| 48 | rankOne ℝ (EulerPacketNormalizedPrimary.unit (P.v t)) |
| 49 | (EulerPacketNormalizedPrimary.unit (P.m t))‖ ≤ P.error |
| 50 | rw [Data.clamp_coe ((A.restrictTime S hS hST).transverseData m hm R support hSupport) ts, |
| 51 | A.restrictTime_strain S hS hST ts 0] |
| 52 | exact h |
| 53 | |
| 54 | @[simp] theorem restrictTime_a : (P.restrictTime S hS hST hτ).a=P.a := rfl |
| 55 | @[simp] theorem restrictTime_sigma : (P.restrictTime S hS hST hτ).sigma=P.sigma := rfl |
| 56 | @[simp] theorem restrictTime_shear : (P.restrictTime S hS hST hτ).shear=P.shear := rfl |
| 57 | @[simp] theorem restrictTime_epsilon : (P.restrictTime S hS hST hτ).epsilon=P.epsilon := rfl |
| 58 | @[simp] theorem restrictTime_G : (P.restrictTime S hS hST hτ).G=P.G := rfl |
| 59 | @[simp] theorem restrictTime_error : (P.restrictTime S hS hST hτ).error=P.error := rfl |
| 60 | @[simp] theorem restrictTime_horizon : |
| 61 | (P.restrictTime S hS hST hτ).horizon=P.a*(S-τ)/P.epsilon := rfl |
| 62 | |
| 63 | end EulerPacketSourceGeometry.ParentFrame |
| 64 | |
| 65 | namespace EulerParentStageHorizon |
| 66 | |
| 67 | open Real EulerPacketMovingFrame EulerPacketSourceScaleChoice |
| 68 | EulerPacketSourceScaleSequence EulerPacketNestedHorizons |
| 69 | |
| 70 | theorem scaled_rate {a h : ℝ} (ha : 0 ≤ a) : a/sqrt (a/h)=sqrt (a*h) := by |
| 71 | rw [sqrt_div ha,div_div_eq_mul_div,sqrt_mul ha] |
| 72 | calc |
| 73 | a*sqrt h/sqrt a = (a/sqrt a)*sqrt h := by ring |
| 74 | _ = sqrt a*sqrt h := by rw [div_sqrt] |
| 75 | |
| 76 | theorem physical_rate {a h : ℝ} (ha : 0 ≤ a) : sqrt (a/h)/a=1/sqrt (a*h) := by |
| 77 | rw [one_div,← scaled_rate ha,inv_div] |
| 78 | |
| 79 | theorem physical_target_identity {a h β : ℝ} (ha : 0 ≤ a) (hβ : 0 ≤ β) (τ x : ℝ) : |
| 80 | physicalTime τ a (sqrt (a/h)) (x/sqrt β)=τ+x/sqrt (β*a*h) := by |
| 81 | have hd : sqrt β*sqrt (a*h)=sqrt (β*a*h) := by |
| 82 | rw [← sqrt_mul hβ] |
| 83 | congr 1 |
| 84 | ring |
| 85 | unfold physicalTime |
| 86 | rw [physical_rate ha] |
| 87 | have he : (1/sqrt (a*h))*(x/sqrt β)=x/(sqrt β*sqrt (a*h)) := by ring |
| 88 | rw [he,hd] |
| 89 | |
| 90 | theorem scaled_horizon_identity {a h β : ℝ} (ha : 0 < a) (hh : 0 < h) (hβ : 0 < β) |
| 91 | (τ x W : ℝ) : |
| 92 | a*(τ+x/sqrt (β*a*h)+2*W-τ)/sqrt (a/h)=x/sqrt β+2*sqrt (a*h)*W := by |
| 93 | have hd : sqrt (β*a*h)=sqrt β*sqrt (a*h) := by |
| 94 | rw [← sqrt_mul hβ.le] |
| 95 | congr 1 |
| 96 | ring |
| 97 | calc |
| 98 | _ = (a/sqrt (a/h))*(x/(sqrt β*sqrt (a*h))+2*W) := by rw [hd]; ring |
| 99 | _ = sqrt (a*h)*(x/(sqrt β*sqrt (a*h))+2*W) := by rw [scaled_rate ha.le] |
| 100 | _ = _ := by |
| 101 | field_simp [(sqrt_pos.mpr hβ).ne',(sqrt_pos.mpr (mul_pos ha hh)).ne'] |
| 102 | |
| 103 | end EulerParentStageHorizon |
| 104 | |
| 105 | namespace EulerPacketSourceGeometry.ParentFrame |
| 106 | |
| 107 | open Set EulerSmoothLimit EulerParentPacketFrames EulerTransversePacketProvider |
| 108 | EulerTransverseFrameCoordinates EulerPacketMovingFrame EulerParentStageHorizon |
| 109 | EulerPacketSourceScaleChoice EulerPacketSourceScaleSequence EulerPacketNestedHorizons |
| 110 | |
| 111 | variable {A : Parent} {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 112 | {m : Space} {hm : ‖m‖=1} {R : U ≃ₗᵢ[ℝ] referencePlane m} |
| 113 | {support : Set Space} {hSupport : IsCompact support} {τ : ℝ} |
| 114 | (P : ParentFrame (A.transverseData m hm R support hSupport) τ) |
| 115 | |
| 116 | theorem target_on_scales (J : ℕ) (X : ℝ) (a β : ℕ → ℝ) (n : ℕ) |
| 117 | (ha : 0 ≤ a n) (hβ : 0 ≤ β n) (haMatch : P.a=a n) |
| 118 | (hShear : P.shear=previousShear J X n) (hSigma : P.sigma=Real.sqrt (β n)) : |
| 119 | physicalTime τ P.a P.epsilon (scaleSequence J X (n+1)/P.sigma)= |
| 120 | τ+stepLength J X a β n := by |
| 121 | simp only [ParentFrame.epsilon,haMatch,hShear,hSigma,stepLength] |
| 122 | exact physical_target_identity ha hβ τ _ |
| 123 | |
| 124 | theorem restricted_horizon_on_scales (J : ℕ) (X : ℝ) (hX : 0 < X) (a β : ℕ → ℝ) (n : ℕ) |
| 125 | (ha : 0 < a n) (hβ : 0 < β n) (haMatch : P.a=a n) |
| 126 | (hShear : P.shear=previousShear J X n) |
| 127 | (S : ℝ) (hS : 0 < S) (hST : S ≤ A.T) (hτ : 0 ≤ τ) |
| 128 | (hSMatch : S=τ+stepLength J X a β n+2*timeWidth J X (n+1)) : |
| 129 | (P.restrictTime S hS hST hτ).horizon= |
| 130 | EulerPacketSourceScaleGuards.horizon J X (a n) (β n) n := by |
| 131 | rw [P.restrictTime_horizon,ParentFrame.epsilon,haMatch,hShear,hSMatch] |
| 132 | exact scaled_horizon_identity ha (previousShear_pos J hX n) hβ τ |
| 133 | (scaleSequence J X (n+1)) (timeWidth J X (n+1)) |
| 134 | |
| 135 | end EulerPacketSourceGeometry.ParentFrame |