• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
        • Proof-support
        • Abstract-syntax
        • R1cs-subset
        • Semantics
          • Semantics-deeply-embedded
            • Exec-proof-tree
            • Assertion-list->constr-list
            • Assertion-list->asg-list
            • Eval-expr
            • Eval-expr-list
            • Assertion
            • Assignment-wfp
            • Proof-outcome
              • Proof-outcome-fix
              • Proof-outcome-case
              • Proof-outcome-equiv
              • Proof-outcomep
              • Proof-outcome-assertion
              • Proof-outcome-kind
                • Proof-outcome-fail
                • Proof-outcome-error
              • Proof-list-outcome
              • Assertion-list-from
              • Definition-satp
              • Constraint-satp
              • Assignment
              • System-satp
              • Constraint-list-satp
              • Assertion-list
              • Assignment-list
              • Proof-trees
            • Lifting
            • Semantics-shallowly-embedded
          • Abstract-syntax-operations
          • Indexed-names
          • Well-formedness
          • Concrete-syntax
          • R1cs-bridge
          • Parser-interface
        • 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
        • 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
    • Proof-outcome

    Proof-outcome-kind

    Get the kind (tag) of a proof-outcome structure.

    Signature
    (proof-outcome-kind x) → kind
    Arguments
    x — Guard (proof-outcomep x).

    Definitions and Theorems

    Function: proof-outcome-kind$inline

    (defun proof-outcome-kind$inline (x)
      (declare (xargs :guard (proof-outcomep x)))
      (let ((__function__ 'proof-outcome-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :assertion))
                           :assertion)
                          ((eq (car x) :fail) :fail)
                          (t :error))
             :exec (car x))))

    Theorem: proof-outcome-kind-possibilities

    (defthm proof-outcome-kind-possibilities
      (or (equal (proof-outcome-kind x)
                 :assertion)
          (equal (proof-outcome-kind x) :fail)
          (equal (proof-outcome-kind x) :error))
      :rule-classes
      ((:forward-chaining :trigger-terms ((proof-outcome-kind x)))))