lean-golf Lean 4 proof leaderboard

IMO2023 P1

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.imo2023_p1 : solution_set = { n | 1 < n ∧ ¬n.Prime ∧ Dividable n }
Trusted statement context
noncomputable section

namespace Imo2023P1

abbrev ConsecutiveFactors (n a b : ℕ) :=
  a ∣ n ∧ b ∣ n ∧ a < b ∧ ¬∃ c, (c ∣ n ∧ a < c ∧ c < b)

abbrev Dividable (n : ℕ) :=
  ∀ {a b c : ℕ},
    ConsecutiveFactors n a b ∧ ConsecutiveFactors n b c
    → a ∣ b + c

abbrev solution_set : Set ℕ := { n | ¬n.Prime ∧ IsPrimePow n }