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.TimeEndpointEnergyUniqueness |
| 2 | import Euler.TransverseGramInverse |
| 3 | |
| 4 | /-! |
| 5 | Boundary uniqueness for the literal moving-frame coordinate equation. |
| 6 | The proof passes through the physical displacement and the already proved |
| 7 | short-time energy coercivity, including the source identity Q'' = -H Q. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerFrameEndpointUniqueness |
| 13 | |
| 14 | open Set MeasureTheory InnerProductSpace ContinuousLinearMap EulerTimeLp |
| 15 | EulerVolterraConvolution EulerTransverseGramInverse EulerTimeEndpointEnergyUniqueness |
| 16 | |
| 17 | variable {U E : Type*} |
| 18 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 19 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 20 | |
| 21 | def applyPath {T : ℝ} (Q : C(Icc (0 : ℝ) T,U →L[ℝ] E)) |
| 22 | (z : C(Icc (0 : ℝ) T,U)) : C(Icc (0 : ℝ) T,E) := |
| 23 | ⟨fun t => Q t (z t),Q.continuous.clm_apply z.continuous⟩ |
| 24 | |
| 25 | omit [CompleteSpace U] [CompleteSpace E] in |
| 26 | theorem applyPath_hasDerivWithinAt (T : ℝ) (hT : 0 ≤ T) |
| 27 | (Q Q₁ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) |
| 28 | (z v : C(Icc (0 : ℝ) T,U)) |
| 29 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 30 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 31 | (hz : ∀ t : Icc (0 : ℝ) T, |
| 32 | HasDerivWithinAt (extendPath T hT z) (v t) (Icc (0 : ℝ) T) t) |
| 33 | (t : Icc (0 : ℝ) T) : |
| 34 | HasDerivWithinAt (extendPath T hT (applyPath Q z)) |
| 35 | ((applyPath Q₁ z+applyPath Q v) t) (Icc (0 : ℝ) T) t := by |
| 36 | change HasDerivWithinAt (fun s => extendPath T hT Q s (extendPath T hT z s)) |
| 37 | (Q₁ t (z t)+Q t (v t)) (Icc (0 : ℝ) T) t |
| 38 | simpa only [extendPath,projIcc_of_mem hT t.property] using (hd t).clm_apply (hz t) |
| 39 | |
| 40 | theorem zero_of_projected_equation (T : ℝ) (hT : 0 ≤ T) (hTpos : 0 < T) |
| 41 | (Q Q₁ Q₂ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) |
| 42 | (H : C(Icc (0 : ℝ) T,E →L[ℝ] E)) |
| 43 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t v, c*‖v‖^2 ≤ ‖Q t v‖^2) |
| 44 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 45 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 46 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 47 | HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) |
| 48 | (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) |
| 49 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t x, ⟪H t x,x⟫_ℝ ≤ K*‖x‖^2) |
| 50 | (hsmall : K*(T^2/2) ≤ 1/2) |
| 51 | (z v a : C(Icc (0 : ℝ) T,U)) |
| 52 | (hz : ∀ t : Icc (0 : ℝ) T, |
| 53 | HasDerivWithinAt (extendPath T hT z) (v t) (Icc (0 : ℝ) T) t) |
| 54 | (hv : ∀ t : Icc (0 : ℝ) T, |
| 55 | HasDerivWithinAt (extendPath T hT v) (a t) (Icc (0 : ℝ) T) t) |
| 56 | (hzero : z ⟨0,le_rfl,hT⟩ = 0) (hterminal : z ⟨T,hT,le_rfl⟩ = 0) |
| 57 | (heq : ∀ t, gram (Q t) (a t) = (Q t).adjoint ((-2 : ℝ) • Q₁ t (v t))) : |
| 58 | z = 0 ∧ v = 0 := by |
| 59 | let p := applyPath Q z |
| 60 | let u := applyPath Q₁ z+applyPath Q v |
| 61 | let q := (applyPath Q₂ z+applyPath Q₁ v)+(applyPath Q₁ v+applyPath Q a) |
| 62 | have hp (t : Icc (0 : ℝ) T) : |
| 63 | HasDerivWithinAt (extendPath T hT p) (u t) (Icc (0 : ℝ) T) t := |
| 64 | applyPath_hasDerivWithinAt T hT Q Q₁ z v hd hz t |
| 65 | have hu (t : Icc (0 : ℝ) T) : |
| 66 | HasDerivWithinAt (extendPath T hT u) (q t) (Icc (0 : ℝ) T) t := |
| 67 | (applyPath_hasDerivWithinAt T hT Q₁ Q₂ z v hd₁ hz t).add |
| 68 | (applyPath_hasDerivWithinAt T hT Q Q₁ v a hd hv t) |
| 69 | have horth (t : Icc (0 : ℝ) T) : ⟪q t+H t (p t),p t⟫_ℝ = 0 := by |
| 70 | have hcancel : q t+H t (p t) = (2 : ℝ) • Q₁ t (v t)+Q t (a t) := by |
| 71 | change (Q₂ t (z t)+Q₁ t (v t))+(Q₁ t (v t)+Q t (a t))+H t (Q t (z t)) = _ |
| 72 | rw [hframe] |
| 73 | simp only [neg_apply,comp_apply,two_smul] |
| 74 | abel |
| 75 | rw [hcancel] |
| 76 | change ⟪(2 : ℝ) • Q₁ t (v t)+Q t (a t),Q t (z t)⟫_ℝ = 0 |
| 77 | rw [← adjoint_inner_left] |
| 78 | have ha : (Q t).adjoint (Q t (a t)) = |
| 79 | (Q t).adjoint ((-2 : ℝ) • Q₁ t (v t)) := heq t |
| 80 | rw [map_add,map_smul,ha,map_smul] |
| 81 | simp only [← add_smul] |
| 82 | norm_num |
| 83 | have hphysical := zero_of_energy_equation T hT hTpos H K hK hH hsmall p u q hp hu |
| 84 | (by change Q _ (z _) = 0; rw [hzero,map_zero]) |
| 85 | (by change Q _ (z _) = 0; rw [hterminal,map_zero]) horth |
| 86 | have hz0 : z = 0 := by |
| 87 | apply ContinuousMap.ext |
| 88 | intro t |
| 89 | have hp0 := congrArg (fun w : C(Icc (0 : ℝ) T,E) => w t) hphysical.1 |
| 90 | change Q t (z t) = 0 at hp0 |
| 91 | rw [← frameLeftInverse_apply (Q t) c hc (hQ t) (z t),hp0,map_zero,ContinuousMap.zero_apply] |
| 92 | refine ⟨hz0,?_⟩ |
| 93 | apply ContinuousMap.ext |
| 94 | intro t |
| 95 | have hu0 := congrArg (fun w : C(Icc (0 : ℝ) T,E) => w t) hphysical.2 |
| 96 | change Q₁ t (z t)+Q t (v t) = 0 at hu0 |
| 97 | rw [hz0,ContinuousMap.zero_apply,map_zero,zero_add] at hu0 |
| 98 | rw [← frameLeftInverse_apply (Q t) c hc (hQ t) (v t),hu0,map_zero,ContinuousMap.zero_apply] |
| 99 | |
| 100 | theorem unique_of_projected_equation (T : ℝ) (hT : 0 ≤ T) (hTpos : 0 < T) |
| 101 | (Q Q₁ Q₂ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) |
| 102 | (H : C(Icc (0 : ℝ) T,E →L[ℝ] E)) |
| 103 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t v, c*‖v‖^2 ≤ ‖Q t v‖^2) |
| 104 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 105 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 106 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 107 | HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) |
| 108 | (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) |
| 109 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t x, ⟪H t x,x⟫_ℝ ≤ K*‖x‖^2) |
| 110 | (hsmall : K*(T^2/2) ≤ 1/2) |
| 111 | (z v a w r b : C(Icc (0 : ℝ) T,U)) |
| 112 | (hz : ∀ t : Icc (0 : ℝ) T, |
| 113 | HasDerivWithinAt (extendPath T hT z) (v t) (Icc (0 : ℝ) T) t) |
| 114 | (hv : ∀ t : Icc (0 : ℝ) T, |
| 115 | HasDerivWithinAt (extendPath T hT v) (a t) (Icc (0 : ℝ) T) t) |
| 116 | (hw : ∀ t : Icc (0 : ℝ) T, |
| 117 | HasDerivWithinAt (extendPath T hT w) (r t) (Icc (0 : ℝ) T) t) |
| 118 | (hr : ∀ t : Icc (0 : ℝ) T, |
| 119 | HasDerivWithinAt (extendPath T hT r) (b t) (Icc (0 : ℝ) T) t) |
| 120 | (hzero : z ⟨0,le_rfl,hT⟩ = w ⟨0,le_rfl,hT⟩) |
| 121 | (hterminal : z ⟨T,hT,le_rfl⟩ = w ⟨T,hT,le_rfl⟩) |
| 122 | (heq : ∀ t, gram (Q t) (a t) = (Q t).adjoint ((-2 : ℝ) • Q₁ t (v t))) |
| 123 | (heq' : ∀ t, gram (Q t) (b t) = (Q t).adjoint ((-2 : ℝ) • Q₁ t (r t))) : |
| 124 | z = w ∧ v = r := by |
| 125 | have h := zero_of_projected_equation T hT hTpos Q Q₁ Q₂ H c hc hQ hd hd₁ hframe |
| 126 | K hK hH hsmall (z-w) (v-r) (a-b) (fun t => (hz t).sub (hw t)) |
| 127 | (fun t => (hv t).sub (hr t)) |
| 128 | (by simp only [ContinuousMap.sub_apply,hzero,sub_self]) |
| 129 | (by simp only [ContinuousMap.sub_apply,hterminal,sub_self]) |
| 130 | (by |
| 131 | intro t |
| 132 | simp only [ContinuousMap.sub_apply,map_sub,smul_sub,heq,heq']) |
| 133 | exact ⟨sub_eq_zero.mp h.1,sub_eq_zero.mp h.2⟩ |
| 134 | |
| 135 | end EulerFrameEndpointUniqueness |