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.SourceCylinderPressureMean |
| 2 | |
| 3 | /-! |
| 4 | # The actual normalized pressure in the transverse forward equation |
| 5 | |
| 6 | The scalar L² primitive and the literal periodic integral are identified. |
| 7 | Its angular derivative closes equation (11) for the constructed physical |
| 8 | field. The pressure is smooth in the cylinder variables, has zero angular |
| 9 | mean, and retains the same spatial support. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace EulerSourceCylinderEquation |
| 15 | |
| 16 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerMeanCoefficients |
| 17 | EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderPaths |
| 18 | EulerCylinderScalarPrimitive |
| 19 | open scoped ContDiff BoundedContinuousFunction |
| 20 | |
| 21 | variable (P : ℝ) [Fact (0 < P)] |
| 22 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 23 | (S : Set Space) (hS : MeasurableSet S) (T : ℝ) (hT : 0 ≤ T) |
| 24 | (Q Q₁ : SmoothCoefficientPath (Icc (0 : ℝ) T) (U →L[ℝ] Space)) |
| 25 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t x v, c*‖v‖^2 ≤ ‖Q.field t x v‖^2) |
| 26 | (f : C(Icc (0 : ℝ) T,Supported P Space S hS)) (a₀ : Supported P U S hS) |
| 27 | (M : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space)) |
| 28 | (m : SmoothCoefficientPath (Icc (0 : ℝ) T) Space) |
| 29 | (cm : ℝ) (hcm : 0 < cm) (hm : ∀ t x, cm ≤ ‖m.field t x‖^2) |
| 30 | |
| 31 | /-- The actual bounded angular inverse applied to the solved scalar source. -/ |
| 32 | def pressurePath : C(Icc (0 : ℝ) T,CylinderL2 P ℝ) := |
| 33 | pathPrimitive P (includePath P S hS |
| 34 | (pressureSource P S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm)) |
| 35 | |
| 36 | theorem pressurePath_contDiff (hSc : IsCompact S) |
| 37 | (hf : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (includePath P S hS f))) |
| 38 | (ha₀ : ContDiff ℝ ∞ (fun a : LiftTangent => translate P a (a₀ : CylinderL2 P U))) : |
| 39 | ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a |
| 40 | (pressurePath P S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm)) := |
| 41 | pathPrimitive_orbit_contDiff P _ |
| 42 | (pressureSource_contDiff P S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm hSc hf ha₀) |
| 43 | |
| 44 | end EulerSourceCylinderEquation |
| 45 | |
| 46 | namespace EulerSourceCylinderClassical |
| 47 | |
| 48 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerMeanCoefficients |
| 49 | EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderPaths |
| 50 | EulerSourceCylinderEquation EulerCylinderSmoothOrbit EulerCylinderAngleAverage |
| 51 | EulerCylinderScalarPrimitive EulerMetricTransport |
| 52 | open scoped ContDiff BoundedContinuousFunction |
| 53 | |
| 54 | variable (P : ℝ) [Fact (0 < P)] |
| 55 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 56 | (S : Set Space) (hS : MeasurableSet S) (hSc : IsCompact S) (T : ℝ) (hT : 0 ≤ T) |
| 57 | (Q Q₁ : SmoothCoefficientPath (Icc (0 : ℝ) T) (U →L[ℝ] Space)) |
| 58 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t x v, c*‖v‖^2 ≤ ‖Q.field t x v‖^2) |
| 59 | (f : C(Icc (0 : ℝ) T,Supported P Space S hS)) (a₀ : Supported P U S hS) |
| 60 | (hf : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (includePath P S hS f))) |
| 61 | (ha₀ : ContDiff ℝ ∞ (fun a : LiftTangent => translate P a (a₀ : CylinderL2 P U))) |
| 62 | (M : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space)) |
| 63 | (m : SmoothCoefficientPath (Icc (0 : ℝ) T) Space) |
| 64 | (cm : ℝ) (hcm : 0 < cm) (hm : ∀ t x, cm ≤ ‖m.field t x‖^2) |
| 65 | (hf₀ : ∀ t, average P (f t : CylinderL2 P Space) = 0) |
| 66 | (ha₀zero : average P (a₀ : CylinderL2 P U) = 0) |
| 67 | |
| 68 | /-- The literal normalized periodic pressure for the actual forward solution. -/ |
| 69 | def pressureField (t : Icc (0 : ℝ) T) : LiftDomain P → ℝ := |
| 70 | classicalPrimitive P |
| 71 | (normalResidual P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m t) |
| 72 | (normalResidual_continuous P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m |
| 73 | (normal_ne_zero_of_lower T m cm hcm hm) t) |
| 74 | (normalResidual_mean_zero P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm hf₀ ha₀zero t) |
| 75 | |
| 76 | theorem pressureField_ae (t : Icc (0 : ℝ) T) : |
| 77 | (pressurePath P S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm t : LiftDomain P → ℝ) =ᵐ[liftMeasure P] |
| 78 | pressureField P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm hf₀ ha₀zero t := |
| 79 | primitive_ae_constructed P _ |
| 80 | (pressureSource_slice_contDiff P S hS T hT Q Q₁ c hc hQ f a₀ M m cm hcm hm hSc hf ha₀ t) |
| 81 | _ (normalResidual_continuous P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m |
| 82 | (normal_ne_zero_of_lower T m cm hcm hm) t) |
| 83 | (pressureSource_ae_normalResidual P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm t) |
| 84 | (normalResidual_mean_zero P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm hf₀ ha₀zero t) |
| 85 | |
| 86 | /-- The derivative is genuine at every real angle, including period endpoints. -/ |
| 87 | theorem pressureField_angle (t : Icc (0 : ℝ) T) (y : Space) (θ : ℝ) : |
| 88 | HasDerivAt (fun s : ℝ => |
| 89 | pressureField P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm hf₀ ha₀zero t (y,(s : AddCircle P))) |
| 90 | (normalResidual P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m t (y,(θ : AddCircle P))) θ := |
| 91 | classicalPrimitive_angle P _ _ _ y θ |
| 92 | |
| 93 | theorem pressureField_mean_zero (t : Icc (0 : ℝ) T) (y : Space) : |
| 94 | (∫ θ in (0 : ℝ)..P, |
| 95 | pressureField P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm hf₀ ha₀zero t (y,(θ : AddCircle P))) = 0 := |
| 96 | classicalPrimitive_mean_zero P _ _ _ y |
| 97 | |
| 98 | theorem pressureField_smooth (t : Icc (0 : ℝ) T) (x : LiftDomain P) : |
| 99 | ContDiff ℝ ∞ (localFieldLift P |
| 100 | (pressureField P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm hf₀ ha₀zero t) x) := |
| 101 | classicalPrimitive_smooth P _ _ _ |
| 102 | (normalResidual_smooth P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m |
| 103 | (normal_ne_zero_of_lower T m cm hcm hm) t) x |
| 104 | |
| 105 | theorem pressureField_continuous (t : Icc (0 : ℝ) T) : |
| 106 | Continuous (pressureField P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm hf₀ ha₀zero t) := |
| 107 | smoothField_continuous P _ |
| 108 | (pressureField_smooth P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm hf₀ ha₀zero t) |
| 109 | |
| 110 | theorem normalResidual_zero_outside (t : Icc (0 : ℝ) T) (y : Space) (hy : y ∉ S) |
| 111 | (θ : AddCircle P) : |
| 112 | normalResidual P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m t (y,θ) = 0 := by |
| 113 | have hforce : pointField P (includePath P S hS f) hf t (y,θ) = 0 := by |
| 114 | rw [pointField_eq_representative] |
| 115 | exact representative_zero_outside P S hS hSc.isClosed _ _ (f t).property (y,θ) hy |
| 116 | have hv : field P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t (y,θ) = 0 := by |
| 117 | by_contra h |
| 118 | exact hy (field_tsupport_subset P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t (subset_closure h)) |
| 119 | simp only [normalResidual, hforce, hv, map_zero, inner_zero_right, mul_zero, sub_self, zero_div] |
| 120 | |
| 121 | theorem pressureField_zero_outside (t : Icc (0 : ℝ) T) (y : Space) (hy : y ∉ S) |
| 122 | (θ : AddCircle P) : |
| 123 | pressureField P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm hf₀ ha₀zero t (y,θ) = 0 := |
| 124 | classicalPrimitive_zero P _ _ _ y |
| 125 | (normalResidual_zero_outside P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m t y hy) θ |
| 126 | |
| 127 | theorem pressureField_tsupport_subset (t : Icc (0 : ℝ) T) : |
| 128 | tsupport (pressureField P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm hf₀ ha₀zero t) ⊆ |
| 129 | spatialSet P S := by |
| 130 | apply closure_minimal _ (hSc.isClosed.preimage continuous_fst) |
| 131 | intro x hx |
| 132 | by_contra hn |
| 133 | exact hx (pressureField_zero_outside P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm |
| 134 | hf₀ ha₀zero t x.1 hn x.2) |
| 135 | |
| 136 | theorem pressureField_hasCompactSupport (t : Icc (0 : ℝ) T) : |
| 137 | HasCompactSupport (pressureField P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm hf₀ ha₀zero t) := by |
| 138 | have hcompact : IsCompact (spatialSet P S) := by |
| 139 | have he : spatialSet P S = S ×ˢ (univ : Set (AddCircle P)) := by |
| 140 | ext x |
| 141 | simp only [spatialSet,mem_preimage,mem_prod,mem_univ,and_true] |
| 142 | rw [he] |
| 143 | exact hSc.prod isCompact_univ |
| 144 | exact hcompact.of_isClosed_subset (isClosed_tsupport _) |
| 145 | (pressureField_tsupport_subset P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm hf₀ ha₀zero t) |
| 146 | |
| 147 | /-- Equation (11) with the actual angular derivative of the normalized pressure. -/ |
| 148 | theorem field_pressure_equation |
| 149 | (hTangent : ∀ t x v, ⟪m.field t x,Q.field t x v⟫_ℝ = 0) |
| 150 | (hRange : ∀ t x η, ⟪m.field t x,η⟫_ℝ = 0 → ∃ v, Q.field t x v = η) |
| 151 | (hFlow : ∀ t x, Q₁.field t x = (M.field t x).comp (Q.field t x)) |
| 152 | (t : Icc (0 : ℝ) T) (y : Space) (θ : ℝ) : |
| 153 | derivativeField P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t (y,(θ : AddCircle P)) + |
| 154 | M.field t y (field P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t (y,(θ : AddCircle P))) + |
| 155 | deriv (fun s : ℝ => pressureField P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm |
| 156 | hf₀ ha₀zero t (y,(s : AddCircle P))) θ • m.field t y = |
| 157 | pointField P (includePath P S hS f) hf t (y,(θ : AddCircle P)) := by |
| 158 | rw [(pressureField_angle P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m cm hcm hm hf₀ ha₀zero t y θ).deriv] |
| 159 | exact field_balance P S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m |
| 160 | (normal_ne_zero_of_lower T m cm hcm hm) hTangent hRange hFlow t (y,(θ : AddCircle P)) |
| 161 | |
| 162 | end EulerSourceCylinderClassical |