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.PacketCrossProduct |
| 2 | import Euler.AnglePrimitiveBounds |
| 3 | |
| 4 | /-! The vector potential Q of a tangent, mean-zero, periodic high coefficient. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerPacketAngularPotential |
| 9 | |
| 10 | open EulerSmoothLimit EulerPacketCrossProduct EulerAngleMeanZeroPrimitive |
| 11 | MeasureTheory Set InnerProductSpace |
| 12 | |
| 13 | def potential (P : ℝ) (m : Space) (A : ℝ → Space) : ℝ → Space := |
| 14 | primitive P (fun θ => potentialMultiplier m (A θ)) |
| 15 | |
| 16 | theorem potential_hasDerivAt (P : ℝ) (m : Space) (A : ℝ → Space) |
| 17 | (hA : Continuous A) (θ : ℝ) : |
| 18 | HasDerivAt (potential P m A) (potentialMultiplier m (A θ)) θ := |
| 19 | primitive_hasDerivAt P _ ((potentialMultiplier m).continuous.comp hA) θ |
| 20 | |
| 21 | /-- The actual angular derivative recovers A after crossing with m. -/ |
| 22 | theorem cross_deriv_potential (P : ℝ) (m : Space) (hm : m ≠ 0) (A : ℝ → Space) |
| 23 | (hA : Continuous A) (htan : ∀ θ, ⟪m,A θ⟫_ℝ=0) (θ : ℝ) : |
| 24 | cross m (deriv (potential P m A) θ)=A θ := by |
| 25 | rw [(potential_hasDerivAt P m A hA θ).deriv] |
| 26 | exact cross_potentialMultiplier m (A θ) hm (htan θ) |
| 27 | |
| 28 | theorem potential_periodic (P : ℝ) (m : Space) (A : ℝ → Space) |
| 29 | (hA : Continuous A) (hper : Function.Periodic A P) |
| 30 | (hmean : ∫ θ in 0..P, A θ=0) : Function.Periodic (potential P m A) P := by |
| 31 | apply primitive_periodic P _ ((potentialMultiplier m).continuous.comp hA) |
| 32 | · intro θ |
| 33 | exact congrArg (potentialMultiplier m) (hper θ) |
| 34 | · simp only [Function.comp_def] |
| 35 | rw [(potentialMultiplier m).intervalIntegral_comp_comm (hA.intervalIntegrable 0 P), |
| 36 | hmean, map_zero] |
| 37 | |
| 38 | theorem potential_mean_zero (P : ℝ) (hP : P ≠ 0) (m : Space) (A : ℝ → Space) |
| 39 | (hA : Continuous A) : (∫ θ in 0..P, potential P m A θ)=0 := |
| 40 | primitive_mean_zero P hP _ ((potentialMultiplier m).continuous.comp hA) |
| 41 | |
| 42 | theorem potential_zero (P : ℝ) (m : Space) : |
| 43 | potential P m (fun _ => 0)=fun _ => 0 := by |
| 44 | funext θ |
| 45 | simp [potential, primitive, rawPrimitive] |
| 46 | |
| 47 | /-- The angular construction creates no values at labels where the whole input vanishes. -/ |
| 48 | theorem potential_vanishes (P : ℝ) (m : Space) (A : ℝ → Space) (hA : ∀ θ, A θ=0) : |
| 49 | ∀ θ, potential P m A θ=0 := by |
| 50 | have h : A=fun _ => 0 := funext hA |
| 51 | rw [h, potential_zero] |
| 52 | exact fun _ => rfl |
| 53 | |
| 54 | theorem potential_bound (P M : ℝ) (hP : 0 < P) (hM : 0 ≤ M) (m : Space) |
| 55 | (A : ℝ → Space) (hA : ∀ θ ∈ Icc 0 P, ‖A θ‖ ≤ M) (θ : ℝ) (hθ : θ ∈ Icc 0 P) : |
| 56 | ‖potential P m A θ‖ ≤ 2*P*(‖potentialMultiplier m‖*M) := by |
| 57 | apply primitive_bound P (‖potentialMultiplier m‖*M) hP |
| 58 | (mul_nonneg (norm_nonneg _) hM) _ _ θ hθ |
| 59 | intro s hs |
| 60 | exact ((potentialMultiplier m).le_opNorm (A s)).trans |
| 61 | (mul_le_mul_of_nonneg_left (hA s hs) (norm_nonneg _)) |
| 62 | |
| 63 | end EulerPacketAngularPotential |