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.PacketPrimaryDynamics |
| 2 | import Euler.PacketSourcePropagator |
| 3 | |
| 4 | /-! The uncut primary is the genuine homogeneous physical evolution of |
| 5 | the actual stationary history's initial coordinate. Its all-time relation |
| 6 | to the compactly supported packet is proved by ODE uniqueness. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerPacketPrimaryFactorization |
| 11 | |
| 12 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerSpatialCutoffs |
| 13 | EulerTransversePacketProvider EulerTransversePacketPrimary EulerPacketTerminalDatum |
| 14 | EulerPacketSourcePropagator EulerLinearDuhamel EulerVolterraConvolution |
| 15 | EulerTransverseGramInverse EulerTransverseNormalResidual EulerFixedEndpointClassical EulerTimeIntervalRestriction |
| 16 | EulerTransverseSourceCoefficientPath EulerPacketPrimaryShear EulerPeriodicProfile |
| 17 | open scoped ContDiff |
| 18 | |
| 19 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 20 | |
| 21 | private theorem physical_homogeneous_unique (T : ℝ) (hT : 0 ≤ T) |
| 22 | (G : C(Icc (0 : ℝ) T,Space →L[ℝ] Space)) (f g : ℝ → Space) |
| 23 | (hf : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt f (G t (f t)) (Icc (0 : ℝ) T) t) |
| 24 | (hg : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt g (G t (g t)) (Icc (0 : ℝ) T) t) |
| 25 | (h0 : f 0=g 0) (t : Icc (0 : ℝ) T) : f t=g t := by |
| 26 | let E := constructedEvolution T hT G |
| 27 | have he (a : ℝ → Space) (ha : ∀ t : Icc (0 : ℝ) T, |
| 28 | HasDerivWithinAt a (G t (a t)) (Icc (0 : ℝ) T) t) : a t=E.solution 0 (a 0) t := |
| 29 | E.solution_unique 0 (a 0) a |
| 30 | (fun s => by simpa only [ContinuousMap.zero_apply,add_zero] using ha s) rfl t |
| 31 | rw [he f hf,he g hg,h0] |
| 32 | |
| 33 | theorem historyVelocity_homogeneous {D : Data U} (B : HistoryData D) |
| 34 | (ξ : U) (x : Space) (t : Icc (0 : ℝ) D.T) : |
| 35 | HasDerivWithinAt (extendPath D.T D.T_pos.le (B.coefficients.labelVelocity x ξ)) |
| 36 | (physicalGenerator D x t (B.coefficients.labelVelocity x ξ t)) |
| 37 | (Icc (0 : ℝ) D.T) t := by |
| 38 | let C := B.coefficients |
| 39 | let a := C.labelCoordinate x ξ t |
| 40 | let b := acceleration D.T D.T_pos.le (C.labelFrame x) (C.labelFrameDerivative x) |
| 41 | (C.labelHessian x) C.lower C.lower_pos (C.labelFrame_lower x) (C.labelFrame_derivative x) |
| 42 | C.potential C.potential_nonneg (C.labelHessian_upper x) C.small ξ t |
| 43 | have hda := velocity_hasDerivWithinAt D.T D.T_pos.le (C.labelFrame x) (C.labelFrameDerivative x) |
| 44 | (C.labelHessian x) C.lower C.lower_pos (C.labelFrame_lower x) (C.labelFrame_derivative x) |
| 45 | C.potential C.potential_nonneg (C.labelHessian_upper x) C.small |
| 46 | (C.labelFrameSecond x) C.time_pos (C.labelFrame_second_derivative x) (C.labelFrame_equation x) ξ t |
| 47 | have hd := (C.labelFrame_derivative x t).clm_apply hda |
| 48 | have hnormal : D.normal.field t x ≠ 0 := HistoryData.normal_ne_zero t x |
| 49 | have he : gram (D.frame.field t x) b = |
| 50 | (D.frame.field t x).adjoint (0-(2 : ℝ) • D.frameDerivative.field t x a) := by |
| 51 | have hp := projected_equation D.T D.T_pos.le |
| 52 | (C.labelFrame x) (C.labelFrameDerivative x) (C.labelHessian x) C.lower C.lower_pos |
| 53 | (C.labelFrame_lower x) (C.labelFrame_derivative x) C.potential C.potential_nonneg |
| 54 | (C.labelHessian_upper x) C.small ξ t |
| 55 | change gram (D.frame.field t x) b = (D.frame.field t x).adjoint ((-2 : ℝ) • D.frameDerivative.field t x a) at hp |
| 56 | simpa only [zero_sub,neg_smul] using hp |
| 57 | have hb := physical_velocity_balance (D.frame.field t x) (D.frameDerivative.field t x) |
| 58 | (D.M.field t x) (D.normal.field t x) hnormal (D.frame_tangent t x) (D.frame_range t x) |
| 59 | (D.frame_strain t x) a b 0 he |
| 60 | have hd' : HasDerivWithinAt (extendPath D.T D.T_pos.le (C.labelVelocity x ξ)) |
| 61 | (D.frameDerivative.field t x a+D.frame.field t x b) (Icc (0 : ℝ) D.T) t := by |
| 62 | convert! hd using 1 |
| 63 | simp only [extendPath,projIcc_of_mem D.T_pos.le t.property] |
| 64 | rfl |
| 65 | apply hd'.congr_deriv |
| 66 | rw [physicalGenerator_apply] |
| 67 | change D.frameDerivative.field t x a+D.frame.field t x b = |
| 68 | -D.M.field t x (D.frame.field t x a)+ |
| 69 | (2*⟪D.normal.field t x,D.M.field t x (D.frame.field t x a)⟫_ℝ/ |
| 70 | ‖D.normal.field t x‖^2) • D.normal.field t x |
| 71 | simp only [inner_zero_right,zero_sub,neg_div,neg_smul] at hb |
| 72 | linear_combination (norm := module) hb |
| 73 | |
| 74 | variable {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 75 | (B : HistoryData (D.initial τ hτ hτT.le)) (ξ : U) |
| 76 | |
| 77 | def uncutVelocity (t : ℝ) (x : Space) : Space := |
| 78 | physical D ⟨0,le_rfl,D.T_pos.le⟩ x |
| 79 | (B.coefficients.labelCoordinate x ξ ⟨0,le_rfl,hτ.le⟩) t |
| 80 | |
| 81 | theorem uncutVelocity_initial (x : Space) : |
| 82 | uncutVelocity τ hτ hτT B ξ 0 x = |
| 83 | B.coefficients.labelVelocity x ξ ⟨0,le_rfl,hτ.le⟩ := by |
| 84 | change physical D ⟨0,le_rfl,D.T_pos.le⟩ x _ ((⟨0,le_rfl,D.T_pos.le⟩ : Icc (0 : ℝ) D.T) : ℝ) = _ |
| 85 | rw [physical_at,propagator_self] |
| 86 | rfl |
| 87 | |
| 88 | theorem uncutVelocity_equation (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 89 | HasDerivWithinAt (fun s => uncutVelocity τ hτ hτT B ξ s x) |
| 90 | (physicalGenerator D x t (uncutVelocity τ hτ hτT B ξ t x)) (Icc (0 : ℝ) D.T) t := by |
| 91 | rw [physicalGenerator_apply] |
| 92 | exact physical_hasDerivWithinAt D ⟨0,le_rfl,D.T_pos.le⟩ t x _ |
| 93 | |
| 94 | theorem uncutVelocity_tangent (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 95 | ⟪D.normal.field t x,uncutVelocity τ hτ hτT B ξ t x⟫_ℝ = 0 := |
| 96 | physical_tangent D ⟨0,le_rfl,D.T_pos.le⟩ t x _ |
| 97 | |
| 98 | theorem uncutVelocity_history (t : Icc (0 : ℝ) τ) (x : Space) : |
| 99 | uncutVelocity τ hτ hτT B ξ t x = B.coefficients.labelVelocity x ξ t := by |
| 100 | have hsub : Icc (0 : ℝ) τ ⊆ Icc (0 : ℝ) D.T := fun _ hs => ⟨hs.1,hs.2.trans hτT.le⟩ |
| 101 | have hu (s : Icc (0 : ℝ) τ) : |
| 102 | HasDerivWithinAt (fun r => uncutVelocity τ hτ hτT B ξ r x) |
| 103 | (physicalGenerator (D.initial τ hτ hτT.le) x s (uncutVelocity τ hτ hτT B ξ s x)) |
| 104 | (Icc (0 : ℝ) τ) s := |
| 105 | (uncutVelocity_equation τ hτ hτT B ξ (initialInclusion D.T τ hτT.le s) x).mono hsub |
| 106 | have hh (s : Icc (0 : ℝ) τ) : |
| 107 | HasDerivWithinAt (extendPath τ hτ.le (B.coefficients.labelVelocity x ξ)) |
| 108 | (physicalGenerator (D.initial τ hτ hτT.le) x s |
| 109 | (extendPath τ hτ.le (B.coefficients.labelVelocity x ξ) s)) (Icc (0 : ℝ) τ) s := by |
| 110 | apply (historyVelocity_homogeneous B ξ x s).congr_deriv |
| 111 | dsimp only [extendPath] |
| 112 | rw [projIcc_of_mem hτ.le s.property] |
| 113 | rfl |
| 114 | have h0 : uncutVelocity τ hτ hτT B ξ 0 x = |
| 115 | extendPath τ hτ.le (B.coefficients.labelVelocity x ξ) 0 := by |
| 116 | rw [uncutVelocity_initial] |
| 117 | dsimp only [extendPath] |
| 118 | rw [projIcc_of_mem hτ.le (show (0 : ℝ) ∈ Icc 0 τ from ⟨le_rfl,hτ.le⟩)] |
| 119 | rfl |
| 120 | have he := physical_homogeneous_unique τ hτ.le (physicalGenerator (D.initial τ hτ hτT.le) x) |
| 121 | (fun s => uncutVelocity τ hτ hτT B ξ s x) |
| 122 | (extendPath τ hτ.le (B.coefficients.labelVelocity x ξ)) hu hh h0 t |
| 123 | calc |
| 124 | _ = extendPath τ hτ.le (B.coefficients.labelVelocity x ξ) t := he |
| 125 | _ = _ := by |
| 126 | dsimp only [extendPath] |
| 127 | rw [projIcc_of_mem hτ.le t.property] |
| 128 | rfl |
| 129 | |
| 130 | theorem canonicalVelocity_eq_cutoff_uncut (hs : tsupport innerCutoff ⊆ D.support) |
| 131 | (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 132 | canonicalVelocity τ hτ hτT B ξ hs t x = innerCutoff x • uncutVelocity τ hτ hτT B ξ t x := by |
| 133 | apply physical_homogeneous_unique D.T D.T_pos.le (physicalGenerator D x) |
| 134 | (fun s => canonicalVelocity τ hτ hτT B ξ hs s x) |
| 135 | (fun s => innerCutoff x • uncutVelocity τ hτ hτT B ξ s x) |
| 136 | (fun s => canonicalVelocity_homogeneous_time τ hτ hτT B ξ hs s x) _ _ t |
| 137 | · intro s |
| 138 | rw [map_smul] |
| 139 | exact (uncutVelocity_equation τ hτ hτT B ξ s x).const_smul (innerCutoff x) |
| 140 | · rw [uncutVelocity_initial] |
| 141 | exact canonicalVelocity_history τ hτ hτT B ξ hs ⟨0,le_rfl,hτ.le⟩ x |
| 142 | |
| 143 | theorem uncutVelocity_ne_zero (hξ : ξ ≠ 0) (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 144 | uncutVelocity τ hτ hτT B ξ t x ≠ 0 := by |
| 145 | intro ht |
| 146 | obtain ⟨s,hs⟩ := B.coefficients.labelVelocity_exists_ne_zero x ξ hξ |
| 147 | have hz := (constructedEvolution D.T D.T_pos.le (physicalGenerator D x)).homogeneous_zero_at |
| 148 | (fun r => uncutVelocity τ hτ hτT B ξ r x) |
| 149 | (fun r => uncutVelocity_equation τ hτ hτT B ξ r x) t |
| 150 | (initialInclusion D.T τ hτT.le s) ht |
| 151 | change uncutVelocity τ hτ hτT B ξ s x = 0 at hz |
| 152 | erw [uncutVelocity_history] at hz |
| 153 | exact hs hz |
| 154 | |
| 155 | theorem vector_uncut_factorization (δ : ℝ) (hδ : 0 < δ) (a : ℝ) |
| 156 | (hs : tsupport innerCutoff ⊆ D.support) (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 157 | vector τ hτ hτT B (initialData D δ hδ (a • ξ) hs) (t,(x,θ)) = |
| 158 | (a*innerCutoff x*profile δ θ) • uncutVelocity τ hτ hτT B ξ t x := by |
| 159 | rw [vector_terminal_smul,vector_factorization_canonical,canonicalVelocity_eq_cutoff_uncut] |
| 160 | simp only [smul_smul] |
| 161 | congr 1 |
| 162 | ring |
| 163 | |
| 164 | end EulerPacketPrimaryFactorization |