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.ActualInitialization |
| 2 | import NavierStokes.ActualParticularStageControls |
| 3 | import NavierStokes.ActualSignedStageControls |
| 4 | import NavierStokes.ActualCycleGeometry |
| 5 | |
| 6 | /-! |
| 7 | # Literal cycle parameters on the initialized labels |
| 8 | |
| 9 | The current cycle uses the same primary choice, moving strip, pressure |
| 10 | gauge, index and rank patch as its initialization. The particular solver |
| 11 | orders the sign before the spatial label; initialization and the signed |
| 12 | solver order it after the spatial label. The equivalence below transports |
| 13 | the actual finite coefficient family, rather than choosing new labels. |
| 14 | |
| 15 | This module constructs the parameters and proves their data identities. |
| 16 | It does not assume or assert the analytic preservation of a correction |
| 17 | cycle. |
| 18 | -/ |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | namespace NavierStokes.ActualCycleParameters |
| 23 | |
| 24 | open Set Function CorrectionState CorrectionStep CorrectionInitialization |
| 25 | open scoped BigOperators |
| 26 | |
| 27 | /-! ## Exact transport of the stored coefficient family -/ |
| 28 | |
| 29 | noncomputable def reindexCoefficients {ι κ : Type} (e : κ ≃ ι) |
| 30 | (v : CycleCoefficients ι) : CycleCoefficients κ where |
| 31 | labels n := (v.labels n).map e.symm.toEmbedding |
| 32 | blocks l := v.blocks (e l) |
| 33 | gaussian l := v.gaussian (e l) |
| 34 | aliasCoefficients l := v.aliasCoefficients (e l) |
| 35 | residualBand := v.residualBand |
| 36 | |
| 37 | noncomputable def reindexState {ι κ : Type} (e : κ ≃ ι) |
| 38 | (x : CycleState ι) : CycleState κ where |
| 39 | state := x.state |
| 40 | coefficients := reindexCoefficients e x.coefficients |
| 41 | axisymmetricAlias := x.axisymmetricAlias |
| 42 | |
| 43 | @[simp] theorem reindexCoefficients_mem {ι κ : Type} (e : κ ≃ ι) |
| 44 | (v : CycleCoefficients ι) (n : ℕ) (l : κ) : |
| 45 | l ∈ (reindexCoefficients e v).labels n ↔ e l ∈ v.labels n := by |
| 46 | classical |
| 47 | simp [reindexCoefficients] |
| 48 | |
| 49 | @[simp] theorem reindexState_state {ι κ : Type} (e : κ ≃ ι) |
| 50 | (x : CycleState ι) : (reindexState e x).state = x.state := rfl |
| 51 | |
| 52 | @[simp] theorem reindexState_axis {ι κ : Type} (e : κ ≃ ι) |
| 53 | (x : CycleState ι) : (reindexState e x).axisymmetricAlias = x.axisymmetricAlias := rfl |
| 54 | |
| 55 | @[simp] theorem reindexState_band {ι κ : Type} (e : κ ≃ ι) |
| 56 | (x : CycleState ι) : |
| 57 | (reindexState e x).coefficients.residualBand = x.coefficients.residualBand := rfl |
| 58 | |
| 59 | /-! ## The two label orders describe the same primary choice -/ |
| 60 | |
| 61 | abbrev Index (B N0 : ℕ) := ActualInitialization.Index B N0 |
| 62 | abbrev ParticularIndex (B N0 : ℕ) := ActualParticularStageControls.Label B N0 |
| 63 | |
| 64 | noncomputable def swap (B N0 : ℕ) : Index B N0 ≃ ParticularIndex B N0 := |
| 65 | Equiv.prodComm _ _ |
| 66 | |
| 67 | @[simp] theorem swap_apply {B N0 : ℕ} (l : Index B N0) : swap B N0 l = (l.2, l.1) := rfl |
| 68 | |
| 69 | @[simp] theorem swap_symm_apply {B N0 : ℕ} (l : ParticularIndex B N0) : |
| 70 | (swap B N0).symm l = (l.2, l.1) := rfl |
| 71 | |
| 72 | noncomputable def particularState {B N0 : ℕ} (x : CycleState (Index B N0)) : |
| 73 | CycleState (ParticularIndex B N0) := reindexState (swap B N0).symm x |
| 74 | |
| 75 | @[simp] theorem particularState_state {B N0 : ℕ} (x : CycleState (Index B N0)) : |
| 76 | (particularState x).state = x.state := rfl |
| 77 | |
| 78 | @[simp] theorem particularState_blocks {B N0 : ℕ} (x : CycleState (Index B N0)) |
| 79 | (l : Index B N0) : |
| 80 | (particularState x).coefficients.blocks (swap B N0 l) = x.coefficients.blocks l := rfl |
| 81 | |
| 82 | @[simp] theorem particularState_gaussian {B N0 : ℕ} (x : CycleState (Index B N0)) |
| 83 | (l : Index B N0) : |
| 84 | (particularState x).coefficients.gaussian (swap B N0 l) = x.coefficients.gaussian l := rfl |
| 85 | |
| 86 | @[simp] theorem particularState_alias {B N0 : ℕ} (x : CycleState (Index B N0)) |
| 87 | (l : Index B N0) : |
| 88 | (particularState x).coefficients.aliasCoefficients (swap B N0 l) = |
| 89 | x.coefficients.aliasCoefficients l := rfl |
| 90 | |
| 91 | @[simp] theorem particularState_mem {B N0 : ℕ} (x : CycleState (Index B N0)) |
| 92 | (n : ℕ) (l : Index B N0) : |
| 93 | swap B N0 l ∈ (particularState x).coefficients.labels n ↔ l ∈ x.coefficients.labels n := by |
| 94 | simpa only [particularState, reindexState, Equiv.symm_apply_apply] using |
| 95 | reindexCoefficients_mem (swap B N0).symm x.coefficients n (swap B N0 l) |
| 96 | |
| 97 | /-! ## The actual four-stage parameter constructor -/ |
| 98 | |
| 99 | noncomputable def parameters {B N0 : ℕ} (x : CycleState (Index B N0)) : |
| 100 | CycleParameters (Index B N0) := |
| 101 | CycleParameters.ofGeometry ActualInitialization.geometry ActualPrimary.h |
| 102 | (CommonWindow.index ActualPrimary.h) ActualInitialization.axial |
| 103 | (fun l => ActualParticularStageControls.parameters (particularState x) (swap B N0 l)) |
| 104 | ActualSignedStageControls.parameters ActualPrimary.rankData |
| 105 | |
| 106 | @[simp] theorem parameters_gauge {B N0 : ℕ} (x : CycleState (Index B N0)) : |
| 107 | (parameters x).gauge = ActualPrimary.commonGauge := rfl |
| 108 | |
| 109 | @[simp] theorem parameters_strip {B N0 : ℕ} (x : CycleState (Index B N0)) : |
| 110 | (parameters x).strip = ActualInitialization.strip := rfl |
| 111 | |
| 112 | @[simp] theorem parameters_patch {B N0 : ℕ} (x : CycleState (Index B N0)) : |
| 113 | (parameters x).patch = ActualInitialization.patch := rfl |
| 114 | |
| 115 | @[simp] theorem parameters_coordinate {B N0 : ℕ} (x : CycleState (Index B N0)) : |
| 116 | (parameters x).coordinate = 2 * ActualPrimary.h := rfl |
| 117 | |
| 118 | @[simp] theorem parameters_timeExponent {B N0 : ℕ} (x : CycleState (Index B N0)) : |
| 119 | (parameters x).timeExponent = ActualPrimary.h := rfl |
| 120 | |
| 121 | @[simp] theorem parameters_commonIndex {B N0 : ℕ} (x : CycleState (Index B N0)) : |
| 122 | (parameters x).commonIndex = CommonWindow.index ActualPrimary.h := rfl |
| 123 | |
| 124 | @[simp] theorem parameters_axial {B N0 : ℕ} (x : CycleState (Index B N0)) : |
| 125 | (parameters x).axial = ActualInitialization.axial := rfl |
| 126 | |
| 127 | @[simp] theorem parameters_rank {B N0 : ℕ} (x : CycleState (Index B N0)) : |
| 128 | (parameters x).rank = ActualPrimary.rankData := rfl |
| 129 | |
| 130 | @[simp] theorem parameters_particular {B N0 : ℕ} (x : CycleState (Index B N0)) |
| 131 | (l : Index B N0) : |
| 132 | (parameters x).particular l = |
| 133 | ActualParticularStageControls.parameters (particularState x) (swap B N0 l) := rfl |
| 134 | |
| 135 | @[simp] theorem parameters_signed {B N0 : ℕ} (x : CycleState (Index B N0)) |
| 136 | (l : Index B N0) : |
| 137 | (parameters x).signed l = ActualSignedStageControls.parameters l := rfl |
| 138 | |
| 139 | /-- The physical band floor belongs to the already selected primary |
| 140 | choice and does not change with the current correction state. -/ |
| 141 | noncomputable def bandFloor (B N0 : ℕ) : ℕ := (ActualPrimary.choice B N0).prepared.N |
| 142 | |
| 143 | noncomputable def sourceBand {B N0 : ℕ} (l : Index B N0) : ℕ := BaseChartJets.cellBand l.1 |
| 144 | |
| 145 | theorem activeLabel_band {B N0 : ℕ} (n : ℕ) (l : Index B N0) |
| 146 | (hl : l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n) : |
| 147 | sourceBand l ∈ CommonWindow.levels n := by |
| 148 | classical |
| 149 | have hm := (ActualPrimary.mem_activeLabels ActualPrimary.standardRegion n l.1 l.2).mp hl |
| 150 | obtain ⟨m, hm, hg⟩ := Finset.mem_biUnion.mp hm |
| 151 | obtain ⟨k, _, hk⟩ := Finset.mem_image.mp hg |
| 152 | have he : m = sourceBand l := congrArg Prod.fst hk |
| 153 | simpa only [he] using hm |
| 154 | |
| 155 | theorem activeLabel_index {B N0 : ℕ} (n : ℕ) (l : Index B N0) |
| 156 | (hl : l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n) : |
| 157 | CommonWindow.index ActualPrimary.h n ≤ |
| 158 | ChartScales.nativeIndex ActualPrimary.h (sourceBand l) := |
| 159 | CommonWindow.index_le (activeLabel_band n l hl) |
| 160 | |
| 161 | /-! The particular source really is the current stored residual. -/ |
| 162 | |
| 163 | /-! ## The signed update uses the initialized primary carrier -/ |
| 164 | |
| 165 | theorem signed_frequency (p : PeriodizedSignedParameters CyclePoint TorusInverse.Frequency) |
| 166 | (s : WeightedClasses.StripData CyclePoint) |
| 167 | (request : ℕ → CyclePoint × ℝ → SignedWaveUpdate.Vec2) : |
| 168 | (p.exactBlock s request).frequency = p.base.frequency := rfl |
| 169 | |
| 170 | theorem signed_phase (p : PeriodizedSignedParameters CyclePoint TorusInverse.Frequency) |
| 171 | (s : WeightedClasses.StripData CyclePoint) |
| 172 | (request : ℕ → CyclePoint × ℝ → SignedWaveUpdate.Vec2) : |
| 173 | (p.exactBlock s request).phase = fun n z => p.base.phase n (z, 0) := rfl |
| 174 | |
| 175 | theorem signed_angular (p : PeriodizedSignedParameters CyclePoint TorusInverse.Frequency) |
| 176 | (s : WeightedClasses.StripData CyclePoint) |
| 177 | (request : ℕ → CyclePoint × ℝ → SignedWaveUpdate.Vec2) : |
| 178 | (p.exactBlock s request).angularFrequency = p.angularFrequency := rfl |
| 179 | |
| 180 | theorem primaryPiece_frequency (p : PrimaryPiece (CyclePoint × ℝ)) |
| 181 | (phase : ℕ → CyclePoint → ℝ) (angular : ℕ → ℤ) : |
| 182 | (p.harmonicBlock phase angular).frequency = p.coefficients.frequency := rfl |
| 183 | |
| 184 | theorem primaryPiece_phase (p : PrimaryPiece (CyclePoint × ℝ)) |
| 185 | (phase : ℕ → CyclePoint → ℝ) (angular : ℕ → ℤ) : |
| 186 | (p.harmonicBlock phase angular).phase = phase := rfl |
| 187 | |
| 188 | theorem primaryPiece_angular (p : PrimaryPiece (CyclePoint × ℝ)) |
| 189 | (phase : ℕ → CyclePoint → ℝ) (angular : ℕ → ℤ) : |
| 190 | (p.harmonicBlock phase angular).angularFrequency = angular := rfl |
| 191 | |
| 192 | theorem signed_primary_carrier {B N0 : ℕ} (l : Index B N0) |
| 193 | (s : WeightedClasses.StripData CyclePoint) |
| 194 | (request : ℕ → CyclePoint × ℝ → SignedWaveUpdate.Vec2) : |
| 195 | SameCarrier (ActualInitialization.primaryBlock l) |
| 196 | ((ActualSignedStageControls.parameters l).exactBlock s request) := by |
| 197 | refine ⟨?_, ?_, ?_⟩ |
| 198 | · exact (signed_frequency (ActualSignedStageControls.parameters l) s request).trans |
| 199 | (primaryPiece_frequency (ActualInitialization.primaryPiece l) |
| 200 | (ActualInitialization.phase l) (ActualInitialization.angularMode l)).symm |
| 201 | · exact (signed_phase (ActualSignedStageControls.parameters l) s request).trans |
| 202 | (primaryPiece_phase (ActualInitialization.primaryPiece l) |
| 203 | (ActualInitialization.phase l) (ActualInitialization.angularMode l)).symm |
| 204 | · exact (signed_angular (ActualSignedStageControls.parameters l) s request).trans |
| 205 | (primaryPiece_angular (ActualInitialization.primaryPiece l) |
| 206 | (ActualInitialization.phase l) (ActualInitialization.angularMode l)).symm |
| 207 | |
| 208 | theorem signed_tangent_carrier {B N0 : ℕ} (l : Index B N0) |
| 209 | (s : WeightedClasses.StripData CyclePoint) |
| 210 | (request : ℕ → CyclePoint × ℝ → SignedWaveUpdate.Vec2) : |
| 211 | SameCarrier (ActualInitialization.tangentBlock l) |
| 212 | ((ActualSignedStageControls.parameters l).exactBlock s request) := by |
| 213 | have hs := signed_primary_carrier l s request |
| 214 | have hp := ActualInitialization.primary_tangent_carrier l |
| 215 | exact ⟨hs.frequency.trans hp.frequency.symm, hs.phase.trans hp.phase.symm, |
| 216 | hs.angular.trans hp.angular.symm⟩ |
| 217 | |
| 218 | /-! ## The same fixed primitives at every valid state -/ |
| 219 | |
| 220 | noncomputable def fixedParameters (B N0 : ℕ) : CycleParameters (Index B N0) := |
| 221 | CycleParameters.ofGeometry ActualInitialization.geometry ActualPrimary.h |
| 222 | (CommonWindow.index ActualPrimary.h) ActualInitialization.axial |
| 223 | (fun l => ActualParticularStageControls.canonicalParameters (swap B N0 l)) |
| 224 | ActualSignedStageControls.parameters ActualPrimary.rankData |
| 225 | |
| 226 | @[simp] theorem fixedParameters_particular (B N0 : ℕ) (l : Index B N0) : |
| 227 | (fixedParameters B N0).particular l = |
| 228 | ActualParticularStageControls.canonicalParameters (l.2, l.1) := rfl |
| 229 | |
| 230 | @[simp] theorem fixedParameters_signed (B N0 : ℕ) (l : Index B N0) : |
| 231 | (fixedParameters B N0).signed l = ActualSignedStageControls.parameters l := rfl |
| 232 | |
| 233 | @[simp] theorem fixedParameters_strip (B N0 : ℕ) : |
| 234 | (fixedParameters B N0).strip = ActualInitialization.geometry.strip := rfl |
| 235 | |
| 236 | @[simp] theorem fixedParameters_gauge (B N0 : ℕ) : |
| 237 | (fixedParameters B N0).gauge = ActualInitialization.geometry.gauge := rfl |
| 238 | |
| 239 | @[simp] theorem fixedParameters_patch (B N0 : ℕ) : |
| 240 | (fixedParameters B N0).patch = ActualInitialization.geometry.patch := rfl |
| 241 | |
| 242 | @[simp] theorem fixedParameters_coordinate (B N0 : ℕ) : |
| 243 | (fixedParameters B N0).coordinate = ActualInitialization.geometry.coord := rfl |
| 244 | |
| 245 | @[simp] theorem fixedParameters_timeExponent (B N0 : ℕ) : |
| 246 | (fixedParameters B N0).timeExponent = ActualPrimary.h := rfl |
| 247 | |
| 248 | @[simp] theorem fixedParameters_commonIndex (B N0 : ℕ) : |
| 249 | (fixedParameters B N0).commonIndex = CommonWindow.index ActualPrimary.h := rfl |
| 250 | |
| 251 | @[simp] theorem fixedParameters_axial (B N0 : ℕ) : |
| 252 | (fixedParameters B N0).axial = ActualInitialization.axial := rfl |
| 253 | |
| 254 | @[simp] theorem fixedParameters_rank (B N0 : ℕ) : |
| 255 | (fixedParameters B N0).rank = ActualPrimary.rankData := rfl |
| 256 | |
| 257 | theorem current_frequency {B N0 : ℕ} (x : CycleState (Index B N0)) (l : Index B N0) |
| 258 | (H : SameCarrier (x.coefficients.blocks l) (ActualInitialization.tangentBlock l)) (n : ℕ) : |
| 259 | (x.coefficients.blocks l).frequency n = ChartScales.carrier ActualPrimary.h n := by |
| 260 | calc |
| 261 | _ = (ActualInitialization.tangentBlock l).frequency n := congrFun H.frequency.symm n |
| 262 | _ = (ActualInitialization.primaryBlock l).frequency n := |
| 263 | congrFun (ActualInitialization.primary_tangent_carrier l).frequency n |
| 264 | _ = (ActualInitialization.primaryPiece l).coefficients.frequency n := |
| 265 | congrFun (primaryPiece_frequency (ActualInitialization.primaryPiece l) |
| 266 | (ActualInitialization.phase l) (ActualInitialization.angularMode l)) n |
| 267 | _ = _ := rfl |
| 268 | |
| 269 | theorem parameters_particular_eq_fixed {B N0 : ℕ} (x : CycleState (Index B N0)) |
| 270 | (l : Index B N0) |
| 271 | (H : SameCarrier (x.coefficients.blocks l) (ActualInitialization.tangentBlock l)) : |
| 272 | (parameters x).particular l = (fixedParameters B N0).particular l := |
| 273 | ActualParticularStageControls.parameters_eq_canonical (particularState x) (swap B N0 l) |
| 274 | (current_frequency x l H) |
| 275 | |
| 276 | theorem parameters_eq_fixed {B N0 : ℕ} (x : CycleState (Index B N0)) |
| 277 | (H : ∀ l, SameCarrier (x.coefficients.blocks l) (ActualInitialization.tangentBlock l)) : |
| 278 | parameters x = fixedParameters B N0 := by |
| 279 | have hp : (parameters x).particular = (fixedParameters B N0).particular := |
| 280 | funext (fun l => parameters_particular_eq_fixed x l (H l)) |
| 281 | exact congrArg (fun part : Index B N0 → ParticularParameters CycleSlow => |
| 282 | CycleParameters.ofGeometry ActualInitialization.geometry ActualPrimary.h |
| 283 | (CommonWindow.index ActualPrimary.h) ActualInitialization.axial |
| 284 | part ActualSignedStageControls.parameters ActualPrimary.rankData) hp |
| 285 | |
| 286 | theorem invariant_parameters_eq_fixed {B N0 : ℕ} {x : CycleState (Index B N0)} |
| 287 | {P : Index B N0 → ℕ → CyclePoint → ℝ} |
| 288 | {labelCarrier : Index B N0 → ℕ → Set CyclePoint} {sigma : ℝ} |
| 289 | (H : CycleAnalyticInvariant ActualInitialization.geometry (ActualPrimary.commonContext B) |
| 290 | ActualInitialization.tangentBlock P labelCarrier sigma x) : |
| 291 | parameters x = fixedParameters B N0 := parameters_eq_fixed x H.carrier |
| 292 | |
| 293 | theorem fixedParameters_signed_carrier {B N0 : ℕ} (x : CycleState (Index B N0)) |
| 294 | (c : Context CyclePoint) (l : Index B N0) |
| 295 | (H : SameCarrier (x.coefficients.blocks l) (ActualInitialization.tangentBlock l)) : |
| 296 | SameCarrier (x.coefficients.blocks l) |
| 297 | ((fixedParameters B N0).signedBlock x.coefficients c x.state l) := by |
| 298 | have hs := signed_tangent_carrier l (fixedParameters B N0).strip |
| 299 | ((fixedParameters B N0).signedRequest x.coefficients c x.state) |
| 300 | exact ⟨hs.frequency.trans H.frequency, hs.phase.trans H.phase, hs.angular.trans H.angular⟩ |
| 301 | |
| 302 | theorem invariant_fixedParameters_signed_carrier {B N0 : ℕ} {x : CycleState (Index B N0)} |
| 303 | {P : Index B N0 → ℕ → CyclePoint → ℝ} |
| 304 | {labelCarrier : Index B N0 → ℕ → Set CyclePoint} {sigma : ℝ} |
| 305 | (H : CycleAnalyticInvariant ActualInitialization.geometry (ActualPrimary.commonContext B) |
| 306 | ActualInitialization.tangentBlock P labelCarrier sigma x) (l : Index B N0) : |
| 307 | SameCarrier (x.coefficients.blocks l) |
| 308 | ((fixedParameters B N0).signedBlock x.coefficients (ActualPrimary.commonContext B) x.state l) := |
| 309 | fixedParameters_signed_carrier x _ l (H.carrier l) |
| 310 | |
| 311 | end NavierStokes.ActualCycleParameters |