• 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
              • Convert-integer-value
              • Result-integer-value
              • Uaconvert-values
              • Bitnot-integer-value
              • Bitand-integer-values
              • Promote-value
              • Rem-integer-values
              • Shr-integer-values
              • Shl-integer-values
              • Div-integer-values
              • Bitxor-integer-values
              • Bitior-integer-values
              • Value-integer
              • Sub-integer-values
              • Mul-integer-values
              • Add-integer-values
              • Ne-integer-values
              • Lt-integer-values
              • Le-integer-values
              • Gt-integer-values
              • Ge-integer-values
              • Eq-integer-values
              • Minus-integer-value
              • Plus-integer-value
              • Value-integer->get
              • Lognot-integer-value
              • Test-integer-value
              • Value-integer-and-value-integer->get
              • Object-designators
              • 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
    • Integer-operations

    Value-integer-and-value-integer->get

    Theorems about value-integer and value-integer->get.

    Definitions and Theorems

    Theorem: value-integer-of-value-integer->get-when-type-of-value

    (defthm value-integer-of-value-integer->get-when-type-of-value
      (implies (and (value-integerp val)
                    (equal type (type-of-value val)))
               (equal (value-integer (value-integer->get val)
                                     type)
                      (value-fix val))))

    Theorem: value-integer->get-of-value-integer

    (defthm value-integer->get-of-value-integer
      (b* ((val (value-integer mathint type)))
        (implies (and (type-nonchar-integerp type)
                      (integer-type-rangep mathint type))
                 (equal (value-integer->get val)
                        (ifix mathint)))))