assume
Caution
Since the
assumestatement is unchecked, it can easily be used to subvert Verus’s guarantees. In particular, successful “verification” by Verus provides no guarantees on the program if it includes anyassumestatements, unless thoseassumestatements could in principle be replaced by a successfulassertstatement.The
assumestatement is most useful during intermediate stages of development, e.g., within an assert/assume-driven proof-development process.
Tip
The
--no-cheatingflag can be used to disallowassumestatements.
Syntax
assume ::= assume (spec_expr) ;
Proof operation
Assume the given predicate without proof.