lean-golf Lean 4 proof leaderboard

USA1992 P5

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.Order.Ring.Star
import Mathlib.Analysis.Complex.Polynomial.Basic
import Mathlib.RingTheory.SimpleRing.Principal
theorem _root_.LeanGolf.compfiles.usa1992_p5 {q : ℂ[X]} (hq : q.natDegree = 1992) (hq' : q.roots.Nodup) :
    ∃ zs : List ℂ, zs.length = 1992 ∧ q ∣ pseq zs
Trusted statement context
noncomputable section

namespace Usa1992P5

open Polynomial

noncomputable def pseq : List ℂ → ℂ[X]
  | [] => X
  | z :: zs => zs.foldl (fun P w => P ^ 2 - C w) (X - C z)