• 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
                • Expression
                • Syntax-abstraction
                • Statement
                • Files
                • Input-files
                • Identifiers
                  • Identifier
                  • Identifier-option
                  • Programid
                  • Locator
                  • Identifier-grammar-chars-p
                  • Identifier-option-result
                  • Programid-result
                    • Programid-result-fix
                    • Programid-result-equiv
                    • Programid-result-ok
                    • Programid-result-err
                    • Programid-resultp
                      • Programid-result-kind
                    • Locator-result
                    • Identifier-result
                    • Identifier-list-result
                    • Identifier-string-p
                    • Identifier-set
                    • Identifier-list
                  • Types
                  • Struct-init
                  • Branch
                  • Statements
                  • Format-strings
                  • Input-syntax-abstraction
                  • Expressions
                  • Output-files
                  • Addresses
                  • Literals
                  • Characters
                  • Expression-list
                  • Statement-list
                  • Output-syntax-abstraction
                  • Struct-init-list
                  • Branch-list
                  • Annotations
                  • Abstract-syntax-trees
                  • Symbols
                  • Keywords
                  • Programs
                  • Packages
                  • Bit-sizes
                • Dynamic-semantics
                • Compilation
                • Static-semantics
                • 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
    • Programid-result

    Programid-resultp

    Recognizer for programid-result structures.

    Signature
    (programid-resultp acl2::x) → *

    Definitions and Theorems

    Function: programid-resultp

    (defun programid-resultp (acl2::x)
      (declare (xargs :guard t))
      (let ((__function__ 'programid-resultp))
        (declare (ignorable __function__))
        (cond ((programidp acl2::x)
               (b* ((get acl2::x)) (programidp get)))
              (t (b* ((get acl2::x)) (reserrp get))))))

    Theorem: consp-when-programid-resultp

    (defthm consp-when-programid-resultp
      (implies (programid-resultp acl2::x)
               (consp acl2::x))
      :rule-classes :compound-recognizer)