• 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
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
          • Syntax-for-tools
          • Atc
          • Transformation-tools
          • Language
            • Abstract-syntax
            • Integer-ranges
            • Implementation-environments
            • Dynamic-semantics
            • Static-semantics
            • Grammar
            • Types
            • Integer-formats-definitions
            • Computation-states
            • Portable-ascii-identifiers
            • Values
            • Integer-operations
            • Object-designators
              • Objdesign
              • Address
                • Address-fix
                • Address-equiv
                • Make-address
                • Change-address
                • Address->number
                • Addressp
                • Object-disjointp
                • Objdesign-option
                • Objdesign-top
              • Operations
              • Errors
              • Tag-environments
              • Function-environments
              • Character-sets
              • Flexible-array-member-removal
              • Arithmetic-operations
              • Pointer-operations
              • Real-operations
              • Array-operations
              • Scalar-operations
              • Structure-operations
            • Representation
            • Insertion-sort
            • Pack
          • 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
    • Address

    Addressp

    Recognizer for address structures.

    Signature
    (addressp x) → *

    Definitions and Theorems

    Function: addressp

    (defun addressp (x)
      (declare (xargs :guard t))
      (and (consp x)
           (eq (car x) :address)
           (mbe :logic (and (alistp (cdr x))
                            (equal (strip-cars (cdr x)) '(number)))
                :exec (fty::alist-with-carsp (cdr x)
                                             '(number)))
           (b* ((number (cdr (std::da-nth 0 (cdr x)))))
             (natp number))))

    Theorem: consp-when-addressp

    (defthm consp-when-addressp
      (implies (addressp x) (consp x))
      :rule-classes :compound-recognizer)