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.SignedMeanGain |
| 2 | |
| 3 | /-! |
| 4 | # Signed mean gain with fixed physical labels |
| 5 | |
| 6 | The physical wave family keeps its original label type. At each band an |
| 7 | injection on the active finite set identifies its coefficient data with the |
| 8 | relative native labels used by `SignedMeanGain.NativeData`. Finite-sum |
| 9 | reindexing then gives the actual native cross identity. The mean-gain theorem |
| 10 | is applied to the original family, with its original uniform constants. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.BandReindexedSignedMeanGain |
| 16 | |
| 17 | open Set Function |
| 18 | open scoped BigOperators |
| 19 | open WeightedClasses MeanIncrementBounds CorrectionState SignedMeanGain |
| 20 | |
| 21 | /-! ## Coefficient and carrier identities at one band -/ |
| 22 | |
| 23 | /-- The carrier metadata needed to compare the actual fields at one band. |
| 24 | No relationship at another band is required. -/ |
| 25 | structure SameCarrierAt {D : Type} (a b : HarmonicBlock D) (n : ℕ) : Prop where |
| 26 | frequency : b.frequency n = a.frequency n |
| 27 | phase : b.phase n = a.phase n |
| 28 | angular : b.angularFrequency n = a.angularFrequency n |
| 29 | |
| 30 | theorem sameCarrierAt_of_sameCarrier {D : Type} {a b : HarmonicBlock D} |
| 31 | (h : LabelSumBounds.SameCarrier a b) (n : ℕ) : SameCarrierAt a b n := |
| 32 | ⟨congrFun h.frequency n, congrFun h.phase n, congrFun h.angular n⟩ |
| 33 | |
| 34 | /-- Equality of the stored coefficients and carrier metadata identifies the |
| 35 | actual harmonic field at this band. Pressure data are not used in covariance. -/ |
| 36 | theorem oscillation_eq_at_band_of_coefficients {D : Type} |
| 37 | (a b : HarmonicBlock D) (n : ℕ) |
| 38 | (hv : a.velocity n = b.velocity n) (hc : SameCarrierAt a b n) : |
| 39 | a.oscillation n = b.oscillation n := by |
| 40 | funext p i |
| 41 | simp only [HarmonicBlock.oscillation, hv, hc.frequency, hc.phase, hc.angular] |
| 42 | |
| 43 | /-! ## Finite reindexing of actual fields -/ |
| 44 | |
| 45 | /-- Reindex a finite sum using only the coefficient and carrier identities |
| 46 | on its active labels. Inactive labels need not have distinct images. -/ |
| 47 | theorem fieldSum_reindex_of_coefficients {D ι κ : Type} [DecidableEq κ] |
| 48 | (labels : ℕ → Finset ι) (nativeLabels : ℕ → Finset κ) |
| 49 | (a : ι → HarmonicBlock D) (b : κ → HarmonicBlock D) |
| 50 | (e : ℕ → ι → κ) |
| 51 | (he : ∀ n, Set.InjOn (e n) (labels n : Set ι)) |
| 52 | (hlabels : ∀ n, (labels n).image (e n) = nativeLabels n) |
| 53 | (hv : ∀ n l, l ∈ labels n → (a l).velocity n = (b (e n l)).velocity n) |
| 54 | (hc : ∀ n l, l ∈ labels n → SameCarrierAt (a l) (b (e n l)) n) : |
| 55 | LabelSumBounds.fieldSum labels (fun l => (a l).oscillation) = |
| 56 | LabelSumBounds.fieldSum nativeLabels (fun l => (b l).oscillation) := by |
| 57 | funext n p i |
| 58 | simp only [LabelSumBounds.fieldSum] |
| 59 | rw [← hlabels n, Finset.sum_image (he n)] |
| 60 | apply Finset.sum_congr rfl |
| 61 | intro l hl |
| 62 | exact congrFun (congrFun |
| 63 | (oscillation_eq_at_band_of_coefficients (a l) (b (e n l)) n |
| 64 | (hv n l hl) (hc n l hl)) p) i |
| 65 | |
| 66 | /-! ## The native requested cross for arbitrary physical labels -/ |
| 67 | |
| 68 | /-- The actual primary and tangent sums agree with the native sums after |
| 69 | bandwise finite reindexing. This theorem does not reindex `SignedFamily`, |
| 70 | so none of its uniform coefficient bounds acquire a label-dependent constant. -/ |
| 71 | theorem native_fields |
| 72 | (G : Geometry) (B : NativeData G) (c : Context Point) (u : State Point) |
| 73 | {ι : Type} {P : ι → ℕ → Point → ℝ} {α δ β η : ℝ} |
| 74 | (f : LabelSumBounds.SignedFamily G.strip P α δ β η) (a : Assembly f) |
| 75 | (e : ℕ → ι → NativeIndex) |
| 76 | (he : ∀ n, Set.InjOn (e n) (a.labels n : Set ι)) |
| 77 | (hlabels : ∀ n, (a.labels n).image (e n) = B.labels n) |
| 78 | (hp : ∀ n l, l ∈ a.labels n → |
| 79 | (f.primary l).velocity n = (B.primaryBlocks (e n l)).velocity n) |
| 80 | (hcp : ∀ n l, l ∈ a.labels n → |
| 81 | SameCarrierAt (f.primary l) (B.primaryBlocks (e n l)) n) |
| 82 | (ht : ∀ n l, l ∈ a.labels n → |
| 83 | (f.tangent l).velocity n = (B.signedBlocks c u (e n l)).velocity n) |
| 84 | (hct : ∀ n l, l ∈ a.labels n → |
| 85 | SameCarrierAt (f.tangent l) (B.signedBlocks c u (e n l)) n) : |
| 86 | primaryField f a = LabelSumBounds.fieldSum B.labels |
| 87 | (fun l => (B.primaryBlocks l).oscillation) ∧ |
| 88 | tangentField f a = LabelSumBounds.fieldSum B.labels |
| 89 | (fun l => (B.signedBlocks c u l).oscillation) := by |
| 90 | exact ⟨fieldSum_reindex_of_coefficients a.labels B.labels f.primary B.primaryBlocks |
| 91 | e he hlabels hp hcp, |
| 92 | fieldSum_reindex_of_coefficients a.labels B.labels f.tangent (B.signedBlocks c u) |
| 93 | e he hlabels ht hct⟩ |
| 94 | |
| 95 | /-- The same primary matrix, masks, fundamental, and signed inverse supply |
| 96 | the requested physical stress. Both cross identities are conclusions. -/ |
| 97 | theorem native_family_cross |
| 98 | (G : Geometry) (B : NativeData G) (c : Context Point) (u : State Point) |
| 99 | {ι : Type} {P : ι → ℕ → Point → ℝ} {α δ β η : ℝ} |
| 100 | (f : LabelSumBounds.SignedFamily G.strip P α δ β η) (a : Assembly f) |
| 101 | (e : ℕ → ι → NativeIndex) |
| 102 | (he : ∀ n, Set.InjOn (e n) (a.labels n : Set ι)) |
| 103 | (hlabels : ∀ n, (a.labels n).image (e n) = B.labels n) |
| 104 | (hp : ∀ n l, l ∈ a.labels n → |
| 105 | (f.primary l).velocity n = (B.primaryBlocks (e n l)).velocity n) |
| 106 | (hcp : ∀ n l, l ∈ a.labels n → |
| 107 | SameCarrierAt (f.primary l) (B.primaryBlocks (e n l)) n) |
| 108 | (ht : ∀ n l, l ∈ a.labels n → |
| 109 | (f.tangent l).velocity n = (B.signedBlocks c u (e n l)).velocity n) |
| 110 | (hct : ∀ n l, l ∈ a.labels n → |
| 111 | SameCarrierAt (f.tangent l) (B.signedBlocks c u (e n l)) n) : |
| 112 | Agree G.strip.domain (StateMomentBalances.meanBar (crossTensor f a 0 1)) |
| 113 | (physicalSigma G 2 (u.thetaResidual c)) ∧ |
| 114 | Agree G.strip.domain (StateMomentBalances.meanBar (crossTensor f a 0 2)) |
| 115 | (physicalSigma G 1 (u.axialResidual c)) := by |
| 116 | obtain ⟨hprimary, htangent⟩ := native_fields G B c u f a e he hlabels hp hcp ht hct |
| 117 | constructor |
| 118 | · have ht := B.requested_cross c u 0 |
| 119 | simp only [crossTensor, hprimary, htangent, LocalSignedRequest.requestedStress, |
| 120 | Matrix.cons_val_zero] at ht ⊢ |
| 121 | exact ht |
| 122 | · have ht := B.requested_cross c u 1 |
| 123 | simp only [crossTensor, hprimary, htangent, LocalSignedRequest.requestedStress, |
| 124 | Matrix.cons_val_one] at ht ⊢ |
| 125 | exact ht |
| 126 | |
| 127 | /-! ## The gain for the original family and literal reconstructed state -/ |
| 128 | |
| 129 | /-- Signed-wave mean gain for fixed physical labels and a band-dependent |
| 130 | native reindexing. The input uniform bounds remain those of `f` on the |
| 131 | original label type. The output is the actual moving-gauge reconstructed |
| 132 | state, including the supplied Gaussian error and all covariance terms. -/ |
| 133 | theorem native_signed_mean_gain |
| 134 | (G : Geometry) (B : NativeData G) (c : Context Point) (u : State Point) |
| 135 | {ι : Type} {P : ι → ℕ → Point → ℝ} {σ κ : ℝ} |
| 136 | (hσ : 1 / 5 ≤ σ) (hκ : 0 ≤ κ) (hκsmall : κ ≤ 1 / 100000) |
| 137 | (f : LabelSumBounds.SignedFamily G.strip P (1 / 2) (17 / 25) |
| 138 | (1 / 2 + σ - κ) (1 + σ - 2 * κ)) (a : Assembly f) |
| 139 | (e : ℕ → ι → NativeIndex) |
| 140 | (he : ∀ n, Set.InjOn (e n) (a.labels n : Set ι)) |
| 141 | (hlabels : ∀ n, (a.labels n).image (e n) = B.labels n) |
| 142 | (hp : ∀ n l, l ∈ a.labels n → |
| 143 | (f.primary l).velocity n = (B.primaryBlocks (e n l)).velocity n) |
| 144 | (hcp : ∀ n l, l ∈ a.labels n → |
| 145 | SameCarrierAt (f.primary l) (B.primaryBlocks (e n l)) n) |
| 146 | (ht : ∀ n l, l ∈ a.labels n → |
| 147 | (f.tangent l).velocity n = (B.signedBlocks c u (e n l)).velocity n) |
| 148 | (hct : ∀ n l, l ∈ a.labels n → |
| 149 | SameCarrierAt (f.tangent l) (B.signedBlocks c u (e n l)) n) |
| 150 | (q : OscillatoryScalar Point) (gaussian : Oscillation Point) |
| 151 | (hold : u.oscillation = oldField f a) |
| 152 | (H : LocalData G c u (tangentField f a + curlField f a) q gaussian) |
| 153 | (ho : OperatorBounds G.strip G.operators κ) |
| 154 | (hX : ∀ i j, MovingField G (incrementTensor f a i j)) |
| 155 | (hS : ∀ i j, MovingField G (crossTensor f a i j)) |
| 156 | (hθ : MeanClass G.strip (1 + σ - κ) (u.thetaResidual c)) |
| 157 | (hz : MeanClass G.strip (1 + σ - κ) (u.axialResidual c)) |
| 158 | (hd : DefectBounds G.slowStrip (σ - κ) c u) : |
| 159 | let v := waveStage G.gauge c u (tangentField f a + curlField f a) q gaussian |
| 160 | MeanClass G.strip (1 + σ - 2 * κ) (v.thetaResidual c) ∧ |
| 161 | MeanClass G.strip (1 + σ - 2 * κ) (v.axialResidual c) ∧ |
| 162 | MeanClass G.strip (1 + σ + 17 / 100) (StateMomentBalances.meanBar (v.thetaResidual c)) ∧ |
| 163 | MeanClass G.strip (1 + σ + 17 / 100) (StateMomentBalances.meanBar (v.axialResidual c)) := by |
| 164 | obtain ⟨hcθ, hcz⟩ := native_family_cross G B c u f a e he hlabels hp hcp ht hct |
| 165 | exact SignedMeanGain.signed_mean_gain_of_cross G c u hσ hκ hκsmall f a q gaussian |
| 166 | hold H ho hX hS hθ hz hd hcθ hcz |
| 167 | |
| 168 | end NavierStokes.BandReindexedSignedMeanGain |