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.TimeWeakDerivative |
| 2 | |
| 3 | /-! |
| 4 | # Recovering the actual initial trace from a full time weak identity |
| 5 | |
| 6 | The terminal primitive and its exact integration-by-parts identity identify |
| 7 | both an absolutely continuous representative and its initial trace. The |
| 8 | boundary value is a conclusion of testing against all terminal-zero H¹ paths. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace EulerTimeWeakBoundary |
| 14 | |
| 15 | open MeasureTheory Set InnerProductSpace EulerTimeLp EulerTerminalTimePrimitive |
| 16 | EulerTimeWeakDerivative |
| 17 | |
| 18 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 19 | |
| 20 | /-- The full weak identity determines the integration constant explicitly. -/ |
| 21 | theorem weak_boundary_eq_primitive_add_constant (T : ℝ) (hT : 0 ≤ T) |
| 22 | (p h : TimeLp T E) (b : E) |
| 23 | (hweak : ∀ v : TimeLp T E, |
| 24 | ⟪p, v⟫_ℝ + ⟪h, primitiveTimeLp T hT v⟫_ℝ + ⟪b, initialTrace T hT v⟫_ℝ = 0) : |
| 25 | p = primitiveTimeLp T hT h + constantField T hT (b-initialTrace T hT h) := by |
| 26 | apply ext_inner_right ℝ |
| 27 | intro v |
| 28 | have hp := hweak v |
| 29 | have hj := primitive_inner_identity T hT h v |
| 30 | rw [inner_add_left, constantField_inner, inner_sub_left] |
| 31 | linarith only [hp, hj] |
| 32 | |
| 33 | /-- The actual AC representative with the boundary value forced by the weak form. -/ |
| 34 | def boundaryRepresentative (T : ℝ) (hT : 0 ≤ T) (h : TimeLp T E) (b : E) : ℝ → E := |
| 35 | fun t => realPrimitive T h t + (b-initialTrace T hT h) |
| 36 | |
| 37 | omit [CompleteSpace E] in |
| 38 | /-- This representative has precisely the initial value appearing in the weak form. -/ |
| 39 | @[simp] theorem boundaryRepresentative_initial (T : ℝ) (hT : 0 ≤ T) (h : TimeLp T E) (b : E) : |
| 40 | boundaryRepresentative T hT h b 0 = b := by |
| 41 | change initialTrace T hT h + (b-initialTrace T hT h) = b |
| 42 | abel |
| 43 | |
| 44 | omit [CompleteSpace E] in |
| 45 | /-- The explicitly reconstructed representative is genuinely absolutely continuous. -/ |
| 46 | theorem boundaryRepresentative_absolutelyContinuous (T : ℝ) (hT : 0 ≤ T) |
| 47 | (h : TimeLp T E) (b : E) : |
| 48 | AbsolutelyContinuousOnInterval (boundaryRepresentative T hT h b) 0 T := |
| 49 | (realPrimitive_absolutelyContinuous T h).add |
| 50 | ((LipschitzWith.const (b-initialTrace T hT h)).lipschitzOnWith.absolutelyContinuousOnInterval) |
| 51 | |
| 52 | /-- Its a.e. derivative is the actual L² field in the weak identity. -/ |
| 53 | theorem boundaryRepresentative_hasDerivAt_ae (T : ℝ) (hT : 0 ≤ T) (h : TimeLp T E) (b : E) : |
| 54 | ∀ᵐ t ∂timeMeasure T, HasDerivAt (boundaryRepresentative T hT h b) (h t) t := by |
| 55 | filter_upwards [realPrimitive_hasDerivAt_ae T h] with t ht |
| 56 | exact ht.add_const (b-initialTrace T hT h) |
| 57 | |
| 58 | /-- The full weak identity identifies its original L² field with this actual |
| 59 | representative, not merely with a formal boundary functional. -/ |
| 60 | theorem weak_boundary_representation (T : ℝ) (hT : 0 ≤ T) (p h : TimeLp T E) (b : E) |
| 61 | (hweak : ∀ v : TimeLp T E, |
| 62 | ⟪p, v⟫_ℝ + ⟪h, primitiveTimeLp T hT v⟫_ℝ + ⟪b, initialTrace T hT v⟫_ℝ = 0) : |
| 63 | (p : ℝ → E) =ᵐ[timeMeasure T] boundaryRepresentative T hT h b := by |
| 64 | rw [weak_boundary_eq_primitive_add_constant T hT p h b hweak] |
| 65 | filter_upwards [Lp.coeFn_add (primitiveTimeLp T hT h) |
| 66 | (constantField T hT (b-initialTrace T hT h)), |
| 67 | primitiveTimeLp_ae T hT h, constantField_ae T hT (b-initialTrace T hT h)] |
| 68 | with t hadd hj hc |
| 69 | simpa only [Pi.add_apply, boundaryRepresentative, hj, hc] using hadd |
| 70 | |
| 71 | /-- Existence of a genuine AC representative with the derived initial trace and |
| 72 | prescribed a.e. derivative; this also covers the degenerate zero-length interval. -/ |
| 73 | theorem exists_ac_representative_with_initial (T : ℝ) (hT : 0 ≤ T) |
| 74 | (p h : TimeLp T E) (b : E) |
| 75 | (hweak : ∀ v : TimeLp T E, |
| 76 | ⟪p, v⟫_ℝ + ⟪h, primitiveTimeLp T hT v⟫_ℝ + ⟪b, initialTrace T hT v⟫_ℝ = 0) : |
| 77 | ∃ η : ℝ → E, AbsolutelyContinuousOnInterval η 0 T ∧ η 0 = b ∧ |
| 78 | (p : ℝ → E) =ᵐ[timeMeasure T] η ∧ |
| 79 | ∀ᵐ t ∂timeMeasure T, HasDerivAt η (h t) t := |
| 80 | ⟨boundaryRepresentative T hT h b, boundaryRepresentative_absolutelyContinuous T hT h b, |
| 81 | boundaryRepresentative_initial T hT h b, weak_boundary_representation T hT p h b hweak, |
| 82 | boundaryRepresentative_hasDerivAt_ae T hT h b⟩ |
| 83 | |
| 84 | end EulerTimeWeakBoundary |