• 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
        • Syntax-for-tools
        • Atc
        • Language
          • Abstract-syntax
          • Integer-ranges
          • Implementation-environments
          • Dynamic-semantics
          • Static-semantics
          • Grammar
          • Integer-formats
          • Types
          • Portable-ascii-identifiers
          • Values
          • Integer-operations
          • Computation-states
          • Object-designators
            • Objdesign
            • Address
              • Address-fix
              • Address-equiv
              • Make-address
              • Change-address
              • Address->number
                • Addressp
              • Object-disjointp
              • Objdesign-option
            • Operations
            • Errors
            • Tag-environments
            • Function-environments
            • Character-sets
            • Flexible-array-member-removal
            • Arithmetic-operations
            • Pointer-operations
            • Bytes
            • Keywords
            • Real-operations
            • Array-operations
            • Scalar-operations
            • Structure-operations
          • Representation
          • Transformation-tools
          • Insertion-sort
          • Pack
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • 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
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Address

    Address->number

    Get the number field from a address.

    Signature
    (address->number x) → number
    Arguments
    x — Guard (addressp x).
    Returns
    number — Type (natp number).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: address->number$inline

    (defun address->number$inline (x)
      (declare (xargs :guard (addressp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'address->number))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (nfix (cdr (std::da-nth 0 (cdr x)))))
             :exec (cdr (std::da-nth 0 (cdr x))))))

    Theorem: natp-of-address->number

    (defthm natp-of-address->number
      (b* ((number (address->number$inline x)))
        (natp number))
      :rule-classes :rewrite)

    Theorem: address->number$inline-of-address-fix-x

    (defthm address->number$inline-of-address-fix-x
      (equal (address->number$inline (address-fix x))
             (address->number$inline x)))

    Theorem: address->number$inline-address-equiv-congruence-on-x

    (defthm address->number$inline-address-equiv-congruence-on-x
      (implies (address-equiv x x-equiv)
               (equal (address->number$inline x)
                      (address->number$inline x-equiv)))
      :rule-classes :congruence)