• 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
            • 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
        • 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
    • Soutcome

    Soutcomep

    Recognizer for soutcome structures.

    Signature
    (soutcomep x) → *

    Definitions and Theorems

    Function: soutcomep

    (defun soutcomep (x)
      (declare (xargs :guard t))
      (let ((__function__ 'soutcomep))
        (declare (ignorable __function__))
        (and (consp x)
             (eq (car x) :soutcome)
             (mbe :logic (and (alistp (cdr x))
                              (equal (strip-cars (cdr x))
                                     '(cstate mode)))
                  :exec (fty::alist-with-carsp (cdr x)
                                               '(cstate mode)))
             (b* ((cstate (cdr (std::da-nth 0 (cdr x))))
                  (mode (cdr (std::da-nth 1 (cdr x)))))
               (and (cstatep cstate) (modep mode))))))

    Theorem: consp-when-soutcomep

    (defthm consp-when-soutcomep
      (implies (soutcomep x) (consp x))
      :rule-classes :compound-recognizer)