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.SmoothTimeFieldOrdinary |
| 2 | import Euler.SmoothTimeFieldPrecomp |
| 3 | import Euler.SmoothTimeFieldTimeJets |
| 4 | import Euler.SmoothTimeFieldBilinear |
| 5 | import Euler.SmoothTimeFieldAlgebra |
| 6 | import Euler.PacketCofactorOperator |
| 7 | import Euler.BoundedCoefficientSmooth |
| 8 | |
| 9 | /-! The packet coefficients are constructed from the actual parent |
| 10 | particle-map displacement and its two time derivatives. The inverse is |
| 11 | the polynomial cofactor, and the strain and Jacobi curvature are their |
| 12 | literal products; no separate inverse or coefficient evolution is assumed. -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace EulerParentPacketFrames |
| 17 | |
| 18 | open Set ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients EulerPacketCofactor |
| 19 | EulerPacketPiola |
| 20 | open scoped ContDiff BoundedContinuousFunction |
| 21 | |
| 22 | structure Parent where |
| 23 | T : ℝ |
| 24 | T_pos : 0 < T |
| 25 | ell : ℝ |
| 26 | ell_pos : 0 < ell |
| 27 | ell_le_one : ell ≤ 1 |
| 28 | displacement : SmoothTimeField (Icc (0 : ℝ) T) Space Space |
| 29 | velocity : SmoothTimeField (Icc (0 : ℝ) T) Space Space |
| 30 | acceleration : SmoothTimeField (Icc (0 : ℝ) T) Space Space |
| 31 | displacement_time : SmoothTimeField.TimeDerivative T T_pos.le displacement velocity |
| 32 | velocity_time : SmoothTimeField.TimeDerivative T T_pos.le velocity acceleration |
| 33 | initial : ∀ x, displacement.field ⟨0,le_rfl,T_pos.le⟩ x=0 |
| 34 | determinant : ∀ (t : Icc (0 : ℝ) T) x, |
| 35 | (operatorMatrix (ContinuousLinearMap.id ℝ Space+ |
| 36 | fderiv ℝ (displacement.field t : Space → Space) (ell • x))).det=1 |
| 37 | |
| 38 | namespace Parent |
| 39 | |
| 40 | variable (G : Parent) |
| 41 | |
| 42 | def zeroTime : Icc (0 : ℝ) G.T := ⟨0,le_rfl,G.T_pos.le⟩ |
| 43 | |
| 44 | def frame : SmoothTimeField (Icc (0 : ℝ) G.T) Space EndSpace := |
| 45 | (SmoothTimeField.constant (ContinuousLinearMap.id ℝ Space)).add |
| 46 | (G.displacement.derivative.precompLinear (G.ell • ContinuousLinearMap.id ℝ Space)) |
| 47 | |
| 48 | def first : SmoothTimeField (Icc (0 : ℝ) G.T) Space EndSpace := |
| 49 | G.velocity.derivative.precompLinear (G.ell • ContinuousLinearMap.id ℝ Space) |
| 50 | |
| 51 | def second : SmoothTimeField (Icc (0 : ℝ) G.T) Space EndSpace := |
| 52 | G.acceleration.derivative.precompLinear (G.ell • ContinuousLinearMap.id ℝ Space) |
| 53 | |
| 54 | def inverse : SmoothTimeField (Icc (0 : ℝ) G.T) Space EndSpace := |
| 55 | SmoothTimeField.bilinear cofactorBilinear G.frame G.frame |
| 56 | |
| 57 | def strain : SmoothTimeField (Icc (0 : ℝ) G.T) Space EndSpace := |
| 58 | SmoothTimeField.bilinear (compL ℝ Space Space Space) G.first G.inverse |
| 59 | |
| 60 | def curvature : SmoothTimeField (Icc (0 : ℝ) G.T) Space EndSpace := |
| 61 | (SmoothTimeField.bilinear (compL ℝ Space Space Space) G.second G.inverse).map |
| 62 | (-ContinuousLinearMap.id ℝ EndSpace) |
| 63 | |
| 64 | @[simp] theorem frame_apply (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 65 | G.frame.field t x = ContinuousLinearMap.id ℝ Space+ |
| 66 | fderiv ℝ (G.displacement.field t : Space → Space) (G.ell • x) := by |
| 67 | change ContinuousLinearMap.id ℝ Space+G.displacement.derivativeField t (G.ell • x) = _ |
| 68 | rw [SmoothTimeField.derivativeField_eq] |
| 69 | |
| 70 | @[simp] theorem first_apply (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 71 | G.first.field t x = fderiv ℝ (G.velocity.field t : Space → Space) (G.ell • x) := |
| 72 | G.velocity.derivativeField_eq t (G.ell • x) |
| 73 | |
| 74 | @[simp] theorem second_apply (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 75 | G.second.field t x = fderiv ℝ (G.acceleration.field t : Space → Space) (G.ell • x) := |
| 76 | G.acceleration.derivativeField_eq t (G.ell • x) |
| 77 | |
| 78 | @[simp] theorem inverse_apply (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 79 | G.inverse.field t x = adjugate (G.frame.field t x) := rfl |
| 80 | |
| 81 | @[simp] theorem strain_apply (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 82 | G.strain.field t x = (G.first.field t x).comp (G.inverse.field t x) := rfl |
| 83 | |
| 84 | @[simp] theorem curvature_apply (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 85 | G.curvature.field t x = -((G.second.field t x).comp (G.inverse.field t x)) := rfl |
| 86 | |
| 87 | theorem frame_det (t : Icc (0 : ℝ) G.T) (x : Space) : (operatorMatrix (G.frame.field t x)).det=1 := by |
| 88 | rw [G.frame_apply] |
| 89 | exact G.determinant t x |
| 90 | |
| 91 | theorem inverse_left (t : Icc (0 : ℝ) G.T) (x v : Space) : |
| 92 | G.inverse.field t x (G.frame.field t x v)=v := |
| 93 | congrArg (fun A : EndSpace => A v) (adjugate_comp (G.frame.field t x) (G.frame_det t x)) |
| 94 | |
| 95 | theorem inverse_right (t : Icc (0 : ℝ) G.T) (x v : Space) : |
| 96 | G.frame.field t x (G.inverse.field t x v)=v := |
| 97 | congrArg (fun A : EndSpace => A v) (comp_adjugate (G.frame.field t x) (G.frame_det t x)) |
| 98 | |
| 99 | theorem frame_time : SmoothTimeField.TimeDerivative G.T G.T_pos.le G.frame G.first := by |
| 100 | have h := (SmoothTimeField.TimeDerivative.derivative G.T G.T_pos.le |
| 101 | G.displacement G.velocity G.displacement_time).precompLinear (G.ell • ContinuousLinearMap.id ℝ Space) |
| 102 | intro t x |
| 103 | exact (h t x).const_add (ContinuousLinearMap.id ℝ Space) |
| 104 | |
| 105 | theorem first_time : SmoothTimeField.TimeDerivative G.T G.T_pos.le G.first G.second := |
| 106 | (SmoothTimeField.TimeDerivative.derivative G.T G.T_pos.le G.velocity G.acceleration G.velocity_time).precompLinear |
| 107 | (G.ell • ContinuousLinearMap.id ℝ Space) |
| 108 | |
| 109 | theorem frame_initial (x : Space) : G.frame.field G.zeroTime x = ContinuousLinearMap.id ℝ Space := by |
| 110 | rw [G.frame_apply] |
| 111 | have he : (G.displacement.field G.zeroTime : Space → Space) = fun _ => 0 := funext G.initial |
| 112 | have hd : fderiv ℝ (fun _ : Space => (0 : Space)) (G.ell • x) = 0 := |
| 113 | (hasFDerivAt_const (0 : Space) (G.ell • x)).fderiv |
| 114 | rw [he,hd,add_zero] |
| 115 | |
| 116 | theorem inverse_initial (x v : Space) : G.inverse.field G.zeroTime x v=v := by |
| 117 | have h := G.inverse_left G.zeroTime x v |
| 118 | rwa [G.frame_initial,ContinuousLinearMap.id_apply] at h |
| 119 | |
| 120 | theorem strain_equation (t : Icc (0 : ℝ) G.T) (x v : Space) : |
| 121 | G.first.field t x v = G.strain.field t x (G.frame.field t x v) := by |
| 122 | rw [G.strain_apply,comp_apply,G.inverse_left] |
| 123 | |
| 124 | theorem second_equation (t : Icc (0 : ℝ) G.T) (x v : Space) : |
| 125 | G.second.field t x v = -(G.curvature.field t x (G.frame.field t x v)) := by |
| 126 | rw [G.curvature_apply,neg_apply,comp_apply,G.inverse_left,neg_neg] |
| 127 | |
| 128 | def initialStrain : BoundedSmoothField EndSpace where |
| 129 | field := G.first.field G.zeroTime |
| 130 | smooth := G.first.smooth G.zeroTime |
| 131 | bounded n := ⟨‖G.first.jet n G.zeroTime‖,fun x => by |
| 132 | rw [← G.first.jet_eq] |
| 133 | exact (G.first.jet n G.zeroTime).norm_coe_le_norm x⟩ |
| 134 | |
| 135 | @[simp] theorem initialStrain_apply (x : Space) : |
| 136 | G.initialStrain.field x = G.first.field G.zeroTime x := rfl |
| 137 | |
| 138 | end Parent |
| 139 | end EulerParentPacketFrames |