• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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$
        • Defconst
        • Fast-alists
        • Defmacro
        • Loop$-primer
        • Evaluation
        • Guard
        • Equality-variants
        • Compilation
        • Hons
        • ACL2-built-ins
        • Developers-guide
        • System-attachments
        • Advanced-features
        • Set-check-invariant-risk
        • Numbers
        • Efficiency
        • Irrelevant-formals
        • 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
          • Assert!-stobj
          • Error1
          • Breaks
          • Must-eval-to
          • Ctx
          • Ctxp
          • Assert!
          • Must-succeed
          • Assert$
          • Illegal
          • Er-progn
          • Er-hard
          • Must-succeed*
          • Toggle-inhibit-er
          • Er-soft+
          • Break$
          • Assert*
          • Assert?
          • Er-soft-logic
          • Er-hard?
          • Must-fail-with-soft-error
          • Must-fail-with-hard-error
          • Must-fail-with-error
          • Must-eval-to-t
            • 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
        • Miscellaneous
        • Output-controls
        • Bdd
        • Macros
        • Installation
        • Mailing-lists
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Std/testing
    • Errors
    • Must-eval-to

    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.

    This calls must-eval-to with t as the expr argument. Form should evaluate to an error triple (mv erp val state). If erp is nil and val is t then (must-eval-to form expr) expands to (value-triple t); otherwise expansion causes an appropriate soft error.

    The keyword arguments have the same meaning as in must-eval-to.

    Macro: must-eval-to-t

    (defmacro must-eval-to-t (form &key (ld-skip-proofsp ':default)
                                   (with-output-off ':all)
                                   (check-expansion 'nil
                                                    check-expansion-p))
     (declare (xargs :guard (booleanp check-expansion)))
     (cons
      'must-eval-to
      (cons
       form
       (cons
        't
        (cons
           ':with-output-off
           (cons with-output-off
                 (append (and check-expansion-p
                              (cons ':check-expansion
                                    (cons check-expansion 'nil)))
                         (and (not (eq ld-skip-proofsp :default))
                              (cons ':ld-skip-proofsp
                                    (cons ld-skip-proofsp 'nil))))))))))