• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • Std/util
      • Defdata
      • Defrstobj
      • Seq
      • Match-tree
      • Defrstobj
      • With-supporters
      • Def-partial-measure
      • Template-subst
      • Soft
      • Defthm-domain
      • Event-macros
        • Evmac-input-hints-p
        • Evmac-input-print-p
        • Function-definedness
        • Event-macro-input-processing
        • 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
        • Def-universal-equiv
        • Def-saved-obligs
        • With-supporters-after
        • Definec
        • Sig
        • Outer-local
        • Data-structures
      • ACL2
        • Theories
        • Rule-classes
        • Proof-builder
        • Recursion-and-induction
        • Hons-and-memoization
        • Events
        • Parallelism
        • History
        • Programming
        • Operational-semantics
        • Real
        • Start-here
        • Debugging
        • Miscellaneous
        • Output-controls
        • Macros
          • Make-event
          • Defmacro
          • Untranslate-patterns
          • Tc
          • Trans*
          • Macro-aliases-table
          • Macro-args
          • Defabbrev
          • User-defined-functions-table
          • Trans
          • Untranslate-for-execution
          • Add-macro-fn
          • Check-vars-not-free
          • Safe-mode
          • Macro-libraries
            • B*
            • Defunc
            • Fty
            • Apt
            • Std/util
            • Defdata
            • Defrstobj
            • Seq
            • Match-tree
            • Defrstobj
            • With-supporters
            • Def-partial-measure
            • Template-subst
            • Soft
            • Defthm-domain
            • Event-macros
              • Evmac-input-hints-p
              • Evmac-input-print-p
              • Function-definedness
              • Event-macro-input-processing
              • 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
              • Def-universal-equiv
              • Def-saved-obligs
              • With-supporters-after
              • Definec
              • Sig
              • Outer-local
              • Data-structures
            • Trans1
            • Defmacro-untouchable
            • Set-duplicate-keys-action
            • Add-macro-alias
            • Magic-macroexpand
            • Defmacroq
            • Trans!
            • Remove-macro-fn
            • Remove-macro-alias
            • Add-binop
            • Untrans-table
            • Trans*-
            • Remove-binop
            • Tcp
            • Tca
          • Interfacing-tools
        • Interfacing-tools
        • Hardware-verification
        • Software-verification
        • Math
        • Testing-utilities
      • Event-macros

      Restore-output?

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

      Signature
      (restore-output? yes/no event) → new-event
      Arguments
      yes/no — Guard (booleanp yes/no).
      event — Guard (pseudo-event-formp event).
      Returns
      new-event — Type (pseudo-event-formp new-event), given (pseudo-event-formp event).

      This leaves the form unchanged if the boolean is nil, otherwise it calls restore-output on it.

      Definitions and Theorems

      Function: restore-output?

      (defun restore-output? (yes/no event)
        (declare (xargs :guard (and (booleanp yes/no)
                                    (pseudo-event-formp event))))
        (let ((__function__ 'restore-output?))
          (declare (ignorable __function__))
          (if yes/no (restore-output event)
            event)))

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

      (defthm pseudo-event-formp-of-restore-output?
        (implies (pseudo-event-formp event)
                 (b* ((new-event (restore-output? yes/no event)))
                   (pseudo-event-formp new-event)))
        :rule-classes :rewrite)