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.ExactLiftedJointDifferentiability |
| 2 | import Euler.CanonicalGraphPotential |
| 3 | import Euler.CommonPressureRepresentative |
| 4 | import Euler.GraphDivergence |
| 5 | |
| 6 | /-! The actual total pressure of an exact lifted packet has a canonically |
| 7 | normalized scalar pressure on the oscillating graph. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerAllOrderDriftCorrection.ExactLiftedPacket |
| 12 | |
| 13 | open Set InnerProductSpace EulerLiftedGradientSpace EulerAllOrderCorrectionData |
| 14 | EulerGraphPressurePotential EulerCanonicalGraphPotential |
| 15 | open scoped ContDiff |
| 16 | |
| 17 | variable {P T : ℝ} [Fact (0 < P)] {hT : 0 < T} {A : Data P T} {B : Budget P hT A} |
| 18 | (S : ExactLiftedPacket P hT A B) |
| 19 | |
| 20 | def graphPressure (k : ℝ) (t : Icc (0 : ℝ) T) (x : Vector3) : Vector3 := |
| 21 | A.κ • S.pressure.pointField t (cylinderGraph P k A.direction x) |
| 22 | |
| 23 | theorem graphPressure_joint_continuous (k : ℝ) : |
| 24 | Continuous (S.graphPressure k).uncurry := |
| 25 | (S.pressure.pointField_joint_continuous.comp |
| 26 | (continuous_fst.prodMk ((EulerCommonPressureRepresentative.cylinderGraph_continuous |
| 27 | P k A.direction).comp continuous_snd))).const_smul A.κ |
| 28 | |
| 29 | theorem graphPressure_has_potential (k : ℝ) (hk : k*A.κ=1) (t : Icc (0 : ℝ) T) : |
| 30 | ∃ q : Vector3 → ℝ, ContDiff ℝ ∞ q ∧ |
| 31 | ∀ x, _root_.gradient q x = S.graphPressure k t x := |
| 32 | gradientSpace_has_graph_potential P A.κ k hk A.direction |
| 33 | (S.pressure.field t) (S.gradient t) (S.pressure.pointField t) |
| 34 | (S.pressure.pointField_ae t) (S.pressure.pointField_smooth t) |
| 35 | |
| 36 | def graphPotential (k : ℝ) (t : Icc (0 : ℝ) T) : Vector3 → ℝ := |
| 37 | radialPotential (S.graphPressure k t) |
| 38 | |
| 39 | theorem graphPotential_zero (k : ℝ) (t : Icc (0 : ℝ) T) : |
| 40 | S.graphPotential k t 0 = 0 := radialPotential_zero _ |
| 41 | |
| 42 | theorem graphPotential_joint_continuous (k : ℝ) : |
| 43 | Continuous (S.graphPotential k).uncurry := |
| 44 | radialPotential_joint_continuous _ (S.graphPressure_joint_continuous k) |
| 45 | |
| 46 | theorem graphPotential_smooth (k : ℝ) (hk : k*A.κ=1) (t : Icc (0 : ℝ) T) : |
| 47 | ContDiff ℝ ∞ (S.graphPotential k t) := by |
| 48 | obtain ⟨q,hq,hgrad⟩ := S.graphPressure_has_potential k hk t |
| 49 | exact radialPotential_smooth _ |
| 50 | (Continuous.uncurry_left t (S.graphPressure_joint_continuous k)) q hq hgrad |
| 51 | |
| 52 | theorem graphPotential_gradient (k : ℝ) (hk : k*A.κ=1) |
| 53 | (t : Icc (0 : ℝ) T) (x : Vector3) : |
| 54 | _root_.gradient (S.graphPotential k t) x = |
| 55 | A.κ • S.pressure.pointField t (cylinderGraph P k A.direction x) := by |
| 56 | obtain ⟨q,hq,hgrad⟩ := S.graphPressure_has_potential k hk t |
| 57 | exact radialPotential_gradient _ |
| 58 | (Continuous.uncurry_left t (S.graphPressure_joint_continuous k)) q hq hgrad x |
| 59 | |
| 60 | def rawGraphPotential (k : ℝ) (q : ℝ × Vector3) : ℝ := |
| 61 | S.graphPotential k (projIcc 0 T hT.le q.1) q.2 |
| 62 | |
| 63 | theorem rawGraphPotential_smooth (k : ℝ) (hk : k*A.κ=1) (t : ℝ) : |
| 64 | ContDiff ℝ ∞ (fun x => S.rawGraphPotential k (t,x)) := by |
| 65 | change ContDiff ℝ ∞ (S.graphPotential k (projIcc 0 T hT.le t)) |
| 66 | exact S.graphPotential_smooth k hk (projIcc 0 T hT.le t) |
| 67 | |
| 68 | theorem rawGraphPotential_gradient (k : ℝ) (hk : k*A.κ=1) (t : ℝ) (x : Vector3) : |
| 69 | _root_.gradient (fun y => S.rawGraphPotential k (t,y)) x = |
| 70 | A.κ • S.rawPressure (t,(x,k*⟪A.direction,x⟫_ℝ)) := by |
| 71 | change _root_.gradient (S.graphPotential k (projIcc 0 T hT.le t)) x = |
| 72 | A.κ • S.pressure.pointField (projIcc 0 T hT.le t) (cylinderGraph P k A.direction x) |
| 73 | exact S.graphPotential_gradient k hk (projIcc 0 T hT.le t) x |
| 74 | |
| 75 | theorem graphVelocity_divergence (k : ℝ) (hk : k*A.κ=1) |
| 76 | (t : Icc (0 : ℝ) T) (x : Vector3) : |
| 77 | (∑ i : Fin 3, (fderiv ℝ (fun y => |
| 78 | S.velocity.pointField t (cylinderGraph P k A.direction y)) x |
| 79 | (EuclideanSpace.single i 1)) i) = 0 := |
| 80 | EulerGraphDivergence.divergenceFree_graph P A.κ k hk A.direction |
| 81 | (S.velocity.field t) (S.divergence t) (S.velocity.pointField t) |
| 82 | (S.velocity.pointField_ae t) (S.velocity.pointField_smooth t) x |
| 83 | |
| 84 | end EulerAllOrderDriftCorrection.ExactLiftedPacket |