• 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-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)