• 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
          • Representation
          • Transformation-tools
            • Simpadd0
            • Splitgso
            • Constant-propagation
            • Split-fn
            • Specialize
            • Split-all-gso
            • Copy-fn
            • Rename
              • Abstract-syntax-rename
                • Exprs/decls/stmts-rename
                • Filepath-transunit-map-rename
                  • Extdecl-list-rename
                  • Ident-list-rename
                  • Typequal/attribspec-list-list-rename
                  • Typequal/attribspec-list-rename
                  • Structdeclor-list-rename
                  • Param-declon-list-rename
                  • Transunit-ensemble-rename
                  • Structdecl-list-rename
                  • Initdeclor-list-rename
                  • Block-item-list-rename
                  • Attrib-spec-list-rename
                  • Asm-output-list-rename
                  • Spec/qual-list-rename
                  • Iconst-option-rename
                  • Genassoc-list-rename
                  • Desiniter-list-rename
                  • Designor-list-rename
                  • Decl-spec-list-rename
                  • Asm-input-list-rename
                  • Ident-option-rename
                  • Const-option-rename
                  • Attrib-list-rename
                  • Enumer-list-rename
                  • Expr-list-rename
                  • Decl-list-rename
                  • Attrib-name-rename
                  • Extdecl-rename
                  • Transunit-rename
                  • Fundef-rename
                  • Const-rename
                  • Iconst-rename
                  • Ident-rename
                  • Dirabsdeclor-option-rename
                  • Const-expr-option-rename
                  • Absdeclor-option-rename
                  • Initer-option-rename
                  • Expr-option-rename
                  • Declor-option-rename
                  • Amb-declor/absdeclor-rename
                  • Typequal/attribspec-rename
                  • Member-designor-rename
                  • Amb-expr/tyname-rename
                  • Amb-decl/stmt-rename
                  • Type-spec-rename
                  • Tyname-rename
                  • Struni-spec-rename
                  • Structdeclor-rename
                  • Structdecl-rename
                  • Stmt-rename
                  • Statassert-rename
                  • Spec/qual-rename
                  • Param-declor-rename
                  • Param-declon-rename
                  • Label-rename
                  • Initer-rename
                  • Initdeclor-rename
                  • Genassoc-rename
                  • Expr-rename
                  • Enumspec-rename
                  • Enumer-rename
                  • Dirdeclor-rename
                  • Dirabsdeclor-rename
                  • Desiniter-rename
                  • Designor-rename
                  • Declor-rename
                  • Decl-spec-rename
                  • Const-expr-rename
                  • Block-item-rename
                  • Attrib-spec-rename
                  • Attrib-rename
                  • Asm-stmt-rename
                  • Asm-output-rename
                  • Asm-input-rename
                  • Align-spec-rename
                  • Absdeclor-rename
                  • Decl-rename
                • Ident-ident-subst
                • Ident-ident-alist
              • Utilities
            • 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
    • Abstract-syntax-rename

    Filepath-transunit-map-rename

    Signature
    (filepath-transunit-map-rename c$::filepath-transunit-map subst) 
      → 
    fty::result
    Arguments
    c$::filepath-transunit-map — Guard (filepath-transunit-mapp c$::filepath-transunit-map).
    subst — Guard (ident-ident-alistp subst).
    Returns
    fty::result — Type (filepath-transunit-mapp fty::result).

    Definitions and Theorems

    Function: filepath-transunit-map-rename

    (defun filepath-transunit-map-rename
           (c$::filepath-transunit-map subst)
     (declare
      (xargs
        :guard (and (filepath-transunit-mapp c$::filepath-transunit-map)
                    (ident-ident-alistp subst))))
     (let ((__function__ 'filepath-transunit-map-rename))
      (declare (ignorable __function__))
      (if
       (or
        (not (mbt (filepath-transunit-mapp c$::filepath-transunit-map)))
        (omap::emptyp c$::filepath-transunit-map))
       nil
       (omap::update
           (omap::head-key c$::filepath-transunit-map)
           (transunit-rename (omap::head-val c$::filepath-transunit-map)
                             subst)
           (filepath-transunit-map-rename
                (omap::tail c$::filepath-transunit-map)
                subst)))))

    Theorem: filepath-transunit-mapp-of-filepath-transunit-map-rename

    (defthm filepath-transunit-mapp-of-filepath-transunit-map-rename
      (b* ((fty::result (filepath-transunit-map-rename
                             c$::filepath-transunit-map subst)))
        (filepath-transunit-mapp fty::result))
      :rule-classes :rewrite)

    Theorem: filepath-transunit-map-rename-type-prescription

    (defthm filepath-transunit-map-rename-type-prescription
     (true-listp
       (filepath-transunit-map-rename c$::filepath-transunit-map subst))
     :rule-classes :type-prescription)

    Theorem: filepath-transunit-map-rename-when-emptyp

    (defthm filepath-transunit-map-rename-when-emptyp
     (implies
      (omap::emptyp c$::filepath-transunit-map)
      (equal
        (filepath-transunit-map-rename c$::filepath-transunit-map subst)
        nil)))

    Theorem: emptyp-of-filepath-transunit-map-rename

    (defthm emptyp-of-filepath-transunit-map-rename
     (equal
      (omap::emptyp
       (filepath-transunit-map-rename c$::filepath-transunit-map subst))
      (omap::emptyp
          (c$::filepath-transunit-map-fix c$::filepath-transunit-map))))

    Theorem: keys-of-filepath-transunit-map-rename

    (defthm keys-of-filepath-transunit-map-rename
     (equal
      (omap::keys
       (filepath-transunit-map-rename c$::filepath-transunit-map subst))
      (omap::keys
          (c$::filepath-transunit-map-fix c$::filepath-transunit-map))))

    Theorem: assoc-of-filepath-transunit-map-rename

    (defthm assoc-of-filepath-transunit-map-rename
     (equal
      (omap::assoc
       fty::key
       (filepath-transunit-map-rename c$::filepath-transunit-map subst))
      (if
       (omap::assoc
            fty::key
            (c$::filepath-transunit-map-fix c$::filepath-transunit-map))
       (cons
        fty::key
        (transunit-rename
         (cdr
          (omap::assoc
           fty::key
           (c$::filepath-transunit-map-fix c$::filepath-transunit-map)))
         subst))
       nil)))

    Theorem: filepath-transunit-map-rename-of-filepath-transunit-map-fix-filepath-transunit-map

    (defthm
     filepath-transunit-map-rename-of-filepath-transunit-map-fix-filepath-transunit-map
     (equal
      (filepath-transunit-map-rename
           (c$::filepath-transunit-map-fix c$::filepath-transunit-map)
           subst)
      (filepath-transunit-map-rename c$::filepath-transunit-map subst)))

    Theorem: filepath-transunit-map-rename-filepath-transunit-map-equiv-congruence-on-filepath-transunit-map

    (defthm
     filepath-transunit-map-rename-filepath-transunit-map-equiv-congruence-on-filepath-transunit-map
     (implies
      (c$::filepath-transunit-map-equiv c$::filepath-transunit-map
                                        filepath-transunit-map-equiv)
      (equal
        (filepath-transunit-map-rename c$::filepath-transunit-map subst)
        (filepath-transunit-map-rename
             filepath-transunit-map-equiv subst)))
     :rule-classes :congruence)

    Theorem: filepath-transunit-map-rename-of-ident-ident-alist-fix-subst

    (defthm filepath-transunit-map-rename-of-ident-ident-alist-fix-subst
     (equal
      (filepath-transunit-map-rename c$::filepath-transunit-map
                                     (ident-ident-alist-fix subst))
      (filepath-transunit-map-rename c$::filepath-transunit-map subst)))

    Theorem: filepath-transunit-map-rename-ident-ident-alist-equiv-congruence-on-subst

    (defthm
     filepath-transunit-map-rename-ident-ident-alist-equiv-congruence-on-subst
     (implies
      (ident-ident-alist-equiv subst subst-equiv)
      (equal
        (filepath-transunit-map-rename c$::filepath-transunit-map subst)
        (filepath-transunit-map-rename c$::filepath-transunit-map
                                       subst-equiv)))
     :rule-classes :congruence)