IMO1974 P1
open: first valid proof sets the record
Compfiles · Imo · Apache-2.0
Copyright (c) 2025 The Compfiles Contributors. All rights reserved. Authors: Lynn Van Hauwe
Statement
import Mathlib
theorem _root_.LeanGolf.compfiles.imo1974_p1
(p q r : ℕ)
(hpqr : 0 < p ∧ p < q ∧ q < r)
(n : ℕ)
(hn : 1 < n)
(game : ℕ → (Player ≃ Fin 3))
(hA : ∑ k ∈ Finset.range n, ![p,q,r] (game k 0) = 20)
(hB : ∑ k ∈ Finset.range n, ![p,q,r] (game k 1) = 10)
(hC : ∑ k ∈ Finset.range n, ![p,q,r] (game k 2) = 9)
(hl : ![p,q,r] (game (n-1) 1) = r)
: game 0 solution = 1Trusted statement context
noncomputable section
namespace Imo1974P1
abbrev Player := Fin 3
abbrev solution : Player := 2