• 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
      • Riscv
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
        • Primitive-functions
        • Translated-terms
          • Tterm-constant-list->value-list
          • Tterm-free-vars
          • Tterm-option
          • Tterm-constant-list
          • Tterm-case-constant-listp
          • Lift-term
          • Tterms
            • Tterm
            • Tfunction
              • Tfunction-case
              • Tfunction-equiv
              • Tfunction-lambda
              • Tfunction-named
              • Tfunctionp
              • Tfunction-kind
                • Tfunction-fix
                • Tfunction-count
              • Tterm-list
          • Values
          • Evaluation
          • Program-equivalence
          • Functions
          • Packages
          • Programs
          • Interpreter
          • Evaluation-states
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Tfunction

    Tfunction-kind

    Get the kind (tag) of a tfunction structure.

    Signature
    (tfunction-kind x) → kind
    Arguments
    x — Guard (tfunctionp x).

    Definitions and Theorems

    Function: tfunction-kind$inline

    (defun tfunction-kind$inline (x)
      (declare (xargs :guard (tfunctionp x)))
      (let ((__function__ 'tfunction-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :named))
                           :named)
                          (t :lambda))
             :exec (car x))))

    Theorem: tfunction-kind-possibilities

    (defthm tfunction-kind-possibilities
      (or (equal (tfunction-kind x) :named)
          (equal (tfunction-kind x) :lambda))
      :rule-classes
      ((:forward-chaining :trigger-terms ((tfunction-kind x)))))