Putnam 2019 B6
open: first valid proof sets the record
PutnamBench · 2019 B6 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).
Statement
import Mathlib
theorem LeanGolf.putnambench.putnam_2019_b6
(n : ℕ)
(neighbors : (Fin n → ℤ) → (Fin n → ℤ) → Prop)
(neighbors_def : ∀ p q, neighbors p q ↔ (∃ i : Fin n, abs (p i - q i) = 1 ∧ ∀ j ≠ i, p j = q j)) :
(1 ≤ n ∧ ∃ S : Set (Fin n → ℤ),
(∀ p ∈ S, ∀ q, neighbors p q → q ∉ S) ∧ (∀ p ∉ S, {q ∈ S | neighbors p q}.encard = 1))
↔ n ∈ putnam_2019_b6_solutionTrusted statement context
noncomputable section
open Topology Filter Set Matrix
abbrev putnam_2019_b6_solution : Set ℕ :=
Set.Ici 1