lean2/tests/lean/run/eq25.lean
Leonardo de Moura dc2ac92846 fix(library/definitional/equations): use whnf on recursive definition arguments
The idea is to expose "hidden" datatypes.
2015-02-23 22:27:30 -08:00

11 lines
147 B
Text

inductive N :=
O : N,
S : N → N
definition Nat := N
open N
definition add : Nat → Nat → Nat,
add O b := b,
add (S a) b := S (add a b)