File: test2-input.lsp

package info (click to toggle)
acl2 8.6%2Bdfsg-2
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 1,111,420 kB
  • sloc: lisp: 17,818,294; java: 125,359; python: 28,122; javascript: 23,458; cpp: 18,851; ansic: 11,569; perl: 7,678; xml: 5,591; sh: 3,976; makefile: 3,833; ruby: 2,633; yacc: 1,126; ml: 763; awk: 295; csh: 233; lex: 197; php: 178; tcl: 49; asm: 23; haskell: 17
file content (53 lines) | stat: -rw-r--r-- 1,387 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
; Copyright (C) 2023, ForrestHunt, Inc.
; Written by Matt Kaufmann, June, 2023
; License: A 3-clause BSD license.  See the LICENSE file distributed with ACL2.

(in-package "ACL2")

(set-inhibit-output-lst '(prove proof-tree))
(set-gag-mode nil)

(in-theory (disable reverse))

; Fails because of the disable above:
(saving-event-data (ld "test2.lisp"))

; Then the following produces differences as shown below.
(runes-diff "test1.lisp")

(in-theory (disable (:t append)))

; Fails as before, but with a different proof for the thm:
(saving-event-data (ld "test2.lisp"))

; See rune differences for the thm:
(runes-diff "test2.lisp" :name nil)

; The following shows the result from the runes-diff call above and relevant
; output that explains it.

; Result from runes-diff:
#|
 ((:OLD ((:TYPE-PRESCRIPTION BINARY-APPEND)))
  (:NEW ((:ELIM CAR-CDR-ELIM))))
|#

; From summary for the THM in test2.cert.out:
#|
Rules: ((:DEFINITION BINARY-APPEND)
        (:DEFINITION ENDP)
        (:DEFINITION NOT)
        (:FAKE-RUNE-FOR-TYPE-SET NIL)
        (:INDUCTION BINARY-APPEND)
        (:TYPE-PRESCRIPTION BINARY-APPEND))
|#

; From summary for the second attempt for the THM in test2-log.out:
#|
Rules: ((:DEFINITION BINARY-APPEND)
        (:DEFINITION ENDP)
        (:DEFINITION NOT)
        (:ELIM CAR-CDR-ELIM)
        (:FAKE-RUNE-FOR-TYPE-SET NIL)
        (:INDUCTION BINARY-APPEND))
|#