1
; Copyright (C) 2013, Regents of the University of Texas
2
; Written by Matt Kaufmann
3
; License: A 3-clause BSD license. See the LICENSE file distributed with ACL2.
7
;; [Jared and Sol]: we want to make sure this book gets provisionally certified
8
;; if we're doing any provisional certification, because
9
;; local-elided-include.lisp is going to test whether its .pcert0 file exists
10
;; as a proxy for checking whether it was provisionally or regularly certified,
11
;; and that's just sort of wrong...
15
(local (make-event '(defun foo (x) x)))
17
(make-event '(local (defun foo (x) x)))
19
(make-event '(local (defun foo-2 (x) x)))
24
(local (defun bar1 (x) (foo x)))
25
(defthm bar1-preserves-consp
30
(make-event '(local (defun g (x) x)))
31
(local (defun g2 (x) x))
35
(local (defun bar2 (x) (foo x)))
36
(defthm bar2-preserves-consp
38
(consp (bar2 x))))))))
44
(local (defun bar2 (x) (foo x)))
45
(defthm bar2-preserves-consp
52
(make-event '(local (defun bar3 (x) (foo x))))
53
(defthm bar3-preserves-consp
60
(make-event '(local (defun bar3 (x) (foo x))))
61
(defthm bar3-preserves-consp
66
(include-book "misc/eval" :dir :system)
70
(local (defun bar3 (x) (foo x)))
71
(defthm bar3-preserves-consp
75
(make-event '(defun foo-3 (x) x))
77
(defmacro my-local (x)
82
(my-local (defun g3 (x) x))
83
(make-event '(my-local (defun g3 (x) x)))
84
(make-event '(my-local (defun g4 (x) x)))
85
(my-local (defun g4 (x) x))
86
(progn (my-local (defun g5 (x) x))
87
(my-local (make-event (value '(defun g6 (x) x))))))