• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • 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
          • Error-checking
          • Fty-extensions
          • Isar
          • Kestrel-utilities
          • Set
          • C
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Input-processors

    Process-input-new-to-old-enable

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

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

    This is quite analogous to process-input-old-to-new-enable, but for the :new-to-old-enable input of an APT transformation.

    Definitions and Theorems

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

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

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

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