/p/bin/acl2-3.1
, or to
get the latest version (which will likely be updated in 2 or 3 weeks),
/p/bin/acl2
.ACL2
home page.
If you do know emacs, I suggest putting the following in your
.emacs
file, and perhaps reading the documentation at the top of
that file.
(load "/projects/acl2/current/emacs/emacs-acl2.el")
For proof trees, see documentation
for topic proof-tree
. In a nutshell:
meta-x start-proof-tree
:start-proof-tree
control-z c
to jump to the next checkpoint.:INDUCT
hints(implies (and (consp x) (foo (cdr x) (g x y))) (foo x y))We can do this:
(defstub g (x y) t) (defun foo-induction (x y) (if (consp x) (foo-induction (cdr x) (g x y)) (list x y))) (defstub foo (x y) t) (thm (foo x y) :hints (("Goal" :induct (foo-induction x y))))