• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
        • Atj
        • Aij
        • Language
          • Syntax
          • Semantics
            • Primitive-function-macros
            • Primitive-values
              • Floating-pointx-value
              • Doublex-value-fns
              • Primitivex-value
              • Floatx-value-fns
              • Primitive-value
              • Numericx-value
              • Numeric-value
              • Integral-value
              • Int-value
              • Char-value
              • Byte-value
              • Short-value
                • Short-value-fix
                • Short-valuep
                • Short-value-equiv
                • Make-short-value
                • Short-value->int
                  • Change-short-value
                • Long-value
                • Float-value
                • Double-value
                • Boolean-value
                • Floating-point-value
                • Disjoint-primitive-values
                • Short-value-list
                • Long-value-list
                • Int-value-list
                • Float-value-list
                • Double-value-list
                • Char-value-list
                • Byte-value-list
                • Boolean-value-list
              • Floating-point-placeholders
              • Pointers
              • Floating-point-value-set-parameters
              • Values
              • Primitive-operations
              • Primitive-conversions
              • Reference-values
        • 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
    • Short-value

    Short-value->int

    Get the int field from a short-value.

    Signature
    (short-value->int x) → int
    Arguments
    x — Guard (short-valuep x).
    Returns
    int — Type (sbyte16p int).

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

    Definitions and Theorems

    Function: short-value->int$inline

    (defun short-value->int$inline (x)
      (declare (xargs :guard (short-valuep x)))
      (declare (xargs :guard t))
      (let ((__function__ 'short-value->int))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (acl2::sbyte16-fix (std::da-nth 0 (cdr x))))
             :exec (std::da-nth 0 (cdr x)))))

    Theorem: sbyte16p-of-short-value->int

    (defthm sbyte16p-of-short-value->int
      (b* ((int (short-value->int$inline x)))
        (sbyte16p int))
      :rule-classes :rewrite)

    Theorem: short-value->int$inline-of-short-value-fix-x

    (defthm short-value->int$inline-of-short-value-fix-x
      (equal (short-value->int$inline (short-value-fix x))
             (short-value->int$inline x)))

    Theorem: short-value->int$inline-short-value-equiv-congruence-on-x

    (defthm short-value->int$inline-short-value-equiv-congruence-on-x
      (implies (short-value-equiv x x-equiv)
               (equal (short-value->int$inline x)
                      (short-value->int$inline x-equiv)))
      :rule-classes :congruence)