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

    Process-input-verify-guards

    Process the :verify-guards input of an APT transformation.

    Signature
    (process-input-verify-guards verify-guards old ctx state) 
      → 
    (mv erp doit state)
    Arguments
    old — Guard (symbolp old).
    Returns
    doit — Type (booleanp doit).

    The APT transformations that use this utility have a :verify-guards input that specifies whether to verify the guards of the generated function(s). This input must be a boolean or :auto (the default). If it is :auto, guard verification takes place iff the old function is guard-verified. In any case, this utility returns a boolean saying whether the guard verification must take place or not.

    Definitions and Theorems

    Function: process-input-verify-guards

    (defun process-input-verify-guards (verify-guards old ctx state)
     (declare (xargs :stobjs (state)))
     (declare (xargs :guard (symbolp old)))
     (let ((__function__ 'process-input-verify-guards))
      (declare (ignorable __function__))
      (cond
       ((eq verify-guards t) (value t))
       ((eq verify-guards nil) (value nil))
       ((eq verify-guards :auto)
        (value (guard-verified-p old (w state))))
       (t
        (er-soft+
         ctx t nil
         "The :VERIFY-GUARDS input must be T, NIL, or :AUTO, ~
                          but it is ~x0 instead."
         verify-guards)))))

    Theorem: booleanp-of-process-input-verify-guards.doit

    (defthm booleanp-of-process-input-verify-guards.doit
      (b* (((mv ?erp ?doit acl2::?state)
            (process-input-verify-guards verify-guards old ctx state)))
        (booleanp doit))
      :rule-classes :rewrite)