POLAND1998 P4
open: first valid proof sets the record
Compfiles · Poland · Apache-2.0
Copyright (c) 2023 David Renshaw. All rights reserved. Authors: David Renshaw
Statement
import Mathlib.Data.Nat.ModEq
import Mathlib.Data.ZMod.Basic
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.poland1998_p4 : Set.Infinite { n | 7 ∣ a n }Trusted statement context
noncomputable section
namespace Poland1998P4
def a : ℕ → ℕ
| 0 => 1 -- unused dummy value
| 1 => 1
| Nat.succ n =>
have _ : (n.succ / 2) < n.succ := Nat.div_lt_self' n 0
a n + a (n.succ / 2)