• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
      • Std/lists
      • Std/alists
      • Obags
      • Std/util
      • Std/strings
      • Std/io
      • Std/osets
      • Std/system
        • Fresh-logical-name-with-$s-suffix
        • Irrelevant-formals-info
        • Std/system/function-queries
          • Defun-sk-queries
          • Tail-recursive-p
          • Termination-theorem$
          • Measure
          • Arity+
          • Unwrapped-nonexec-body+
          • Ubody
          • Ruler-extenders+
          • Recursive-calls
          • Guard-theorem-no-simplify$
          • Well-founded-relation+
          • Unwrapped-nonexec-body
          • Measured-subset+
          • Measure+
          • Ruler-extenders
          • Number-of-results+
          • Induction-machine+
          • Non-executablep+
          • Pure-raw-p
          • Irecursivep+
          • Formals+
          • Stobjs-out+
          • Induction-machine
          • Definedp+
          • Number-of-results
          • Ubody+
          • Guard-theorem-no-simplify
          • Uguard
          • Rawp
          • Irecursivep
          • Defchoose-queries
          • Uguard+
          • Stobjs-in+
          • No-stobjs-p+
          • Well-founded-relation
          • Definedp
          • Primitivep+
          • Guard-verified-p+
          • No-stobjs-p
          • Measured-subset
          • Guard-verified-p
          • Primitivep
          • Non-executablep
          • Fundef-enabledp
          • Fundef-disabledp
          • Ibody
          • Std/system/arity
        • Std/system/term-queries
        • Std/system/term-transformations
        • Std/system/enhanced-utilities
        • Install-not-normalized-event-lst
        • Install-not-normalized-event
        • Std/system/term-function-recognizers
        • Pseudo-tests-and-call-listp
        • Genvar$
        • Std/system/event-name-queries
        • Maybe-pseudo-event-formp
        • Add-suffix-to-fn-or-const
        • Chk-irrelevant-formals-ok
        • Std/system/good-atom-listp
        • Pseudo-tests-and-callp
        • Table-alist+
        • Add-suffix-to-fn-or-const-lst
        • Known-packages+
        • Add-suffix-to-fn-lst
        • Unquote-term
        • Event-landmark-names
        • Add-suffix-lst
        • Std/system/theorem-queries
        • Unquote-term-list
        • Std/system/macro-queries
        • Pseudo-event-landmark-listp
        • Pseudo-command-landmark-listp
        • Install-not-normalized$
        • Rune-disabledp
        • Known-packages
        • Std/system/partition-rest-and-keyword-args
        • Rune-enabledp
        • Included-books
        • Std/system/pseudo-event-formp
        • Std/system/plist-worldp-with-formals
        • Std/system/w
        • Std/system/geprops
        • Std/system/arglistp
        • Std/system-extensions
        • Std/system/constant-queries
      • Std/basic
      • Std/typed-lists
      • Std/bitsets
      • Std/testing
      • Std/typed-alists
      • Std/stobjs
      • Std-extensions
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Testing-utilities
    • Math
  • Std/system

Std/system/function-queries

Utilities to query functions.

These utilities are mostly for named functions in the world, but some utilities also work on lambda expressions.

Subtopics

Defun-sk-queries
Utilities to query defun-sk functions.
Tail-recursive-p
Check if a singly recursive function is tail-recursive.
Termination-theorem$
A logic-mode guard-verified version of the built-in termination-theorem.
Measure
Measure expression of a named logic-mode recursive function.
Arity+
Enhanced variant of arity.
Unwrapped-nonexec-body+
Enhanced variant of unwrapped-nonexec-body.
Ubody
Unnormalized body of a named function, or body of a lambda expression.
Ruler-extenders+
Enhanced variant of ruler-extenders.
Recursive-calls
Recursive calls of a named non-mutually-recursive function, along with the controlling tests.
Guard-theorem-no-simplify$
A logic-mode guard-verified version of guard-theorem-no-simplify.
Well-founded-relation+
Enhanced variant of well-founded-relation.
Unwrapped-nonexec-body
Body of a non-executable defined named function, without the ``non-executable wrapper''.
Measured-subset+
Enhanced variant of measured-subset.
Measure+
Enhanced variant of measure.
Ruler-extenders
Ruler-extenders of a named logic-mode recursive function.
Number-of-results+
Enhanced variant of number-of-results.
Induction-machine+
Enhanced variant of induction-machine.
Non-executablep+
Enhanced variant of non-executablep.
Pure-raw-p
Check if a function has raw Lisp code and is pure, i.e. it has no side effects.
Irecursivep+
Enhanced variant of irecursivep.
Formals+
Enhanced variant of formals.
Stobjs-out+
Enhanced variant of stobjs-out.
Induction-machine
Induction machine of a named logic-mode (singly) recursive function.
Definedp+
Enhanced variant of definedp.
Number-of-results
Number of values returned by a named function.
Ubody+
Enhanced variant of ubody.
Guard-theorem-no-simplify
A version of guard-theorem that does no simplification.
Uguard
Unoptimized guard of a named function or of a lambda expression.
Rawp
Check if a named function has raw Lisp code.
Irecursivep
List of mutually recursive functions of which the specified named function is a member, based on the defun form that introduced this function, or nil if the specified function is not recursive.
Defchoose-queries
Utilities to query defchoose functions.
Uguard+
Enhanced variant of uguard.
Stobjs-in+
Enhanced variant of stobjs-in.
No-stobjs-p+
Enhanced variant of no-stobjs-p.
Well-founded-relation
Well-founded relation of a named logic-mode recursive function.
Definedp
Check if a named logic-mode function is defined.
Primitivep+
Enhanced variant of primitivep.
Guard-verified-p+
Enhanced variant of guard-verified-p.
No-stobjs-p
Check if a named function has no input or output stobjs.
Measured-subset
Subset of the formal arguments of a named logic-mode recursive function that occur in its measure expression.
Guard-verified-p
Check if a named function or theorem is guard-verified.
Primitivep
Check if a named function is primitive.
Non-executablep
Non-executable status of a named function.
Fundef-enabledp
Check if the definition of a named function is enabled.
Fundef-disabledp
Check if the definition of a named function is disabled.
Ibody
Retrieve the untranslated body of a function.
Std/system/arity
Theorems about arity.