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.PacketGeometryData |
| 2 | import Euler.PacketShearMotion |
| 3 | |
| 4 | /-! Consequences of the literal numerical guards for a physical geometry stage. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | |
| 9 | namespace EulerPacketMovingFrame.PhysicalGeometryData |
| 10 | |
| 11 | open Set Real EulerSmoothLimit EulerPacketRay EulerPacketFrameQuantitative |
| 12 | |
| 13 | variable {α : Type*} (D : PhysicalGeometryData α) |
| 14 | |
| 15 | theorem a_pos : 0 < D.a := by linarith only [D.a_lower] |
| 16 | theorem Theta_pos : 0 < D.Θ := by linarith only [D.Theta_lower] |
| 17 | theorem error_nonneg : 0 ≤ D.error := by unfold error; positivity [D.epsilon_pos, D.Theta_pos, D.d_nonneg] |
| 18 | |
| 19 | theorem target_from_sigma : 1/D.σ ≤ D.target := by |
| 20 | have hy : 1 ≤ D.y⁻¹ := by |
| 21 | rw [← one_div] |
| 22 | apply (le_div_iff₀ D.y_pos).mpr |
| 23 | linarith only [D.y_small] |
| 24 | exact div_le_div_of_nonneg_right hy D.sigma_pos.le |
| 25 | |
| 26 | theorem target_one : 1 ≤ D.target := by |
| 27 | have hs : 1 ≤ 1/D.σ := (le_div_iff₀ D.sigma_pos).mpr (by linarith only [D.sigma_small]) |
| 28 | exact hs.trans D.target_from_sigma |
| 29 | |
| 30 | theorem target_pos : 0 < D.target := lt_of_lt_of_le zero_lt_one D.target_one |
| 31 | theorem horizon_one : 1 ≤ D.H := D.target_one.trans D.target_le_horizon |
| 32 | theorem horizon_pos : 0 < D.H := lt_of_lt_of_le zero_lt_one D.horizon_one |
| 33 | theorem target_le_Theta : D.target ≤ D.Θ := D.target_le_horizon.trans D.horizon_le_Theta |
| 34 | |
| 35 | theorem sigma_Theta : 1 ≤ D.σ*D.Θ := by |
| 36 | have h := (div_le_iff₀ D.sigma_pos).mp (D.target_from_sigma.trans D.target_le_Theta) |
| 37 | nlinarith only [h] |
| 38 | |
| 39 | theorem target_scale : 1 ≤ D.σ^2*D.target^2 := by |
| 40 | have h : 1 ≤ D.σ*D.target := by |
| 41 | have hh := (div_le_iff₀ D.sigma_pos).mp D.target_from_sigma |
| 42 | nlinarith only [hh] |
| 43 | have hh := mul_le_mul h h (by norm_num : (0:ℝ) ≤ 1) (by positivity : 0 ≤ D.σ*D.target) |
| 44 | nlinarith only [hh] |
| 45 | |
| 46 | theorem time_mem {τ : ℝ} (hτ : τ ∈ Icc 0 D.H) : D.time τ ∈ D.S := |
| 47 | D.time_maps ⟨hτ.1, hτ.2.trans D.horizon_le_Theta⟩ |
| 48 | |
| 49 | theorem target_time_mem : D.targetTime ∈ D.S := |
| 50 | D.time_mem ⟨D.target_pos.le, D.target_le_horizon⟩ |
| 51 | |
| 52 | theorem error_le_half : D.error ≤ 1/2 := by |
| 53 | have hp := scaled_power_le D.Theta_lower |
| 54 | ((by norm_num : (1:ℝ) ≤ 1000000000).trans neighborStabilityConstant_ge) D.error_nonneg |
| 55 | (by decide : 0 ≤ 40) |
| 56 | have hs := D.small |
| 57 | change 1000000*neighborStabilityConstant*D.error*D.Θ^40 ≤ 1 at hs |
| 58 | norm_num only [pow_zero, mul_one] at hp |
| 59 | nlinarith only [hp, hs] |
| 60 | |
| 61 | theorem error_le_one : D.error ≤ 1 := D.error_le_half.trans (by norm_num) |
| 62 | |
| 63 | theorem epsilon_le_error : D.ε ≤ D.error := by |
| 64 | have hg : 1 ≤ (4*D.G)^2 := by nlinarith only [D.G_lower, sq_nonneg (D.G-1)] |
| 65 | have hc : 1 ≤ D.Θ*(4*D.G)^2 := by |
| 66 | simpa only [one_mul] using mul_le_mul D.Theta_lower hg |
| 67 | (by norm_num : (0:ℝ) ≤ 1) D.Theta_pos.le |
| 68 | have hh := mul_le_mul_of_nonneg_left hc D.epsilon_pos.le |
| 69 | unfold error |
| 70 | nlinarith only [hh, D.d_nonneg, D.epsilon_pos] |
| 71 | |
| 72 | theorem epsilon_le_one : D.ε ≤ 1 := D.epsilon_le_error.trans D.error_le_one |
| 73 | |
| 74 | theorem ray_error_small : 800*D.error*D.Θ^5 ≤ 1/2 := by |
| 75 | have hp := scaled_power_le D.Theta_lower |
| 76 | ((by norm_num : (1:ℝ) ≤ 1000000000).trans neighborStabilityConstant_ge) D.error_nonneg |
| 77 | (by decide : 5 ≤ 40) |
| 78 | have hs := D.small |
| 79 | change 1000000*neighborStabilityConstant*D.error*D.Θ^40 ≤ 1 at hs |
| 80 | nlinarith only [hp, hs] |
| 81 | |
| 82 | theorem relative_error_small : neighborStabilityConstant*D.error*D.Θ^29 ≤ 1/2 := by |
| 83 | have hK : 0 ≤ neighborStabilityConstant := (by norm_num : (0:ℝ) ≤ 1000000000).trans neighborStabilityConstant_ge |
| 84 | have hp := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ D.Theta_lower (by decide : 29 ≤ 40)) |
| 85 | (mul_nonneg hK D.error_nonneg) |
| 86 | have hs := D.small |
| 87 | change 1000000*neighborStabilityConstant*D.error*D.Θ^40 ≤ 1 at hs |
| 88 | nlinarith only [hp, hs] |
| 89 | |
| 90 | theorem scalar_error_small : 4*exp 6*(400000000*D.error*D.Θ^29) ≤ 1 := by |
| 91 | have hr := D.relative_error_small |
| 92 | have hK : 0 ≤ neighborStabilityConstant := |
| 93 | (by norm_num : (0:ℝ) ≤ 1000000000).trans neighborStabilityConstant_ge |
| 94 | have hp := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ D.Theta_lower (by decide : 29 ≤ 40)) |
| 95 | (mul_nonneg hK D.error_nonneg) |
| 96 | have hs := D.small |
| 97 | change 1000000*neighborStabilityConstant*D.error*D.Θ^40 ≤ 1 at hs |
| 98 | unfold neighborStabilityConstant at hp hs hr |
| 99 | nlinarith only [hp, hs, hr] |
| 100 | |
| 101 | theorem propagator_small : 8000000*D.error*D.Θ^21 ≤ 1 := by |
| 102 | have hp := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ D.Theta_lower (by decide : 21 ≤ 40)) D.error_nonneg |
| 103 | have hk : 0 ≤ neighborStabilityConstant-8 := by linarith only [neighborStabilityConstant_ge] |
| 104 | have hmul := mul_nonneg hk (mul_nonneg D.error_nonneg (pow_nonneg D.Theta_pos.le 40)) |
| 105 | have hs := D.small |
| 106 | change 1000000*neighborStabilityConstant*D.error*D.Θ^40 ≤ 1 at hs |
| 107 | nlinarith only [hp, hmul, hs] |
| 108 | |
| 109 | theorem action_error (ξ : α) {τ : ℝ} (hτ : τ ∈ Icc 0 D.H) : |
| 110 | ∀ i j, |scaledAction (D.M ξ (D.time τ)) D.m D.v D.a D.ε (D.time τ) i j- |
| 111 | idealVelocityEntry (D.σ^2) i j| ≤ 3*D.error := by |
| 112 | have h := physical_matrix_errors D.a_lower D.epsilon_pos D.Theta_lower D.G_lower D.d_nonneg |
| 113 | D.error_le_one D.time_maps D.B_derivative D.old_ray_equation D.old_velocity_equation |
| 114 | D.old_ray_nonzero D.old_velocity_nonzero D.old_tangent D.B_bound D.B_derivative_bound |
| 115 | (D.E_bound ξ) (D.parent_decomposition ξ) D.initial_coupling D.initial_tilt D.initial_shear |
| 116 | exact (h.2 τ ⟨hτ.1, hτ.2.trans D.horizon_le_Theta⟩).2.1 |
| 117 | |
| 118 | theorem target_shear_lower : D.a/(2*D.ε^2) ≤ D.targetShear := by |
| 119 | have hh := physical_shear_motion_bound D.a_lower D.epsilon_pos D.Theta_lower D.G_lower D.d_nonneg |
| 120 | D.error_le_one D.time_maps D.B_derivative D.old_ray_equation D.old_velocity_equation |
| 121 | D.old_ray_nonzero D.old_velocity_nonzero D.old_tangent D.B_bound D.B_derivative_bound |
| 122 | (D.E_bound D.center) D.initial_coupling D.initial_tilt D.initial_shear |
| 123 | have hb := (abs_le.mp (hh.2 D.target ⟨D.target_pos.le, D.target_le_Theta⟩)).1 |
| 124 | have hratio : 1/2 ≤ D.ε^2*D.targetShear/D.a := by |
| 125 | change -D.error ≤ D.ε^2*D.targetShear/D.a-1 at hb |
| 126 | linarith only [hb, D.error_le_half] |
| 127 | have hmul := (le_div_iff₀ D.a_pos).mp hratio |
| 128 | apply (div_le_iff₀ (show 0 < 2*D.ε^2 by positivity [D.epsilon_pos])).mpr |
| 129 | nlinarith only [hmul] |
| 130 | |
| 131 | theorem target_shear_pos : 0 < D.targetShear := |
| 132 | lt_of_lt_of_le (by positivity [D.a_pos, D.epsilon_pos]) D.target_shear_lower |
| 133 | |
| 134 | theorem compression_domination : |
| 135 | 30*(‖D.B D.targetTime‖+‖D.E D.center D.targetTime‖)*D.target < D.targetShear*D.ε := by |
| 136 | have hguard := D.compression_guard |
| 137 | change 60*(D.G+D.d)*D.target*D.ε < D.a at hguard |
| 138 | have hlower := mul_le_mul_of_nonneg_right D.target_shear_lower D.epsilon_pos.le |
| 139 | have heq : (D.a/(2*D.ε^2))*D.ε = D.a/(2*D.ε) := by |
| 140 | field_simp [ne_of_gt D.epsilon_pos] |
| 141 | rw [heq] at hlower |
| 142 | have hsmall : 30*(D.G+D.d)*D.target < D.a/(2*D.ε) := |
| 143 | (lt_div_iff₀ (show 0 < 2*D.ε by positivity [D.epsilon_pos])).mpr (by nlinarith only [hguard]) |
| 144 | have hnorm := add_le_add (D.B_bound _ D.target_time_mem) (D.E_bound D.center _ D.target_time_mem) |
| 145 | have hm := mul_le_mul_of_nonneg_right hnorm (show 0 ≤ 30*D.target by positivity [D.target_pos]) |
| 146 | have hfirst : 30*(‖D.B D.targetTime‖+‖D.E D.center D.targetTime‖)*D.target ≤ |
| 147 | 30*(D.G+D.d)*D.target := by nlinarith only [hm] |
| 148 | exact hfirst.trans_lt (hsmall.trans_le hlower) |
| 149 | |
| 150 | end EulerPacketMovingFrame.PhysicalGeometryData |