• 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-extdecl
              • Copy-fn-fundef
              • Copy-fn-filepath-transunit-map
              • Copy-fn-extdecl-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-extdecl-list

    Transform a list of external declarations.

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

    Definitions and Theorems

    Function: copy-fn-extdecl-list

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

    Theorem: extdecl-listp-of-copy-fn-extdecl-list

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