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.PacketSourceCorrectionCoefficients |
| 2 | |
| 3 | /-! Positivity and the literal inverse identity for the pressure metric. |
| 4 | Both follow from the prescribed deformation and its two-sided inverse. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerPacketCorrectionCoefficients |
| 9 | |
| 10 | open Set ContinuousLinearMap InnerProductSpace EulerSmoothLimit |
| 11 | EulerLiftedGradientSpace |
| 12 | |
| 13 | theorem norm_sq_lower_of_inverse {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 14 | (A B : E →L[ℝ] E) (b : ℝ) (hb : 0 < b) |
| 15 | (hBA : ∀ v, B (A v) = v) (hB : ‖B‖ ≤ b) (v : E) : |
| 16 | b⁻¹^2*‖v‖^2 ≤ ‖A v‖^2 := by |
| 17 | have hn : ‖v‖ ≤ b*‖A v‖ := by |
| 18 | calc |
| 19 | ‖v‖ = ‖B (A v)‖ := by rw [hBA] |
| 20 | _ ≤ ‖B‖*‖A v‖ := B.le_opNorm _ |
| 21 | _ ≤ b*‖A v‖ := mul_le_mul_of_nonneg_right hB (norm_nonneg _) |
| 22 | have hd : b⁻¹*‖v‖ ≤ ‖A v‖ := by |
| 23 | rw [← div_eq_inv_mul] |
| 24 | exact (div_le_iff₀ hb).2 (by simpa only [mul_comm] using hn) |
| 25 | have hs := (sq_le_sq₀ (mul_nonneg (inv_nonneg.mpr hb.le) (norm_nonneg _)) |
| 26 | (norm_nonneg (A v))).2 hd |
| 27 | simpa only [mul_pow] using hs |
| 28 | |
| 29 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 30 | (D : EulerTransversePacketProvider.Data U) |
| 31 | |
| 32 | theorem frame_adjoint_inverse (t : Icc (0 : ℝ) D.T) (x v : Space) : |
| 33 | (D.F.field t x).adjoint ((D.FInv.field t x).adjoint v) = v := by |
| 34 | apply ext_inner_right ℝ |
| 35 | intro w |
| 36 | rw [adjoint_inner_left,adjoint_inner_left,D.inverse_left] |
| 37 | |
| 38 | theorem inverse_adjoint_frame (t : Icc (0 : ℝ) D.T) (x v : Space) : |
| 39 | (D.FInv.field t x).adjoint ((D.F.field t x).adjoint v) = v := by |
| 40 | apply ext_inner_right ℝ |
| 41 | intro w |
| 42 | rw [adjoint_inner_left,adjoint_inner_left,D.inverse_right] |
| 43 | |
| 44 | theorem metric_inner (t : Icc (0 : ℝ) D.T) (x v w : Space) : |
| 45 | ⟪(metricCoefficient D).path t x v,w⟫_ℝ = |
| 46 | ⟪(D.FInv.field t x).adjoint v,(D.FInv.field t x).adjoint w⟫_ℝ := by |
| 47 | change ⟪D.FInv.field t x ((D.FInv.field t x).adjoint v),w⟫_ℝ = _ |
| 48 | rw [← adjoint_inner_right] |
| 49 | |
| 50 | theorem inverseMetric_inner (t : Icc (0 : ℝ) D.T) (x v w : Space) : |
| 51 | ⟪(inverseMetricCoefficient D).path t x v,w⟫_ℝ = |
| 52 | ⟪D.F.field t x v,D.F.field t x w⟫_ℝ := by |
| 53 | change ⟪(D.F.field t x).adjoint (D.F.field t x v),w⟫_ℝ = _ |
| 54 | rw [adjoint_inner_left] |
| 55 | |
| 56 | theorem metric_coercive (t : Icc (0 : ℝ) D.T) (x v : Space) : |
| 57 | D.normalLower*‖v‖^2 ≤ ⟪(metricCoefficient D).path t x v,v⟫_ℝ := by |
| 58 | rw [metric_inner,real_inner_self_eq_norm_sq] |
| 59 | exact norm_sq_lower_of_inverse (D.FInv.field t x).adjoint (D.F.field t x).adjoint |
| 60 | D.frameBound D.frameBound_pos (frame_adjoint_inverse D t x) |
| 61 | (by simpa only [ContinuousLinearMap.adjoint.norm_map] using D.frame_norm t x) v |
| 62 | |
| 63 | theorem inverseMetric_coercive (t : Icc (0 : ℝ) D.T) (x v : Space) : |
| 64 | D.frameLower*‖v‖^2 ≤ ⟪(inverseMetricCoefficient D).path t x v,v⟫_ℝ := by |
| 65 | rw [inverseMetric_inner,real_inner_self_eq_norm_sq] |
| 66 | exact norm_sq_lower_of_inverse (D.F.field t x) (D.FInv.field t x) |
| 67 | D.inverseBound D.inverseBound_pos (D.inverse_left t x) (D.inverse_norm t x) v |
| 68 | |
| 69 | theorem inverseMetric_inverse (t : Icc (0 : ℝ) D.T) (x v : Space) : |
| 70 | (inverseMetricCoefficient D).path t x ((metricCoefficient D).path t x v) = v := by |
| 71 | change (D.F.field t x).adjoint |
| 72 | (D.F.field t x (D.FInv.field t x ((D.FInv.field t x).adjoint v))) = v |
| 73 | rw [D.inverse_right,frame_adjoint_inverse] |
| 74 | |
| 75 | theorem metric_inverseMetric (t : Icc (0 : ℝ) D.T) (x v : Space) : |
| 76 | (metricCoefficient D).path t x ((inverseMetricCoefficient D).path t x v) = v := by |
| 77 | change D.FInv.field t x |
| 78 | ((D.FInv.field t x).adjoint ((D.F.field t x).adjoint (D.F.field t x v))) = v |
| 79 | rw [inverse_adjoint_frame,D.inverse_left] |
| 80 | |
| 81 | theorem metric_symmetric (t : Icc (0 : ℝ) D.T) (x v w : Space) : |
| 82 | ⟪(metricCoefficient D).path t x v,w⟫_ℝ = |
| 83 | ⟪v,(metricCoefficient D).path t x w⟫_ℝ := by |
| 84 | calc |
| 85 | _ = ⟪(D.FInv.field t x).adjoint v,(D.FInv.field t x).adjoint w⟫_ℝ := |
| 86 | metric_inner D t x v w |
| 87 | _ = ⟪(D.FInv.field t x).adjoint w,(D.FInv.field t x).adjoint v⟫_ℝ := |
| 88 | real_inner_comm _ _ |
| 89 | _ = ⟪(metricCoefficient D).path t x w,v⟫_ℝ := (metric_inner D t x w v).symm |
| 90 | _ = _ := real_inner_comm _ _ |
| 91 | |
| 92 | theorem inverseMetric_symmetric (t : Icc (0 : ℝ) D.T) (x v w : Space) : |
| 93 | ⟪(inverseMetricCoefficient D).path t x v,w⟫_ℝ = |
| 94 | ⟪v,(inverseMetricCoefficient D).path t x w⟫_ℝ := by |
| 95 | calc |
| 96 | _ = ⟪D.F.field t x v,D.F.field t x w⟫_ℝ := inverseMetric_inner D t x v w |
| 97 | _ = ⟪D.F.field t x w,D.F.field t x v⟫_ℝ := real_inner_comm _ _ |
| 98 | _ = ⟪(inverseMetricCoefficient D).path t x w,v⟫_ℝ := |
| 99 | (inverseMetric_inner D t x w v).symm |
| 100 | _ = _ := real_inner_comm _ _ |
| 101 | |
| 102 | variable (P : ℝ) [Fact (0 < P)] |
| 103 | |
| 104 | theorem metricTower_coercive (t : Icc (0 : ℝ) D.T) (x : LiftDomain P) (v : Space) : |
| 105 | D.normalLower*‖v‖^2 ≤ ⟪((metricTower D P).coefficient t).coefficient x v,v⟫_ℝ := |
| 106 | metric_coercive D t x.1 v |
| 107 | |
| 108 | theorem inverseMetricTower_inverse (t : Icc (0 : ℝ) D.T) |
| 109 | (x : LiftDomain P) (v : Space) : |
| 110 | ((inverseMetricTower D P).coefficient t).coefficient x |
| 111 | (((metricTower D P).coefficient t).coefficient x v) = v := |
| 112 | inverseMetric_inverse D t x.1 v |
| 113 | |
| 114 | end EulerPacketCorrectionCoefficients |