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.TransverseHistoryParentCost |
| 2 | import Euler.PolynomialCostMajorant |
| 3 | import Euler.PacketParentLabelCoefficients |
| 4 | |
| 5 | /-! One fixed polynomial controls the complete history sensitivity |
| 6 | envelope for all parent label constants and reciprocal time bounds. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerParentHistoryCost |
| 11 | |
| 12 | open EulerPacketParentLabelBounds EulerPacketParentMeanCoercivity |
| 13 | EulerTransverseHistoryBounds EulerTransverseEndpointDifference EulerPolynomialCost |
| 14 | |
| 15 | def labelHistoryEnvelope (K Ti : ℝ) : ℝ := |
| 16 | parentDifferenceEnvelope Ti (frameAmplitude K) (gradientAmplitude K) |
| 17 | (27*(frameAmplitude K)^2*gradientAmplitude K) (coefficientRadius K) |
| 18 | |
| 19 | def labelHistoryPolynomial : Polynomial ℝ := |
| 20 | let X : Polynomial ℝ := Polynomial.X |
| 21 | let v := Polynomial.C embeddingCost*X^2 |
| 22 | let f := 1+v |
| 23 | let h := 27*f^2*v |
| 24 | let R := 1024+4*X |
| 25 | let ci := (3*f^2+1)^2 |
| 26 | let r := 1+(2*ci^2*f^2*v+ci*v)+ci*f |
| 27 | let d := v+f |
| 28 | let a := 1+h |
| 29 | let x := f*R |
| 30 | let y := v*R |
| 31 | let z := h*R |
| 32 | let s := r*(1+d^2*(2*r^2)*a)*(2*X*d) |
| 33 | let e := (1+3*d^2*(2*r^2)*a+2*d^4*(2*r^2)^2*a^2)*(y+x)+ |
| 34 | (d^3*(2*r^2)+d^5*(2*r^2)^2*a)*z |
| 35 | let sd := r*(2*X*e+(y+x)*s) |
| 36 | let g := (4*ci^2*f^2*v+2*ci*v)*x+2*ci*f*y |
| 37 | x*(2*(X+4*ci*f*v))*s+f*(4*g*s+(2*(X+4*ci*f*v))*sd) |
| 38 | |
| 39 | theorem labelHistoryPolynomial_eval (P : ℝ) : |
| 40 | labelHistoryPolynomial.eval P = |
| 41 | parentDifferenceEnvelope P (frameAmplitude P) (gradientAmplitude P) |
| 42 | (27*(frameAmplitude P)^2*gradientAmplitude P) (1024+4*P) := by |
| 43 | simp [labelHistoryPolynomial,parentDifferenceEnvelope,differenceEnvelope, |
| 44 | slopeDifferenceEnvelope,slopeEnvelope,generatorDifferenceEnvelope,endpointDifferenceCost, |
| 45 | gramInverseEnvelope,transportEnvelope,frameAmplitude,gradientAmplitude] |
| 46 | |
| 47 | def labelHistoryConstant : ℝ := coefficientCost labelHistoryPolynomial |
| 48 | def labelHistoryPower : ℕ := labelHistoryPolynomial.natDegree |
| 49 | |
| 50 | theorem labelHistoryConstant_pos : 0 < labelHistoryConstant := coefficientCost_pos _ |
| 51 | |
| 52 | theorem labelHistoryEnvelope_power (K Ti : ℝ) (hK : 0 ≤ K) (hTi : 0 ≤ Ti) : |
| 53 | labelHistoryEnvelope K Ti ≤ labelHistoryConstant*(1+K+Ti)^labelHistoryPower := by |
| 54 | let P := 1+K+Ti |
| 55 | have hP : 1 ≤ P := by dsimp [P]; linarith |
| 56 | have hP0 : 0 ≤ P := zero_le_one.trans hP |
| 57 | have hKP : K ≤ P := by dsimp [P]; linarith |
| 58 | have hTiP : Ti ≤ P := by dsimp [P]; linarith |
| 59 | have hE := embeddingCost_nonneg |
| 60 | have hF0 := frameAmplitude_nonneg K |
| 61 | have hV0 := gradientAmplitude_nonneg K |
| 62 | have hV : gradientAmplitude K ≤ gradientAmplitude P := by |
| 63 | unfold gradientAmplitude |
| 64 | gcongr |
| 65 | have hF : frameAmplitude K ≤ frameAmplitude P := add_le_add (le_refl (1 : ℝ)) hV |
| 66 | have hH : 27*(frameAmplitude K)^2*gradientAmplitude K ≤ |
| 67 | 27*(frameAmplitude P)^2*gradientAmplitude P := by gcongr |
| 68 | have hR : coefficientRadius K ≤ 1024+4*P := by |
| 69 | unfold coefficientRadius |
| 70 | apply max_le |
| 71 | · linarith |
| 72 | · linarith |
| 73 | have he : labelHistoryEnvelope K Ti ≤ labelHistoryPolynomial.eval P := by |
| 74 | rw [labelHistoryPolynomial_eval] |
| 75 | exact parentDifferenceEnvelope_mono hTi hF0 hV0 (by positivity) |
| 76 | (coefficientRadius_nonneg K) hTiP hF hV hH hR |
| 77 | exact he.trans ((le_abs_self _).trans (eval_bound labelHistoryPolynomial P hP)) |
| 78 | |
| 79 | end EulerParentHistoryCost |