• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • 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
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • 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
    • 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)))))