• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
          • Isodata
          • Simplify-defun
          • Tailrec
          • Schemalg
            • Schemalg-implementation
              • Schemalg-event-generation
              • Schemalg-fn
              • Schemalg-macro-definition
              • Schemalg-input-processing
                • Schemalg-process-inputs
                • Schemalg-process-schema-inputs
                • Schemalg-process-divconq-list-0-1-2-inputs
                • Schemalg-process-divconq-oset-0-1-inputs
                • Schemalg-process-divconq-list-0-1-inputs
                • Schemalg-process-algo-name
                • Schemalg-process-oset-input
                • Schemalg-process-list-input
                  • Schemalg-check-allowed-input
                  • Schemalg-process-tail-output
                  • Schemalg-process-cdr-output
                  • Schemalg-process-spec-2-name
                  • Schemalg-process-spec-1-name
                  • Schemalg-process-spec-0-name
                  • Schemalg-process-equal-algo-name
                  • Schemalg-process-fvar-2-name
                  • Schemalg-process-fvar-1-name
                  • Schemalg-process-fvar-0-name
                  • Schemalg-process-schema
                  • Schemalg-process-algo-name-aux
                  • *schemalg-schemas*
              • 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
          • C
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Schemalg-input-processing

    Schemalg-process-list-input

    Process the :list-input input.

    Signature
    (schemalg-process-list-input list-input list-input? schema 
                                 old ?f x-x1...xn x-a1...am ctx state) 
     
      → 
    (mv erp x state)
    Arguments
    list-input? — Guard (booleanp list-input?).
    schema — Guard (keywordp schema).
    old — Guard (symbolp old).
    ?f — Guard (symbolp ?f).
    x-x1...xn — Guard (symbol-listp x-x1...xn).
    x-a1...am — Guard (pseudo-term-listp x-a1...am).
    Returns
    x — Type (symbolp x).

    Definitions and Theorems

    Function: schemalg-process-list-input

    (defun schemalg-process-list-input
           (list-input list-input? schema
                       old ?f x-x1...xn x-a1...am ctx state)
     (declare (xargs :stobjs (state)))
     (declare (xargs :guard (and (booleanp list-input?)
                                 (keywordp schema)
                                 (symbolp old)
                                 (symbolp ?f)
                                 (symbol-listp x-x1...xn)
                                 (pseudo-term-listp x-a1...am))))
     (let ((__function__ 'schemalg-process-list-input))
      (declare (ignorable __function__))
      (b*
       ((schemas-allowed (list :divconq-list-0-1 :divconq-list-0-1-2))
        ((when (and list-input?
                    (not (member-eq schema schemas-allowed))))
         (er-soft+
          ctx t nil
          "The :LIST-INPUT input can be present only if ~
                       the :SCHEMA input is ~v0, but that input is ~x1 instead."
          schemas-allowed schema)))
       (process-input-select-old-soft-io
            list-input :list-input
            old ?f x-x1...xn x-a1...am ctx state))))

    Theorem: symbolp-of-schemalg-process-list-input.x

    (defthm symbolp-of-schemalg-process-list-input.x
      (b* (((mv ?erp ?x acl2::?state)
            (schemalg-process-list-input
                 list-input list-input? schema
                 old ?f x-x1...xn x-a1...am ctx state)))
        (symbolp x))
      :rule-classes :rewrite)