lean-golf Lean 4 proof leaderboard

Putnam 1979 B3

open: first valid proof sets the record

PutnamBench · 1979 B3 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1979_b3
(F : Type*) [Field F] [Fintype F]
(n : ℕ)
(hn : n = Fintype.card F)
(nodd : Odd n)
(b c : F)
(p : Polynomial F)
(hp : p = X ^ 2 + (C b) * X + (C c) ∧ Irreducible p)
: ({d : F | Irreducible (p + (C d))}.ncard = putnam_1979_b3_solution n)
Trusted statement context
noncomputable section

open Set Topology Filter Polynomial

abbrev putnam_1979_b3_solution : ℕ → ℤ :=
  fun n ↦ (n - 1) / 2