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

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

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

    The APT transformations that use this utility have an :old-to-new-enable input that specifies whether to enable or not the theorem that rewrites the old function in terms of the new function. This must be a boolean. If absent, it is taken from the APT defaults table; see set-default-input-old-to-new-enable.

    The caller of this utility must set the parameter old-to-new-enable-present to t iff the :old-to-new-enable input is present. If this is nil, the parameter old-to-new-enable is ignored.

    Definitions and Theorems

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

    (defun process-input-old-to-new-enable
           (old-to-new-enable old-to-new-enable-present ctx state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (booleanp old-to-new-enable-present)))
      (let ((__function__ 'process-input-old-to-new-enable))
        (declare (ignorable __function__))
        (if old-to-new-enable-present
            (b* (((er &)
                  (ensure-value-is-boolean$
                       old-to-new-enable
                       "The :OLD-TO-NEW-ENABLE input" t nil)))
              (value old-to-new-enable))
          (value (get-default-input-old-to-new-enable (w state))))))

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

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