lean-golf Lean 4 proof leaderboard

mathd_algebra_76

open: first valid proof sets the record

miniF2F · mathd · Apache-2.0
miniF2F-Lean v2 contributors (Azim Ospanov, Farzan Farnia and Roozbeh Yousefzadeh).

Statement

import Mathlib
import Aesop
theorem LeanGolf.minif2f.mathd_algebra_76
  (f : ℤ → ℤ) (h₀ : ∀ n, Odd n → f n = n ^ 2)
  (h₁ : ∀ n, Even n → f n = n ^ 2 - 4 * n - 1) :
  f (f (f (f (f (4))))) = 1
Trusted statement context
open BigOperators Real Nat Topology Rat