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

Merge pull request #677 from s5-euler-canonical-1
Browse filesrefactor(Euler/Canonical): 1 small module folded into the file that imports it (−44.1%, measured)
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+0 −88 Euler/CanonicalPacketHorizons.lean deleted
| @@ -1,88 +0,0 @@ | ||
| 1 | -import Euler.PacketFiniteLifespan | |
| 2 | - | |
| 3 | -/-! | |
| 4 | -# Every packet horizon covers the canonical lifespan | |
| 5 | - | |
| 6 | -The horizons of the actual recursive family decrease. If its limiting | |
| 7 | -datum had an evolution through any one of those horizons, comparison | |
| 8 | -with the tail of the packet family would bound the divergent activation | |
| 9 | -gradients. This applies the proved varying-horizon H³ stability theorem. | |
| 10 | --/ | |
| 11 | - | |
| 12 | -noncomputable section | |
| 13 | - | |
| 14 | -namespace EulerPacketInduction | |
| 15 | - | |
| 16 | -open Set Filter EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field | |
| 17 | - EulerPhysicalL2Scaling EulerOrdinarySobolev EulerSmoothL2Series | |
| 18 | - EulerPacketSourceScaleSequence | |
| 19 | -open scoped Topology | |
| 20 | - | |
| 21 | -theorem packets_horizon_succ (n : ℕ) : | |
| 22 | - (packets (n+1)).parent.T = (packets n).nextHorizon := by | |
| 23 | - rw [(packets (n+1)).horizon_eq] | |
| 24 | - have ht : (packets (n+1)).time = (packets n).nextTime := | |
| 25 | - stages_time constructionScales le_rfl le_rfl n | |
| 26 | - rw [ht] | |
| 27 | - rfl | |
| 28 | - | |
| 29 | -theorem packets_horizon_antitone : Antitone (fun n => (packets n).parent.T) := by | |
| 30 | - apply antitone_nat_of_succ_le | |
| 31 | - intro n | |
| 32 | - rw [packets_horizon_succ] | |
| 33 | - exact (packets n).nextHorizon_le | |
| 34 | - | |
| 35 | -theorem initialDatum_no_packet_horizon (N : ℕ) : | |
| 36 | - ¬ HasEulerEvolution initialDatum (packets N).parent.T := by | |
| 37 | - rintro ⟨hT,U,hU₀⟩ | |
| 38 | - let durations : ℕ → ℝ := fun n => (packets (n+N)).parent.T | |
| 39 | - let hD : ∀ n, 0 ≤ durations n := fun n => (packets (n+N)).parent.T_pos.le | |
| 40 | - let hDT : ∀ n, durations n ≤ (packets N).parent.T := | |
| 41 | - fun n => packets_horizon_antitone (by omega) | |
| 42 | - let V : ∀ n, Evolution (durations n) (hD n) := | |
| 43 | - fun n => (packets (n+N)).state.regularity.ordinaryEvolution | |
| 44 | - let times : ∀ n, Icc (0 : ℝ) (durations n) := | |
| 45 | - fun n => ⟨(packets (n+N)).time,(packets (n+N)).time_nonneg, | |
| 46 | - (packets (n+N)).time_lt.le⟩ | |
| 47 | - have hfield (n : ℕ) : | |
| 48 | - (((U.restrictTime (durations n) (hD n) (hDT n)).difference (V n)) | |
| 49 | - ⟨0,le_rfl,hD n⟩).field = | |
| 50 | - (fun x => (packets (n+N)).state.evolution.velocity (0,x))-initialDatum.field := by | |
| 51 | - funext x | |
| 52 | - rw [Evolution.difference,fieldSub_field] | |
| 53 | - change ((packets (n+N)).state.regularity.velocity | |
| 54 | - ⟨0,le_rfl,(packets (n+N)).parent.T_pos.le⟩).field x - | |
| 55 | - (U.velocity ⟨0,le_rfl,hT.le⟩).field x = _ | |
| 56 | - rw [hU₀,← (packets (n+N)).state.regularity.velocity_match | |
| 57 | - ⟨0,le_rfl,(packets (n+N)).parent.T_pos.le⟩ x] | |
| 58 | - rfl | |
| 59 | - have hnorm (n : ℕ) : | |
| 60 | - tensorNorm 3 ((U.restrictTime (durations n) (hD n) (hDT n)).difference | |
| 61 | - (V n) ⟨0,le_rfl,hD n⟩) = | |
| 62 | - derivativeSum 3 ((fun x => (packets (n+N)).state.evolution.velocity (0,x)) - | |
| 63 | - initialDatum.field) := by | |
| 64 | - rw [tensorNorm_eq_derivativeSum,hfield] | |
| 65 | - have hlim : Tendsto (fun n => tensorNorm 3 | |
| 66 | - ((U.restrictTime (durations n) (hD n) (hDT n)).difference (V n) | |
| 67 | - ⟨0,le_rfl,hD n⟩)) atTop (𝓝 0) := by | |
| 68 | - simpa only [hnorm, Function.comp_def] using | |
| 69 | - (initialDatum_Hm 3).comp (tendsto_add_atTop_nat N) | |
| 70 | - apply U.no_gradient_escape_of_initial_tendsto_varying durations hD hDT V hlim times | |
| 71 | - have hactual (n : ℕ) : ((V n).velocity (times n)).field = | |
| 72 | - fun x => (packets (n+N)).state.evolution.velocity ((packets (n+N)).time,x) := | |
| 73 | - funext (fun x => ((packets (n+N)).state.regularity.velocity_match (times n) x).symm) | |
| 74 | - have heq : (fun n => ‖fderiv ℝ ((V n).velocity (times n)).field 0‖) = | |
| 75 | - fun n => (packets (n+N)).activationGradient := by | |
| 76 | - funext n | |
| 77 | - rw [hactual] | |
| 78 | - rfl | |
| 79 | - rw [heq] | |
| 80 | - exact packets_gradient_atTop.comp (tendsto_add_atTop_nat N) | |
| 81 | - | |
| 82 | -theorem lifespan_le_packet_horizon (n : ℕ) : | |
| 83 | - lifespan.duration ≤ (packets n).parent.T := by | |
| 84 | - by_contra h | |
| 85 | - exact initialDatum_no_packet_horizon n | |
| 86 | - (lifespan.shorter (packets n).parent.T (packets n).parent.T_pos (lt_of_not_ge h)) | |
| 87 | - | |
| 88 | -end EulerPacketInduction | |
+97 −1 Euler/CanonicalVorticityConfinement.lean View file
| @@ -1,4 +1,4 @@ | ||
| 1 | -import Euler.CanonicalPacketHorizons | |
| 1 | +import Euler.PacketFiniteLifespan | |
| 2 | 2 | import Euler.StageVorticityConfinement |
| 3 | 3 | import Euler.H3CurlConvergence |
| 4 | 4 | import Euler.OrdinaryEulerMaximal |
| @@ -11,6 +11,102 @@ therefore passes their common vorticity support to every shorter ordinary | ||
| 11 | 11 | Euler evolution, and hence to the canonical maximal field itself. |
| 12 | 12 | -/ |
| 13 | 13 | |
| 14 | +/-! ## From `Euler/CanonicalPacketHorizons.lean` | |
| 15 | + | |
| 16 | +The text of `Euler/CanonicalPacketHorizons.lean`, folded into this file, which was its only importer. -/ | |
| 17 | + | |
| 18 | +section | |
| 19 | + | |
| 20 | +/-! | |
| 21 | +# Every packet horizon covers the canonical lifespan | |
| 22 | + | |
| 23 | +The horizons of the actual recursive family decrease. If its limiting | |
| 24 | +datum had an evolution through any one of those horizons, comparison | |
| 25 | +with the tail of the packet family would bound the divergent activation | |
| 26 | +gradients. This applies the proved varying-horizon H³ stability theorem. | |
| 27 | +-/ | |
| 28 | + | |
| 29 | +noncomputable section | |
| 30 | + | |
| 31 | +namespace EulerPacketInduction | |
| 32 | + | |
| 33 | +open Set Filter EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field | |
| 34 | + EulerPhysicalL2Scaling EulerOrdinarySobolev EulerSmoothL2Series | |
| 35 | + EulerPacketSourceScaleSequence | |
| 36 | +open scoped Topology | |
| 37 | + | |
| 38 | +theorem packets_horizon_succ (n : ℕ) : | |
| 39 | + (packets (n+1)).parent.T = (packets n).nextHorizon := by | |
| 40 | + rw [(packets (n+1)).horizon_eq] | |
| 41 | + have ht : (packets (n+1)).time = (packets n).nextTime := | |
| 42 | + stages_time constructionScales le_rfl le_rfl n | |
| 43 | + rw [ht] | |
| 44 | + rfl | |
| 45 | + | |
| 46 | +theorem packets_horizon_antitone : Antitone (fun n => (packets n).parent.T) := by | |
| 47 | + apply antitone_nat_of_succ_le | |
| 48 | + intro n | |
| 49 | + rw [packets_horizon_succ] | |
| 50 | + exact (packets n).nextHorizon_le | |
| 51 | + | |
| 52 | +theorem initialDatum_no_packet_horizon (N : ℕ) : | |
| 53 | + ¬ HasEulerEvolution initialDatum (packets N).parent.T := by | |
| 54 | + rintro ⟨hT,U,hU₀⟩ | |
| 55 | + let durations : ℕ → ℝ := fun n => (packets (n+N)).parent.T | |
| 56 | + let hD : ∀ n, 0 ≤ durations n := fun n => (packets (n+N)).parent.T_pos.le | |
| 57 | + let hDT : ∀ n, durations n ≤ (packets N).parent.T := | |
| 58 | + fun n => packets_horizon_antitone (by omega) | |
| 59 | + let V : ∀ n, Evolution (durations n) (hD n) := | |
| 60 | + fun n => (packets (n+N)).state.regularity.ordinaryEvolution | |
| 61 | + let times : ∀ n, Icc (0 : ℝ) (durations n) := | |
| 62 | + fun n => ⟨(packets (n+N)).time,(packets (n+N)).time_nonneg, | |
| 63 | + (packets (n+N)).time_lt.le⟩ | |
| 64 | + have hfield (n : ℕ) : | |
| 65 | + (((U.restrictTime (durations n) (hD n) (hDT n)).difference (V n)) | |
| 66 | + ⟨0,le_rfl,hD n⟩).field = | |
| 67 | + (fun x => (packets (n+N)).state.evolution.velocity (0,x))-initialDatum.field := by | |
| 68 | + funext x | |
| 69 | + rw [Evolution.difference,fieldSub_field] | |
| 70 | + change ((packets (n+N)).state.regularity.velocity | |
| 71 | + ⟨0,le_rfl,(packets (n+N)).parent.T_pos.le⟩).field x - | |
| 72 | + (U.velocity ⟨0,le_rfl,hT.le⟩).field x = _ | |
| 73 | + rw [hU₀,← (packets (n+N)).state.regularity.velocity_match | |
| 74 | + ⟨0,le_rfl,(packets (n+N)).parent.T_pos.le⟩ x] | |
| 75 | + rfl | |
| 76 | + have hnorm (n : ℕ) : | |
| 77 | + tensorNorm 3 ((U.restrictTime (durations n) (hD n) (hDT n)).difference | |
| 78 | + (V n) ⟨0,le_rfl,hD n⟩) = | |
| 79 | + derivativeSum 3 ((fun x => (packets (n+N)).state.evolution.velocity (0,x)) - | |
| 80 | + initialDatum.field) := by | |
| 81 | + rw [tensorNorm_eq_derivativeSum,hfield] | |
| 82 | + have hlim : Tendsto (fun n => tensorNorm 3 | |
| 83 | + ((U.restrictTime (durations n) (hD n) (hDT n)).difference (V n) | |
| 84 | + ⟨0,le_rfl,hD n⟩)) atTop (𝓝 0) := by | |
| 85 | + simpa only [hnorm, Function.comp_def] using | |
| 86 | + (initialDatum_Hm 3).comp (tendsto_add_atTop_nat N) | |
| 87 | + apply U.no_gradient_escape_of_initial_tendsto_varying durations hD hDT V hlim times | |
| 88 | + have hactual (n : ℕ) : ((V n).velocity (times n)).field = | |
| 89 | + fun x => (packets (n+N)).state.evolution.velocity ((packets (n+N)).time,x) := | |
| 90 | + funext (fun x => ((packets (n+N)).state.regularity.velocity_match (times n) x).symm) | |
| 91 | + have heq : (fun n => ‖fderiv ℝ ((V n).velocity (times n)).field 0‖) = | |
| 92 | + fun n => (packets (n+N)).activationGradient := by | |
| 93 | + funext n | |
| 94 | + rw [hactual] | |
| 95 | + rfl | |
| 96 | + rw [heq] | |
| 97 | + exact packets_gradient_atTop.comp (tendsto_add_atTop_nat N) | |
| 98 | + | |
| 99 | +theorem lifespan_le_packet_horizon (n : ℕ) : | |
| 100 | + lifespan.duration ≤ (packets n).parent.T := by | |
| 101 | + by_contra h | |
| 102 | + exact initialDatum_no_packet_horizon n | |
| 103 | + (lifespan.shorter (packets n).parent.T (packets n).parent.T_pos (lt_of_not_ge h)) | |
| 104 | + | |
| 105 | +end EulerPacketInduction | |
| 106 | +end | |
| 107 | + | |
| 108 | +end | |
| 109 | + | |
| 14 | 110 | noncomputable section |
| 15 | 111 | |
| 16 | 112 | namespace EulerPacketInduction |
+17 −0 routes/s5-euler-canonical-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 14 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s5-euler-canonical-1 | |
| 6 | + | |
| 7 | +Fold the module `Euler/CanonicalPacketHorizons.lean` into its only importer, | |
| 8 | +`Euler/CanonicalVorticityConfinement.lean`, both of the family `Euler/Canonical*`. The module's text moves unchanged, | |
| 9 | +under a heading that names it and in a `section` of its own, before the host's text; the host takes over its imports. | |
| 10 | +The plan is `plan.json`, made by `docs/s5-folding/fold.py`, whose `check` compares the working tree with main's text | |
| 11 | +folded, byte for byte. Counts are those of the unit (instructions retired, measured as `docs/s5-folding/README.md` | |
| 12 | +says): 17.54 G before, 9.81 G after. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +The pull request is open. What comes next is the maintainer's verdict on whether this kind of change is wanted; the | |
| 17 | +rest of the series' folds wait on it, one family per pull request. | |
+9 −0 routes/s5-euler-canonical-1/plan.json added View file
| @@ -0,0 +1,9 @@ | ||
| 1 | +{ | |
| 2 | +"imports": "in place", | |
| 3 | +"folds": { | |
| 4 | +"Euler/CanonicalVorticityConfinement.lean": [ | |
| 5 | +"Euler/CanonicalPacketHorizons.lean", | |
| 6 | +"Euler/CanonicalVorticityConfinement.lean" | |
| 7 | +] | |
| 8 | +} | |
| 9 | +} | |