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 Euler.PacketInitialGeometry |
| 2 | import Euler.PacketPrimaryDynamics |
| 3 | |
| 4 | /-! The literal normalized covector choice for the next source normal. |
| 5 | It has unit length and its inverse-transpose transport is exactly the |
| 6 | prescribed old-frame cross direction, with a positive scale. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerPacketMovingFrame |
| 11 | |
| 12 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerPacketNormalizedPrimary |
| 13 | EulerPacketCrossProduct EulerTransversePacketProvider |
| 14 | |
| 15 | def activationDirection (F : Space ≃L[ℝ] Space) (n : Space) : Space := |
| 16 | unit (F.toContinuousLinearMap.adjoint n) |
| 17 | |
| 18 | def activationRayScale (F : Space ≃L[ℝ] Space) (n : Space) : ℝ := |
| 19 | ‖F.toContinuousLinearMap.adjoint n‖⁻¹ |
| 20 | |
| 21 | theorem inverse_adjoint_forward_adjoint (F : Space ≃L[ℝ] Space) (n : Space) : |
| 22 | F.symm.toContinuousLinearMap.adjoint (F.toContinuousLinearMap.adjoint n)=n := by |
| 23 | have hi : F.toContinuousLinearMap.comp F.symm.toContinuousLinearMap=ContinuousLinearMap.id ℝ Space := by |
| 24 | apply ContinuousLinearMap.ext |
| 25 | intro v |
| 26 | exact F.apply_symm_apply v |
| 27 | change (F.symm.toContinuousLinearMap.adjoint.comp F.toContinuousLinearMap.adjoint) n=n |
| 28 | rw [← adjoint_comp,hi,adjoint_id] |
| 29 | rfl |
| 30 | |
| 31 | theorem forward_adjoint_ne_zero (F : Space ≃L[ℝ] Space) {n : Space} (hn : n ≠ 0) : |
| 32 | F.toContinuousLinearMap.adjoint n ≠ 0 := by |
| 33 | intro hz |
| 34 | have h := inverse_adjoint_forward_adjoint F n |
| 35 | rw [hz,map_zero] at h |
| 36 | exact hn h.symm |
| 37 | |
| 38 | theorem activationDirection_unit (F : Space ≃L[ℝ] Space) {n : Space} (hn : n ≠ 0) : |
| 39 | ‖activationDirection F n‖=1 := unit_norm (forward_adjoint_ne_zero F hn) |
| 40 | |
| 41 | theorem activationRayScale_pos (F : Space ≃L[ℝ] Space) {n : Space} (hn : n ≠ 0) : |
| 42 | 0 < activationRayScale F n := inv_pos.mpr (norm_pos_iff.mpr (forward_adjoint_ne_zero F hn)) |
| 43 | |
| 44 | theorem activationDirection_transport (F : Space ≃L[ℝ] Space) (n : Space) : |
| 45 | F.symm.toContinuousLinearMap.adjoint (activationDirection F n)=activationRayScale F n • n := by |
| 46 | simp only [activationDirection,activationRayScale,unit,map_smul,inverse_adjoint_forward_adjoint] |
| 47 | |
| 48 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 49 | (D : Data U) |
| 50 | |
| 51 | theorem actual_normal_of_activation_choice (t : Icc (0 : ℝ) D.T) (x n : Space) |
| 52 | (hchoice : D.m₀=activationDirection (D.deformationEquiv t x) n) : |
| 53 | D.normal.field t x=activationRayScale (D.deformationEquiv t x) n • n := by |
| 54 | change (D.FInv.field t x).adjoint D.m₀=_ |
| 55 | rw [hchoice] |
| 56 | exact activationDirection_transport (D.deformationEquiv t x) n |
| 57 | |
| 58 | theorem actual_activation_scaled_ray (m v : ℝ → Space) (t₀ : Icc (0 : ℝ) D.T) (a ε : ℝ) |
| 59 | (hm : m t₀ ≠ 0) (hv : v t₀ ≠ 0) (hmv : ⟪m t₀,v t₀⟫_ℝ=0) |
| 60 | (hchoice : D.m₀=activationDirection (D.deformationEquiv t₀ 0) |
| 61 | (cross (unit (m t₀)) (unit (v t₀)))) : |
| 62 | let s₀ := activationRayScale (D.deformationEquiv t₀ 0) (cross (unit (m t₀)) (unit (v t₀))) |
| 63 | 0 < s₀ ∧ scaledRay m v (fun s => D.normal.field (D.clamp s) 0) s₀ t₀ a ε 0 = ![0,0,1] := by |
| 64 | dsimp only |
| 65 | have hc : cross (unit (m t₀)) (unit (v t₀)) ≠ 0 := by |
| 66 | have hn := (frame_orthonormal (unit (m t₀)) (unit (v t₀)) |
| 67 | (unit_inner_self hm) (unit_inner_self hv) (unit_inner_zero hmv)).norm_eq_one 2 |
| 68 | have hn' : ‖cross (unit (m t₀)) (unit (v t₀))‖=1 := hn |
| 69 | intro hz |
| 70 | rw [hz,norm_zero] at hn' |
| 71 | norm_num at hn' |
| 72 | have hpos := activationRayScale_pos (D.deformationEquiv t₀ 0) hc |
| 73 | refine ⟨hpos,scaledRay_initial hpos.ne' hm hv hmv ?_⟩ |
| 74 | rw [Data.clamp_coe] |
| 75 | exact actual_normal_of_activation_choice D t₀ 0 _ hchoice |
| 76 | |
| 77 | end EulerPacketMovingFrame |