• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
          • Simplify-defun
          • Isodata
          • Tailrec
          • Schemalg
            • Schemalg-implementation
              • Schemalg-event-generation
                • Schemalg-gen-everything
                • Schemalg-gen-x-z1...zm
                • Schemalg-gen-old-if-new
                • Schemalg-gen-equal-algo
                • Schemalg-gen-algo-divconq-list-0-1-2
                • Schemalg-gen-algo-correct-divconq-list-0-1-2
                • Schemalg-gen-algo-correct-divconq-list-0-1
                • Schemalg-gen-spec-2
                • Schemalg-gen-algo-correct-divconq-oset-0-1
                • Schemalg-gen-algo-correct
                • Schemalg-gen-algo-divconq-oset-0-1
                • Schemalg-gen-spec-1-divconq-oset-0-1
                • Schemalg-gen-spec-1-divconq-list-0-1
                • Schemalg-gen-algo-divconq-list-0-1
                • Schemalg-gen-algo
                • Schemalg-gen-spec-1
                • Schemalg-gen-spec-1-divconq-list-0-1-2
                • Schemalg-gen-spec-0
                • Schemalg-gen-spec-0-divconq-oset-0-1
                • Schemalg-gen-spec-0-divconq-list-0-1-2
                • Schemalg-gen-spec-0-divconq-list-0-1
                • Schemalg-gen-new
                • Schemalg-gen-?f1...?fp
                  • Schemalg-gen-x-z1...zm-aux
                • Schemalg-fn
                • Schemalg-macro-definition
                • Schemalg-input-processing
              • Schemalg-divconq-oset-0-1
              • Schemalg-divconq-list-0-1
            • Restrict
            • Expdata
            • Casesplit
            • Simplify-term
            • Simplify-defun-sk
            • Parteval
            • Solve
            • Wrap-output
            • Propagate-iso
            • Simplify
            • Finite-difference
            • Drop-irrelevant-params
            • Copy-function
            • Lift-iso
            • Rename-params
            • Utilities
            • Simplify-term-programmatic
            • Simplify-defun-sk-programmatic
            • Simplify-defun-programmatic
            • Simplify-defun+
            • Common-options
            • Common-concepts
          • Error-checking
          • Fty-extensions
          • Isar
          • Kestrel-utilities
          • Set
          • Soft
          • C
          • 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
    • Schemalg-event-generation

    Schemalg-gen-?f1...?fp

    Generate the function variables ?f1, ..., ?fp.

    Signature
    (schemalg-gen-?f1...?fp schema ?g ?g0 ?g1 ?h x-a1...am) 
      → 
    events
    Arguments
    schema — Guard (keywordp schema).
    ?g — Guard (symbolp ?g).
    ?g0 — Guard (symbolp ?g0).
    ?g1 — Guard (symbolp ?g1).
    ?h — Guard (symbolp ?h).
    x-a1...am — Guard (pseudo-term-listp x-a1...am).
    Returns
    events — Type (pseudo-event-form-listp events).

    Definitions and Theorems

    Function: schemalg-gen-?f1...?fp

    (defun schemalg-gen-?f1...?fp (schema ?g ?g0 ?g1 ?h x-a1...am)
     (declare (xargs :guard (and (keywordp schema)
                                 (symbolp ?g)
                                 (symbolp ?g0)
                                 (symbolp ?g1)
                                 (symbolp ?h)
                                 (pseudo-term-listp x-a1...am))))
     (let ((__function__ 'schemalg-gen-?f1...?fp))
      (declare (ignorable __function__))
      (case schema
       ((:divconq-list-0-1 :divconq-oset-0-1)
        (list (evmac-generate-soft-defunvar ?g (len x-a1...am))
              (evmac-generate-soft-defunvar ?h (1+ (len x-a1...am)))))
       (:divconq-list-0-1-2
          (list (evmac-generate-soft-defunvar ?g0 (len x-a1...am))
                (evmac-generate-soft-defunvar ?g1 (1+ (len x-a1...am)))
                (evmac-generate-soft-defunvar ?h (1+ (len x-a1...am)))))
       (t (raise "Internal error: unknown schema ~x0."
                 schema)))))

    Theorem: pseudo-event-form-listp-of-schemalg-gen-?f1...?fp

    (defthm pseudo-event-form-listp-of-schemalg-gen-?f1...?fp
     (b*
      ((events (schemalg-gen-?f1...?fp schema ?g ?g0 ?g1 ?h x-a1...am)))
      (pseudo-event-form-listp events))
     :rule-classes :rewrite)