• 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
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • 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
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
              • Dynamic-semantics
                • Execution
                • Values
                  • Int-valuep
                  • Value-option
                  • Type-of-value
                  • Value-option-result
                  • Value-list-result
                  • Name+value
                  • Value-result
                  • Make-int-value
                  • Type-map-of-value-map
                  • Name+type-of-name+value
                  • Int-value-bound-theorems
                  • Int-value-to-int
                  • Int-value-numbits
                  • Value/valuelist
                    • Value
                      • Valuep
                      • Value-case
                      • Value-equiv
                      • Value-struct
                      • Value-kind
                      • Value-u64
                      • Value-u32
                      • Value-u16
                      • Value-u128
                      • Value-tuple
                      • Value-string
                      • Value-i64
                      • Value-i32
                      • Value-i16
                      • Value-i128
                      • Value-bool
                      • Value-address
                      • Value-u8
                      • Value-scalar
                      • Value-i8
                        • Value-i8->get
                          • Make-value-i8
                          • Change-value-i8
                        • Value-group
                        • Value-field
                        • Value-fix
                        • Value-count
                      • Value-list
                      • Value-map
                    • *most-positive-i8*
                    • *most-positive-i64*
                    • *most-positive-i32*
                    • *most-positive-i16*
                    • *most-positive-i128*
                    • *most-negative-i8*
                    • *most-negative-i64*
                    • *most-negative-i32*
                    • *most-negative-i16*
                    • *most-negative-i128*
                    • *greatest-u8*
                    • *greatest-u64*
                    • *greatest-u32*
                    • *greatest-u16*
                    • *greatest-u128*
                  • Dynamic-environments
                  • Arithmetic-operations
                  • Curve-parameterization
                  • Shift-operations
                  • Errors
                  • Value-expressions
                  • Locations
                  • Input-execution
                  • Edwards-bls12-generator
                  • Equality-operations
                  • Logical-operations
                  • Program-execution
                  • Ordering-operations
                  • Bitwise-operations
                  • Literal-evaluation
                  • Type-maps-for-struct-components
                  • Output-execution
                  • Tuple-operations
                  • Struct-operations
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • 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
    • Value-i8

    Value-i8->get

    Get the get field from a value-i8.

    Signature
    (value-i8->get x) → get
    Arguments
    x — Guard (valuep x).
    Returns
    get — Type (sbyte8p get).

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

    Definitions and Theorems

    Function: value-i8->get$inline

    (defun value-i8->get$inline (x)
      (declare (xargs :guard (valuep x)))
      (declare (xargs :guard (equal (value-kind x) :i8)))
      (let ((__function__ 'value-i8->get))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (value-kind x) :i8) x)))
               (acl2::sbyte8-fix (std::da-nth 0 (cdr x))))
             :exec (std::da-nth 0 (cdr x)))))

    Theorem: sbyte8p-of-value-i8->get

    (defthm sbyte8p-of-value-i8->get
      (b* ((get (value-i8->get$inline x)))
        (sbyte8p get))
      :rule-classes :rewrite)

    Theorem: value-i8->get$inline-of-value-fix-x

    (defthm value-i8->get$inline-of-value-fix-x
      (equal (value-i8->get$inline (value-fix x))
             (value-i8->get$inline x)))

    Theorem: value-i8->get$inline-value-equiv-congruence-on-x

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

    Theorem: value-i8->get-when-wrong-kind

    (defthm value-i8->get-when-wrong-kind
      (implies (not (equal (value-kind x) :i8))
               (equal (value-i8->get x)
                      (acl2::sbyte8-fix nil))))