lean2/tests/lean/run/796.lean
2015-08-14 14:39:23 -07:00

11 lines
277 B
Text

import data.nat
inductive Diff ( n : nat ) : nat -> Type :=
| Base : Diff n n
| Step : Π (m : nat), Diff n (nat.succ m) -> Diff n m
definition checkDiff : Π (n m : nat), Diff n m -> Prop
| n _ (Diff.Base n) := true
| n m (Diff.Step m s) := checkDiff n _ s
print checkDiff