• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
          • Transformations
          • Language
            • Abstract-syntax
            • Dynamic-semantics
              • Exec
              • Find-fun
              • Init-local
              • Write-vars-values
              • Add-vars-values
              • Add-funs
              • Eoutcome
              • Soutcome
              • Ensure-funscope-disjoint
              • Write-var-value
              • Restrict-vars
              • Add-var-value
              • Funinfo
              • Exec-top-block
              • Values
                • Value-list-result
                • Value
                  • Value-fix
                  • Value-equiv
                  • Make-value
                  • Change-value
                  • Value->get
                    • Valuep
                  • Value-result
                  • Value-list
                • Cstate
                • Funinfo+funenv
                • Read-vars-values
                • Read-var-value
                • Funenv
                • Funscope-for-fundefs
                • Exec-path
                • Path-to-var
                • Funinfo+funenv-result
                • Exec-literal
                • Soutcome-result
                • Mode-set-result
                • Literal-evaluation
                • Funscope-result
                • Funinfo-result
                • Funenv-result
                • Eoutcome-result
                • Cstate-result
                • Paths-to-vars
                • Funinfo-for-fundef
                • Lstate
                • Funscope
                • Mode-set
                • Modes
              • Concrete-syntax
              • Static-soundness
              • Static-semantics
              • Errors
            • Yul-json
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Value

    Value->get

    Get the get field from a value.

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

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

    Definitions and Theorems

    Function: value->get$inline

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

    Theorem: ubyte256p-of-value->get

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

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

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

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

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