• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
          • Syntax-for-tools
          • Atc
          • Language
          • Representation
          • Transformation-tools
            • Simpadd0
            • Deftrans
            • Splitgso
            • Constant-propagation
            • Split-fn
            • Copy-fn
            • Specialize
            • Split-all-gso
            • Rename
              • Ident-ident-subst
              • Rename-filepath-transunit-map
              • Rename-transunit-ensemble
                • Rename-fundef
                • Rename-extdecl-list
                • Rename-transunit
                • Rename-ident-list
                • Rename-extdecl
                • Rename-ident
                • Rename-const
                • Ident-ident-alist
              • Utilities
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Rename

    Rename-transunit-ensemble

    Transform a translation unit ensemble.

    Signature
    (rename-transunit-ensemble tunits subst) → new-tunits
    Arguments
    tunits — Guard (transunit-ensemblep tunits).
    subst — Guard (ident-ident-alistp subst).
    Returns
    new-tunits — Type (transunit-ensemblep new-tunits).

    Definitions and Theorems

    Function: rename-transunit-ensemble

    (defun rename-transunit-ensemble (tunits subst)
      (declare (xargs :guard (and (transunit-ensemblep tunits)
                                  (ident-ident-alistp subst))))
      (let ((__function__ 'rename-transunit-ensemble))
        (declare (ignorable __function__))
        (b* (((transunit-ensemble tunits) tunits))
          (transunit-ensemble
               (rename-filepath-transunit-map tunits.unwrap subst)))))

    Theorem: transunit-ensemblep-of-rename-transunit-ensemble

    (defthm transunit-ensemblep-of-rename-transunit-ensemble
      (b* ((new-tunits (rename-transunit-ensemble tunits subst)))
        (transunit-ensemblep new-tunits))
      :rule-classes :rewrite)