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.EulerProof |
| 2 | |
| 3 | /-! |
| 4 | # The actual supported subspace of ordinary spatial L² |
| 5 | |
| 6 | Support is imposed on genuine Bochner L² functions by the closed kernel of |
| 7 | identity minus measurable-set projection. This gives a complete Hilbert space |
| 8 | for localized propagators and keeps the support restriction explicit. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace EulerLpSupportedSubspace |
| 14 | |
| 15 | open Set MeasureTheory ContinuousLinearMap |
| 16 | open scoped ENNReal |
| 17 | |
| 18 | variable {α V : Type*} [MeasurableSpace α] (μ : Measure α) |
| 19 | [NormedAddCommGroup V] [InnerProductSpace ℝ V] |
| 20 | (S : Set α) (hS : MeasurableSet S) |
| 21 | |
| 22 | /-- The actual measurable-set cutoff on a Bochner L² function. -/ |
| 23 | def cutoff (u : Lp V 2 μ) : Lp V 2 μ := |
| 24 | ((Lp.memLp u).indicator hS).toLp (S.indicator u) |
| 25 | |
| 26 | omit [InnerProductSpace ℝ V] in |
| 27 | /-- Its representative is the literal indicator product. -/ |
| 28 | theorem cutoff_ae (u : Lp V 2 μ) : cutoff μ S hS u =ᵐ[μ] S.indicator u := |
| 29 | ((Lp.memLp u).indicator hS).coeFn_toLp |
| 30 | |
| 31 | omit [InnerProductSpace ℝ V] in |
| 32 | /-- Measurable-set projection is norm-decreasing. -/ |
| 33 | theorem cutoff_norm (u : Lp V 2 μ) : ‖cutoff μ S hS u‖ ≤ ‖u‖ := by |
| 34 | apply Lp.norm_le_norm_of_ae_le |
| 35 | filter_upwards [cutoff_ae μ S hS u] with x hx |
| 36 | rw [hx] |
| 37 | by_cases hs : x ∈ S |
| 38 | · rw [indicator_of_mem hs] |
| 39 | · rw [indicator_of_notMem hs, norm_zero] |
| 40 | exact norm_nonneg _ |
| 41 | |
| 42 | /-- The actual cutoff is linear. -/ |
| 43 | def cutoffLinear : Lp V 2 μ →ₗ[ℝ] Lp V 2 μ where |
| 44 | toFun := cutoff μ S hS |
| 45 | map_add' u v := by |
| 46 | apply Lp.ext |
| 47 | filter_upwards [cutoff_ae μ S hS (u+v), cutoff_ae μ S hS u, cutoff_ae μ S hS v, |
| 48 | Lp.coeFn_add u v, Lp.coeFn_add (cutoff μ S hS u) (cutoff μ S hS v)] with x huv hu hv ha hc |
| 49 | simp only [Pi.add_apply] at ha hc |
| 50 | rw [huv, hc, hu, hv] |
| 51 | by_cases hs : x ∈ S |
| 52 | · simp only [indicator_of_mem hs, ha] |
| 53 | · simp only [indicator_of_notMem hs, add_zero] |
| 54 | map_smul' r u := by |
| 55 | simp only [RingHom.id_apply] |
| 56 | apply Lp.ext |
| 57 | filter_upwards [cutoff_ae μ S hS (r • u), cutoff_ae μ S hS u, |
| 58 | Lp.coeFn_smul r u, Lp.coeFn_smul r (cutoff μ S hS u)] with x hru hu ha hc |
| 59 | simp only [Pi.smul_apply] at ha hc |
| 60 | rw [hru, hc, hu] |
| 61 | by_cases hs : x ∈ S |
| 62 | · simp only [indicator_of_mem hs, ha] |
| 63 | · simp only [indicator_of_notMem hs, smul_zero] |
| 64 | |
| 65 | /-- The supported-set projection as a genuine bounded linear map. -/ |
| 66 | def cutoffOperator : Lp V 2 μ →L[ℝ] Lp V 2 μ := |
| 67 | (cutoffLinear μ S hS).mkContinuous 1 (fun u => by |
| 68 | change ‖cutoff μ S hS u‖ ≤ (1 : ℝ)*‖u‖ |
| 69 | simpa only [one_mul] using cutoff_norm μ S hS u) |
| 70 | |
| 71 | /-- The localized Hilbert subspace is a closed kernel. -/ |
| 72 | def supportedSpace : Submodule ℝ (Lp V 2 μ) := |
| 73 | (ContinuousLinearMap.id ℝ (Lp V 2 μ) - cutoffOperator μ S hS).ker |
| 74 | |
| 75 | /-- Membership is fixedness under actual measurable-set projection. -/ |
| 76 | theorem mem_supportedSpace_iff (u : Lp V 2 μ) : |
| 77 | u ∈ supportedSpace μ S hS ↔ u = cutoff μ S hS u := by |
| 78 | change u - cutoff μ S hS u = 0 ↔ _ |
| 79 | exact sub_eq_zero |
| 80 | |
| 81 | /-- Membership is exactly almost-everywhere vanishing outside the given set. -/ |
| 82 | theorem mem_supportedSpace_ae (u : Lp V 2 μ) : |
| 83 | u ∈ supportedSpace μ S hS ↔ ∀ᵐ x ∂μ, x ∉ S → u x = 0 := by |
| 84 | rw [mem_supportedSpace_iff] |
| 85 | constructor |
| 86 | · intro hu |
| 87 | have he : u =ᵐ[μ] S.indicator u := by |
| 88 | conv_lhs => rw [hu] |
| 89 | exact cutoff_ae μ S hS u |
| 90 | filter_upwards [he] with x hx hs |
| 91 | rw [hx, indicator_of_notMem hs] |
| 92 | · intro hu |
| 93 | apply Lp.ext |
| 94 | filter_upwards [cutoff_ae μ S hS u, hu] with x hx ho |
| 95 | rw [hx] |
| 96 | by_cases hs : x ∈ S |
| 97 | · exact (indicator_of_mem hs u).symm |
| 98 | · rw [indicator_of_notMem hs] |
| 99 | exact ho hs |
| 100 | |
| 101 | /-- The support condition is closed in the actual L² norm. -/ |
| 102 | theorem supportedSpace_closed : IsClosed (supportedSpace (V := V) μ S hS : Set (Lp V 2 μ)) := |
| 103 | (ContinuousLinearMap.id ℝ (Lp V 2 μ) - cutoffOperator μ S hS).isClosed_ker |
| 104 | |
| 105 | instance [CompleteSpace V] : CompleteSpace (supportedSpace (V := V) μ S hS) := |
| 106 | (supportedSpace_closed μ S hS).completeSpace_coe |
| 107 | |
| 108 | /-- Every cutoff output belongs to the supported subspace. -/ |
| 109 | theorem cutoff_mem (u : Lp V 2 μ) : cutoff μ S hS u ∈ supportedSpace μ S hS := by |
| 110 | apply (mem_supportedSpace_ae μ S hS _).2 |
| 111 | filter_upwards [cutoff_ae μ S hS u] with x hx hs |
| 112 | rw [hx, indicator_of_notMem hs] |
| 113 | |
| 114 | /-- Actual projection from full spatial L² to its supported Hilbert subspace. -/ |
| 115 | def projection : Lp V 2 μ →L[ℝ] supportedSpace (V := V) μ S hS := |
| 116 | (cutoffOperator μ S hS).codRestrict (supportedSpace μ S hS) (cutoff_mem μ S hS) |
| 117 | |
| 118 | /-- The projection has norm at most one. -/ |
| 119 | theorem projection_norm : ‖projection (V := V) μ S hS‖ ≤ 1 := by |
| 120 | apply opNorm_le_bound _ zero_le_one |
| 121 | intro u |
| 122 | change ‖cutoff μ S hS u‖ ≤ (1 : ℝ)*‖u‖ |
| 123 | simpa only [one_mul] using cutoff_norm μ S hS u |
| 124 | |
| 125 | /-- Inclusion after projection fixes every already supported field. -/ |
| 126 | theorem projection_supported (u : supportedSpace (V := V) μ S hS) : |
| 127 | projection μ S hS (u : Lp V 2 μ) = u := by |
| 128 | apply Subtype.ext |
| 129 | exact ((mem_supportedSpace_iff μ S hS (u : Lp V 2 μ)).1 u.property).symm |
| 130 | |
| 131 | end EulerLpSupportedSubspace |