Zulip Chat Archive
Stream: new members
Topic: Modular induction
Jeremy Tan (Jan 06 2024 at 19:28):
What's the cleanest way to set up "modular induction" as below?
@[elab_as_elim]
theorem mod_induction (hk : 0 < k) {P : Nat → Prop} (base : ∀ n < k, P n)
(succ : ∀ n, P n → P (n + k)) : ∀ n, P n := by
sorry
Yaël Dillies (Jan 06 2024 at 19:30):
Jeremy Tan (Jan 06 2024 at 19:31):
Yes, but it looks unwieldy to use
Yaël Dillies (Jan 06 2024 at 19:31):
Sure but probably you can start from there
Yaël Dillies (Jan 06 2024 at 19:31):
... or at least get inspiration from the proof
Last updated: May 02 2025 at 03:31 UTC