Search-engine friendly clone of the
ACL2 documentation
.
Top
Documentation
Books
Boolean-reasoning
Projects
Debugging
Std
Proof-automation
Macro-libraries
ACL2
Theories
Rule-classes
Proof-builder
Recursion-and-induction
Hons-and-memoization
Events
Parallelism
History
Programming
Defun
Declare
System-utilities
Stobj
State
Mutual-recursion
Memoize
Mbe
Io
Defpkg
Apply$
Loop$
Programming-with-state
Arrays
Characters
Time$
Loop$-primer
Fast-alists
Defconst
Defmacro
Evaluation
Guard
Equality-variants
Compilation
Hons
ACL2-built-ins
Developers-guide
System-attachments
Advanced-features
Set-check-invariant-risk
Numbers
Irrelevant-formals
Efficiency
Introduction-to-programming-in-ACL2-for-those-who-know-lisp
Redefining-programs
Lists
Invariant-risk
Errors
Er
Value-triple
Error-checking
Error-triple
Assert-event
Set-warnings-as-errors
Hard-error
Set-inhibit-er
Must-fail
Breaks
Assert!-stobj
Must-eval-to
Ctx
Assert!
Must-succeed
Assert$
Illegal
Er-progn
Error1
Ctxp
Er-hard
Must-succeed*
Toggle-inhibit-er
Break$
Assert*
Assert?
Er-soft+
Er-hard?
Must-fail-with-soft-error
Must-fail-with-hard-error
Must-fail-with-error
Must-eval-to-t
Er-soft-logic
Er-soft
Convert-soft-error
Toggle-inhibit-er!
Set-inhibit-er!
Must-prove
Must-not-prove
Must-fail!
Must-be-redundant
Must-succeed!
Must-fail-local
Assert-equal
Defabbrev
Conses
Alists
Set-register-invariant-risk
Strings
Program-wrapper
Get-internal-time
Basics
Packages
Oracle-eval
Defmacro-untouchable
Primitive
<<
Revert-world
Unmemoize
Set-duplicate-keys-action
Symbols
Def-list-constructor
Easy-simplify-term
Defiteration
Fake-oracle-eval
Defopen
Sleep
Operational-semantics
Real
Start-here
Debugging
Miscellaneous
Output-controls
Macros
Interfacing-tools
Interfacing-tools
Hardware-verification
Software-verification
Math
Testing-utilities
Programming
Errors
Support for causing runtime errors, breaks, assertions, etc.
Subtopics
Er
Print an error message and ``cause an error''
Value-triple
Compute a value, optionally checking that it is not
nil
Error-checking
A library of utilities for error checking.
Error-triple
A common ACL2 programming idiom
Assert-event
Assert that a given form returns a non-
nil
value
Set-warnings-as-errors
Changing
warnings
to hard
errors
(and vice-versa)
Hard-error
Print an error message and stop execution
Set-inhibit-er
Control the error output
Must-fail
A top-level
assert$
-like command. Ensures that a command which returns an
error-triple
—e.g.,
defun
or
defthm
—will not be successful.
Breaks
Common Lisp breaks
Assert!-stobj
Variant of
assert!
and
assert-event
allowing
stobj
s
Must-eval-to
A top-level
assert$
-like command to ensure that a form evaluates to a non-erroneous error triple with the value of a specified expression.
Ctx
Context object for error messages
Assert!
Event
variant of
assert$
that abbreviates
assert-event
Must-succeed
A top-level
assert$
-like command. Ensures that a command which returns an
error-triple
—e.g., a
defun
or
defthm
—will return successfully.
Assert$
Cause a hard error if the given test is false
Illegal
Print an error message and stop execution
Er-progn
Perform a sequence of state-changing ``error triples''
Error1
Print an error message and cause a ``soft error''
Ctxp
Recognizer for context objects for error messages
Er-hard
Print an error message and ``cause a hard error''
Must-succeed*
A variant of
must-succeed
that accepts multiple forms.
Toggle-inhibit-er
Add or delete an error output string from the
inhibit-er-table
Break$
Cause an immediate Lisp break
Assert*
Create a
guard
proof obligation that given test holds
Assert?
A variation of
assert$
with customizable context and message.
Er-soft+
Print an error message and ``cause an error''
Er-hard?
Print an error message and ``cause a hard error''
Must-fail-with-soft-error
A specialization of
must-fail
to ensure that a soft error occurs.
Must-fail-with-hard-error
A specialization of
must-fail
to ensure that a hard error occurs.
Must-fail-with-error
A specialization of
must-fail
to ensure that an error occurs.
Must-eval-to-t
A specialization of
must-eval-to
to ensure that a form evaluates to a non-erroneous error triple with value
t
.
Er-soft-logic
Print an error message and ``cause an error''
Er-soft
Print an error message and ``cause a soft error''
Convert-soft-error
Convert a soft error to have a specified
(
mv
erp val state)
Toggle-inhibit-er!
Toggle an
inhibit-er-table
entry non-
local
ly
Set-inhibit-er!
Control error output non-
local
ly
Must-prove
A top-level
assert$
-like command to ensure that a formula gets proved.
Must-not-prove
A top-level
assert$
-like command to ensure that a formula does not get proved.
Must-fail!
A variant of
must-fail
suitable for inclusion in books
Must-be-redundant
A top-level
assert$
-like command to ensure that given forms are redundant.
Must-succeed!
A variant of
must-succeed
Must-fail-local
A
local
variant of
must-fail
.
Assert-equal
Abbreviation for calling
assert!
on an equality.