• 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
        • Soft
        • C
          • Syntax-for-tools
          • Atc
          • Language
          • Transformation-tools
            • Simpadd0
            • Splitgso
            • Constant-propagation
            • Specialize
            • Split-fn
            • Split-fn-when
            • Copy-fn
            • Split-all-gso
            • Rename
              • Abstract-syntax-rename
              • Ident-ident-subst
              • Code-ensemble-rename
                • Ident-ident-alist
              • Utilities
            • Representation
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Riscv
          • 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

    Code-ensemble-rename

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

    Definitions and Theorems

    Function: code-ensemble-rename

    (defun code-ensemble-rename (code subst)
      (declare (xargs :guard (and (code-ensemblep code)
                                  (ident-ident-alistp subst))))
      (let ((__function__ 'code-ensemble-rename))
        (declare (ignorable __function__))
        (change-code-ensemble
             code
             :transunits
             (transunit-ensemble-rename (code-ensemble->transunits code)
                                        subst))))

    Theorem: code-ensemblep-of-code-ensemble-rename

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