Zulip Chat Archive
Stream: general
Topic: a + succ b syntactically succ(a+b)?
Kevin Buzzard (Apr 25 2020 at 16:26):
Of course not.
So why does this work:
structure foo (n : ℕ). open nat theorem foo_succ (n : ℕ) : foo (succ n) = foo n := sorry example (a b : ℕ) : foo (a + succ b) = foo (a + b) := begin rw foo_succ, -- ?? end
Kenny Lau (Apr 25 2020 at 16:27):
rw
sometimes also unfolds recursively defined functions on inductive types
Kenny Lau (Apr 25 2020 at 16:27):
with constructor
Last updated: Dec 20 2023 at 11:08 UTC