• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
        • Transformations
        • Language
          • Abstract-syntax
          • Dynamic-semantics
            • Exec
            • Find-fun
            • Init-local
            • Write-vars-values
            • Add-vars-values
            • Add-funs
            • Eoutcome
              • Eoutcome-fix
              • Eoutcome-equiv
              • Make-eoutcome
              • Eoutcome->values
              • Eoutcome->cstate
                • Change-eoutcome
                • Eoutcomep
              • Soutcome
              • 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
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Eoutcome

    Eoutcome->cstate

    Get the cstate field from a eoutcome.

    Signature
    (eoutcome->cstate x) → cstate
    Arguments
    x — Guard (eoutcomep x).
    Returns
    cstate — Type (cstatep cstate).

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

    Definitions and Theorems

    Function: eoutcome->cstate$inline

    (defun eoutcome->cstate$inline (x)
      (declare (xargs :guard (eoutcomep x)))
      (declare (xargs :guard t))
      (let ((__function__ 'eoutcome->cstate))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (cstate-fix (cdr (std::da-nth 0 (cdr x)))))
             :exec (cdr (std::da-nth 0 (cdr x))))))

    Theorem: cstatep-of-eoutcome->cstate

    (defthm cstatep-of-eoutcome->cstate
      (b* ((cstate (eoutcome->cstate$inline x)))
        (cstatep cstate))
      :rule-classes :rewrite)

    Theorem: eoutcome->cstate$inline-of-eoutcome-fix-x

    (defthm eoutcome->cstate$inline-of-eoutcome-fix-x
      (equal (eoutcome->cstate$inline (eoutcome-fix x))
             (eoutcome->cstate$inline x)))

    Theorem: eoutcome->cstate$inline-eoutcome-equiv-congruence-on-x

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