lean-golf Lean 4 proof leaderboard

USA1973 P2

open: first valid proof sets the record

Compfiles · Usa · Apache-2.0
Copyright (c) 2025 The Compfiles Contributors. All rights reserved. Authors: Shalev Wengrowsky, Maximiliano Onofre Martínez

Statement

import Mathlib.Tactic
import Mathlib.Data.Nat.Basic
theorem _root_.LeanGolf.compfiles.usa1973_p2 (n m : ℕ) (h : a n = b m): a n = 1
Trusted statement context
noncomputable section

namespace Usa1973P2

def a : ℕ → ℕ
| 0 => 1
| 1 => 1
| n + 2 => a (n + 1) + 2 * a n

def b : ℕ → ℕ
| 0 => 1
| 1 => 7
| n + 2 => 2 * b (n + 1) + 3 * b n