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.ContinuousTimeIntegral |
| 2 | import Euler.InitialTimePrimitive |
| 3 | |
| 4 | /-! The actual continuous-time integral agrees with both Bochner primitive constructions. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerTimeContinuousPrimitive |
| 9 | |
| 10 | open Set MeasureTheory ContinuousLinearMap EulerTimeLp EulerInitialTimePrimitive |
| 11 | EulerTerminalTimePrimitive EulerVolterraConvolution |
| 12 | |
| 13 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 14 | (T : ℝ) (hT : 0 ≤ T) |
| 15 | |
| 16 | theorem initialPrimitive_pathLp (f : C(Icc (0 : ℝ) T,E)) : |
| 17 | initialPrimitive T hT (pathLp T hT f) = EulerContinuousTimeIntegral.integral T hT f := by |
| 18 | apply ContinuousMap.ext |
| 19 | intro t |
| 20 | rw [initialPrimitive_apply,initialRealPrimitive_eq_integral] |
| 21 | change (∫ s in (0 : ℝ)..(t : ℝ), zeroExtension T (pathLp T hT f) s) = |
| 22 | ∫ s in (0 : ℝ)..(t : ℝ), extendPath T hT f s |
| 23 | rw [intervalIntegral.integral_of_le t.property.1,intervalIntegral.integral_of_le t.property.1] |
| 24 | apply integral_congr_ae |
| 25 | have he := (zeroExtension_ae T (pathLp T hT f)).trans (pathLp_ae T hT f) |
| 26 | exact ae_restrict_of_ae_restrict_of_subset |
| 27 | (show Ioc (0 : ℝ) (t : ℝ) ⊆ Icc (0 : ℝ) T from |
| 28 | fun s hs => ⟨hs.1.le,hs.2.trans t.property.2⟩) he |
| 29 | |
| 30 | theorem initialTrace_pathLp (f : C(Icc (0 : ℝ) T,E)) : |
| 31 | initialTrace T hT (pathLp T hT f) = |
| 32 | -EulerContinuousTimeIntegral.integral T hT f ⟨T,hT,le_rfl⟩ := by |
| 33 | have he := initialPrimitive_eq_terminal_sub T hT (pathLp T hT f) ⟨T,hT,le_rfl⟩ |
| 34 | rw [initialPrimitive_pathLp,terminalPrimitive_terminal,zero_sub] at he |
| 35 | simpa only [neg_neg] using congrArg Neg.neg he.symm |
| 36 | |
| 37 | theorem primitive_eq_path (p q : C(Icc (0 : ℝ) T,E)) |
| 38 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 39 | HasDerivWithinAt (extendPath T hT p) (q t) (Icc (0 : ℝ) T) t) |
| 40 | (hzero : p ⟨0,le_rfl,hT⟩ = 0) : |
| 41 | initialPrimitive T hT (pathLp T hT q) = p := by |
| 42 | rw [initialPrimitive_pathLp] |
| 43 | apply ContinuousMap.ext |
| 44 | intro t |
| 45 | have he := EulerContinuousTimeIntegral.eq_initial_add_integral T hT q (extendPath T hT p) hd t |
| 46 | simpa only [extendPath,projIcc_of_mem hT t.property, |
| 47 | projIcc_of_mem hT (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,hT⟩),hzero,zero_add] using he.symm |
| 48 | |
| 49 | theorem initialTrace_eq_zero (p q : C(Icc (0 : ℝ) T,E)) |
| 50 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 51 | HasDerivWithinAt (extendPath T hT p) (q t) (Icc (0 : ℝ) T) t) |
| 52 | (hzero : p ⟨0,le_rfl,hT⟩ = 0) (hterminal : p ⟨T,hT,le_rfl⟩ = 0) : |
| 53 | initialTrace T hT (pathLp T hT q) = 0 := by |
| 54 | have he := initialPrimitive_eq_terminal_sub T hT (pathLp T hT q) ⟨T,hT,le_rfl⟩ |
| 55 | rw [primitive_eq_path T hT p q hd hzero,hterminal,terminalPrimitive_terminal,zero_sub] at he |
| 56 | exact neg_eq_zero.mp he.symm |
| 57 | |
| 58 | theorem primitiveTimeLp_eq_pathLp (p q : C(Icc (0 : ℝ) T,E)) |
| 59 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 60 | HasDerivWithinAt (extendPath T hT p) (q t) (Icc (0 : ℝ) T) t) |
| 61 | (hzero : p ⟨0,le_rfl,hT⟩ = 0) (hterminal : p ⟨T,hT,le_rfl⟩ = 0) : |
| 62 | primitiveTimeLp T hT (pathLp T hT q) = pathLp T hT p := by |
| 63 | have hc : terminalPrimitive T hT (pathLp T hT q) = p := by |
| 64 | apply ContinuousMap.ext |
| 65 | intro t |
| 66 | have he := initialPrimitive_eq_terminal_sub T hT (pathLp T hT q) t |
| 67 | rw [primitive_eq_path T hT p q hd hzero,initialTrace_eq_zero T hT p q hd hzero hterminal, |
| 68 | sub_zero] at he |
| 69 | exact he.symm |
| 70 | change pathLp T hT (terminalPrimitive T hT (pathLp T hT q)) = pathLp T hT p |
| 71 | rw [hc] |
| 72 | |
| 73 | omit [CompleteSpace E] [NormedSpace ℝ E] in |
| 74 | theorem pathLp_injective (hTpos : 0 < T) : |
| 75 | Function.Injective (pathLp (E := E) T hT) := by |
| 76 | intro p q he |
| 77 | have hae : extendPath T hT p =ᵐ[timeMeasure T] extendPath T hT q := |
| 78 | (pathLp_ae T hT p).symm.trans (he ▸ pathLp_ae T hT q) |
| 79 | have hfun := Measure.eqOn_Icc_of_ae_eq volume hTpos.ne hae |
| 80 | (extendPath_continuous T hT p).continuousOn (extendPath_continuous T hT q).continuousOn |
| 81 | apply ContinuousMap.ext |
| 82 | intro t |
| 83 | simpa only [extendPath,projIcc_of_mem hT t.property] using hfun t.property |
| 84 | |
| 85 | end EulerTimeContinuousPrimitive |