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.CylinderMeasureDescent |
| 2 | |
| 3 | /-! Canonical descent of periodic cover fields and deck-equivariant maps |
| 4 | to the cylinder, with genuine continuity, inverse and volume properties. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerCylinderCoverDescent |
| 9 | |
| 10 | open Set Function MeasureTheory EulerLiftedGradientSpace |
| 11 | |
| 12 | variable (P : ℝ) [Fact (0 < P)] |
| 13 | |
| 14 | def sectionPoint (q : LiftDomain P) : LiftTangent := |
| 15 | (q.1,(AddCircle.equivIoc P 0 q.2 : ℝ)) |
| 16 | |
| 17 | theorem coveringMap_sectionPoint (q : LiftDomain P) : coveringMap P (sectionPoint P q)=q := by |
| 18 | simp only [sectionPoint,coveringMap,AddCircle.coe_equivIoc,Prod.mk.eta] |
| 19 | |
| 20 | theorem sectionPoint_measurable : Measurable (sectionPoint P) := |
| 21 | measurable_fst.prodMk ((measurable_subtype_coe.comp |
| 22 | (AddCircle.measurableEquivIoc P 0).measurable).comp measurable_snd) |
| 23 | |
| 24 | def descend {V : Type*} (f : LiftTangent → V) (q : LiftDomain P) : V := f (sectionPoint P q) |
| 25 | |
| 26 | theorem descend_cover {V : Type*} (f : LiftTangent → V) |
| 27 | (hf : ∀ a b, coveringMap P a=coveringMap P b → f a=f b) (z : LiftTangent) : |
| 28 | descend P f (coveringMap P z)=f z := |
| 29 | hf _ _ (coveringMap_sectionPoint P (coveringMap P z)) |
| 30 | |
| 31 | theorem descend_measurable {V : Type*} [MeasurableSpace V] (f : LiftTangent → V) |
| 32 | (hf : Measurable f) : Measurable (descend P f) := hf.comp (sectionPoint_measurable P) |
| 33 | |
| 34 | theorem descend_continuous {V : Type*} [TopologicalSpace V] (f : LiftTangent → V) |
| 35 | (hf : Continuous f) (he : ∀ a b, coveringMap P a=coveringMap P b → f a=f b) : |
| 36 | Continuous (descend P f) := by |
| 37 | apply (coveringMap_isOpenQuotient P).isQuotientMap.continuous_iff.mpr |
| 38 | have h : descend P f ∘ coveringMap P = f := funext (descend_cover P f he) |
| 39 | rw [h] |
| 40 | exact hf |
| 41 | |
| 42 | theorem descend_joint_continuous {K V : Type*} [TopologicalSpace K] [TopologicalSpace V] |
| 43 | (f : K → LiftTangent → V) (hf : Continuous (Function.uncurry f)) |
| 44 | (he : ∀ t a b, coveringMap P a=coveringMap P b → f t a=f t b) : |
| 45 | Continuous (fun z : K × LiftDomain P => descend P (f z.1) z.2) := by |
| 46 | apply (IsOpenQuotientMap.id.prodMap (coveringMap_isOpenQuotient P)).isQuotientMap.continuous_iff.mpr |
| 47 | have h : (fun z : K × LiftDomain P => descend P (f z.1) z.2) ∘ |
| 48 | Prod.map id (coveringMap P) = Function.uncurry f := by |
| 49 | funext z |
| 50 | exact descend_cover P (f z.1) (he z.1) z.2 |
| 51 | rw [h] |
| 52 | exact hf |
| 53 | |
| 54 | omit [Fact (0 < P)] in |
| 55 | theorem fiber_constant_of_deck {V : Type*} (f : LiftTangent → V) |
| 56 | (hf : ∀ (c : AddSubgroup.zmultiples P) z, f (z.1,(c : ℝ)+z.2)=f z) |
| 57 | (a b : LiftTangent) (h : coveringMap P a=coveringMap P b) : f a=f b := by |
| 58 | have h₁ : a.1=b.1 := congrArg (fun q : LiftDomain P => q.1) h |
| 59 | have h₂ : (a.2 : AddCircle P)=(b.2 : AddCircle P) := |
| 60 | congrArg (fun q : LiftDomain P => q.2) h |
| 61 | have hm : a.2-b.2 ∈ AddSubgroup.zmultiples P := QuotientAddGroup.eq_iff_sub_mem.mp h₂ |
| 62 | let c : AddSubgroup.zmultiples P := ⟨a.2-b.2,hm⟩ |
| 63 | have hz : (b.1,(c : ℝ)+b.2)=a := by |
| 64 | apply Prod.ext |
| 65 | · exact h₁.symm |
| 66 | · exact sub_add_cancel a.2 b.2 |
| 67 | rw [← hz] |
| 68 | exact hf c b |
| 69 | |
| 70 | def descendMap (f : LiftTangent → LiftTangent) : LiftDomain P → LiftDomain P := |
| 71 | descend P (coveringMap P ∘ f) |
| 72 | |
| 73 | variable (f : LiftTangent → LiftTangent) |
| 74 | (hdeck : ∀ (c : AddSubgroup.zmultiples P) z, |
| 75 | f (z.1,(c : ℝ)+z.2)=((f z).1,(c : ℝ)+(f z).2)) |
| 76 | |
| 77 | include hdeck in |
| 78 | omit [Fact (0 < P)] in |
| 79 | theorem map_fiber_constant (a b : LiftTangent) (h : coveringMap P a=coveringMap P b) : |
| 80 | coveringMap P (f a)=coveringMap P (f b) := by |
| 81 | apply fiber_constant_of_deck P (coveringMap P ∘ f) _ a b h |
| 82 | intro c z |
| 83 | change coveringMap P (f (z.1,(c : ℝ)+z.2))=coveringMap P (f z) |
| 84 | rw [hdeck] |
| 85 | exact EulerCylinderMeasureDescent.coveringMap_deck P c (f z) |
| 86 | |
| 87 | include hdeck in |
| 88 | theorem descendMap_cover (z : LiftTangent) : |
| 89 | descendMap P f (coveringMap P z)=coveringMap P (f z) := |
| 90 | descend_cover P (coveringMap P ∘ f) (map_fiber_constant P f hdeck) z |
| 91 | |
| 92 | include hdeck in |
| 93 | theorem descendMap_continuous (hf : Continuous f) : Continuous (descendMap P f) := |
| 94 | descend_continuous P _ ((coveringMap_isOpenQuotient P).continuous.comp hf) |
| 95 | (map_fiber_constant P f hdeck) |
| 96 | |
| 97 | include hdeck in |
| 98 | theorem descendMap_measurePreserving (hf : MeasurePreserving f volume volume) : |
| 99 | MeasurePreserving (descendMap P f) (liftMeasure P) (liftMeasure P) := |
| 100 | EulerCylinderMeasureDescent.measurePreserving_of_cover P f (descendMap P f) hf |
| 101 | (descend_measurable P _ ((coveringMap_isOpenQuotient P).continuous.measurable.comp hf.measurable)) |
| 102 | hdeck (fun z => (descendMap_cover P f hdeck z).symm) |
| 103 | |
| 104 | include hdeck in |
| 105 | theorem descendMap_leftInverse (g : LiftTangent → LiftTangent) |
| 106 | (hg : ∀ (c : AddSubgroup.zmultiples P) z, |
| 107 | g (z.1,(c : ℝ)+z.2)=((g z).1,(c : ℝ)+(g z).2)) |
| 108 | (hgf : Function.LeftInverse g f) : |
| 109 | Function.LeftInverse (descendMap P g) (descendMap P f) := by |
| 110 | intro q |
| 111 | obtain ⟨z,rfl⟩ := (coveringMap_isOpenQuotient P).surjective q |
| 112 | rw [descendMap_cover P f hdeck,descendMap_cover P g hg,hgf] |
| 113 | |
| 114 | end EulerCylinderCoverDescent |