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.ParentPacketFrames |
| 2 | import Euler.PhysicalChildStructure |
| 3 | import Euler.PacketVolumeDivergence |
| 4 | import Euler.ChildParticleFieldTime |
| 5 | |
| 6 | /-! The actual composed child coefficients form the next parent data. |
| 7 | The next spatial scale can be chosen independently of the current scale. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerParentPacketFrames.Parent |
| 12 | |
| 13 | open Set EulerSmoothLimit EulerLiftedGradientSpace EulerSmoothBanachFlow |
| 14 | EulerGraphInvariantFlow EulerPacketVolumeDivergence MeasureTheory |
| 15 | |
| 16 | variable (A : EulerParentPacketFrames.Parent) |
| 17 | |
| 18 | theorem displacement_det_one (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 19 | (ContinuousLinearMap.id ℝ Space + fderiv ℝ (A.displacement.field t : Space → Space) x).det=1 := by |
| 20 | have h := A.determinant t (A.ell⁻¹ • x) |
| 21 | have hx : A.ell • (A.ell⁻¹ • x)=x := by |
| 22 | rw [smul_smul,mul_inv_cancel₀ A.ell_pos.ne',one_smul] |
| 23 | simpa only [hx,operatorMatrix_det] using h |
| 24 | |
| 25 | variable {P : ℝ} [Fact (0 < P)] (G : EulerPhysicalGraphFlowBounds.Data P A.T) |
| 26 | (k : ℝ) (m : Vector3) (hgraph : ∀ t z, graphConstraint k m (G.A.field t z)=0) |
| 27 | (nextEll : ℝ) (hnext : 0 < nextEll) (hnext1 : nextEll ≤ 1) |
| 28 | |
| 29 | def child : EulerParentPacketFrames.Parent where |
| 30 | T := A.T |
| 31 | T_pos := A.T_pos |
| 32 | ell := nextEll |
| 33 | ell_pos := hnext |
| 34 | ell_le_one := hnext1 |
| 35 | displacement := EulerChildParticleTime.displacement A.displacement |
| 36 | (G.physicalDisplacementCoefficient k m A.ell) |
| 37 | velocity := EulerChildParticleTime.velocity A.displacement A.velocity |
| 38 | (G.physicalDisplacementCoefficient k m A.ell) (G.physicalVelocityCoefficient k m A.ell) |
| 39 | acceleration := EulerChildParticleTime.acceleration A.displacement A.velocity A.acceleration |
| 40 | (G.physicalDisplacementCoefficient k m A.ell) (G.physicalVelocityCoefficient k m A.ell) |
| 41 | (G.physicalAccelerationCoefficient k m A.ell) |
| 42 | displacement_time := EulerChildParticleTime.displacement_time A.displacement_time |
| 43 | (G.physicalDisplacementCoefficient_time k m A.ell) |
| 44 | velocity_time := EulerChildParticleTime.velocity_time A.displacement_time A.velocity_time |
| 45 | (G.physicalDisplacementCoefficient_time k m A.ell) |
| 46 | (G.physicalVelocityCoefficient_time k m A.ell) |
| 47 | initial := G.childDisplacementCoefficient_zero k m A.ell A.displacement A.initial |
| 48 | determinant t x := by |
| 49 | rw [operatorMatrix_det] |
| 50 | exact G.childDisplacementCoefficient_det_one k m A.ell hgraph A.ell_pos |
| 51 | A.displacement A.displacement_det_one t (nextEll • x) |
| 52 | |
| 53 | theorem child_particleMap (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 54 | x+(A.child G k m hgraph nextEll hnext hnext1).displacement.field t x = |
| 55 | let y := (flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).forward t x |
| 56 | y+A.displacement.field t y := by |
| 57 | change x+(EulerChildParticleTime.displacement A.displacement |
| 58 | (G.physicalDisplacementCoefficient k m A.ell)).field t x=_ |
| 59 | rw [EulerChildParticleTime.map_composition] |
| 60 | have hi : x+(G.physicalDisplacementCoefficient k m A.ell).field t x = |
| 61 | (flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).forward t x := by |
| 62 | rw [G.physicalDisplacementCoefficient_eq k m A.ell A.ell_pos, |
| 63 | G.displacementField_eq k m hgraph A.ell A.ell_pos,EulerSmoothBanachFlow.displacement_eq] |
| 64 | abel |
| 65 | rw [hi] |
| 66 | |
| 67 | theorem child_fields_match |
| 68 | (E : Icc (0 : ℝ) A.T → EulerChildParticleFieldBounds.Data) |
| 69 | (hD : ∀ t x, (E t).parentDisplacement.field x=A.displacement.field t x) |
| 70 | (hV : ∀ t x, (E t).parentVelocity.field x=A.velocity.field t x) |
| 71 | (hW : ∀ t x, (E t).parentAcceleration.field x=A.acceleration.field t x) |
| 72 | (hd : ∀ t, (E t).displacement=G.displacementField k m A.ell A.ell_pos t) |
| 73 | (hv : ∀ t, (E t).velocity=G.velocityField k m A.ell A.ell_pos t) |
| 74 | (hw : ∀ t, (E t).acceleration=G.accelerationFieldL2 k m A.ell A.ell_pos t) |
| 75 | (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 76 | (E t).childDisplacement.field x=(A.child G k m hgraph nextEll hnext hnext1).displacement.field t x ∧ |
| 77 | (E t).childVelocity.field x=(A.child G k m hgraph nextEll hnext hnext1).velocity.field t x ∧ |
| 78 | (E t).childAcceleration.field x=(A.child G k m hgraph nextEll hnext hnext1).acceleration.field t x := by |
| 79 | let H : EulerChildParticleTime.Representation E A.displacement A.velocity A.acceleration |
| 80 | (G.physicalDisplacementCoefficient k m A.ell) |
| 81 | (G.physicalVelocityCoefficient k m A.ell) |
| 82 | (G.physicalAccelerationCoefficient k m A.ell) := |
| 83 | { parentDisplacement := hD |
| 84 | parentVelocity := hV |
| 85 | parentAcceleration := hW |
| 86 | displacement := by |
| 87 | intro u y |
| 88 | rw [hd] |
| 89 | exact (G.physicalDisplacementCoefficient_eq k m A.ell A.ell_pos u y).symm |
| 90 | velocity := by |
| 91 | intro u y |
| 92 | rw [hv] |
| 93 | exact (G.physicalVelocityCoefficient_eq k m A.ell A.ell_pos u y).symm |
| 94 | acceleration := by |
| 95 | intro u y |
| 96 | rw [hw] |
| 97 | exact (G.physicalAccelerationCoefficient_eq k m A.ell A.ell_pos u y).symm } |
| 98 | exact ⟨H.childDisplacement t x,H.childVelocity t x,H.childAcceleration t x⟩ |
| 99 | |
| 100 | def childInverse (Y : Icc (0 : ℝ) A.T → Space → Space) |
| 101 | (t : Icc (0 : ℝ) A.T) (x : Space) : Space := |
| 102 | (flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).backward t (Y t x) |
| 103 | |
| 104 | theorem childInverse_left (Y : Icc (0 : ℝ) A.T → Space → Space) |
| 105 | (hYX : ∀ t x, Y t (x+A.displacement.field t x)=x) |
| 106 | (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 107 | A.childInverse G k m Y t |
| 108 | (x+(A.child G k m hgraph nextEll hnext hnext1).displacement.field t x)=x := by |
| 109 | rw [A.child_particleMap G k m hgraph nextEll hnext hnext1] |
| 110 | change (flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).backward t |
| 111 | (Y t (_+A.displacement.field t _))=x |
| 112 | rw [hYX] |
| 113 | exact (flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).backward_forward t x |
| 114 | |
| 115 | theorem childInverse_right (Y : Icc (0 : ℝ) A.T → Space → Space) |
| 116 | (hXY : ∀ t x, Y t x+A.displacement.field t (Y t x)=x) |
| 117 | (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 118 | A.childInverse G k m Y t x+ |
| 119 | (A.child G k m hgraph nextEll hnext hnext1).displacement.field t |
| 120 | (A.childInverse G k m Y t x)=x := by |
| 121 | rw [A.child_particleMap G k m hgraph nextEll hnext hnext1] |
| 122 | change |
| 123 | (flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).forward t |
| 124 | ((flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).backward t (Y t x)) + |
| 125 | A.displacement.field t |
| 126 | ((flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).forward t |
| 127 | ((flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).backward t (Y t x)))=x |
| 128 | rw [(flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).forward_backward] |
| 129 | exact hXY t x |
| 130 | |
| 131 | theorem childInverse_joint_continuous (Y : Icc (0 : ℝ) A.T → Space → Space) |
| 132 | (hY : Continuous (Function.uncurry Y)) : |
| 133 | Continuous (Function.uncurry (A.childInverse G k m Y)) := |
| 134 | (flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).backward_joint_continuous.comp |
| 135 | ((continuous_subtype_val.comp continuous_fst).prodMk hY) |
| 136 | |
| 137 | theorem child_particleMap_measurePreserving |
| 138 | (hparent : ∀ t, MeasurePreserving (fun x => x+A.displacement.field t x) volume volume) |
| 139 | (t : Icc (0 : ℝ) A.T) : |
| 140 | MeasurePreserving |
| 141 | (fun x => x+(A.child G k m hgraph nextEll hnext hnext1).displacement.field t x) volume volume := by |
| 142 | have he : (fun x => x+(A.child G k m hgraph nextEll hnext hnext1).displacement.field t x) = |
| 143 | (fun y => y+A.displacement.field t y) ∘ |
| 144 | (flowData A.T G.time_nonneg (physicalCoefficient k m A.T G.A A.ell)).forward t := |
| 145 | funext (A.child_particleMap G k m hgraph nextEll hnext hnext1 t) |
| 146 | rw [he] |
| 147 | exact (hparent t).comp |
| 148 | (physical_forward_measurePreserving k m A.T G.time_nonneg G.A hgraph G.divergence |
| 149 | A.ell A.ell_pos.ne' t) |
| 150 | |
| 151 | end EulerParentPacketFrames.Parent |