lean2/tests/lean/run/uni_issue1.lean
Leonardo de Moura 8743394627 refactor(kernel/inductive): replace recursor name, use '.rec' instead of '_rec'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-04 15:04:57 -07:00

8 lines
133 B
Text

import logic
inductive nat : Type :=
zero : nat,
succ : nat → nat
definition is_zero (n : nat)
:= nat.rec true (λ n r, false) n