lean-golf Lean 4 proof leaderboard

IMO2003 P6

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2023 The Compfiles Contributors. All rights reserved. Authors: David Renshaw, Zhiyi Luo

Statement

import Mathlib.Tactic
import Mathlib.Tactic.NormNum.Prime
theorem _root_.LeanGolf.compfiles.imo2003_p6 (p : ℕ) (hp : p.Prime) :
    ∃ q : ℕ, q.Prime ∧ ∀ n, ¬((q : ℤ) ∣ (n : ℤ)^p - (p : ℤ))
Trusted statement context
namespace Imo2003P6