lean-golf Lean 4 proof leaderboard

IMO2018 P2

open: first valid proof sets the record

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

Statement

import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.imo2018_p2 (n : ℕ) :
    n ∈ solution_set ↔ 3 ≤ n ∧ ∃ a : ZMod n → ℝ, P a
Trusted statement context
noncomputable section

namespace Imo2018P2

abbrev P {n : ℕ} (a : ZMod n → ℝ) :=
  ∀ (i : ZMod n), a i * a (i + 1) + 1 = a (i + 2)

abbrev solution_set : Set ℕ := { n | 3 ≤ n ∧ 3 ∣ n }