• 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
        • 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

    Restore-output

    Wrap an event form to have it produce screen output according to previously saved screen output settings.

    Signature
    (restore-output event) → new-event
    Arguments
    event — Guard (pseudo-event-formp event).
    Returns
    new-event — Type (pseudo-event-formp new-event).

    This wraps the form in a (with-output :stack :pop ...). Among other possible uses, this can be used on a sub-form of the form passed to a make-event-terse.

    Definitions and Theorems

    Function: restore-output

    (defun restore-output (event)
           (declare (xargs :guard (pseudo-event-formp event)))
           (let ((__function__ 'restore-output))
                (declare (ignorable __function__))
                (cons 'with-output
                      (cons ':stack
                            (cons ':pop (cons event 'nil))))))

    Theorem: pseudo-event-formp-of-restore-output

    (defthm pseudo-event-formp-of-restore-output
            (b* ((new-event (restore-output event)))
                (pseudo-event-formp new-event))
            :rule-classes :rewrite)