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.IntervalPathConcatenation |
| 2 | import Euler.OrdinaryEulerLifespan |
| 3 | |
| 4 | /-! Two actual ordinary Euler solutions with matching endpoint data |
| 5 | concatenate to an actual solution. The projected equation identifies |
| 6 | their time derivatives at the seam; the scalar pressure is canonical. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerOrdinarySobolev.Evolution |
| 11 | |
| 12 | open Set Filter EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field |
| 13 | EulerMeanSolenoidal EulerIntervalConcatenation |
| 14 | open scoped Topology |
| 15 | |
| 16 | variable {T S : ℝ} {hT : 0 ≤ T} {hS : 0 ≤ S} |
| 17 | (U : Evolution T hT) (V : Evolution S hS) |
| 18 | |
| 19 | def joinedVelocity (t : Icc (0 : ℝ) (T+S)) : SmoothL2Field Space := |
| 20 | join T S hT hS U.velocity V.velocity t |
| 21 | |
| 22 | theorem joinedVelocity_continuous |
| 23 | (hmatch : U.velocity ⟨T,hT,le_rfl⟩=V.velocity ⟨0,le_rfl,hS⟩) (n : ℕ) : |
| 24 | Continuous (fun t => (U.joinedVelocity V t).jetLp n) := by |
| 25 | have hc := join_continuous (hT := hT) (hS := hS) |
| 26 | (fun t => (U.velocity t).jetLp n) (fun t => (V.velocity t).jetLp n) |
| 27 | (U.velocity_continuous n) (V.velocity_continuous n) |
| 28 | (congrArg (fun A : SmoothL2Field Space => A.jetLp n) hmatch) |
| 29 | have he : (fun t : Icc (0 : ℝ) (T+S) => (U.joinedVelocity V t).jetLp n)= |
| 30 | fun t : Icc (0 : ℝ) (T+S) => |
| 31 | join T S hT hS (fun s => (U.velocity s).jetLp n) (fun s => (V.velocity s).jetLp n) t := by |
| 32 | funext t |
| 33 | exact map_join U.velocity V.velocity (fun A : SmoothL2Field Space => A.jetLp n) t |
| 34 | rw [he] |
| 35 | exact hc.comp continuous_subtype_val |
| 36 | |
| 37 | theorem velocity_toLp_hasDerivWithinAt_projected (hpos : 0 < T) (t : Icc (0 : ℝ) T) : |
| 38 | HasDerivWithinAt (fun r => (U.velocity (projIcc 0 T hT r)).toLp) |
| 39 | (projectedRhs (U.velocity t)).toLp (Icc (0 : ℝ) T) t := by |
| 40 | rw [← U.derivative_toLp_projected hpos t] |
| 41 | have h := U.velocityPath_hasDerivWithinAt t |
| 42 | rw [U.velocityPath_extend] at h |
| 43 | exact h |
| 44 | |
| 45 | theorem joinedVelocity_derivative (hTpos : 0 < T) (hSpos : 0 < S) |
| 46 | (hmatch : U.velocity ⟨T,hT,le_rfl⟩=V.velocity ⟨0,le_rfl,hS⟩) |
| 47 | (t : ℝ) (ht : t ∈ Ioo 0 (T+S)) : |
| 48 | HasDerivAt (fun r => (U.joinedVelocity V (projIcc 0 (T+S) (add_nonneg hT hS) r)).toLp) |
| 49 | (projectedRhs (U.joinedVelocity V ⟨t,ht.1.le,ht.2.le⟩)).toLp t := by |
| 50 | have hd := join_hasDerivAt (fun s => (U.velocity s).toLp) (fun s => (V.velocity s).toLp) |
| 51 | (fun s => (projectedRhs (U.velocity s)).toLp) (fun s => (projectedRhs (V.velocity s)).toLp) |
| 52 | hTpos hSpos (congrArg (fun A : SmoothL2Field Space => A.toLp) hmatch) |
| 53 | (U.velocity_toLp_hasDerivWithinAt_projected hTpos) |
| 54 | (V.velocity_toLp_hasDerivWithinAt_projected hSpos) |
| 55 | (congrArg (fun A : SmoothL2Field Space => (projectedRhs A).toLp) hmatch) t ht |
| 56 | have hb : join T S hT hS (fun s => (projectedRhs (U.velocity s)).toLp) |
| 57 | (fun s => (projectedRhs (V.velocity s)).toLp) t= |
| 58 | (projectedRhs (U.joinedVelocity V ⟨t,ht.1.le,ht.2.le⟩)).toLp := |
| 59 | (map_join U.velocity V.velocity (fun A : SmoothL2Field Space => (projectedRhs A).toLp) t).symm |
| 60 | rw [hb] at hd |
| 61 | apply hd.congr_of_eventuallyEq |
| 62 | filter_upwards [Icc_mem_nhds ht.1 ht.2] with r hr |
| 63 | rw [projIcc_of_mem (add_nonneg hT hS) hr] |
| 64 | exact map_join U.velocity V.velocity (fun A : SmoothL2Field Space => A.toLp) r |
| 65 | |
| 66 | theorem joinedVelocity_solenoidal (t : Icc (0 : ℝ) (T+S)) : |
| 67 | (U.joinedVelocity V t).toLp ∈ solenoidalSpace := by |
| 68 | unfold joinedVelocity EulerIntervalConcatenation.join |
| 69 | split |
| 70 | · exact U.solenoidal _ |
| 71 | · exact V.solenoidal _ |
| 72 | |
| 73 | def concatenate (hTpos : 0 < T) (hSpos : 0 < S) |
| 74 | (hmatch : U.velocity ⟨T,hT,le_rfl⟩=V.velocity ⟨0,le_rfl,hS⟩) : |
| 75 | Evolution (T+S) (add_nonneg hT hS) where |
| 76 | velocity := U.joinedVelocity V |
| 77 | pressureForce t := pressureField (U.joinedVelocity V t) |
| 78 | velocity_continuous := U.joinedVelocity_continuous V hmatch |
| 79 | pressure_continuous := pressureField_continuous (U.joinedVelocity V) |
| 80 | (U.joinedVelocity_continuous V hmatch) |
| 81 | solenoidal := U.joinedVelocity_solenoidal V |
| 82 | gradient t := pressureField_mem_gradient (U.joinedVelocity V t) |
| 83 | time_law t ht x := by |
| 84 | have hd := pointwise_derivative_of_l2 (T+S) (add_nonneg hT hS) |
| 85 | (U.joinedVelocity V) (fun s => projectedRhs (U.joinedVelocity V s)) |
| 86 | (U.joinedVelocity_continuous V hmatch) |
| 87 | (projectedRhs_continuous (U.joinedVelocity V) (U.joinedVelocity_continuous V hmatch)) |
| 88 | (U.joinedVelocity_derivative V hTpos hSpos hmatch) ⟨t,ht.1.le,ht.2.le⟩ x |
| 89 | simpa only [projectedRhs_field] using hd.hasDerivAt (Icc_mem_nhds ht.1 ht.2) |
| 90 | |
| 91 | theorem concatenate_initial (hTpos : 0 < T) (hSpos : 0 < S) |
| 92 | (hmatch : U.velocity ⟨T,hT,le_rfl⟩=V.velocity ⟨0,le_rfl,hS⟩) : |
| 93 | (U.concatenate V hTpos hSpos hmatch).velocity ⟨0,le_rfl,add_nonneg hT hS⟩= |
| 94 | U.velocity ⟨0,le_rfl,hT⟩ := by |
| 95 | change join T S hT hS U.velocity V.velocity 0=U.velocity ⟨0,le_rfl,hT⟩ |
| 96 | rw [join_left U.velocity V.velocity hT,projIcc_of_mem hT (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,hT⟩)] |
| 97 | |
| 98 | theorem concatenate_left (hTpos : 0 < T) (hSpos : 0 < S) |
| 99 | (hmatch : U.velocity ⟨T,hT,le_rfl⟩=V.velocity ⟨0,le_rfl,hS⟩) |
| 100 | (t : Icc (0 : ℝ) T) : |
| 101 | (U.concatenate V hTpos hSpos hmatch).velocity |
| 102 | ⟨t,t.property.1,t.property.2.trans (le_add_of_nonneg_right hS)⟩=U.velocity t := by |
| 103 | change join T S hT hS U.velocity V.velocity t=U.velocity t |
| 104 | rw [join_left U.velocity V.velocity t.property.2,projIcc_of_mem hT t.property] |
| 105 | |
| 106 | theorem concatenate_right (hTpos : 0 < T) (hSpos : 0 < S) |
| 107 | (hmatch : U.velocity ⟨T,hT,le_rfl⟩=V.velocity ⟨0,le_rfl,hS⟩) |
| 108 | (t : Icc (0 : ℝ) S) : |
| 109 | (U.concatenate V hTpos hSpos hmatch).velocity |
| 110 | ⟨T+t,add_nonneg hT t.property.1,add_le_add_right t.property.2 T⟩=V.velocity t := by |
| 111 | change join T S hT hS U.velocity V.velocity (T+t)=V.velocity t |
| 112 | rw [join_right U.velocity V.velocity hmatch (le_add_of_nonneg_right t.property.1), |
| 113 | add_sub_cancel_left,projIcc_of_mem hS t.property] |
| 114 | |
| 115 | end EulerOrdinarySobolev.Evolution |