• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Std/util
      • Apt
      • Defdata
      • Defrstobj
      • Seq
      • Match-tree
      • Defrstobj
      • With-supporters
      • Def-partial-measure
      • Template-subst
      • Soft
      • Defthm-domain
      • Event-macros
        • Evmac-input-hints-p
        • Function-definedness
        • Event-macro-input-processing
        • Event-macro-screen-printing
        • Evmac-input-print-p
          • Evmac-input-print-<
          • Evmac-input-print->=
          • Evmac-input-print->
          • Evmac-input-print-<=
        • 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
      • Def-universal-equiv
      • Def-saved-obligs
      • With-supporters-after
      • Definec
      • Sig
      • Outer-local
      • Data-structures
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Testing-utilities
    • Math
  • 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.