SMTLIB[Session]
Assert
add assertion to current level of SMTLIB session stack
Calling Sequence
Parameters
Description
Details
Examples
Compatibility
session:-Assert( expr )
session
-
a SMTLIB[Session] object
expr
set, function, or boolean; expression to be asserted
The session:-Assert(m) command asserts the truth of expression expr within the SMTLIB session session.
Assertions made at a given stack level will be deleted when the stack is popped with SMTLIB[Session][Pop].
Test for the satisfiability of this simple Boolean problem.
with⁡SMTLIB:
session≔Session⁡
session≔SMTLIB Session26036920Variables: 0Stack Depth: 0
session:-Assert⁡4<x::integer
::ℤ
session:-Satisfiable⁡
true
session:-Push⁡:
session:-Assert⁡x<0::integer
false
The SMTLIB[Session][Assert] command was introduced in Maple 2022.
For more information on Maple 2022 changes, see Updates in Maple 2022.
See Also
SMTLIB
Download Help Document