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.ActualPhaseJetBounds |
| 2 | import NavierStokes.ParticularPaddedBackground |
| 3 | import NavierStokes.LocalPhysicalCopyBounds |
| 4 | import NavierStokes.ActualParticularStageControls |
| 5 | |
| 6 | /-! |
| 7 | # Uniform phase jets for the actual current-chart copies |
| 8 | |
| 9 | The functions below are literal reindexings of the selected common phase. |
| 10 | Positive jets have a fixed `Q^(-2h)` loss, uniformly before the label and |
| 11 | band are selected. No bound on the unbounded phase value is asserted. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.ActualCurrentCarrierJets |
| 17 | |
| 18 | open Set Function Filter CorrectionInitialization |
| 19 | open scoped Topology ContDiff |
| 20 | |
| 21 | abbrev Label (B N0 : ℕ) := ActualPrimaryBounds.SignedLabel B N0 |
| 22 | abbrev Native := ActualParticularBackground.Native |
| 23 | abbrev FullPoint := ActualPrimary.FullPoint |
| 24 | |
| 25 | variable {B N0 : ℕ} |
| 26 | |
| 27 | /-- The actual common phase in the current free-angle native coordinates. -/ |
| 28 | noncomputable def phase (l : Label B N0) (n : ℕ) (z : Native) : ℝ := |
| 29 | (ActualPrimary.chartCoefficients l.1 l.2).phase n |
| 30 | (ActualParticularBackground.nativeToFull z) |
| 31 | |
| 32 | /-- The same phase with the actual base carrier already included. -/ |
| 33 | noncomputable def weightedPhase (l : Label B N0) (n : ℕ) (z : Native) : ℝ := |
| 34 | ActualPhaseJetBounds.weightedPhase l n (ActualParticularBackground.nativeToFull z) |
| 35 | |
| 36 | theorem weightedPhase_eq (l : Label B N0) (n : ℕ) : |
| 37 | weightedPhase l n = fun z => (ChartScales.carrier ActualPrimary.h n : ℝ) * phase l n z := rfl |
| 38 | |
| 39 | /-- The oscillatory factor used by the actual harmonic copy is exactly |
| 40 | the character of the carrier-weighted current phase. -/ |
| 41 | theorem harmonic_carrier_eq (l : Label B N0) (n : ℕ) (j : ℤ) : |
| 42 | HarmonicCalculus.carrier ((j : ℝ) * (ChartScales.carrier ActualPrimary.h n : ℝ)) |
| 43 | (phase l n) = PhysicalGraphBounds.character (j : ℝ) ∘ weightedPhase l n := by |
| 44 | funext z |
| 45 | simp only [HarmonicCalculus.carrier, HarmonicCalculus.phaseFactor, |
| 46 | PhysicalGraphBounds.character, PhysicalGraphBounds.phaseFactor, Function.comp_apply, |
| 47 | weightedPhase_eq, Complex.ofReal_mul] |
| 48 | congr 1 |
| 49 | ring |
| 50 | |
| 51 | theorem actualCarrier_phase |
| 52 | (b : Label B N0 → CorrectionState.HarmonicBlock CorrectionStep.CyclePoint) |
| 53 | (hb : ∀ l, CorrectionStep.SameCarrier (b l) (ActualParticularBackground.primaryBlock l)) |
| 54 | (j : ℤ) (l : Label B N0) (n : ℕ) : |
| 55 | (ActualParticularBackground.carrier b j l).phase n = phase l n := |
| 56 | congrFun (ActualParticularBackground.carrier_phase b hb j l) n |
| 57 | |
| 58 | theorem actualCarrier_character |
| 59 | (b : Label B N0 → CorrectionState.HarmonicBlock CorrectionStep.CyclePoint) |
| 60 | (hb : ∀ l, CorrectionStep.SameCarrier (b l) (ActualParticularBackground.primaryBlock l)) |
| 61 | (j : ℤ) (l : Label B N0) (n : ℕ) : |
| 62 | HarmonicCalculus.carrier ((ActualParticularBackground.carrier b j l).frequency n) |
| 63 | ((ActualParticularBackground.carrier b j l).phase n) = |
| 64 | PhysicalGraphBounds.character (j : ℝ) ∘ weightedPhase l n := by |
| 65 | rw [actualCarrier_phase b hb j l n, ActualParticularBackground.carrier_frequency b hb j l] |
| 66 | exact harmonic_carrier_eq l n j |
| 67 | |
| 68 | theorem paddedCell_eq_phaseCell (n : ℕ) (i : ActualPhaseJetBounds.CopyIndex B N0) : |
| 69 | ParticularPaddedBackground.paddedCell n i = ActualPhaseJetBounds.phaseCell n i := rfl |
| 70 | |
| 71 | theorem mem_cells_iff (n : ℕ) (i : ActualPhaseJetBounds.CopyIndex B N0) (z : Native) : |
| 72 | z ∈ ParticularPaddedBackground.cells n i ↔ |
| 73 | ActualParticularBackground.nativeToFull z ∈ ActualPhaseJetBounds.phaseCell n i := Iff.rfl |
| 74 | |
| 75 | private theorem smoothNear_congr {E F : Type*} |
| 76 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 77 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 78 | {f g : E → F} {x : E} (hf : LocalPhysicalCopyBounds.SmoothNear f x) |
| 79 | (he : g =ᶠ[𝓝 x] f) : LocalPhysicalCopyBounds.SmoothNear g x := by |
| 80 | obtain ⟨U, hU, hx, hf⟩ := hf |
| 81 | obtain ⟨V, hVe, hV, hxV⟩ := mem_nhds_iff.mp he |
| 82 | exact ⟨U ∩ V, hU.inter hV, ⟨hx,hxV⟩, |
| 83 | (hf.mono inter_subset_left).congr (fun y hy => hVe hy.2)⟩ |
| 84 | |
| 85 | /-- The one open neighborhood is obtained from the actual analytic phase |
| 86 | cell, then intersected with the genuine periodic-copy germ neighborhood. -/ |
| 87 | theorem full_weightedPhase_smoothNear {n : ℕ} {i : ActualPhaseJetBounds.CopyIndex B N0} |
| 88 | {x : FullPoint} (hx : x ∈ ActualPhaseJetBounds.phaseCell n i) : |
| 89 | LocalPhysicalCopyBounds.SmoothNear (ActualPhaseJetBounds.weightedPhase i.1 n) x := by |
| 90 | let g : FullPoint → PhaseCalculus.Slow × ℝ := fun y => |
| 91 | ((ActualPrimaryBounds.fullCopy i.1 n i.2 y).1, |
| 92 | (ActualPrimaryBounds.fullCopy i.1 n i.2 y).2.2) |
| 93 | have hg : ContDiff ℝ ∞ g := by |
| 94 | have he : g = fun y => ActualPrimaryBounds.slotLinear i.1 n y + |
| 95 | ActualPrimaryBounds.slotOfNative (ActualPrimaryBounds.copyPoint i.1 n i.2 0) := |
| 96 | funext (ActualPrimaryBounds.slotCopy_affine i.1 n i.2) |
| 97 | rw [he] |
| 98 | exact (ActualPrimaryBounds.slotLinear i.1 n).contDiff.add contDiff_const |
| 99 | let U := g ⁻¹' ActualPhaseJetBounds.jetDomain.carrier i.1 |
| 100 | have hU : IsOpen U := (ActualPhaseJetBounds.jetDomain.isOpen i.1).preimage hg.continuous |
| 101 | have hxU : x ∈ U := ActualPhaseJetBounds.phaseCell_maps hx |
| 102 | have hr : ContDiffOn ℝ ∞ (fun y => ActualPhaseJetBounds.nativeRemainder i.1 (g y)) U := |
| 103 | (ActualPhaseJetBounds.nativeRemainder_polynomial.smooth i.1).comp |
| 104 | hg.contDiffOn (fun _ hy => hy) |
| 105 | have hl : ContDiffOn ℝ ∞ (ActualPhaseJetBounds.localPhase n i) U := by |
| 106 | have hs := (((ActualPhaseJetBounds.phaseLinear i.1 n).contDiff.add |
| 107 | (contDiff_const (c := ActualPhaseJetBounds.phaseOffset n i))).contDiffOn).add hr |
| 108 | exact hs.congr (fun y _ => ActualPhaseJetBounds.localPhase_decomposition n i y) |
| 109 | have hm : LocalPhysicalCopyBounds.SmoothNear |
| 110 | (fun y => (ChartScales.carrier ActualPrimary.h (BaseChartJets.cellBand i.1.2) : ℝ) * |
| 111 | ActualPhaseJetBounds.localPhase n i y) x := |
| 112 | ⟨U, hU, hxU, contDiffOn_const.mul hl⟩ |
| 113 | exact smoothNear_congr hm (ActualPhaseJetBounds.weightedPhase_germ hx) |
| 114 | |
| 115 | theorem weightedPhase_smoothNear {n : ℕ} {i : ActualPhaseJetBounds.CopyIndex B N0} |
| 116 | {z : Native} (hz : z ∈ ParticularPaddedBackground.cells n i) : |
| 117 | LocalPhysicalCopyBounds.SmoothNear (weightedPhase i.1 n) z := by |
| 118 | obtain ⟨U, hU, hx, hf⟩ := full_weightedPhase_smoothNear ((mem_cells_iff n i z).mp hz) |
| 119 | exact ⟨ActualParticularBackground.nativeToFull ⁻¹' U, |
| 120 | hU.preimage ActualParticularBackground.nativeToFull.continuous, hx, |
| 121 | hf.comp ActualParticularBackground.nativeToFull.toContinuousLinearEquiv.contDiff.contDiffOn |
| 122 | (fun _ hy => hy)⟩ |
| 123 | |
| 124 | theorem phase_smoothNear {n : ℕ} {i : ActualPhaseJetBounds.CopyIndex B N0} |
| 125 | {z : Native} (hz : z ∈ ParticularPaddedBackground.cells n i) : |
| 126 | LocalPhysicalCopyBounds.SmoothNear (phase i.1 n) z := by |
| 127 | obtain ⟨U, hU, hx, hf⟩ := weightedPhase_smoothNear hz |
| 128 | have hk : (ChartScales.carrier ActualPrimary.h n : ℝ) ≠ 0 := |
| 129 | (ActualPrimary.chartCoefficients_frequency_pos i.1.1 i.1.2 n).ne' |
| 130 | refine ⟨U, hU, hx, (hf.div_const (ChartScales.carrier ActualPrimary.h n : ℝ)).congr ?_⟩ |
| 131 | intro y _ |
| 132 | rw [weightedPhase_eq] |
| 133 | field_simp [hk] |
| 134 | |
| 135 | /-- Constants are chosen before the active label, band, copy, point, and |
| 136 | positive derivative order. Reindexing is an isometry and adds no loss. -/ |
| 137 | theorem weightedPhase_positive_jets (m : ℕ) : |
| 138 | ∃ C : ℝ, 1 ≤ C ∧ ∃ p : ℕ, ∀ n (i : ActualPhaseJetBounds.CopyIndex B N0) z, |
| 139 | z ∈ ParticularPaddedBackground.cells n i → ∀ r, 1 ≤ r → r ≤ m → |
| 140 | ‖iteratedFDeriv ℝ r (weightedPhase i.1 n) z‖ ≤ |
| 141 | C * ChartScales.S n ^ p * ChartScales.Q n ^ (-(2 * ActualPrimary.h)) := by |
| 142 | obtain ⟨C,hC,p,hb⟩ := ActualPhaseJetBounds.weightedPhase_positive_jets (B := B) (N0 := N0) m |
| 143 | refine ⟨C,hC,p,?_⟩ |
| 144 | intro n i z hz r hr hrm |
| 145 | change ‖iteratedFDeriv ℝ r (fun y => ActualPhaseJetBounds.weightedPhase i.1 n |
| 146 | (ActualParticularBackground.nativeToFull y)) z‖ ≤ _ |
| 147 | rw [StateReindex.norm_iteratedFDeriv_pull] |
| 148 | exact hb n i _ ((mem_cells_iff n i z).mp hz) r hr hrm |
| 149 | |
| 150 | theorem phase_positive_jets (m : ℕ) : |
| 151 | ∃ C : ℝ, 1 ≤ C ∧ ∃ p : ℕ, ∀ n (i : ActualPhaseJetBounds.CopyIndex B N0) z, |
| 152 | z ∈ ParticularPaddedBackground.cells n i → ∀ r, 1 ≤ r → r ≤ m → |
| 153 | ‖iteratedFDeriv ℝ r (phase i.1 n) z‖ ≤ |
| 154 | C * ChartScales.S n ^ p * ChartScales.Q n ^ (-(2 * ActualPrimary.h)) := by |
| 155 | obtain ⟨C,hC,p,hb⟩ := ActualPhaseJetBounds.phase_positive_jets (B := B) (N0 := N0) m |
| 156 | refine ⟨C,hC,p,?_⟩ |
| 157 | intro n i z hz r hr hrm |
| 158 | change ‖iteratedFDeriv ℝ r (fun y => (ActualPrimary.chartCoefficients i.1.1 i.1.2).phase n |
| 159 | (ActualParticularBackground.nativeToFull y)) z‖ ≤ _ |
| 160 | rw [StateReindex.norm_iteratedFDeriv_pull] |
| 161 | exact hb n i _ ((mem_cells_iff n i z).mp hz) r hr hrm |
| 162 | |
| 163 | /-- The displayed physical loss is exactly two inverse powers of epsilon. -/ |
| 164 | theorem weightedPhase_positive_jets_epsilon (m : ℕ) : |
| 165 | ∃ C : ℝ, 1 ≤ C ∧ ∃ p : ℕ, ∀ n (i : ActualPhaseJetBounds.CopyIndex B N0) z, |
| 166 | z ∈ ParticularPaddedBackground.cells n i → ∀ r, 1 ≤ r → r ≤ m → |
| 167 | ‖iteratedFDeriv ℝ r (weightedPhase i.1 n) z‖ ≤ |
| 168 | C * ChartScales.S n ^ p * (ChartScales.epsilon ActualPrimary.h n)⁻¹ ^ 2 := by |
| 169 | obtain ⟨C,hC,p,hb⟩ := weightedPhase_positive_jets (B := B) (N0 := N0) m |
| 170 | refine ⟨C,hC,p,?_⟩ |
| 171 | intro n i z hz r hr hrm |
| 172 | rw [ActualPhaseJetBounds.inverse_epsilon_sq] |
| 173 | exact hb n i z hz r hr hrm |
| 174 | |
| 175 | theorem weightedPhase_smoothNear_controlPatch (l : Label B N0) (n : ℕ) |
| 176 | (k : TorusInverse.Frequency) {z : Native} |
| 177 | (hz : z ∈ ActualParticularStageControls.controlPatch l n k) : |
| 178 | LocalPhysicalCopyBounds.SmoothNear (weightedPhase l n) z := |
| 179 | weightedPhase_smoothNear (n := n) (i := (l,k)) (z := z) |
| 180 | (ActualParticularStageControls.controlPatch_subset_padded l n k hz) |
| 181 | |
| 182 | theorem phase_smoothNear_controlPatch (l : Label B N0) (n : ℕ) |
| 183 | (k : TorusInverse.Frequency) {z : Native} |
| 184 | (hz : z ∈ ActualParticularStageControls.controlPatch l n k) : |
| 185 | LocalPhysicalCopyBounds.SmoothNear (phase l n) z := |
| 186 | phase_smoothNear (n := n) (i := (l,k)) (z := z) |
| 187 | (ActualParticularStageControls.controlPatch_subset_padded l n k hz) |
| 188 | |
| 189 | /-- The quantitative statement on the actual retained current-copy cells. |
| 190 | The cell hypothesis already supplies activeness; no native-band interior |
| 191 | or separate phase-jet assumption is added. -/ |
| 192 | theorem weightedPhase_positive_jets_controlPatch (m : ℕ) : |
| 193 | ∃ C : ℝ, 1 ≤ C ∧ ∃ p : ℕ, ∀ (l : Label B N0) n k z, |
| 194 | z ∈ ActualParticularStageControls.controlPatch l n k → ∀ r, 1 ≤ r → r ≤ m → |
| 195 | ‖iteratedFDeriv ℝ r (weightedPhase l n) z‖ ≤ |
| 196 | C * ChartScales.S n ^ p * ChartScales.Q n ^ (-(2 * ActualPrimary.h)) := by |
| 197 | obtain ⟨C,hC,p,hb⟩ := weightedPhase_positive_jets (B := B) (N0 := N0) m |
| 198 | exact ⟨C,hC,p,fun l n k z hz r hr hrm => |
| 199 | hb n (l,k) z (ActualParticularStageControls.controlPatch_subset_padded l n k hz) r hr hrm⟩ |
| 200 | |
| 201 | theorem phase_positive_jets_controlPatch (m : ℕ) : |
| 202 | ∃ C : ℝ, 1 ≤ C ∧ ∃ p : ℕ, ∀ (l : Label B N0) n k z, |
| 203 | z ∈ ActualParticularStageControls.controlPatch l n k → ∀ r, 1 ≤ r → r ≤ m → |
| 204 | ‖iteratedFDeriv ℝ r (phase l n) z‖ ≤ |
| 205 | C * ChartScales.S n ^ p * ChartScales.Q n ^ (-(2 * ActualPrimary.h)) := by |
| 206 | obtain ⟨C,hC,p,hb⟩ := phase_positive_jets (B := B) (N0 := N0) m |
| 207 | exact ⟨C,hC,p,fun l n k z hz r hr hrm => |
| 208 | hb n (l,k) z (ActualParticularStageControls.controlPatch_subset_padded l n k hz) r hr hrm⟩ |
| 209 | |
| 210 | end NavierStokes.ActualCurrentCarrierJets |