• 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
        • Syntax-for-tools
        • Atc
        • Language
          • Abstract-syntax
          • Integer-ranges
          • Implementation-environments
          • Dynamic-semantics
          • Static-semantics
          • Grammar
          • Integer-formats
          • Types
          • Portable-ascii-identifiers
          • Values
          • Integer-operations
          • Computation-states
          • Object-designators
          • Operations
          • Errors
            • Error
            • Defresult
            • Boolean-result
              • Boolean-result-fix
              • Boolean-result-equiv
              • Boolean-result-ok
              • Boolean-result-err
              • Boolean-resultp
              • Boolean-result-kind
              • Defresult-fn
            • Tag-environments
            • Function-environments
            • Character-sets
            • Flexible-array-member-removal
            • Arithmetic-operations
            • Pointer-operations
            • Bytes
            • Keywords
            • Real-operations
            • Array-operations
            • Scalar-operations
            • Structure-operations
          • Representation
          • Transformation-tools
          • Insertion-sort
          • Pack
        • 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
    • Boolean-result

    Boolean-result-kind

    Get the kind (tag) of a boolean-result structure.

    Signature
    (boolean-result-kind acl2::x) → kind
    Arguments
    acl2::x — Guard (boolean-resultp acl2::x).

    Definitions and Theorems

    Function: boolean-result-kind$inline

    (defun boolean-result-kind$inline (acl2::x)
      (declare (xargs :guard (boolean-resultp acl2::x)))
      (let ((__function__ 'boolean-result-kind))
        (declare (ignorable __function__))
        (cond ((booleanp acl2::x) :ok)
              (t :err))))

    Theorem: boolean-result-kind-possibilities

    (defthm boolean-result-kind-possibilities
      (or (equal (boolean-result-kind acl2::x)
                 :ok)
          (equal (boolean-result-kind acl2::x)
                 :err))
      :rule-classes
      ((:forward-chaining
            :trigger-terms ((boolean-result-kind acl2::x)))))