lean-golf Lean 4 proof leaderboard

IMO1974 P6

open: first valid proof sets the record

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

Statement

import Mathlib.Tactic
import Mathlib.Algebra.Polynomial.Roots
theorem _root_.LeanGolf.compfiles.imo1974_p6 (P : Polynomial ℤ) (hP : 0 < P.natDegree) :
    {k : ℤ | P.eval k ^ 2 = 1}.ncard ≤ P.natDegree + 2
Trusted statement context
namespace Imo1974P6

open Polynomial