• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
      • Std/lists
      • Std/alists
      • Obags
      • Std/util
        • Defprojection
        • Deflist
        • Defaggregate
        • Define
        • Defmapping
          • Defsurj
          • Defiso
          • Defmapping-implementation
            • Defmapping-event-generation
              • Defmapping-gen-everything
              • Defmapping-gen-appconds
              • Defmapping-gen-beta-injective
              • Defmapping-gen-alpha-injective
              • Defmapping-gen-nonappcond-thms
              • Defmapping-gen-thms
              • Defmapping-gen-ext-table
              • Defmapping-gen-appcond-thm
              • Defmapping-differentiate-a/b-vars
              • Defmapping-gen-appcond-thms
              • Defmapping-gen-print-result
                • Defmapping-gen-var-aa/bb
                • Defmapping-gen-var-b1...bm
                • Defmapping-gen-var-a1...an
              • Defmapping-check-redundancy
              • Defmapping-table
              • Defmapping-fn
              • Defmapping-input-processing
              • Defmapping-macro-definition
            • Definj
          • Defenum
          • Add-io-pairs
          • Defalist
          • Defmapappend
          • Returns-specifiers
          • Defarbrec
          • Defines
          • Define-sk
          • Error-value-tuples
          • Defmax-nat
          • Defmin-int
          • Deftutorial
          • Extended-formals
          • Defrule
          • Defval
          • Defsurj
          • Defiso
          • Defconstrained-recognizer
          • Deffixer
          • Defmvtypes
          • Defconsts
          • Defthm-unsigned-byte-p
          • Support
          • Defthm-signed-byte-p
          • Defthm-natp
          • Defund-sk
          • Defmacro+
          • Defsum
          • Defthm-commutative
          • Definj
          • Defirrelevant
          • Defredundant
        • Std/strings
        • Std/osets
        • Std/io
        • Std/basic
        • Std/system
        • Std/typed-lists
        • Std/bitsets
        • Std/testing
        • Std/typed-alists
        • Std/stobjs
      • Community
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Defmapping-event-generation

    Defmapping-gen-print-result

    Generate the events that print the result.

    Signature
    (defmapping-gen-print-result thms) → cw-events
    Arguments
    thms — Guard (pseudo-event-form-listp thms).
    Returns
    cw-events — Type (pseudo-event-form-listp cw-events).

    This refers to the :result value of the :print input. The result to print consists of the generated theorems. These theorems are printed only if :print is :result or :info or :all.

    Definitions and Theorems

    Function: defmapping-gen-print-result

    (defun defmapping-gen-print-result (thms)
      (declare (xargs :guard (pseudo-event-form-listp thms)))
      (let ((__function__ 'defmapping-gen-print-result))
        (declare (ignorable __function__))
        (if (endp thms)
            nil
          (cons (cons 'cw-event
                      (cons '"~x0~|"
                            (cons (cons 'quote (cons (car thms) 'nil))
                                  'nil)))
                (defmapping-gen-print-result (cdr thms))))))

    Theorem: pseudo-event-form-listp-of-defmapping-gen-print-result

    (defthm pseudo-event-form-listp-of-defmapping-gen-print-result
      (b* ((cw-events (defmapping-gen-print-result thms)))
        (pseudo-event-form-listp cw-events))
      :rule-classes :rewrite)