Putnam 2012 A5
open: first valid proof sets the record
PutnamBench · 2012 A5 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).
Statement
import Mathlib
theorem LeanGolf.putnambench.putnam_2012_a5
(n p : ℕ)
(hn : n > 0)
(hp : Nat.Prime p)
{F : Type*} [Field F] [Fintype F]
(hK : Fintype.card F = p)
(G : Matrix (Fin n) (Fin n) F → (Fin n → F) → (Fin n → F) → (Fin n → F))
(hG : ∀ M v x, G M v x = v + mulVec M x) :
(n, p) ∈ putnam_2012_a5_solution ↔
∃ᵉ (M : Matrix (Fin n) (Fin n) F) (v : (Fin n → F)),
¬(∃ i j : Finset.range (p^n), i ≠ j ∧ (G M v)^[i + 1] 0 = (G M v)^[j + 1] 0)Trusted statement context
noncomputable section
open Matrix Function
abbrev putnam_2012_a5_solution : Set (ℕ × ℕ) :=
{q | let ⟨n, _⟩ := q; n = 1} ∪ {(2,2)}