• 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
                • Soutcome-fix
                • Soutcome-equiv
                • Make-soutcome
                • Soutcome->cstate
                • Change-soutcome
                • Soutcome->mode
                  • Soutcomep
                • Ensure-funscope-disjoint
                • Write-var-value
                • Restrict-vars
                • Add-var-value
                • Funinfo
                • Exec-top-block
                • Values
                • 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
    • Soutcome

    Soutcome->mode

    Get the mode field from a soutcome.

    Signature
    (soutcome->mode x) → mode
    Arguments
    x — Guard (soutcomep x).
    Returns
    mode — Type (modep mode).

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

    Definitions and Theorems

    Function: soutcome->mode$inline

    (defun soutcome->mode$inline (x)
      (declare (xargs :guard (soutcomep x)))
      (declare (xargs :guard t))
      (let ((__function__ 'soutcome->mode))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (mode-fix (cdr (std::da-nth 1 (cdr x)))))
             :exec (cdr (std::da-nth 1 (cdr x))))))

    Theorem: modep-of-soutcome->mode

    (defthm modep-of-soutcome->mode
      (b* ((mode (soutcome->mode$inline x)))
        (modep mode))
      :rule-classes :rewrite)

    Theorem: soutcome->mode$inline-of-soutcome-fix-x

    (defthm soutcome->mode$inline-of-soutcome-fix-x
      (equal (soutcome->mode$inline (soutcome-fix x))
             (soutcome->mode$inline x)))

    Theorem: soutcome->mode$inline-soutcome-equiv-congruence-on-x

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