• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • C
          • Syntax-for-tools
          • Atc
          • Transformation-tools
          • Language
            • Abstract-syntax
            • Integer-ranges
            • Implementation-environments
            • Dynamic-semantics
            • Static-semantics
            • Grammar
            • Types
            • Integer-formats-definitions
            • Computation-states
            • Portable-ascii-identifiers
            • Values
            • Integer-operations
            • Object-designators
            • Operations
            • Errors
            • Tag-environments
            • Function-environments
              • Init-fun-env
              • Fun-info
              • Fun-info-option
              • Fun-env-extend
              • Fun-env-result
                • Fun-env-result-fix
                • Fun-env-result-equiv
                • Fun-env-result-ok
                • Fun-env-result-err
                • Fun-env-resultp
                • Fun-env-result-kind
                • Fun-env-lookup
                • Fun-info-from-fundef
                • Fun-env
              • Character-sets
              • Flexible-array-member-removal
              • Arithmetic-operations
              • Pointer-operations
              • Real-operations
              • Array-operations
              • Scalar-operations
              • Structure-operations
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Fun-env-result

    Fun-env-result-kind

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

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

    Definitions and Theorems

    Function: fun-env-result-kind$inline

    (defun fun-env-result-kind$inline (acl2::x)
      (declare (xargs :guard (fun-env-resultp acl2::x)))
      (cond ((fun-envp acl2::x) :ok)
            (t :err)))

    Theorem: fun-env-result-kind-possibilities

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