lean-golf Lean 4 proof leaderboard

IMO1976 P2

open: first valid proof sets the record

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

Statement

import Mathlib
theorem _root_.LeanGolf.compfiles.imo1976_p2 (n : ℕ) (npos : 0 < n) :
    (∀ (r : ℂ), r ∈ aroots (P n - X) ℂ → r.im = 0) ∧ (aroots (P n - X) ℂ).Nodup
Trusted statement context
noncomputable section

namespace Imo1976P2

open Polynomial

noncomputable def P (j : ℕ) : ℝ[X] :=
  match j with
  | 0 => 0
  | 1 => X^2 - 2
  | j+2 => (P 1).comp (P (j+1))