• 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
          • Restrict
          • Expdata
            • Expdata-implementation
              • Expdata-event-generation
              • Expdata-fn
              • Expdata-input-processing
                • Expdata-symbol-surjmap-alistp
                • Expdata-surjmapp
                • Expdata-pos-surjmap-alistp
                • Expdata-process-surj
                • Expdata-process-arg/res-list-surj
                • Expdata-process-inputs
                • Expdata-process-surjmaps
                • Expdata-fresh-defsurj-thm-names
                • Expdata-process-arg/res-list
                • Expdata-process-arg/res-list-surj-list
                  • Expdata-process-res
                  • Expdata-process-newp-of-new-name
                  • Expdata-fresh-defsurj-name-with-*s-suffix
                  • Expdata-process-surjmaps-ress
                  • Expdata-process-surjmaps-args
                  • Expdata-process-arg/res-list-surj-add-args
                  • Expdata-process-arg/res-list-surj-add-ress
                  • Expdata-process-old
                  • Expdata-process-arg/res-list-aux
                  • Expdata-surjmap-listp
                  • Expdata-fresh-defsurj-name-with-*s-suffix-aux
                • Expdata-macro-definition
            • 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
    • Expdata-input-processing

    Expdata-process-arg/res-list-surj-list

    Lift expdata-process-arg/res-list-surj to lists.

    Signature
    (expdata-process-arg/res-list-surj-list 
         arg/res-list-surj-list 
         k old$ verify-guards$ arg-surjmaps 
         res-surjmaps names-to-avoid ctx state) 
     
      → 
    (mv erp result state)
    Arguments
    k — Guard (posp k).
    old$ — Guard (symbolp old$).
    verify-guards$ — Guard (booleanp verify-guards$).
    arg-surjmaps — Guard (expdata-symbol-surjmap-alistp arg-surjmaps).
    res-surjmaps — Guard (expdata-pos-surjmap-alistp res-surjmaps).
    names-to-avoid — Guard (symbol-listp names-to-avoid).
    Returns
    result — A tuple (arg-surjmaps res-surjmaps updated-names-to-avoid) satisfying (typed-tuplep expdata-symbol-surjmap-alistp expdata-pos-surjmap-alistp symbol-listp result).

    Definitions and Theorems

    Function: expdata-process-arg/res-list-surj-list

    (defun expdata-process-arg/res-list-surj-list
         (arg/res-list-surj-list k old$ verify-guards$ arg-surjmaps
                                 res-surjmaps names-to-avoid ctx state)
     (declare (xargs :stobjs (state)))
     (declare
         (xargs :guard (and (posp k)
                            (symbolp old$)
                            (booleanp verify-guards$)
                            (expdata-symbol-surjmap-alistp arg-surjmaps)
                            (expdata-pos-surjmap-alistp res-surjmaps)
                            (symbol-listp names-to-avoid))))
     (let ((__function__ 'expdata-process-arg/res-list-surj-list))
       (declare (ignorable __function__))
       (b* (((when (endp arg/res-list-surj-list))
             (value (list arg-surjmaps
                          res-surjmaps names-to-avoid)))
            ((er (list arg-surjmaps
                       res-surjmaps names-to-avoid))
             (expdata-process-arg/res-list-surj
                  (car arg/res-list-surj-list)
                  k old$ verify-guards$ arg-surjmaps
                  res-surjmaps names-to-avoid ctx state)))
         (expdata-process-arg/res-list-surj-list
              (cdr arg/res-list-surj-list)
              (1+ k)
              old$
              verify-guards$ arg-surjmaps res-surjmaps
              names-to-avoid ctx state))))