• 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
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
        • Riscv
        • Bitcoin
        • Zcash
        • Yul
          • Transformations
          • Language
            • Abstract-syntax
            • Dynamic-semantics
            • Concrete-syntax
            • Static-soundness
            • Static-semantics
              • Static-safety-checking
              • Static-shadowing-checking
              • Mode-set-result
                • Mode-set-result-fix
                • Mode-set-result-equiv
                • Mode-set-result-ok
                  • Mode-set-result-ok->get
                    • Make-mode-set-result-ok
                    • Change-mode-set-result-ok
                  • Mode-set-result-err
                  • Mode-set-resultp
                  • Mode-set-result-kind
                • Literal-evaluation
                • Static-identifier-checking
                • Static-safety-checking-evm
                • Mode-set
                • Modes
              • Errors
            • Yul-json
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Mode-set-result-ok

    Mode-set-result-ok->get

    Get the get field from a mode-set-result-ok.

    Signature
    (mode-set-result-ok->get acl2::x) → get
    Arguments
    acl2::x — Guard (mode-set-resultp acl2::x).
    Returns
    get — Type (mode-setp get).

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

    Definitions and Theorems

    Function: mode-set-result-ok->get$inline

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

    Theorem: mode-setp-of-mode-set-result-ok->get

    (defthm mode-setp-of-mode-set-result-ok->get
      (b* ((get (mode-set-result-ok->get$inline acl2::x)))
        (mode-setp get))
      :rule-classes :rewrite)

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

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

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

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

    Theorem: mode-set-result-ok->get-when-wrong-kind

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