lean-golf Lean 4 proof leaderboard

Putnam 1968 B5

open: first valid proof sets the record

PutnamBench · 1968 B5 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1968_b5
(p : ℕ)
(hp : Prime p)
: {M : Matrix (Fin 2) (Fin 2) (ZMod p) | M 0 0 + M 1 1 = 1 ∧ M 0 0 * M 1 1 - M 0 1 * M 1 0 = 0}.ncard = putnam_1968_b5_solution p
Trusted statement context
noncomputable section

open Finset Polynomial Topology Filter Metric

abbrev putnam_1968_b5_solution : ℕ → ℕ :=
  fun p => p^2 + p