• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
          • Evmac-input-hints-p
          • Evmac-input-print-p
            • Evmac-input-print-<
            • Evmac-input-print->=
            • Evmac-input-print->
            • Evmac-input-print-<=
          • Event-macro-input-processing
          • Function-definedness
          • Event-macro-screen-printing
          • Make-event-terse
          • Event-macro-applicability-conditions
          • Event-macro-results
          • Template-generators
          • Event-macro-event-generators
          • Event-macro-proof-preparation
          • Try-event
          • Restore-output?
          • Restore-output
          • Fail-event
          • Cw-event
          • Event-macro-xdoc-constructors
          • Event-macro-intro-macros
        • Java
        • Riscv
        • Bitcoin
        • Zcash
        • Yul
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
        • Number-theory
        • Axe
        • Lists-light
        • Builtins
        • Solidity
        • Helpers
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Axe
      • Execloader
    • Math
    • Testing-utilities
  • Event-macros

Evmac-input-print-p

Recognize a valid :print input of an event macro.

See event-macro-screen-printing.

This is an ordinary std::defenum.

Function: evmac-input-print-p

(defun evmac-input-print-p (x)
  (declare (xargs :guard t))
  (or (eq x 'nil)
      (eq x ':error)
      (eq x ':result)
      (eq x ':info)
      (eq x ':all)))

Theorem: type-when-evmac-input-print-p

(defthm type-when-evmac-input-print-p
  (implies (evmac-input-print-p x)
           (if (if (symbolp x)
                   (if (not (equal x 't))
                       (not (equal x 'nil))
                     'nil)
                 'nil)
               't
             (equal x 'nil)))
  :rule-classes :compound-recognizer)

Subtopics

Evmac-input-print-<
Less-than ordering on print levels.
Evmac-input-print->=
Greater-than-or-equal-to ordering on print levels.
Evmac-input-print->
Greater-than ordering on print levels.
Evmac-input-print-<=
Less-than-or-equal-to ordering on print levels.