• 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
            • Disambiguator
            • Abstract-syntax
            • Parser
            • Validator
            • Printer
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Defpred
              • Defpred-implementation
                • Defpred-event-generation
                • Defpred-process-inputs-and-gen-everything
                • Defpred-fn
                • Defpred-input-processing
                • Defpred-macro-definition
            • Output-files
            • Abstract-syntax-operations
            • Validation-information
            • Implementation-environments
            • Concrete-syntax
            • Unambiguity
            • Ascii-identifiers
            • Preprocessing
            • Abstraction-mapping
          • Atc
          • Language
          • 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
  • Defpred

Defpred-implementation

Implementation of defpred.

The implementation functions have arguments and results consistently named as follows (unless otherwise stated, explicitly or implicitly, in the functions):

  • suffix is the homonymous input to the event macro.
  • default is the homonymous input to the event macro.
  • override is the homonymous input to the event macro.
  • overrides is an alist representation of the :override input. With reference to the documentation page of defpred: for each element <type> <term> in :override, this alist has an element (cons <type> <term>); for each element <type> <kind> <term> in :override, this alist has an element (cons (cons <type> <kind>) <term>).
  • fty-table is the alist of the table of all (fix)types (except some built-in ones, such as nat), i.e. the table fty::flextypes-table. The format is defined in [books]/centaur/fty/database.lisp. It has one entry for each mutually recursive clique of types, with singly recursive or non-recursive types being in singleton cliques.
  • types is a list (in no particular order) of all the type names for which predicates are generated.
  • type is an element of types explained above.

Implementation functions' arguments and results that are not listed above are described in, or clear from, those functions' documentation.

Subtopics

Defpred-event-generation
Event generation performed by defpred.
Defpred-process-inputs-and-gen-everything
Process the inputs and generate the events.
Defpred-fn
Event expansion of defpred.
Defpred-input-processing
Input processing performed by defpred.
Defpred-macro-definition
Definition of defpred.