• 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
        • Soft
        • C
          • Syntax-for-tools
          • Atc
          • Language
            • Abstract-syntax
            • Integer-ranges
            • Implementation-environments
            • Dynamic-semantics
            • Static-semantics
            • Grammar
            • Integer-formats
            • Types
            • Portable-ascii-identifiers
            • Values
              • Pointer
              • Member-types-of-member-values
              • Member-value-list->value-list
              • Member-value-list->name-list
              • Expr-value
                • Expr-value-fix
                • Expr-value-equiv
                • Expr-valuep
                • Make-expr-value
                • Expr-value->object
                  • Expr-value->value
                  • Change-expr-value
                • Type-list-of-value-list
                • Type-of-value
                • Value-option
                • Init-value
                • Value-result
                • Type-of-value-option
                • Value-list-result
                • Member-value-list-result
                • Init-value-result
                • Expr-value-result
                • Value-option-result
                • Signed/unsigned-byte-p-of-integer-values
                • Member-type-of-member-value
                • Bounds-of-integer-values
                • Value-promoted-arithmeticp
                • Init-type-of-init-value
                • Value-unsigned-integerp
                • Value-integerp
                • Value-signed-integerp
                • Value-arithmeticp
                • Value-scalarp
                • Value-realp
                • Values/membervalues
              • Integer-operations
              • Computation-states
              • Object-designators
              • Operations
              • Errors
              • Tag-environments
              • Function-environments
              • Character-sets
              • Flexible-array-member-removal
              • Arithmetic-operations
              • Pointer-operations
              • Bytes
              • Keywords
              • Real-operations
              • Array-operations
              • Scalar-operations
              • Structure-operations
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Ethereum
          • Yul
          • 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
    • Expr-value

    Expr-value->object

    Get the object field from a expr-value.

    Signature
    (expr-value->object x) → object
    Arguments
    x — Guard (expr-valuep x).
    Returns
    object — Type (objdesign-optionp object).

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

    Definitions and Theorems

    Function: expr-value->object$inline

    (defun expr-value->object$inline (x)
      (declare (xargs :guard (expr-valuep x)))
      (declare (xargs :guard t))
      (let ((__function__ 'expr-value->object))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (objdesign-option-fix (cdr (std::da-nth 1 x))))
             :exec (cdr (std::da-nth 1 x)))))

    Theorem: objdesign-optionp-of-expr-value->object

    (defthm objdesign-optionp-of-expr-value->object
      (b* ((object (expr-value->object$inline x)))
        (objdesign-optionp object))
      :rule-classes :rewrite)

    Theorem: expr-value->object$inline-of-expr-value-fix-x

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

    Theorem: expr-value->object$inline-expr-value-equiv-congruence-on-x

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