Putnam 2013 A2
open: first valid proof sets the record
PutnamBench · 2013 A2 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).
Statement
import Mathlib
theorem LeanGolf.putnambench.putnam_2013_a2
(S : Set ℤ)
(hS : S = {n : ℤ | n > 0 ∧ ¬∃ m : ℤ, m ^ 2 = n})
(P : ℤ → List ℤ → Prop)
(hP : ∀ n a, P n a ↔
a.length > 0 ∧ n < a[0]! ∧
(∃ m : ℤ, m ^ 2 = n * a.prod) ∧
(∀ i : Fin (a.length - 1), a[i] < a[i+(1:ℕ)]))
(T : ℤ → Set ℤ)
(hT : T = fun n : ℤ => {m : ℤ | ∃ a : List ℤ, P n a ∧ a[a.length - 1]! = m})
(f : ℤ → ℤ)
(hf : ∀ n ∈ S, ((∃ r ∈ T n, f n = r) ∧ ∀ r ∈ T n, f n ≤ r)) :
InjOn f STrusted statement context
open Function Set