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.CylinderDirichletData |
| 2 | import Euler.SourceCylinderEquation |
| 3 | import Euler.LinearDuhamelOperator |
| 4 | |
| 5 | /-! Exact scalar homogeneity of the constructed history and forward paths. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerCylinderDirichlet.Coefficients |
| 10 | |
| 11 | open Set ContinuousLinearMap EulerSmoothLimit EulerTimeLp EulerLpCylinderTranslation |
| 12 | EulerLpCylinderRectangular EulerTransverseGramInverse |
| 13 | |
| 14 | variable (P : ℝ) [Fact (0 < P)] {T : ℝ} {U E : Type*} |
| 15 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 16 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 17 | (D : Coefficients T U E) (a : ℝ) (f : C(Icc (0 : ℝ) T,CylinderL2 P E)) |
| 18 | |
| 19 | theorem continuousVelocity_smul : |
| 20 | D.velocityPath P (pathLp T D.time_pos.le (a • f)) = |
| 21 | a • D.velocityPath P (pathLp T D.time_pos.le f) := by |
| 22 | rw [pathLp_smul,map_smul] |
| 23 | |
| 24 | theorem accelerationPath_smul : D.accelerationPath P (a • f) = a • D.accelerationPath P f := by |
| 25 | apply ContinuousMap.ext |
| 26 | intro t |
| 27 | change gramInverse (D.frame P t) D.lower D.lower_pos (D.frame_lower P t) |
| 28 | ((D.frame P t).adjoint ((a • f) t-(2 : ℝ) • D.frameDerivative P t |
| 29 | (D.velocityPath P (pathLp T D.time_pos.le (a • f)) t))) = |
| 30 | a • gramInverse (D.frame P t) D.lower D.lower_pos (D.frame_lower P t) |
| 31 | ((D.frame P t).adjoint (f t-(2 : ℝ) • D.frameDerivative P t |
| 32 | (D.velocityPath P (pathLp T D.time_pos.le f) t))) |
| 33 | rw [D.continuousVelocity_smul P a f] |
| 34 | simp only [ContinuousMap.smul_apply,map_smul] |
| 35 | rw [smul_comm (2 : ℝ) a,← smul_sub,map_smul,map_smul] |
| 36 | |
| 37 | theorem physicalVelocity_smul : D.physicalVelocity P (a • f) = a • D.physicalVelocity P f := by |
| 38 | apply ContinuousMap.ext |
| 39 | intro t |
| 40 | change D.frame P t (D.velocityPath P (pathLp T D.time_pos.le (a • f)) t) = |
| 41 | a • D.frame P t (D.velocityPath P (pathLp T D.time_pos.le f) t) |
| 42 | rw [D.continuousVelocity_smul P a f,ContinuousMap.smul_apply,map_smul] |
| 43 | |
| 44 | theorem physicalDerivative_smul : D.physicalDerivative P (a • f) = a • D.physicalDerivative P f := by |
| 45 | apply ContinuousMap.ext |
| 46 | intro t |
| 47 | change D.frameDerivative P t (D.velocityPath P (pathLp T D.time_pos.le (a • f)) t)+ |
| 48 | D.frame P t (D.accelerationPath P (a • f) t) = |
| 49 | a • (D.frameDerivative P t (D.velocityPath P (pathLp T D.time_pos.le f) t)+ |
| 50 | D.frame P t (D.accelerationPath P f t)) |
| 51 | rw [D.continuousVelocity_smul P a f,D.accelerationPath_smul P a f] |
| 52 | simp only [ContinuousMap.smul_apply,map_smul,smul_add] |
| 53 | |
| 54 | end EulerCylinderDirichlet.Coefficients |
| 55 | |
| 56 | namespace EulerSourceCylinderEquation |
| 57 | |
| 58 | open Set ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients EulerLpCylinderTranslation |
| 59 | EulerLpCylinderPaths EulerLpCylinderRectangular EulerSourceCylinderForward |
| 60 | EulerSourceCylinderForcing EulerLinearDuhamel |
| 61 | open scoped BoundedContinuousFunction |
| 62 | |
| 63 | private theorem solution_smul {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 64 | [CompleteSpace X] {T : ℝ} {hT : 0 ≤ T} {B : C(Icc (0 : ℝ) T,X →L[ℝ] X)} |
| 65 | (W : Evolution T hT B) (a : ℝ) (f : C(Icc (0 : ℝ) T,X)) (a₀ : X) : |
| 66 | W.solution (a • f) (a • a₀) = a • W.solution f a₀ := by |
| 67 | simp only [Evolution.solution_eq_operators, map_smul, smul_add] |
| 68 | |
| 69 | variable (P : ℝ) [Fact (0 < P)] {U E : Type*} |
| 70 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 71 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 72 | (S : Set Space) (hS : MeasurableSet S) (T : ℝ) (hT : 0 ≤ T) |
| 73 | (Q Q₁ : SmoothCoefficientPath (Icc (0 : ℝ) T) (U →L[ℝ] E)) |
| 74 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t x v, c*‖v‖^2 ≤ ‖Q.field t x v‖^2) |
| 75 | (a : ℝ) (f : C(Icc (0 : ℝ) T,Supported P E S hS)) (a₀ : Supported P U S hS) |
| 76 | |
| 77 | theorem coordinates_smul : |
| 78 | coordinates P S hS T hT Q Q₁ c hc hQ (a • f) (a • a₀) = |
| 79 | a • coordinates P S hS T hT Q Q₁ c hc hQ f a₀ := by |
| 80 | unfold coordinates projectedForcing |
| 81 | rw [map_smul] |
| 82 | exact solution_smul (X := Supported P U S hS) _ a _ a₀ |
| 83 | |
| 84 | theorem velocity_smul : |
| 85 | velocity P S hS T hT Q Q₁ c hc hQ (a • f) (a • a₀) = |
| 86 | a • velocity P S hS T hT Q Q₁ c hc hQ f a₀ := by |
| 87 | unfold velocity physicalVelocity |
| 88 | rw [coordinates_smul,map_smul] |
| 89 | |
| 90 | theorem velocityDerivative_smul : |
| 91 | velocityDerivative P S hS T hT Q Q₁ c hc hQ (a • f) (a • a₀) = |
| 92 | a • velocityDerivative P S hS T hT Q Q₁ c hc hQ f a₀ := by |
| 93 | unfold velocityDerivative coordinateDerivative projectedForcing |
| 94 | rw [coordinates_smul] |
| 95 | simp only [map_smul,smul_add,map_add] |
| 96 | |
| 97 | end EulerSourceCylinderEquation |