• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
        • Isodata
        • Simplify-defun
        • Tailrec
        • Schemalg
        • Restrict
        • Expdata
        • Casesplit
        • Simplify-term
        • Simplify-defun-sk
        • Parteval
        • Solve
        • Wrap-output
        • Propagate-iso
        • Simplify
        • Finite-difference
        • Drop-irrelevant-params
        • Copy-function
        • Lift-iso
        • Rename-params
        • Utilities
          • Defaults-table
          • Xdoc::apt-constructors
          • Input-processors
            • Process-input-old-soft-io-sel-mod
            • Process-input-new/wrapper-names
            • Process-input-select-old-soft-io
            • Process-input-old-to-new-name
            • Process-input-old-if-new-name
            • Process-input-old-to-wrapper-name
            • Process-input-wrapper-enable
            • Process-input-wrapper-to-old-name
            • Process-input-old-to-new-enable
            • Process-input-old-to-wrapper-enable
              • Process-input-old-if-new-enable
              • Process-input-new-name
              • Process-input-new-to-old-name
              • Process-input-wrapper-to-old-enable
              • Process-input-verify-guards
              • Process-input-new-enable
              • Process-input-new-to-old-enable
            • Transformation-table
            • Find-base-cases
            • Untranslate-specifier-utilities
            • Print-specifier-utilities
            • Hints-specifier-utilities
          • Simplify-term-programmatic
          • Simplify-defun-sk-programmatic
          • Simplify-defun-programmatic
          • Simplify-defun+
          • Common-options
          • Common-concepts
        • Zfc
        • Acre
        • Milawa
        • Smtlink
        • Abnf
        • Vwsim
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • Legacy-defrstobj
        • C
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Input-processors

    Process-input-old-to-wrapper-enable

    Process the :old-to-wrapper-enable input of an APT transformation.

    Signature
    (process-input-old-to-wrapper-enable old-to-wrapper-enable 
                                         old-to-wrapper-enable-present 
                                         gen-wrapper ctx state) 
     
      → 
    (mv erp processed-old-to-wrapper-enable state)
    Arguments
    old-to-wrapper-enable-present — Guard (booleanp old-to-wrapper-enable-present).
    gen-wrapper — Guard (booleanp gen-wrapper).
    Returns
    processed-old-to-wrapper-enable — Type (booleanp processed-old-to-wrapper-enable).

    This is quite analogous to process-input-old-to-new-enable, but for the :old-to-wrapper-enable input of an APT transformation. The gen-wrapper parameter is t iff the wrapper is generated, i.e. if the :wrapper input of the transformation is t. If this is nil, we ensure that :old-to-wrapper-enable is absent.

    Definitions and Theorems

    Function: process-input-old-to-wrapper-enable

    (defun process-input-old-to-wrapper-enable
           (old-to-wrapper-enable old-to-wrapper-enable-present
                                  gen-wrapper ctx state)
     (declare (xargs :stobjs (state)))
     (declare
          (xargs :guard (and (booleanp old-to-wrapper-enable-present)
                             (booleanp gen-wrapper))))
     (let ((__function__ 'process-input-old-to-wrapper-enable))
      (declare (ignorable __function__))
      (if gen-wrapper
       (if old-to-wrapper-enable-present
        (b*
         (((er &)
           (ensure-value-is-boolean$ old-to-wrapper-enable
                                     "The :OLD-TO-WRAPPER-ENABLE input"
                                     t nil)))
         (value old-to-wrapper-enable))
        (value (get-default-input-old-to-wrapper-enable (w state))))
       (if old-to-wrapper-enable-present
        (er-soft+
         ctx t nil
         "Since the :WRAPPER input is (perhaps by default) NIL, ~
                       no :OLD-TO-WRAPPER-ENABLE input may be supplied,
                       but ~x0 was supplied instead."
         old-to-wrapper-enable)
        (value nil)))))

    Theorem: booleanp-of-process-input-old-to-wrapper-enable.processed-old-to-wrapper-enable

    (defthm
     booleanp-of-process-input-old-to-wrapper-enable.processed-old-to-wrapper-enable
     (b* (((mv ?erp ?processed-old-to-wrapper-enable
               acl2::?state)
           (process-input-old-to-wrapper-enable
                old-to-wrapper-enable
                old-to-wrapper-enable-present
                gen-wrapper ctx state)))
       (booleanp processed-old-to-wrapper-enable))
     :rule-classes :rewrite)