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.ActualSignedExterior |
| 2 | |
| 3 | /-! |
| 4 | # The actual signed carrier profiles on their Prepared regions |
| 5 | |
| 6 | The family keeps each label's genuine Prepared phase domain. The closed |
| 7 | one-mesh mask support lies strictly inside the open two-mesh domain at |
| 8 | positive time. This proves the physical closure-coverage condition without |
| 9 | extending the profile functions across a native domain boundary. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.ActualSignedNativeProfiles |
| 15 | |
| 16 | open Set Function Filter WeightedClasses PhaseJetBounds |
| 17 | open CorrectionInitialization PhysicalWaveSum |
| 18 | open scoped ContDiff Topology |
| 19 | |
| 20 | |
| 21 | abbrev Label := ActualSignedPhysicalBinding.Label |
| 22 | abbrev NativeLabel (B N0 : ℕ) := |
| 23 | ActualSignedPhysicalData.NativeLabel (ActualSignedExterior.labels B N0) |
| 24 | abbrev Slow := PhaseCalculus.Slow |
| 25 | abbrev Frequency := TorusInverse.Frequency |
| 26 | abbrev LiftPoint := PhysicalGraphBounds.LiftPoint |
| 27 | |
| 28 | variable {B N0 : ℕ} |
| 29 | |
| 30 | /-- No Prepared data is chosen for omitted physical labels. -/ |
| 31 | noncomputable def region (B N0 : ℕ) (L : BandLabel) : Set Slow := by |
| 32 | classical |
| 33 | exact if hL : L ∈ ActualSignedExterior.labels B N0 then |
| 34 | (ActualSignedPhysicalBinding.domain |
| 35 | (ActualSignedExterior.actualLabel ⟨L.val,L.property,hL⟩)).carrier 0 |
| 36 | else ∅ |
| 37 | |
| 38 | theorem region_open (B N0 : ℕ) (L : BandLabel) : IsOpen (region B N0 L) := by |
| 39 | classical |
| 40 | unfold region |
| 41 | split_ifs |
| 42 | · exact (ActualSignedPhysicalBinding.domain _).isOpen _ |
| 43 | · exact isOpen_empty |
| 44 | |
| 45 | theorem region_active (L : NativeLabel B N0) : |
| 46 | region B N0 L = (ActualSignedPhysicalBinding.domain |
| 47 | (ActualSignedExterior.actualLabel L)).carrier 0 := by |
| 48 | classical |
| 49 | simp only [region, dite_eq_left L.mem] |
| 50 | |
| 51 | noncomputable def profilePair (B : ℕ) (n : ℕ) (p : Slow) : ℝ × ℝ := |
| 52 | (PrimaryGeometryAssembly.frequency ActualPrimary.certificate ActualPrimary.modulation |
| 53 | ActualPrimary.upper B n p, |
| 54 | PrimaryGeometryAssembly.axial ActualPrimary.certificate ActualPrimary.modulation |
| 55 | ActualPrimary.upper B n p) |
| 56 | |
| 57 | noncomputable def profileDomain (B N0 : ℕ) : Domain (Frequency × BandLabel) Slow := |
| 58 | PhysicalCopyBounds.copyBandDomain (fun (_ : Frequency) L => region B N0 L) |
| 59 | (fun _ L => region_open B N0 L) |
| 60 | |
| 61 | /-- The constants come from the original joint Prepared family before |
| 62 | selecting a physical label or a lattice copy. -/ |
| 63 | theorem profile_jets : PolynomialJets (profileDomain B N0) |
| 64 | (fun I p => profilePair B I.2.val.1 p) := by |
| 65 | classical |
| 66 | have hfg := (ActualPrimary.choice B N0).prepared.frequency_jets.pair |
| 67 | (ActualPrimary.choice B N0).prepared.axial_jets |
| 68 | constructor |
| 69 | · intro I |
| 70 | by_cases hI : I.2 ∈ ActualSignedExterior.labels B N0 |
| 71 | · let L : NativeLabel B N0 := ⟨I.2.val,I.2.property,hI⟩ |
| 72 | have hb := ActualSignedExterior.actualLabel_reference L |
| 73 | change BaseChartJets.cellBand (ActualSignedExterior.actualLabel L).1 = I.2.val.1 at hb |
| 74 | have hs := hfg.smooth (ActualSignedExterior.actualLabel L).1 |
| 75 | simpa only [profileDomain, PhysicalCopyBounds.copyBandDomain, region, dite_eq_left hI, |
| 76 | ActualSignedPhysicalBinding.domain, ActualParticularStageControls.reindexDomain, |
| 77 | profilePair, hb, L] using hs |
| 78 | · intro p hp |
| 79 | have hempty : p ∈ (∅ : Set Slow) := by |
| 80 | simpa only [profileDomain, PhysicalCopyBounds.copyBandDomain, region, dite_eq_right hI] using hp |
| 81 | exact hempty.elim |
| 82 | · intro N |
| 83 | obtain ⟨C,hC,m,hm⟩ := hfg.bound N |
| 84 | refine ⟨C,hC,m,?_⟩ |
| 85 | intro I j hj p hp |
| 86 | by_cases hI : I.2 ∈ ActualSignedExterior.labels B N0 |
| 87 | · let L : NativeLabel B N0 := ⟨I.2.val,I.2.property,hI⟩ |
| 88 | have hb := ActualSignedExterior.actualLabel_reference L |
| 89 | change BaseChartJets.cellBand (ActualSignedExterior.actualLabel L).1 = I.2.val.1 at hb |
| 90 | have hp' : p ∈ (PrimaryGeometryAssembly.domain ActualPrimary.nominal |
| 91 | (ActualPrimary.choice B N0).prepared.N).carrier (ActualSignedExterior.actualLabel L).1 := by |
| 92 | simpa only [profileDomain, PhysicalCopyBounds.copyBandDomain, region, dite_eq_left hI, |
| 93 | ActualSignedPhysicalBinding.domain, ActualParticularStageControls.reindexDomain, L] using hp |
| 94 | have hbound := hm (ActualSignedExterior.actualLabel L).1 j hj p hp' |
| 95 | simpa only [profileDomain, PhysicalCopyBounds.copyBandDomain, profilePair, |
| 96 | PrimaryGeometryAssembly.domain, PrimaryGeometryAssembly.cellDomain, hb] using hbound |
| 97 | · simp only [profileDomain, PhysicalCopyBounds.copyBandDomain, region, dite_eq_right hI] at hp |
| 98 | exact hp.elim |
| 99 | |
| 100 | noncomputable def liftedSlow (x : LiftPoint) : Slow := |
| 101 | (PolarCharts.radius (PhysicalGraphBounds.liftXY x), PhysicalGraphBounds.liftZT x) |
| 102 | |
| 103 | theorem liftedSlow_continuous : Continuous liftedSlow := |
| 104 | (PolarCharts.radius_continuous.comp PhysicalGraphBounds.liftXY.continuous).prodMk |
| 105 | PhysicalGraphBounds.liftZT.continuous |
| 106 | |
| 107 | theorem liftedSlow_physical (n : ℕ) (w : ProblemStatement.SpaceTime) : |
| 108 | liftedSlow (PhysicalGraphBounds.physicalLift ActualPrimary.h n w) = |
| 109 | ActualSignedPhysicalData.nativeSlow (PhysicalMeanJetBounds.graph ActualPrimary.h n 0 w) := |
| 110 | ActualSignedExterior.physicalLift_slow n w |
| 111 | |
| 112 | variable (s : ∀ l : Label B N0, (ActualSignedPhysicalBinding.nativeViews l).StateData) |
| 113 | |
| 114 | theorem singleton_profiles (L : NativeLabel B N0) (K : BandLabel) (k : Frequency) (p : Slow) : |
| 115 | ((ActualSignedPhysicalData.extendedCarrier (h := ActualPrimary.h) |
| 116 | ((ActualSignedExterior.family s).singleton L) K k).F p, |
| 117 | (ActualSignedPhysicalData.extendedCarrier (h := ActualPrimary.h) |
| 118 | ((ActualSignedExterior.family s).singleton L) K k).G p) = |
| 119 | if K = (L : BandLabel) then profilePair B K.val.1 p else 0 := by |
| 120 | classical |
| 121 | by_cases he : K = (L : BandLabel) |
| 122 | · subst K |
| 123 | have hm : (L : BandLabel) ∈ ((ActualSignedExterior.family s).singleton L).active := Set.mem_singleton _ |
| 124 | simp only [ite_true, ActualSignedPhysicalData.extendedCarrier, dite_eq_left hm] |
| 125 | have hb := ActualSignedExterior.actualLabel_reference L |
| 126 | change BaseChartJets.cellBand (ActualSignedExterior.actualLabel L).1 = L.val.1 at hb |
| 127 | change profilePair B (BaseChartJets.cellBand (ActualSignedExterior.actualLabel L).1) p = |
| 128 | profilePair B L.val.1 p |
| 129 | rw [hb] |
| 130 | · have hm : K ∉ ((ActualSignedExterior.family s).singleton L).active := by |
| 131 | change K ∉ {(L : BandLabel)} |
| 132 | simpa only [Set.mem_singleton_iff] using he |
| 133 | simp only [ite_eq_right he, ActualSignedPhysicalData.extendedCarrier, dite_eq_right hm, |
| 134 | ActualSignedPhysicalData.carrier, Prod.zero_eq_mk] |
| 135 | |
| 136 | /-- A single active branch uses the common joint constants; omitted |
| 137 | branches have identically zero carrier profiles. -/ |
| 138 | theorem singleton_jets (L : NativeLabel B N0) : |
| 139 | PolynomialJets (profileDomain B N0) (fun I p => |
| 140 | ((ActualSignedPhysicalData.extendedCarrier (h := ActualPrimary.h) |
| 141 | ((ActualSignedExterior.family s).singleton L) I.2 I.1).F p, |
| 142 | (ActualSignedPhysicalData.extendedCarrier (h := ActualPrimary.h) |
| 143 | ((ActualSignedExterior.family s).singleton L) I.2 I.1).G p)) := by |
| 144 | classical |
| 145 | have he : (fun I p => |
| 146 | ((ActualSignedPhysicalData.extendedCarrier (h := ActualPrimary.h) |
| 147 | ((ActualSignedExterior.family s).singleton L) I.2 I.1).F p, |
| 148 | (ActualSignedPhysicalData.extendedCarrier (h := ActualPrimary.h) |
| 149 | ((ActualSignedExterior.family s).singleton L) I.2 I.1).G p)) = |
| 150 | (fun (I : Frequency × BandLabel) p => if I.2 = (L : BandLabel) then profilePair B I.2.val.1 p else 0) := by |
| 151 | funext I p |
| 152 | exact singleton_profiles s L I.2 I.1 p |
| 153 | rw [he] |
| 154 | constructor |
| 155 | · intro I |
| 156 | by_cases hI : I.2 = (L : BandLabel) |
| 157 | · simpa only [hI, ite_true] using (profile_jets (B := B) (N0 := N0)).smooth I |
| 158 | · simpa only [ite_eq_right hI] using (contDiffOn_const : |
| 159 | ContDiffOn ℝ ∞ (fun _ : Slow => (0 : ℝ × ℝ)) ((profileDomain B N0).carrier I)) |
| 160 | · intro N |
| 161 | obtain ⟨C,hC,m,hm⟩ := (profile_jets (B := B) (N0 := N0)).bound N |
| 162 | refine ⟨C,hC,m,?_⟩ |
| 163 | intro I j hj p hp |
| 164 | by_cases hI : I.2 = (L : BandLabel) |
| 165 | · simpa only [ite_eq_left hI] using hm I j hj p hp |
| 166 | · simp only [ite_eq_right hI, iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] |
| 167 | exact mul_nonneg (zero_le_one.trans hC) |
| 168 | (pow_nonneg (zero_le_one.trans ((profileDomain B N0).one_le_scale I)) m) |
| 169 | |
| 170 | theorem core_empty (L : NativeLabel B N0) {K : BandLabel} (hne : K ≠ (L : BandLabel)) : |
| 171 | ActualSignedPhysicalData.primitiveCore ((ActualSignedExterior.family s).singleton L) K = ∅ := by |
| 172 | apply Set.eq_empty_iff_forall_notMem.mpr |
| 173 | rintro x ⟨hK,_,_⟩ |
| 174 | exact hne (Set.mem_singleton_iff.mp hK) |
| 175 | |
| 176 | theorem core_in_mask_support (L : NativeLabel B N0) : |
| 177 | ActualSignedPhysicalData.primitiveCore ((ActualSignedExterior.family s).singleton L) L ⊆ |
| 178 | liftedSlow ⁻¹' tsupport (PrimaryRepresentatives.nativeMask |
| 179 | (BaseChartJets.cellBand (ActualSignedExterior.actualLabel L).1) |
| 180 | (PrimaryGeometryAssembly.label ActualPrimary.nominal (ActualSignedExterior.actualLabel L).1).2) := by |
| 181 | rintro x ⟨hL,hm,_⟩ |
| 182 | exact ActualPrimary.spatialMask_native_support (ActualSignedExterior.actualLabel L).1 (liftedSlow x) hm |
| 183 | |
| 184 | theorem closure_covers (L : NativeLabel B N0) (K : BandLabel) (w : ProblemStatement.SpaceTime) |
| 185 | (hw : w ∈ preterminal) |
| 186 | (hc : PhysicalGraphBounds.physicalLift ActualPrimary.h K.val.1 w ∈ |
| 187 | closure (ActualSignedPhysicalData.primitiveCore ((ActualSignedExterior.family s).singleton L) K)) : |
| 188 | ActualSignedPhysicalData.nativeSlow (PhysicalMeanJetBounds.graph ActualPrimary.h K.val.1 0 w) ∈ |
| 189 | region B N0 K := by |
| 190 | classical |
| 191 | by_cases he : K = (L : BandLabel) |
| 192 | · subst K |
| 193 | rw [region_active L] |
| 194 | have hclosure := closure_minimal (core_in_mask_support s L) |
| 195 | ((isClosed_tsupport _).preimage liftedSlow_continuous) |
| 196 | have hmask := hclosure hc |
| 197 | rw [mem_preimage, liftedSlow_physical] at hmask |
| 198 | exact PrimaryGeometryAssembly.native_support_in_carrier ActualPrimary.nominal |
| 199 | (ActualSignedExterior.actualLabel L).1 |
| 200 | ⟨hmask, PhysicalMeanJetBounds.graph_time_pos ActualPrimary.h L.val.1 0 hw⟩ |
| 201 | · rw [core_empty s L he, closure_empty] at hc |
| 202 | exact hc.elim |
| 203 | |
| 204 | /-- The actual homogeneous singleton interface needed by the physical |
| 205 | factory, with no extension or output-bound assumptions. -/ |
| 206 | noncomputable def nativeProfiles (L : NativeLabel B N0) : |
| 207 | ActualSignedPhysicalData.NativeProfiles (h := ActualPrimary.h) |
| 208 | ((ActualSignedExterior.family s).singleton L) where |
| 209 | region := region B N0 |
| 210 | region_open := region_open B N0 |
| 211 | jets := singleton_jets s L |
| 212 | covers K w hw _ hc := closure_covers s L K w hw hc |
| 213 | |
| 214 | /-- The actual assembled potential carrier retains the joint Prepared |
| 215 | bound, including the copy index and every physical label. -/ |
| 216 | theorem potential_profiles_jets (i : Fin 3) : |
| 217 | PolynomialJets (profileDomain B N0) (fun I p => |
| 218 | ((((ActualSignedExterior.family s).potentialCopies ActualPrimary.slots |
| 219 | ActualPrimary.outgoing.data.h_pos.le i).carrier I.1 I.2).F p, |
| 220 | (((ActualSignedExterior.family s).potentialCopies ActualPrimary.slots |
| 221 | ActualPrimary.outgoing.data.h_pos.le i).carrier I.1 I.2).G p)) := by |
| 222 | classical |
| 223 | apply (profile_jets (B := B) (N0 := N0)).congr |
| 224 | intro I p hp |
| 225 | by_cases hI : I.2 ∈ ActualSignedExterior.labels B N0 |
| 226 | · have hactive : I.2 ∈ (ActualSignedExterior.family s).active := hI |
| 227 | have he := singleton_profiles s ⟨I.2.val,I.2.property,hI⟩ I.2 I.1 p |
| 228 | simp only [ite_true] at he |
| 229 | simp only [DependentSignedPhysicalFamily.Family.potentialCopies, |
| 230 | DependentSignedPhysicalFamily.Family.assembled, DependentSignedPhysicalFamily.diagonal, |
| 231 | DependentSignedPhysicalFamily.Family.copyAt, dite_eq_left hactive, |
| 232 | ActualSignedPhysicalData.potentialFamily] |
| 233 | exact he.symm |
| 234 | · have hempty : p ∈ (∅ : Set Slow) := by |
| 235 | simpa only [profileDomain, PhysicalCopyBounds.copyBandDomain, region, dite_eq_right hI] using hp |
| 236 | exact hempty.elim |
| 237 | |
| 238 | theorem pressure_profiles_jets : |
| 239 | PolynomialJets (profileDomain B N0) (fun I p => |
| 240 | ((((ActualSignedExterior.family s).pressureCopies ActualPrimary.slots |
| 241 | ActualPrimary.outgoing.data.h_pos.le).carrier I.1 I.2).F p, |
| 242 | (((ActualSignedExterior.family s).pressureCopies ActualPrimary.slots |
| 243 | ActualPrimary.outgoing.data.h_pos.le).carrier I.1 I.2).G p)) := by |
| 244 | classical |
| 245 | apply (profile_jets (B := B) (N0 := N0)).congr |
| 246 | intro I p hp |
| 247 | by_cases hI : I.2 ∈ ActualSignedExterior.labels B N0 |
| 248 | · have hactive : I.2 ∈ (ActualSignedExterior.family s).active := hI |
| 249 | have he := singleton_profiles s ⟨I.2.val,I.2.property,hI⟩ I.2 I.1 p |
| 250 | simp only [ite_true] at he |
| 251 | simp only [DependentSignedPhysicalFamily.Family.pressureCopies, |
| 252 | DependentSignedPhysicalFamily.Family.assembled, DependentSignedPhysicalFamily.diagonal, |
| 253 | DependentSignedPhysicalFamily.Family.copyAt, dite_eq_left hactive, |
| 254 | ActualSignedPhysicalData.pressureFamily] |
| 255 | exact he.symm |
| 256 | · have hempty : p ∈ (∅ : Set Slow) := by |
| 257 | simpa only [profileDomain, PhysicalCopyBounds.copyBandDomain, region, dite_eq_right hI] using hp |
| 258 | exact hempty.elim |
| 259 | |
| 260 | end NavierStokes.ActualSignedNativeProfiles |