• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • 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
            • Tag-environments
            • Function-environments
              • Init-fun-env
              • Fun-info
                • Fun-info-fix
                • Fun-info-equiv
                • Make-fun-info
                • Fun-info->params
                • Change-fun-info
                • Fun-info->result
                • Fun-info->body
                • Fun-infop
                • Fun-info-option
                • Fun-env-extend
                • Fun-env-result
                • Fun-env-lookup
                • Fun-info-from-fundef
                • Fun-env
              • 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
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Fun-info

    Fun-infop

    Recognizer for fun-info structures.

    Signature
    (fun-infop x) → *

    Definitions and Theorems

    Function: fun-infop

    (defun fun-infop (x)
      (declare (xargs :guard t))
      (let ((__function__ 'fun-infop))
        (declare (ignorable __function__))
        (and (mbe :logic (and (alistp x)
                              (equal (strip-cars x)
                                     '(params result body)))
                  :exec (fty::alist-with-carsp x '(params result body)))
             (b* ((params (cdr (std::da-nth 0 x)))
                  (result (cdr (std::da-nth 1 x)))
                  (body (cdr (std::da-nth 2 x))))
               (and (param-declon-listp params)
                    (tynamep result)
                    (block-item-listp body))))))

    Theorem: consp-when-fun-infop

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