lean-golf Lean 4 proof leaderboard

USA1997 P3

open: first valid proof sets the record

Compfiles · Usa · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Kimi K3

Statement

import Mathlib.Algebra.EuclideanDomain.Basic
import Mathlib.Algebra.EuclideanDomain.Int
import Mathlib.Algebra.Order.Ring.Star
import Mathlib.Algebra.Polynomial.Div
import Mathlib.Algebra.Ring.IsFormallyReal
import Mathlib.Analysis.Normed.Ring.Lemmas
import Mathlib
theorem _root_.LeanGolf.compfiles.usa1997_p3 (n : ℤ) :
    ∃! Q : ℤ[X], (∀ i, 0 ≤ Q.coeff i ∧ Q.coeff i ≤ 9) ∧
      Q.eval (-2) = n ∧ Q.eval (-5) = n
Trusted statement context
namespace Usa1997P3

open Polynomial