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.SmoothFlowAcceleration |
| 2 | import Euler.SmoothFlowJacobian |
| 3 | import Euler.SmoothPathJoint |
| 4 | |
| 5 | /-! Genuine joint time-space regularity of the constructed flow and its |
| 6 | inverse. Interior C² uses only the actual first time derivative of the |
| 7 | velocity coefficient, together with its existing smooth spatial jets. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | |
| 12 | open scoped ContDiff Topology |
| 13 | |
| 14 | namespace EulerSmoothBanachFlow |
| 15 | |
| 16 | open Set Filter EulerVolterraConvolution EulerContinuousTimeIntegral |
| 17 | EulerSmoothPathJoint EulerContinuousPathCalculus |
| 18 | |
| 19 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 20 | (T : ℝ) (hT : 0 ≤ T) (A A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) |
| 21 | |
| 22 | theorem accelerationFamily_contDiff : ContDiff ℝ ∞ (accelerationFamily T hT A A₁) := by |
| 23 | have hp := pathFamily_contDiff T hT A |
| 24 | exact (A₁.superposition_contDiff.comp hp).add |
| 25 | (contDiff_apply _ _ (A.derivative.superposition_contDiff.comp hp) |
| 26 | (velocityFamily_contDiff T hT A)) |
| 27 | |
| 28 | theorem forward_joint_hasFDerivAt (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : |
| 29 | HasFDerivAt (Function.uncurry (flowData T hT A).forward) |
| 30 | (jointDerivative T hT (pathFamily T hT A) (velocityFamily T hT A) t x) (t,x) := by |
| 31 | have h := joint_hasFDerivAt T hT (pathFamily T hT A) (velocityFamily T hT A) |
| 32 | (pathFamily_contDiff T hT A) (velocityFamily_contDiff T hT A) |
| 33 | (pathFamily_time_derivative T hT A) t ht x |
| 34 | apply h.congr_of_eventuallyEq |
| 35 | filter_upwards [(continuous_fst.tendsto (t,x)).eventually (Ioo_mem_nhds ht.1 ht.2)] with p hp |
| 36 | change (flowData T hT A).forward p.1 p.2 = |
| 37 | extendPath T hT (pathFamily T hT A p.2) p.1 |
| 38 | simp only [extendPath, projIcc_of_mem hT ⟨hp.1.le,hp.2.le⟩, pathFamily_apply] |
| 39 | |
| 40 | theorem forward_joint_contDiffAt_one (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : |
| 41 | ContDiffAt ℝ 1 (Function.uncurry (flowData T hT A).forward) (t,x) := by |
| 42 | rw [contDiffAt_one_iff] |
| 43 | refine ⟨Function.uncurry (jointDerivative T hT (pathFamily T hT A) (velocityFamily T hT A)), |
| 44 | {p : ℝ × E | p.1 ∈ Ioo 0 T}, ?_, |
| 45 | (jointDerivative_continuous T hT _ _ (pathFamily_contDiff T hT A) |
| 46 | (velocityFamily_contDiff T hT A).continuous).continuousOn, ?_⟩ |
| 47 | · exact (continuous_fst.tendsto (t,x)).eventually (Ioo_mem_nhds ht.1 ht.2) |
| 48 | · intro p hp |
| 49 | exact forward_joint_hasFDerivAt T hT A p.1 hp p.2 |
| 50 | |
| 51 | theorem forward_jointDerivative_contDiffAt_one |
| 52 | (htime : SmoothTimeField.TimeDerivative T hT A A₁) |
| 53 | (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : |
| 54 | ContDiffAt ℝ 1 |
| 55 | (Function.uncurry (jointDerivative T hT (pathFamily T hT A) (velocityFamily T hT A))) (t,x) := by |
| 56 | have hq := joint_contDiffAt_one T hT (velocityFamily T hT A) (accelerationFamily T hT A A₁) |
| 57 | (velocityFamily_contDiff T hT A) (accelerationFamily_contDiff T hT A A₁) |
| 58 | (velocityFamily_time_derivative T hT A A₁ htime) t ht x |
| 59 | have hJ := joint_contDiffAt_one T hT (spatialDerivative T (pathFamily T hT A)) |
| 60 | (spatialDerivative T (velocityFamily T hT A)) |
| 61 | (spatialDerivative_contDiff T _ (pathFamily_contDiff T hT A)) |
| 62 | (spatialDerivative_contDiff T _ (velocityFamily_contDiff T hT A)) |
| 63 | (spatialDerivative_time T hT _ _ (pathFamily_contDiff T hT A) |
| 64 | (velocityFamily_contDiff T hT A) (pathFamily_time_derivative T hT A)) t ht x |
| 65 | have hs := (ContinuousLinearMap.toSpanSingletonLIE ℝ E).toContinuousLinearEquiv.contDiff.contDiffAt.comp |
| 66 | (t,x) hq |
| 67 | let L : ((ℝ →L[ℝ] E) × (E →L[ℝ] E)) →L[ℝ] ((ℝ × E) →L[ℝ] E) := |
| 68 | (ContinuousLinearMap.coprodEquivL (𝕜 := ℝ) (E := ℝ) (F := E) (G := E) ℝ).toContinuousLinearMap |
| 69 | exact (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := 1) |
| 70 | (E := (ℝ →L[ℝ] E) × (E →L[ℝ] E)) (F := (ℝ × E) →L[ℝ] E) L).contDiffAt.comp |
| 71 | (t,x) (hs.prodMk hJ) |
| 72 | |
| 73 | theorem forward_joint_contDiffAt_two |
| 74 | (htime : SmoothTimeField.TimeDerivative T hT A A₁) |
| 75 | (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : |
| 76 | ContDiffAt ℝ 2 (Function.uncurry (flowData T hT A).forward) (t,x) := by |
| 77 | rw [show (2 : ℕ∞ω) = ((1 : ℕ) + 1) from rfl, contDiffAt_succ_iff_hasFDerivAt] |
| 78 | refine ⟨Function.uncurry (jointDerivative T hT (pathFamily T hT A) (velocityFamily T hT A)), |
| 79 | ⟨{p : ℝ × E | p.1 ∈ Ioo 0 T}, ?_, ?_⟩, |
| 80 | forward_jointDerivative_contDiffAt_one T hT A A₁ htime t ht x⟩ |
| 81 | · exact (continuous_fst.tendsto (t,x)).eventually (Ioo_mem_nhds ht.1 ht.2) |
| 82 | · intro p hp |
| 83 | exact forward_joint_hasFDerivAt T hT A p.1 hp p.2 |
| 84 | |
| 85 | omit [FiniteDimensional ℝ E] in |
| 86 | def timeLiftEquiv (J : E ≃L[ℝ] E) (v : E) : (ℝ × E) ≃L[ℝ] (ℝ × E) := |
| 87 | ContinuousLinearEquiv.equivOfInverse |
| 88 | ((ContinuousLinearMap.fst ℝ ℝ E).prod |
| 89 | (((ContinuousLinearMap.toSpanSingleton ℝ v).comp (ContinuousLinearMap.fst ℝ ℝ E)) + |
| 90 | J.toContinuousLinearMap.comp (ContinuousLinearMap.snd ℝ ℝ E))) |
| 91 | ((ContinuousLinearMap.fst ℝ ℝ E).prod |
| 92 | (J.symm.toContinuousLinearMap.comp |
| 93 | ((ContinuousLinearMap.snd ℝ ℝ E) - |
| 94 | (ContinuousLinearMap.toSpanSingleton ℝ v).comp (ContinuousLinearMap.fst ℝ ℝ E)))) |
| 95 | (by intro p; ext <;> simp) |
| 96 | (by intro p; ext <;> simp) |
| 97 | |
| 98 | def liftForward (p : ℝ × E) : ℝ × E := (p.1, (flowData T hT A).forward p.1 p.2) |
| 99 | def liftBackward (p : ℝ × E) : ℝ × E := (p.1, (flowData T hT A).backward p.1 p.2) |
| 100 | |
| 101 | theorem liftForward_hasFDerivAt (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : |
| 102 | HasFDerivAt (liftForward T hT A) |
| 103 | (timeLiftEquiv (jacobianEquiv T hT A ⟨t,ht.1.le,ht.2.le⟩ x) |
| 104 | (velocityFamily T hT A x ⟨t,ht.1.le,ht.2.le⟩)).toContinuousLinearMap (t,x) := by |
| 105 | have h : HasFDerivAt (liftForward T hT A) |
| 106 | ((ContinuousLinearMap.fst ℝ ℝ E).prod |
| 107 | (jointDerivative T hT (pathFamily T hT A) (velocityFamily T hT A) t x)) (t,x) := |
| 108 | hasFDerivAt_fst.prodMk (forward_joint_hasFDerivAt T hT A t ht x) |
| 109 | have he : (timeLiftEquiv (jacobianEquiv T hT A ⟨t,ht.1.le,ht.2.le⟩ x) |
| 110 | (velocityFamily T hT A x ⟨t,ht.1.le,ht.2.le⟩)).toContinuousLinearMap = |
| 111 | (ContinuousLinearMap.fst ℝ ℝ E).prod |
| 112 | (jointDerivative T hT (pathFamily T hT A) (velocityFamily T hT A) t x) := by |
| 113 | apply ContinuousLinearMap.ext |
| 114 | intro p |
| 115 | ext |
| 116 | · rfl |
| 117 | · change p.1 • velocityFamily T hT A x ⟨t,ht.1.le,ht.2.le⟩ + |
| 118 | (jacobianEvolution T hT A x).forward ⟨t,ht.1.le,ht.2.le⟩ p.2 = |
| 119 | (jointDerivative T hT (pathFamily T hT A) (velocityFamily T hT A) t x) p |
| 120 | simp only [jointDerivative, timeSlice, extendPath, |
| 121 | projIcc_of_mem hT ⟨ht.1.le,ht.2.le⟩, ContinuousLinearMap.coprod_apply, |
| 122 | ContinuousLinearMap.toSpanSingleton_apply] |
| 123 | rw [spatialDerivative_apply T _ (pathFamily_contDiff T hT A)] |
| 124 | change _ = p.1 • velocityFamily T hT A x ⟨t,ht.1.le,ht.2.le⟩ + |
| 125 | fderiv ℝ (fun y => (flowData T hT A).forward t y) x p.2 |
| 126 | rw [forward_fderiv T hT A ⟨t,ht.1.le,ht.2.le⟩ x] |
| 127 | rw [he] |
| 128 | exact h |
| 129 | |
| 130 | theorem liftBackward_contDiffAt_two |
| 131 | (htime : SmoothTimeField.TimeDerivative T hT A A₁) |
| 132 | (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : |
| 133 | ContDiffAt ℝ 2 (liftBackward T hT A) (t,x) := by |
| 134 | let y := (flowData T hT A).backward t x |
| 135 | have hg : ContDiffAt ℝ 2 (liftForward T hT A) (t,y) := |
| 136 | contDiffAt_fst.prodMk (forward_joint_contDiffAt_two T hT A A₁ htime t ht y) |
| 137 | apply EulerSmoothImplicitLift.contDiffAt_of_identity |
| 138 | (liftBackward T hT A) (liftForward T hT A) id (t,x) 2 (by norm_num) |
| 139 | ((continuous_fst.prodMk (flowData T hT A).backward_joint_continuous).continuousAt) |
| 140 | hg contDiff_id.contDiffAt |
| 141 | (timeLiftEquiv (jacobianEquiv T hT A ⟨t,ht.1.le,ht.2.le⟩ y) |
| 142 | (velocityFamily T hT A y ⟨t,ht.1.le,ht.2.le⟩)) |
| 143 | · exact liftForward_hasFDerivAt T hT A t ht y |
| 144 | · intro p |
| 145 | ext |
| 146 | · rfl |
| 147 | · exact (flowData T hT A).forward_backward p.1 p.2 |
| 148 | |
| 149 | theorem backward_joint_contDiffAt_two |
| 150 | (htime : SmoothTimeField.TimeDerivative T hT A A₁) |
| 151 | (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : |
| 152 | ContDiffAt ℝ 2 (Function.uncurry (flowData T hT A).backward) (t,x) := |
| 153 | (liftBackward_contDiffAt_two T hT A A₁ htime t ht x).snd |
| 154 | |
| 155 | end EulerSmoothBanachFlow |