Putnam 1991 B1
open: first valid proof sets the record
PutnamBench · 1991 B1 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).
Statement
import Mathlib
theorem LeanGolf.putnambench.putnam_1991_b1
(m S : ℤ → ℤ)
(A : ℤ)
(a : ℕ → ℤ)
(hm : ∀ n, 0 ≤ n → (m n) ^ 2 ≤ n ∧ (∀ m' : ℤ, m' ^ 2 ≤ n → m' ≤ m n))
(hS : ∀ n, 0 ≤ n → S n = n - (m n) ^ 2)
(ha : a 0 = A ∧ (∀ k, a (k + 1) = a k + S (a k)))
(hA : A > 0) :
(∃ (K : ℕ) (c : ℕ), ∀ k ≥ K, a k = c) ↔ A ∈ putnam_1991_b1_solutionTrusted statement context
noncomputable section
open Filter Topology
abbrev putnam_1991_b1_solution : Set ℤ :=
{A : ℤ | ∃ x > 0, A = x ^ 2}