• 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
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
          • Syntax-for-tools
          • Atc
          • Transformation-tools
            • Simpadd0
            • Proof-generation
            • Split-gso
            • Wrap-fn
            • Constant-propagation
            • Specialize
            • Split-fn
            • Split-fn-when
            • Split-all-gso
            • Copy-fn
              • Copy-fn-ext-declon
              • Copy-fn-fundef
              • Copy-fn-filepath-transunit-map
              • Copy-fn-ext-declon-list
                • Copy-fn-transunit-ensemble
                • Copy-fn-code-ensemble
                • Copy-fn-transunit
              • Variables-in-computation-states
              • Rename
              • Utilities
              • Proof-generation-theorems
              • Input-processing
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • 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
    • Copy-fn

    Copy-fn-ext-declon-list

    Transform a list of external declarations.

    Signature
    (copy-fn-ext-declon-list extdecls target-fn new-fn) 
      → 
    new-extdecls
    Arguments
    extdecls — Guard (ext-declon-listp extdecls).
    target-fn — Guard (identp target-fn).
    new-fn — Guard (identp new-fn).
    Returns
    new-extdecls — Type (ext-declon-listp new-extdecls).

    Definitions and Theorems

    Function: copy-fn-ext-declon-list

    (defun copy-fn-ext-declon-list (extdecls target-fn new-fn)
      (declare (xargs :guard (and (ext-declon-listp extdecls)
                                  (identp target-fn)
                                  (identp new-fn))))
      (declare (xargs :guard (ext-declon-list-annop extdecls)))
      (let ((__function__ 'copy-fn-ext-declon-list))
        (declare (ignorable __function__))
        (b* (((when (endp extdecls)) nil)
             ((mv found new-extdecls)
              (copy-fn-ext-declon (first extdecls)
                                  target-fn new-fn)))
          (append new-extdecls
                  (if found (ext-declon-list-fix (rest extdecls))
                    (copy-fn-ext-declon-list (rest extdecls)
                                             target-fn new-fn))))))

    Theorem: ext-declon-listp-of-copy-fn-ext-declon-list

    (defthm ext-declon-listp-of-copy-fn-ext-declon-list
      (b* ((new-extdecls
                (copy-fn-ext-declon-list extdecls target-fn new-fn)))
        (ext-declon-listp new-extdecls))
      :rule-classes :rewrite)