• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
              • Dynamic-semantics
              • Compilation
              • Static-semantics
                • Type-checking
                • Static-environments
                • Curve-parameterization
                • Function-recursion
                • Struct-recursion
                • Input-checking
                • Program-checking
                  • Api
                  • Lookup-main-function
                  • Api+senv
                  • Check-program
                  • Api+senv-result
                    • Api+senv-result-fix
                    • Api+senv-result-equiv
                    • Api+senv-result-ok
                    • Api+senv-result-err
                    • Api+senv-resultp
                      • Api+senv-result-kind
                    • Api-result
                  • Type-maps-for-struct-components
                  • Program-and-input-checking
                  • Output-checking
                • Concrete-syntax
        • 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
    • Api+senv-result

    Api+senv-resultp

    Recognizer for api+senv-result structures.

    Signature
    (api+senv-resultp acl2::x) → *

    Definitions and Theorems

    Function: api+senv-resultp

    (defun api+senv-resultp (acl2::x)
      (declare (xargs :guard t))
      (let ((__function__ 'api+senv-resultp))
        (declare (ignorable __function__))
        (cond ((api+senv-p acl2::x)
               (b* ((get acl2::x)) (api+senv-p get)))
              (t (b* ((get acl2::x)) (reserrp get))))))

    Theorem: consp-when-api+senv-resultp

    (defthm consp-when-api+senv-resultp
      (implies (api+senv-resultp acl2::x)
               (consp acl2::x))
      :rule-classes :compound-recognizer)