SRI-CSL / PVS

The People's Verification System
http://pvs.csl.sri.com
GNU General Public License v2.0
135 stars 32 forks source link

Assertion Fails in unusedby-proofs-of-formulas #61

Open dMaggot opened 5 years ago

dMaggot commented 5 years ago

In the presence of a datatype declaration in the root theory (argument theoryref in the unusedby-proofs-of-formulas LISP function) the assertion (assert th) in the unused-by-proofs-of LISP function fails. An simple way to reproduce is to add the following to Examples/sum.pvs

dummy_dt: DATATYPE
BEGIN
 dummy: dummy?
END dummy_dt

then open this theory in emacs and run

M-x tcp
M-x unsedby-proofs-of-formulas
Formula: closed_form
Formula:
Root theory to use as context: (default: sum):

The assertion will show in the pvs buffer. Reproduced in PVS 6.0 with Allegro and PVS 7.0 (from git) with SBCL.