lean-golf Lean 4 proof leaderboard

IMO2012 P6

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2023 The Compfiles Contributors. All rights reserved. Authors: Markus Rydh, Codex

Statement

import Mathlib
theorem _root_.LeanGolf.compfiles.imo2012_p6 : { n | IsSolution n } = solution_set
Trusted statement context
noncomputable section

namespace Imo2012P6

abbrev solution_set : Set ℕ := { n : ℕ | n % 4 = 1 ∨ n % 4 = 2 }

def IsSolution (n : ℕ) : Prop := ∃ a : ℕ → ℕ, 0 < n ∧
  (∑ i ∈ Finset.Icc 1 n, (1 : ℚ) / (2 ^ a i)) = 1 ∧
  (∑ i ∈ Finset.Icc 1 n, (i : ℚ) / (3 ^ a i)) = 1