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 NavierStokes.R3.H3Definitions |
| 2 | import Mathlib.MeasureTheory.Integral.Pi |
| 3 | |
| 4 | noncomputable section |
| 5 | |
| 6 | open Set MeasureTheory |
| 7 | |
| 8 | namespace NavierStokesR3.H3Embedding |
| 9 | |
| 10 | open NavierStokes.ProblemStatement NavierStokes.PeriodicIntegration |
| 11 | |
| 12 | private def unitMeasure : Measure ℝ := volume.restrict (Icc 0 1) |
| 13 | |
| 14 | private instance : IsFiniteMeasure unitMeasure := by |
| 15 | unfold unitMeasure |
| 16 | infer_instance |
| 17 | |
| 18 | private theorem unitPi_eq (n : ℕ) : |
| 19 | Measure.pi (fun _ : Fin n => unitMeasure) = volume.restrict (Icc 0 1) := by |
| 20 | unfold unitMeasure |
| 21 | rw [← Measure.restrict_pi_pi] |
| 22 | congr 1 |
| 23 | ext x |
| 24 | simp [Set.mem_Icc, Pi.le_def] |
| 25 | |
| 26 | private theorem integrable_unitPi {n : ℕ} {g : (Fin n → ℝ) → ℝ} |
| 27 | (hg : Continuous g) : Integrable g (Measure.pi (fun _ : Fin n => unitMeasure)) := by |
| 28 | rw [unitPi_eq] |
| 29 | exact hg.integrableOn_Icc |
| 30 | |
| 31 | /-- The iterated coordinate integral used by the elementary FTC proof is |
| 32 | exactly the ordinary product-volume integral on the cube. -/ |
| 33 | theorem boxIntegral_eq_cubeIntegral {h : Space → ℝ} (hh : Continuous h) : |
| 34 | NavierStokes.PeriodicSobolev.boxIntegral h = cubeIntegral h := by |
| 35 | have hi := integrable_unitPi (hh.comp toSpace.continuous) |
| 36 | let e := MeasurableEquiv.piFinSuccAbove (fun _ : Fin 3 => ℝ) 0 |
| 37 | have he := (measurePreserving_piFinSuccAbove (fun _ : Fin 3 => unitMeasure) 0).symm |
| 38 | have hei : Integrable (fun z : ℝ × (Fin 2 → ℝ) => h (toSpace (e.symm z))) |
| 39 | (unitMeasure.prod (Measure.pi (fun _ : Fin 2 => unitMeasure))) := by |
| 40 | exact (he.integrable_comp_emb e.symm.measurableEmbedding).2 hi |
| 41 | have h2 (a : ℝ) : Integrable (fun y : Fin 2 → ℝ => h (toSpace (Fin.cons a y))) |
| 42 | (Measure.pi (fun _ : Fin 2 => unitMeasure)) := by |
| 43 | apply integrable_unitPi |
| 44 | apply hh.comp |
| 45 | apply toSpace.continuous.comp |
| 46 | fun_prop |
| 47 | have h2e := (measurePreserving_piFinTwo (fun _ : Fin 2 => unitMeasure)).symm |
| 48 | have h2i (a : ℝ) : Integrable (fun z : ℝ × ℝ => h (toSpace ![a, z.1, z.2])) |
| 49 | (unitMeasure.prod unitMeasure) := by |
| 50 | exact (h2e.integrable_comp_emb |
| 51 | (MeasurableEquiv.piFinTwo (fun _ : Fin 2 => ℝ)).symm.measurableEmbedding).2 (h2 a) |
| 52 | symm |
| 53 | calc |
| 54 | cubeIntegral h = ∫ y : Fin 3 → ℝ, h (toSpace y) |
| 55 | ∂Measure.pi (fun _ : Fin 3 => unitMeasure) := by |
| 56 | rw [unitPi_eq] |
| 57 | rfl |
| 58 | _ = ∫ z : ℝ × (Fin 2 → ℝ), h (toSpace (e.symm z)) |
| 59 | ∂unitMeasure.prod (Measure.pi (fun _ : Fin 2 => unitMeasure)) := |
| 60 | (he.integral_comp' (fun y => h (toSpace y))).symm |
| 61 | _ = ∫ a, (∫ y : Fin 2 → ℝ, h (toSpace (Fin.cons a y)) |
| 62 | ∂Measure.pi (fun _ : Fin 2 => unitMeasure)) ∂unitMeasure := by |
| 63 | rw [integral_prod _ hei] |
| 64 | simp only [e, MeasurableEquiv.piFinSuccAbove_symm_apply, Fin.insertNthEquiv, |
| 65 | Fin.insertNth_zero, Equiv.coe_fn_mk, cast_eq] |
| 66 | _ = ∫ a, (∫ z : ℝ × ℝ, h (toSpace ![a, z.1, z.2]) |
| 67 | ∂unitMeasure.prod unitMeasure) ∂unitMeasure := by |
| 68 | apply integral_congr_ae |
| 69 | filter_upwards with a |
| 70 | exact (h2e.integral_comp' (fun y : Fin 2 → ℝ => h (toSpace (Fin.cons a y)))).symm |
| 71 | _ = NavierStokes.PeriodicSobolev.boxIntegral h := by |
| 72 | apply integral_congr_ae |
| 73 | filter_upwards with a |
| 74 | exact integral_prod _ (h2i a) |
| 75 | |
| 76 | /-- A nonnegative box integral is at most the integral on all of ℝ³. -/ |
| 77 | theorem boxIntegral_le_integral {h : Space → ℝ} (hh : Continuous h) |
| 78 | (hi : Integrable h) (hn : ∀ x, 0 ≤ h x) : |
| 79 | NavierStokes.PeriodicSobolev.boxIntegral h ≤ ∫ x, h x := by |
| 80 | rw [boxIntegral_eq_cubeIntegral hh] |
| 81 | have he : MeasurePreserving toSpace volume volume := PiLp.volume_preserving_toLp (Fin 3) |
| 82 | have hei : Integrable (fun y : Coords => h (toSpace y)) := |
| 83 | (he.integrable_comp_emb toSpace.toHomeomorph.measurableEmbedding).2 hi |
| 84 | calc |
| 85 | cubeIntegral h ≤ ∫ y : Coords, h (toSpace y) := |
| 86 | integral_mono_measure Measure.restrict_le_self |
| 87 | (Filter.Eventually.of_forall (fun y => hn (toSpace y))) hei |
| 88 | _ = ∫ x, h x := he.integral_comp toSpace.toHomeomorph.measurableEmbedding h |
| 89 | |
| 90 | end NavierStokesR3.H3Embedding |