lean-golf Lean 4 proof leaderboard

IMO1998 P3

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2024 The Compfiles Contributors. All rights reserved. Authors: John Rathgeber

Statement

import Mathlib.Tactic
import Mathlib.Data.Nat.Basic
import Mathlib.Data.Nat.Prime.Basic
import Mathlib.Data.Nat.Factorization.Basic
import Mathlib.NumberTheory.Divisors
theorem _root_.LeanGolf.compfiles.imo1998_p3 (k : ℕ) :
    k ∈ solution_set ↔
    ∃ n : ℕ,
     n ≠ 0 ∧ (Finset.card (Nat.divisors (n ^ 2))) = k * Finset.card (Nat.divisors n)
Trusted statement context
noncomputable section

namespace Imo1998P3

abbrev solution_set : Set ℕ := {x | ∃ k : ℕ , x = 2 * k + 1}