-- Scalar certificate: overlap loss a and excited overlap b.
-- Matrix-to-overlap reduction is established in the accompanying proof.
import Mathlib
 theorem variational_bound (a b e : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b)
    (he : 11664 * b ≤ e) :
    5832 * (a + b) ≤ e + 5832 * (a - b) := by
  linarith
 theorem variational_unique (a b e : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b)
    (he : 11664 * b ≤ e) (hz : e + 5832 * (a - b) = 0) :
    a = 0 ∧ b = 0 := by
  constructor <;> linarith
 theorem minimum_value : (-(5832 : ℤ) * 47) = -274104 := by decide