• 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
            • Pointer
            • Member-types-of-member-values
            • Expr-value
            • Member-value-list->value-list
            • Member-value-list->name-list
            • Type-list-of-value-list
            • Type-of-value
            • Stmt-value
            • Value-option
            • Expr-value-option
            • Init-value
            • Value-result
            • Type-of-value-option
            • Value-list-result
            • Stmt-value-result
            • Member-value-list-result
            • Init-value-result
            • Expr-value-result
              • Expr-value-result-fix
              • Expr-value-result-equiv
              • Expr-value-resultp
              • Expr-value-result-ok
                • Expr-value-result-ok->get
                  • Make-expr-value-result-ok
                  • Change-expr-value-result-ok
                • Expr-value-result-err
                • Expr-value-result-kind
              • Expr-value-option-result
              • Value-option-result
              • Signed/unsigned-byte-p-of-integer-values
              • Bounds-of-integer-values
              • Value-promoted-arithmeticp
              • Type-option-of-stmt-value
              • Member-type-of-member-value
              • Init-type-of-init-value
              • Value-unsigned-integerp
              • Value-signed-integerp
              • Value-integerp
              • Value-arithmeticp
              • Value-scalarp
              • Value-realp
              • Values/membervalues
            • Integer-operations
            • 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
    • Expr-value-result-ok

    Expr-value-result-ok->get

    Get the get field from a expr-value-result-ok.

    Signature
    (expr-value-result-ok->get acl2::x) → get
    Arguments
    acl2::x — Guard (expr-value-resultp acl2::x).
    Returns
    get — Type (expr-valuep get).

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

    Definitions and Theorems

    Function: expr-value-result-ok->get$inline

    (defun expr-value-result-ok->get$inline (acl2::x)
      (declare (xargs :guard (expr-value-resultp acl2::x)))
      (declare (xargs :guard (equal (expr-value-result-kind acl2::x)
                                    :ok)))
      (mbe :logic
           (b* ((acl2::x (and (equal (expr-value-result-kind acl2::x)
                                     :ok)
                              acl2::x)))
             (expr-value-fix acl2::x))
           :exec acl2::x))

    Theorem: expr-valuep-of-expr-value-result-ok->get

    (defthm expr-valuep-of-expr-value-result-ok->get
      (b* ((get (expr-value-result-ok->get$inline acl2::x)))
        (expr-valuep get))
      :rule-classes :rewrite)

    Theorem: expr-value-result-ok->get$inline-of-expr-value-result-fix-x

    (defthm expr-value-result-ok->get$inline-of-expr-value-result-fix-x
     (equal
      (expr-value-result-ok->get$inline (expr-value-result-fix acl2::x))
      (expr-value-result-ok->get$inline acl2::x)))

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

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

    Theorem: expr-value-result-ok->get-when-wrong-kind

    (defthm expr-value-result-ok->get-when-wrong-kind
      (implies (not (equal (expr-value-result-kind acl2::x)
                           :ok))
               (equal (expr-value-result-ok->get acl2::x)
                      (expr-value-fix nil))))