lean-golf Lean 4 proof leaderboard

Imo2023P3

open: first valid proof sets the record

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

Statement

import Mathlib.Analysis.Normed.Ring.Lemmas
import Mathlib.RingTheory.Polynomial.Vieta
import Mathlib.Tactic.GCongr
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.Positivity.Basic
import Mathlib.Tactic.Ring
theorem _root_.LeanGolf.compfiles.imo2023_p3_imo2023p3 {k : ℕ} (hk : 2 ≤ k) (a : ℕ+ → ℕ+) :
    a ∈ SolutionSet hk ↔
    (∃ P : Polynomial ℤ, P.Monic ∧ P.degree = k ∧
     (∀ n, n ≤ k → 0 ≤ P.coeff n) ∧
      ∀ n : ℕ+,
        P.eval ((a n) : ℤ) =
        ∏ i ∈ Finset.range k, a ⟨n + i + 1, Nat.succ_pos _⟩)
Trusted statement context
noncomputable section

namespace Imo2023P3

open Polynomial

abbrev SolutionSet {k : ℕ} (hk : 2 ≤ k) : Set (ℕ+ → ℕ+) :=
  {a | ∃ a₀ d : ℕ, ∀ m : ℕ, (a ⟨m + 1, Nat.succ_pos m⟩).val = a₀ + d * m}