• 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
              • Specialize-implementation
                • Param-declon-list-remove-param-by-ident
                • Specialize-fundef
                • Specialize-ext-declon
                • Specialize-filepath-transunit-map
                • Param-declon-to-declon
                • Specialize-ext-declon-list
                  • Specialize-transunit-ensemble
                  • Specialize-transunit
                  • Specialize-code-ensemble
                  • Ident-from-param-declon
                  • Specialize-event-generation
                  • Specialize-input-processing
              • Split-fn
              • Split-fn-when
              • Split-all-gso
              • Copy-fn
              • 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
    • Specialize-implementation

    Specialize-ext-declon-list

    Transform a list of external declarations.

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

    Definitions and Theorems

    Function: specialize-ext-declon-list

    (defun specialize-ext-declon-list
           (extdecls target-fn target-param const)
     (declare (xargs :guard (and (ext-declon-listp extdecls)
                                 (identp target-fn)
                                 (identp target-param)
                                 (exprp const))))
     (b* (((when (endp extdecls)) nil)
          ((mv found extdecl)
           (specialize-ext-declon (first extdecls)
                                  target-fn target-param const)))
      (cons
         extdecl
         (if found (ext-declon-list-fix (rest extdecls))
           (specialize-ext-declon-list (rest extdecls)
                                       target-fn target-param const)))))

    Theorem: ext-declon-listp-of-specialize-ext-declon-list

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