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.SmoothBanachFlow |
| 2 | import Euler.ContinuousInverseDerivative |
| 3 | |
| 4 | /-! |
| 5 | # The genuine invertible Jacobian of the constructed nonlinear flow |
| 6 | |
| 7 | Differentiating the path-space equation identifies its derivative with |
| 8 | the actual homogeneous linear evolution. The already constructed inverse |
| 9 | flow is therefore differentiable and smooth; its derivative is the actual |
| 10 | inverse fundamental operator, without an independent inverse assumption. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | |
| 16 | open scoped ContDiff Topology |
| 17 | |
| 18 | namespace EulerSmoothBanachFlow |
| 19 | |
| 20 | open Set EulerContinuousTimeIntegral EulerLinearDuhamel |
| 21 | |
| 22 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 23 | (T : ℝ) (hT : 0 ≤ T) (A : SmoothTimeField (Icc (0 : ℝ) T) E E) |
| 24 | |
| 25 | def jacobianEvolution (x : E) : |
| 26 | Evolution T hT (A.derivative.superposition (pathFamily T hT A x)) := |
| 27 | constructedEvolution T hT (A.derivative.superposition (pathFamily T hT A x)) |
| 28 | |
| 29 | private theorem volterra_initialOperator {B : C(Icc (0 : ℝ) T,E →L[ℝ] E)} |
| 30 | (U : Evolution T hT B) (v : E) : |
| 31 | volterraOperator T hT B (U.initialOperator v) = |
| 32 | (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)) v := by |
| 33 | have h := U.solution_integral 0 v |
| 34 | rw [U.solution_eq_operators, map_zero, add_zero, add_zero] at h |
| 35 | exact sub_eq_iff_eq_add.mpr h |
| 36 | |
| 37 | theorem pathFamily_fderiv (x : E) : |
| 38 | fderiv ℝ (pathFamily T hT A) x = (jacobianEvolution T hT A x).initialOperator := by |
| 39 | have hp := ((pathFamily_contDiff T hT A).differentiable (by simp) x).hasFDerivAt |
| 40 | have hc := (pathOperator_hasFDerivAt T hT A (pathFamily T hT A x)).comp x hp |
| 41 | have he : (pathOperator T hT A) ∘ pathFamily T hT A = |
| 42 | (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)) := |
| 43 | funext (pathOperator_pathFamily T hT A) |
| 44 | rw [he] at hc |
| 45 | have hconst := ContinuousLinearMap.hasFDerivAt (𝕜 := ℝ) |
| 46 | (E := E) (F := C(Icc (0 : ℝ) T,E)) (x := x) |
| 47 | (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)) |
| 48 | have hD := hc.unique hconst |
| 49 | apply ContinuousLinearMap.ext |
| 50 | intro v |
| 51 | apply (jacobianEvolution T hT A x).volterraOperator_injective |
| 52 | rw [volterra_initialOperator] |
| 53 | exact congrArg (fun L : E →L[ℝ] C(Icc (0 : ℝ) T,E) => L v) hD |
| 54 | |
| 55 | theorem jacobianEvolution_backward_initial (x : E) : |
| 56 | (jacobianEvolution T hT A x).backward ⟨0,le_rfl,hT⟩ = ContinuousLinearMap.id ℝ E := by |
| 57 | have h := (jacobianEvolution T hT A x).backward_forward ⟨0,le_rfl,hT⟩ |
| 58 | simpa only [jacobianEvolution, constructedEvolution_initial, ContinuousLinearMap.comp_id] using h |
| 59 | |
| 60 | theorem initialOperator_evaluation (x : E) (t : Icc (0 : ℝ) T) : |
| 61 | (ContinuousMap.evalCLM ℝ t).comp (jacobianEvolution T hT A x).initialOperator = |
| 62 | (jacobianEvolution T hT A x).forward t := by |
| 63 | apply ContinuousLinearMap.ext |
| 64 | intro v |
| 65 | change (jacobianEvolution T hT A x).forward t |
| 66 | ((jacobianEvolution T hT A x).backward ⟨0,le_rfl,hT⟩ v) = _ |
| 67 | rw [jacobianEvolution_backward_initial, ContinuousLinearMap.id_apply] |
| 68 | |
| 69 | theorem forward_hasFDerivAt_label (t : Icc (0 : ℝ) T) (x : E) : |
| 70 | HasFDerivAt (fun y => (flowData T hT A).forward t y) |
| 71 | ((jacobianEvolution T hT A x).forward t) x := by |
| 72 | have h := (ContinuousMap.evalCLM ℝ t).hasFDerivAt.comp x |
| 73 | (((pathFamily_contDiff T hT A).differentiable (by simp) x).hasFDerivAt) |
| 74 | rw [pathFamily_fderiv, initialOperator_evaluation] at h |
| 75 | exact h |
| 76 | |
| 77 | theorem forward_fderiv (t : Icc (0 : ℝ) T) (x : E) : |
| 78 | fderiv ℝ (fun y => (flowData T hT A).forward t y) x = |
| 79 | (jacobianEvolution T hT A x).forward t := |
| 80 | (forward_hasFDerivAt_label T hT A t x).fderiv |
| 81 | |
| 82 | def jacobianEquiv (t : Icc (0 : ℝ) T) (x : E) : E ≃L[ℝ] E := |
| 83 | ContinuousLinearEquiv.equivOfInverse ((jacobianEvolution T hT A x).forward t) |
| 84 | ((jacobianEvolution T hT A x).backward t) |
| 85 | (fun v => congrArg (fun L : E →L[ℝ] E => L v) |
| 86 | ((jacobianEvolution T hT A x).backward_forward t)) |
| 87 | (fun v => congrArg (fun L : E →L[ℝ] E => L v) |
| 88 | ((jacobianEvolution T hT A x).forward_backward t)) |
| 89 | |
| 90 | theorem backward_hasFDerivAt_label (t : Icc (0 : ℝ) T) (x : E) : |
| 91 | HasFDerivAt (fun y => (flowData T hT A).backward t y) |
| 92 | ((jacobianEvolution T hT A ((flowData T hT A).backward t x)).backward t) x := by |
| 93 | apply EulerContinuousInverseDerivative.hasFDerivAt_inverse |
| 94 | (fun y => (flowData T hT A).forward t y) (fun y => (flowData T hT A).backward t y) x |
| 95 | ((jacobianEvolution T hT A ((flowData T hT A).backward t x)).forward t) |
| 96 | · exact ((flowData T hT A).backward_joint_continuous.comp |
| 97 | (continuous_const.prodMk continuous_id)).continuousAt |
| 98 | · exact forward_hasFDerivAt_label T hT A t _ |
| 99 | · exact Filter.Eventually.of_forall ((flowData T hT A).forward_backward t) |
| 100 | · intro v |
| 101 | exact congrArg (fun L : E →L[ℝ] E => L v) |
| 102 | ((jacobianEvolution T hT A ((flowData T hT A).backward t x)).backward_forward t) |
| 103 | |
| 104 | theorem backward_contDiff (t : Icc (0 : ℝ) T) : |
| 105 | ContDiff ℝ ∞ (fun y => (flowData T hT A).backward t y) := by |
| 106 | rw [contDiff_iff_contDiffAt] |
| 107 | intro x |
| 108 | apply EulerSmoothImplicitLift.contDiffAt_of_identity |
| 109 | (fun y => (flowData T hT A).backward t y) |
| 110 | (fun y => (flowData T hT A).forward t y) id x ∞ (by simp) |
| 111 | (((flowData T hT A).backward_joint_continuous.comp |
| 112 | (continuous_const.prodMk continuous_id)).continuousAt) |
| 113 | (forward_contDiff T hT A t).contDiffAt contDiff_id.contDiffAt |
| 114 | (jacobianEquiv T hT A t ((flowData T hT A).backward t x)) |
| 115 | · exact forward_hasFDerivAt_label T hT A t _ |
| 116 | · exact (flowData T hT A).forward_backward t |
| 117 | |
| 118 | end EulerSmoothBanachFlow |