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.ParentStateGeometry |
| 2 | import Euler.ParentPacketGeometryGuards |
| 3 | import Euler.PacketGeometryAssembly |
| 4 | |
| 5 | /-! Quantitative parameters at a genuine geometric target. The matching |
| 6 | certificate below is proved for the actual state renewal constructors in |
| 7 | `ParentTargetRenewal`; it records equality of the physical matrix and the |
| 8 | two physical vectors, rather than postulating their scalar estimates. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerPacketMovingFrame.PhysicalGeometryData |
| 13 | |
| 14 | open Set InnerProductSpace EulerSmoothLimit |
| 15 | |
| 16 | variable {ι : Type*} (G : PhysicalGeometryData ι) |
| 17 | |
| 18 | def couplingError : ℝ := G.y^4+G.σ^2*G.y^2+8*G.σ*G.y^3+ |
| 19 | 30000000*neighborStabilityConstant*G.error*G.Θ^40 |
| 20 | |
| 21 | def tiltError : ℝ := 1500*G.σ+30000000*neighborStabilityConstant*G.error*G.Θ^40 |
| 22 | |
| 23 | /-- A lower bound for the magnitude of the leading compressive term. -/ |
| 24 | def compressionScale : ℝ := G.a/(20*G.ε*G.target) |
| 25 | |
| 26 | theorem nextCoupling_error : |G.nextCoupling/G.a-1| ≤ G.couplingError := by |
| 27 | obtain ⟨F,F1,Z,Z1,J⟩ := G.exists_geometry |
| 28 | exact J.next_frame.1 |
| 29 | |
| 30 | theorem nextTilt_error : |(G.y⁻¹)^2*G.nextTilt-1| ≤ G.tiltError := by |
| 31 | obtain ⟨F,F1,Z,Z1,J⟩ := G.exists_geometry |
| 32 | exact J.next_frame.2 |
| 33 | |
| 34 | theorem nextTilt_pos (herror : G.tiltError ≤ 1/2) : 0 < G.nextTilt := by |
| 35 | have h := (abs_le.mp G.nextTilt_error).1 |
| 36 | have hn : 0 < (G.y⁻¹)^2 := sq_pos_of_pos (inv_pos.mpr G.y_pos) |
| 37 | by_contra hneg |
| 38 | have hzero := mul_nonpos_of_nonneg_of_nonpos hn.le (le_of_not_gt hneg) |
| 39 | linarith only [h,herror,hzero] |
| 40 | |
| 41 | /-- The existing geometric smallness guard leaves enough compression |
| 42 | margin for any subsequent center remainder of size at most one. -/ |
| 43 | theorem compression_margin {e : ℝ} (he : e ≤ 1) : |
| 44 | 3*(G.G+G.d)+e < G.compressionScale := by |
| 45 | have hbound := G.error_le_one |
| 46 | have hn : 0 ≤ G.ε*G.Θ*G.G^2 := by positivity [G.epsilon_pos,G.Theta_pos] |
| 47 | have hd : G.d ≤ 1/16 := by |
| 48 | unfold error at hbound |
| 49 | linarith only [hbound,hn] |
| 50 | have hsmall : G.ε*G.Θ*G.G^2 ≤ 1/256 := by |
| 51 | unfold error at hbound |
| 52 | linarith only [hbound,G.d_nonneg] |
| 53 | have hg : 3*(G.G+G.d)+1 ≤ 5*G.G^2 := by |
| 54 | linarith only [hd,G.G_lower,sq_nonneg (G.G-1)] |
| 55 | have hprod := mul_le_mul_of_nonneg_right hg |
| 56 | (mul_nonneg G.epsilon_pos.le G.Theta_pos.le) |
| 57 | have htime := mul_le_mul_of_nonneg_left G.target_le_Theta G.epsilon_pos.le |
| 58 | have hnorm : 0 ≤ 3*(G.G+G.d)+1 := by positivity [G.G_lower,G.d_nonneg] |
| 59 | have htarget := mul_le_mul_of_nonneg_left htime hnorm |
| 60 | have hstrong : 3*(G.G+G.d)+1 < G.compressionScale := by |
| 61 | unfold compressionScale |
| 62 | apply (lt_div_iff₀ (show 0 < 20*G.ε*G.target by positivity [G.epsilon_pos,G.target_pos])).mpr |
| 63 | linarith only [hprod,htarget,hsmall,G.a_lower] |
| 64 | linarith only [he,hstrong] |
| 65 | |
| 66 | theorem nextCompression_le : G.nextCompression ≤ -G.compressionScale+3*(G.G+G.d) := by |
| 67 | obtain ⟨F,F1,Z,Z1,J⟩ := G.exists_geometry |
| 68 | have hm := mul_le_mul_of_nonneg_right G.target_shear_lower G.epsilon_pos.le |
| 69 | have hd := div_le_div_of_nonneg_right hm |
| 70 | (show 0 ≤ 10*G.target by positivity [G.target_pos]) |
| 71 | have he : (G.a/(2*G.ε^2)*G.ε)/(10*G.target)=G.compressionScale := by |
| 72 | unfold compressionScale |
| 73 | field_simp [G.epsilon_pos.ne',G.target_pos.ne'] |
| 74 | ring |
| 75 | rw [he] at hd |
| 76 | have hb := J.compression_bound |
| 77 | rw [neg_div] at hb |
| 78 | linarith only [hb,hd] |
| 79 | |
| 80 | theorem target_shear_normalization (hδ : 0 < G.δ) : |
| 81 | (G.amplitude/G.δ)*G.targetSize=G.hchild := by |
| 82 | obtain ⟨F,F1,Z,Z1,J⟩ := G.exists_geometry |
| 83 | calc |
| 84 | _ = (G.amplitude*G.targetSize)/G.δ := by ring |
| 85 | _ = (G.δ*G.hchild)/G.δ := by rw [J.amplitude_normalization] |
| 86 | _ = G.hchild := by field_simp |
| 87 | |
| 88 | end EulerPacketMovingFrame.PhysicalGeometryData |
| 89 | |
| 90 | namespace EulerParentPacketFrames |
| 91 | |
| 92 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 93 | EulerPacketMovingFrame EulerPacketNormalizedPrimary EulerPacketSourceGeometry |
| 94 | EulerTransversePacketProvider |
| 95 | |
| 96 | variable {ι : Type*} {V : Type} [NormedAddCommGroup V] [InnerProductSpace ℝ V] |
| 97 | {D : Data V} (G : PhysicalGeometryData ι) (P : ParentFrame D G.targetTime) |
| 98 | |
| 99 | /-- Exact target matching, supplied by the actual forward or joined |
| 100 | `SmoothState` renewal. In particular the primary is not renormalized. -/ |
| 101 | structure RenewalAtTarget : Prop where |
| 102 | matrix_eq : P.B G.targetTime=G.M G.center G.targetTime |
| 103 | ray_eq : P.m G.targetTime=G.r G.center G.targetTime |
| 104 | velocity_eq : P.v G.targetTime=G.w G.center G.targetTime |
| 105 | coefficient_eq : P.c=G.amplitude/G.δ |
| 106 | |
| 107 | namespace RenewalAtTarget |
| 108 | |
| 109 | variable {G P} (J : RenewalAtTarget G P) |
| 110 | |
| 111 | include J |
| 112 | |
| 113 | theorem a_eq : P.a=G.nextCoupling := by |
| 114 | simp only [ParentFrame.a,PhysicalGeometryData.nextCoupling, |
| 115 | J.matrix_eq,J.ray_eq,J.velocity_eq] |
| 116 | |
| 117 | theorem sigma_eq : P.sigma=Real.sqrt G.nextTilt := by |
| 118 | simp only [ParentFrame.sigma,PhysicalGeometryData.nextTilt, |
| 119 | J.matrix_eq,J.ray_eq,J.velocity_eq] |
| 120 | |
| 121 | theorem shear_eq (hδ : 0 < G.δ) : P.shear=G.hchild := by |
| 122 | change P.c*(‖P.m G.targetTime‖*‖P.v G.targetTime‖)=G.hchild |
| 123 | rw [J.coefficient_eq,J.ray_eq,J.velocity_eq] |
| 124 | exact G.target_shear_normalization hδ |
| 125 | |
| 126 | theorem coupling_error : |P.a/G.a-1| ≤ G.couplingError := by |
| 127 | rw [J.a_eq] |
| 128 | exact G.nextCoupling_error |
| 129 | |
| 130 | theorem sigma_sq (herror : G.tiltError ≤ 1/2) : P.sigma^2=G.nextTilt := by |
| 131 | rw [J.sigma_eq,Real.sq_sqrt (G.nextTilt_pos herror).le] |
| 132 | |
| 133 | theorem tilt_error (herror : G.tiltError ≤ 1/2) : |
| 134 | |(G.y⁻¹)^2*P.sigma^2-1| ≤ G.tiltError := by |
| 135 | rw [J.sigma_sq herror] |
| 136 | exact G.nextTilt_error |
| 137 | |
| 138 | theorem tilt_interval (herror : G.tiltError ≤ 1/2) : |
| 139 | 1/2 ≤ (G.y⁻¹)^2*P.sigma^2 ∧ (G.y⁻¹)^2*P.sigma^2 ≤ 3/2 := by |
| 140 | have h := abs_le.mp (J.tilt_error herror) |
| 141 | constructor <;> linarith only [h.1,h.2,herror] |
| 142 | |
| 143 | theorem background_compression_eq : |
| 144 | ⟪P.B G.targetTime (unit (P.m G.targetTime)),unit (P.m G.targetTime)⟫_ℝ= |
| 145 | G.nextCompression := by |
| 146 | rw [J.matrix_eq,J.ray_eq] |
| 147 | exact real_inner_comm _ _ |
| 148 | |
| 149 | end RenewalAtTarget |
| 150 | end EulerParentPacketFrames |