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.ParentFrameReframe |
| 2 | import Euler.ParentPacketJoinedInput |
| 3 | import Euler.PacketForwardGeometryData |
| 4 | |
| 5 | /-! The source direction at a stage is constructed from the actual |
| 6 | parent deformation and older frame. Both branch-specific normal-choice |
| 7 | identities are conclusions, and the reference plane is literal. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerPacketSourceGeometry.ParentFrame |
| 12 | |
| 13 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 14 | EulerParentPacketFrames EulerTransversePacketProvider EulerTransverseFrameCoordinates |
| 15 | EulerPacketMovingFrame EulerPacketNormalizedPrimary EulerPacketCrossProduct |
| 16 | |
| 17 | variable {A : Parent} {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 18 | {m : Space} {hm : ‖m‖=1} {R : U ≃ₗᵢ[ℝ] referencePlane m} |
| 19 | {S : Set Space} {hS : IsCompact S} {τ : ℝ} |
| 20 | (P : ParentFrame (A.transverseData m hm R S hS) τ) |
| 21 | |
| 22 | def crossDirection : Space := cross (unit (P.m τ)) (unit (P.v τ)) |
| 23 | |
| 24 | theorem crossDirection_unit (hτT : τ ≤ A.T) : ‖P.crossDirection‖=1 := by |
| 25 | exact (frame_orthonormal (unit (P.m τ)) (unit (P.v τ)) |
| 26 | (unit_inner_self (P.ray_nonzero τ ⟨le_rfl,hτT⟩)) |
| 27 | (unit_inner_self (P.velocity_nonzero τ ⟨le_rfl,hτT⟩)) |
| 28 | (unit_inner_zero (P.tangent τ ⟨le_rfl,hτT⟩))).norm_eq_one 2 |
| 29 | |
| 30 | theorem crossDirection_ne_zero (hτT : τ ≤ A.T) : P.crossDirection ≠ 0 := by |
| 31 | intro hz |
| 32 | have h := P.crossDirection_unit hτT |
| 33 | rw [hz,norm_zero] at h |
| 34 | norm_num at h |
| 35 | |
| 36 | variable (hτ : 0 < τ) (hτT : τ < A.T) |
| 37 | |
| 38 | def activationNormal : Space := |
| 39 | activationDirection ((A.transverseData m hm R S hS).deformationEquiv ⟨τ,hτ.le,hτT.le⟩ 0) |
| 40 | P.crossDirection |
| 41 | |
| 42 | theorem activationNormal_unit : ‖P.activationNormal hτ hτT‖=1 := |
| 43 | activationDirection_unit _ (P.crossDirection_ne_zero hτT.le) |
| 44 | |
| 45 | def activationData : Data (referencePlane (P.activationNormal hτ hτT)) := |
| 46 | A.transverseData (P.activationNormal hτ hτT) (P.activationNormal_unit hτ hτT) |
| 47 | (LinearIsometryEquiv.refl ℝ (referencePlane (P.activationNormal hτ hτT))) S hS |
| 48 | |
| 49 | def activationFrame : ParentFrame (P.activationData hτ hτT) τ := |
| 50 | P.reframe (P.activationNormal hτ hτT) (P.activationNormal_unit hτ hτT) |
| 51 | (LinearIsometryEquiv.refl ℝ (referencePlane (P.activationNormal hτ hτT))) |
| 52 | |
| 53 | theorem activation_normal_choice : |
| 54 | (P.activationData hτ hτT).m₀= |
| 55 | activationDirection ((P.activationData hτ hτT).deformationEquiv ⟨τ,hτ.le,hτT.le⟩ 0) |
| 56 | (cross (unit ((P.activationFrame hτ hτT).m τ)) |
| 57 | (unit ((P.activationFrame hτ hτT).v τ))) := rfl |
| 58 | |
| 59 | theorem activation_parameters : |
| 60 | (P.activationFrame hτ hτT).a=P.a ∧ (P.activationFrame hτ hτT).sigma=P.sigma ∧ |
| 61 | (P.activationFrame hτ hτT).shear=P.shear ∧ (P.activationFrame hτ hτT).epsilon=P.epsilon ∧ |
| 62 | (P.activationFrame hτ hτT).horizon=P.horizon ∧ (P.activationFrame hτ hτT).G=P.G ∧ |
| 63 | (P.activationFrame hτ hτT).error=P.error := ⟨rfl,rfl,rfl,rfl,rfl,rfl,rfl⟩ |
| 64 | |
| 65 | /-- The new covector really transports to the old frame's cross |
| 66 | direction, with the same strictly positive ray scale used by Guards. -/ |
| 67 | theorem activation_ray : |
| 68 | (P.activationData hτ hτT).normal.field ⟨τ,hτ.le,hτT.le⟩ 0= |
| 69 | P.rayScale hτ hτT • P.crossDirection := |
| 70 | activationDirection_transport |
| 71 | ((A.transverseData m hm R S hS).deformationEquiv ⟨τ,hτ.le,hτT.le⟩ 0) P.crossDirection |
| 72 | |
| 73 | theorem activation_scaled_ray : |
| 74 | 0 < P.rayScale hτ hτT ∧ |
| 75 | scaledRay P.m P.v |
| 76 | (fun t => (P.activationData hτ hτT).normal.field ((P.activationData hτ hτT).clamp t) 0) |
| 77 | (P.rayScale hτ hτT) τ P.a P.epsilon 0=![0,0,1] := by |
| 78 | exact actual_activation_scaled_ray (P.activationData hτ hτT) P.m P.v |
| 79 | ⟨τ,hτ.le,hτT.le⟩ P.a P.epsilon |
| 80 | (P.ray_nonzero τ ⟨le_rfl,hτT.le⟩) (P.velocity_nonzero τ ⟨le_rfl,hτT.le⟩) |
| 81 | (P.tangent τ ⟨le_rfl,hτT.le⟩) (P.activation_normal_choice hτ hτT) |
| 82 | |
| 83 | def activationHistory (H : LowBounds A) : |
| 84 | HistoryData ((P.activationData hτ hτT).initial τ hτ hτT.le) := |
| 85 | A.historyOn H (P.activationNormal hτ hτT) (P.activationNormal_unit hτ hτT) |
| 86 | (LinearIsometryEquiv.refl ℝ (referencePlane (P.activationNormal hτ hτT))) S hS τ hτ hτT |
| 87 | |
| 88 | theorem activation_history_eq [CompleteSpace U] (H : LowBounds A) : |
| 89 | P.activationHistory hτ hτT H= |
| 90 | (A.historyOn H m hm R S hS τ hτ hτT).reframe |
| 91 | (P.activationNormal hτ hτT) (P.activationNormal_unit hτ hτT) := rfl |
| 92 | |
| 93 | end EulerPacketSourceGeometry.ParentFrame |
| 94 | |
| 95 | namespace EulerPacketSourceGeometry.ParentFrame |
| 96 | |
| 97 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 98 | EulerParentPacketFrames EulerTransversePacketProvider EulerTransverseFrameCoordinates |
| 99 | EulerPacketMovingFrame EulerPacketNormalizedPrimary EulerPacketCrossProduct |
| 100 | |
| 101 | variable {A : Parent} {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 102 | {m : Space} {hm : ‖m‖=1} {R : U ≃ₗᵢ[ℝ] referencePlane m} |
| 103 | {S : Set Space} {hS : IsCompact S} |
| 104 | (P : ParentFrame (A.transverseData m hm R S hS) 0) |
| 105 | |
| 106 | def forwardData : Data (referencePlane P.crossDirection) := |
| 107 | A.transverseData P.crossDirection (P.crossDirection_unit A.T_pos.le) |
| 108 | (LinearIsometryEquiv.refl ℝ (referencePlane P.crossDirection)) S hS |
| 109 | |
| 110 | def forwardFrame : ParentFrame P.forwardData 0 := |
| 111 | P.reframe P.crossDirection (P.crossDirection_unit A.T_pos.le) |
| 112 | (LinearIsometryEquiv.refl ℝ (referencePlane P.crossDirection)) |
| 113 | |
| 114 | theorem forward_normal_choice : P.forwardData.m₀= |
| 115 | cross (unit (P.forwardFrame.m 0)) (unit (P.forwardFrame.v 0)) := rfl |
| 116 | |
| 117 | theorem forward_initial_frame (x : Space) : |
| 118 | P.forwardData.F.field ⟨0,le_rfl,A.T_pos.le⟩ x=ContinuousLinearMap.id ℝ Space := |
| 119 | A.frame_initial x |
| 120 | |
| 121 | theorem forward_initial_normal (x : Space) : |
| 122 | P.forwardData.normal.field ⟨0,le_rfl,A.T_pos.le⟩ x=P.crossDirection := by |
| 123 | change (A.inverse.field A.zeroTime x).adjoint P.crossDirection=P.crossDirection |
| 124 | have h : A.inverse.field A.zeroTime x=ContinuousLinearMap.id ℝ Space := by |
| 125 | apply ContinuousLinearMap.ext |
| 126 | intro v |
| 127 | exact A.inverse_initial x v |
| 128 | rw [h,adjoint_id,id_apply] |
| 129 | |
| 130 | theorem forward_parameters : |
| 131 | P.forwardFrame.a=P.a ∧ P.forwardFrame.sigma=P.sigma ∧ |
| 132 | P.forwardFrame.shear=P.shear ∧ P.forwardFrame.epsilon=P.epsilon ∧ |
| 133 | P.forwardFrame.horizon=P.horizon ∧ P.forwardFrame.G=P.G ∧ P.forwardFrame.error=P.error := |
| 134 | ⟨rfl,rfl,rfl,rfl,rfl,rfl,rfl⟩ |
| 135 | |
| 136 | end EulerPacketSourceGeometry.ParentFrame |