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 | import Mathlib.MeasureTheory.Group.FundamentalDomain |
| 3 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.Periodic |
| 4 | |
| 5 | /-! A volume-preserving map of the real cylinder cover which commutes |
| 6 | with deck translations induces a measure-preserving cylinder map. The |
| 7 | proof compares genuine fundamental domains; it does not integrate a |
| 8 | nonzero periodic function over the whole real cover. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerCylinderMeasureDescent |
| 13 | |
| 14 | open Set Function MeasureTheory EulerLiftedGradientSpace |
| 15 | open scoped Pointwise |
| 16 | |
| 17 | variable (P : ℝ) [Fact (0 < P)] |
| 18 | |
| 19 | local instance (priority := 2000) deckVAdd : VAdd (AddSubgroup.zmultiples P) LiftTangent where |
| 20 | vadd c z := (z.1,(c : ℝ)+z.2) |
| 21 | |
| 22 | local instance deckAction : AddAction (AddSubgroup.zmultiples P) LiftTangent where |
| 23 | vadd := (· +ᵥ ·) |
| 24 | zero_vadd z := by |
| 25 | change (z.1,(0 : ℝ)+z.2)=z |
| 26 | simp |
| 27 | add_vadd c d z := by |
| 28 | change (z.1,((c : ℝ)+(d : ℝ))+z.2) = (z.1,(c : ℝ)+((d : ℝ)+z.2)) |
| 29 | rw [add_assoc] |
| 30 | |
| 31 | omit [Fact (0 < P)] in |
| 32 | theorem deck_apply (c : AddSubgroup.zmultiples P) (z : LiftTangent) : |
| 33 | c +ᵥ z = (z.1,(c : ℝ)+z.2) := rfl |
| 34 | |
| 35 | local instance deckMeasurable : MeasurableConstVAdd (AddSubgroup.zmultiples P) LiftTangent where |
| 36 | measurable_const_vadd _c := measurable_fst.prodMk (measurable_const.add measurable_snd) |
| 37 | |
| 38 | local instance deckInvariant : VAddInvariantMeasure (AddSubgroup.zmultiples P) LiftTangent volume where |
| 39 | measure_preimage_vadd c s hs := by |
| 40 | have hp := (MeasurePreserving.id (volume : Measure Vector3)).prod |
| 41 | (measurePreserving_add_left (volume : Measure ℝ) (c : ℝ)) |
| 42 | exact hp.measure_preimage hs.nullMeasurableSet |
| 43 | |
| 44 | omit [Fact (0 < P)] in |
| 45 | theorem coveringMap_deck (c : AddSubgroup.zmultiples P) (z : LiftTangent) : |
| 46 | coveringMap P (c +ᵥ z) = coveringMap P z := by |
| 47 | have hc : ((c : ℝ) : AddCircle P)=0 := (QuotientAddGroup.eq_zero_iff _).2 c.property |
| 48 | simp only [deck_apply,coveringMap,AddCircle.coe_add,hc,zero_add] |
| 49 | |
| 50 | def strip : Set LiftTangent := Prod.snd ⁻¹' Ioc (0 : ℝ) P |
| 51 | |
| 52 | omit [Fact (0 < P)] in |
| 53 | theorem strip_measurable : MeasurableSet (strip P) := measurable_snd measurableSet_Ioc |
| 54 | |
| 55 | theorem strip_fundamental : IsAddFundamentalDomain (AddSubgroup.zmultiples P) (strip P) volume := by |
| 56 | have h := (isAddFundamentalDomain_Ioc (Fact.out : 0 < P) 0).preimage_of_equiv |
| 57 | (G := AddSubgroup.zmultiples P) (H := AddSubgroup.zmultiples P) |
| 58 | (f := (Prod.snd : LiftTangent → ℝ)) |
| 59 | (Measure.quasiMeasurePreserving_snd (μ := (volume : Measure Vector3)) (ν := volume)) |
| 60 | (e := id) Function.bijective_id (fun _ _ => rfl) |
| 61 | convert! h using 1 |
| 62 | simp only [zero_add,strip] |
| 63 | |
| 64 | theorem coveringMap_measurePreserving : |
| 65 | MeasurePreserving (coveringMap P) (volume.restrict (strip P)) (liftMeasure P) := by |
| 66 | have hm : (volume : Measure LiftTangent).restrict (strip P) = |
| 67 | (volume : Measure Vector3).prod ((volume : Measure ℝ).restrict (Ioc (0 : ℝ) P)) := by |
| 68 | change (volume.prod volume).restrict (Prod.snd ⁻¹' Ioc (0 : ℝ) P) = _ |
| 69 | rw [← univ_prod,← Measure.prod_restrict,Measure.restrict_univ] |
| 70 | rw [hm] |
| 71 | have hp := (MeasurePreserving.id (volume : Measure Vector3)).prod (AddCircle.measurePreserving_mk P 0) |
| 72 | simp only [zero_add] at hp |
| 73 | convert! hp using 1 |
| 74 | |
| 75 | theorem quotient_set_measure (s : Set (LiftDomain P)) (hs : MeasurableSet s) : |
| 76 | liftMeasure P s = volume (coveringMap P ⁻¹' s ∩ strip P) := by |
| 77 | have h := (coveringMap_measurePreserving P).measure_preimage hs.nullMeasurableSet |
| 78 | rw [Measure.restrict_apply ((coveringMap_measurePreserving P).measurable hs)] at h |
| 79 | exact h.symm |
| 80 | |
| 81 | theorem measurePreserving_of_cover |
| 82 | (f : LiftTangent → LiftTangent) (g : LiftDomain P → LiftDomain P) |
| 83 | (hf : MeasurePreserving f volume volume) (hg : Measurable g) |
| 84 | (hdeck : ∀ (c : AddSubgroup.zmultiples P) z, |
| 85 | f (z.1,(c : ℝ)+z.2) = ((f z).1,(c : ℝ)+(f z).2)) |
| 86 | (hcover : ∀ z, coveringMap P (f z)=g (coveringMap P z)) : |
| 87 | MeasurePreserving g (liftMeasure P) (liftMeasure P) := by |
| 88 | have hequiv (c : AddSubgroup.zmultiples P) : Semiconj f (c +ᵥ ·) (c +ᵥ ·) := hdeck c |
| 89 | have hfd := strip_fundamental P |
| 90 | have hfd' : IsAddFundamentalDomain (AddSubgroup.zmultiples P) (f ⁻¹' strip P) volume := |
| 91 | hfd.preimage_of_equiv hf.quasiMeasurePreserving (e := id) Function.bijective_id hequiv |
| 92 | refine ⟨hg,?_⟩ |
| 93 | ext s hs |
| 94 | rw [Measure.map_apply hg hs,quotient_set_measure P (g ⁻¹' s) (hg hs),quotient_set_measure P s hs] |
| 95 | have hset : coveringMap P ⁻¹' (g ⁻¹' s) = f ⁻¹' (coveringMap P ⁻¹' s) := by |
| 96 | ext z |
| 97 | simp only [mem_preimage,hcover] |
| 98 | rw [hset] |
| 99 | have hA : MeasurableSet (coveringMap P ⁻¹' s) := (coveringMap_measurePreserving P).measurable hs |
| 100 | calc |
| 101 | volume (f ⁻¹' (coveringMap P ⁻¹' s) ∩ strip P) = |
| 102 | volume (f ⁻¹' (coveringMap P ⁻¹' s) ∩ f ⁻¹' strip P) := by |
| 103 | apply hfd.measure_set_eq hfd' (hf.measurable hA) |
| 104 | intro c |
| 105 | ext z |
| 106 | change coveringMap P (f (c +ᵥ z)) ∈ s ↔ coveringMap P (f z) ∈ s |
| 107 | rw [hequiv c z,coveringMap_deck] |
| 108 | _ = volume (f ⁻¹' ((coveringMap P ⁻¹' s) ∩ strip P)) := by rw [preimage_inter] |
| 109 | _ = volume ((coveringMap P ⁻¹' s) ∩ strip P) := |
| 110 | hf.measure_preimage (hA.inter (strip_measurable P)).nullMeasurableSet |
| 111 | |
| 112 | end EulerCylinderMeasureDescent |