USA1990 P1
open: first valid proof sets the record
Compfiles · Usa · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Kimi K3
Statement
import Mathlib.Algebra.BigOperators.Fin
import Mathlib.AlgebraicTopology.SimplexCategory.Basic
import Mathlib.Data.ZMod.Defs
import Mathlib.InformationTheory.Hamming
theorem _root_.LeanGolf.compfiles.usa1990_p1 :
IsGreatest {k : ℕ | ∃ S : Finset Plate, S.card = k ∧ IsValid S} answerTrusted statement context
noncomputable section
namespace Usa1990P1
abbrev Plate := Fin 6 → ZMod 10
def IsValid (S : Finset Plate) : Prop :=
∀ p ∈ S, ∀ q ∈ S, p ≠ q → 2 ≤ hammingDist p q
abbrev answer : ℕ := 10 ^ 5