• 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
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
        • Primitive-functions
        • Translated-terms
        • Values
        • Evaluation
        • Program-equivalence
        • Functions
          • Function
            • Function-fix
            • Function-equiv
            • Make-function
            • Function->params
            • Change-function
            • Function->name
            • Function->body
            • Functionp
          • Function-lookup
          • Function-option
          • Lift-function
          • Lift-function-list
          • Function-set
        • Packages
        • Programs
        • Interpreter
        • Evaluation-states
      • 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
  • Functions

Function

Fixtype of (defined) functions.

This is a product type introduced by fty::defprod.

Fields
name — symbol-value
params — symbol-value-list
body — tterm

We use our model of symbol values, and not ACL2 symbols directly, because we want to represent all possible functions, not just the ones whose name and parameters are symbols in known packages. This is similar to the use of symbol values in translated terms; see tterm.

Subtopics

Function-fix
Fixing function for function structures.
Function-equiv
Basic equivalence relation for function structures.
Make-function
Basic constructor macro for function structures.
Function->params
Get the params field from a function.
Change-function
Modifying constructor for function structures.
Function->name
Get the name field from a function.
Function->body
Get the body field from a function.
Functionp
Recognizer for function structures.