Invalid certificates and uncertified books
For relevant background see books, see books-tour, see certificate, and see portcullis.
You may have been led to this topic by a warning or error message such as the following.
There is no certificate on file for /u/smith/foo.lisp. See :DOC uncertified-books.
The remedy is to certify the indicated book; see certify-book. Such certification is typically a very good idea, as discussed further below. After certification succeeds, the book will have a valid certificate and the message will no longer be printed. The rest of this topic explains issues pertaining to books that are uncertified, that is, have not been certified.
Include-book has a special provision for dealing with an
uncertified book, i.e., a file whose certificate is missing or
invalid (e.g., one for a different ACL2 version or whose book-hash
value describes a file other than the one actually read). In this case, a
warning is printed (as above) and the book is usually processed much as though
it were certified.
If a book
The ability to include uncertified books is handy but it can have disastrous consequences, ranging from hard lisp errors, to damaged memory, to quiet logical inconsistency.
It is possible for the inclusion of an uncertified book to render the logic
inconsistent. For example, one of its non-local events might
be
Even if a book is perfectly well formed and could be certified (in a
suitable extension of ACL2's initial world), its uncertified inclusion
might cause Lisp errors or inconsistencies! For example, it might mention
packages that do not exist in the host world, especially if the
In short, if you include an uncertified book, all bets are off regarding the validity of the future behavior of ACL2.
That said, it should be noted that ACL2 is pretty tough and if errors don't occur, the chances are that deductions after the inclusion of an uncertified book are probably justified in the (possibly inconsistent) logical extension obtained by assuming the admissibility and validity of the definitions and conjectures in the book.