• 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
      • 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
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
              • Dynamic-semantics
                • Execution
                • Values
                • Dynamic-environments
                  • Call-dinfo
                  • Denv
                  • Update-var/const-dinfo-in-scope-list
                  • Update-var/const-dinfo-in-scope
                  • Var/const-dinfo
                  • Update-var/const-dinfo
                  • Add-var/const-dinfo-to-scope
                  • Add-var/const-dinfo
                  • Var/const-dinfo-option
                  • Get-var/const-dinfo-from-scope-list
                  • Denv-option
                  • Get-var/const-dinfo-from-scope
                  • Vcscope-dinfo-option
                  • Vcscope-dinfo-list-option
                  • Vcscope-dinfo
                  • Screens
                  • Get-var/const-dinfo
                  • Vcscope-dinfo-option-result
                  • Vcscope-dinfo-list-result
                  • Vcscope-dinfo-result
                  • Dynamic-struct-environments
                  • Dynamic-function-environments
                  • Denv-result
                    • Denv-result-fix
                    • Denv-result-equiv
                    • Denv-resultp
                    • Denv-result-ok
                      • Denv-result-ok->get
                        • Make-denv-result-ok
                        • Change-denv-result-ok
                      • Denv-result-err
                      • Denv-result-kind
                    • Init-denv
                    • Vcscope-dinfo-list
                    • Call-dinfo-list
                  • 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
    • Denv-result-ok

    Denv-result-ok->get

    Get the get field from a denv-result-ok.

    Signature
    (denv-result-ok->get acl2::x) → get
    Arguments
    acl2::x — Guard (denv-resultp acl2::x).
    Returns
    get — Type (denvp get).

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

    Definitions and Theorems

    Function: denv-result-ok->get$inline

    (defun denv-result-ok->get$inline (acl2::x)
      (declare (xargs :guard (denv-resultp acl2::x)))
      (declare (xargs :guard (equal (denv-result-kind acl2::x) :ok)))
      (let ((__function__ 'denv-result-ok->get))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((acl2::x (and (equal (denv-result-kind acl2::x) :ok)
                                acl2::x)))
               (denv-fix acl2::x))
             :exec acl2::x)))

    Theorem: denvp-of-denv-result-ok->get

    (defthm denvp-of-denv-result-ok->get
      (b* ((get (denv-result-ok->get$inline acl2::x)))
        (denvp get))
      :rule-classes :rewrite)

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

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

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

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

    Theorem: denv-result-ok->get-when-wrong-kind

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