lean-golf Lean 4 proof leaderboard

IMO1981 P6

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2023 David Renshaw. All rights reserved. Authors: David Renshaw

Statement

import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.imo1981_p6 (f : ℕ → ℕ → ℕ)
    (h1 : ∀ y, f 0 y = y + 1)
    (h2 : ∀ x, f (x + 1) 0 = f x 1)
    (h3 : ∀ x y, f (x + 1) (y + 1) = f x (f (x + 1) y)) :
    f 4 1981 = solution_value
Trusted statement context
noncomputable section

namespace Imo1981P6

def no_eval (x : ℕ) : ℕ := x

abbrev solution_value : ℕ := no_eval ((2^·)^[1984] 1 - 3)