• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • 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
                • Strunispec-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
        • Farray
        • Rp-rewriter
        • Riscv
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Community
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Abstract-syntax-rename

    Ident-option-rename

    Signature
    (ident-option-rename ident-option subst) → fty::result
    Arguments
    ident-option — Guard (ident-optionp ident-option).
    subst — Guard (ident-ident-alistp subst).
    Returns
    fty::result — Type (ident-optionp fty::result).

    Definitions and Theorems

    Function: ident-option-rename

    (defun ident-option-rename (ident-option subst)
     (declare (xargs :guard (and (ident-optionp ident-option)
                                 (ident-ident-alistp subst))))
     (let ((__function__ 'ident-option-rename))
       (declare (ignorable __function__))
       (c$::ident-option-case
            ident-option
            :some
            (ident-fix
                 (ident-rename (c$::ident-option-some->val ident-option)
                               subst))
            :none nil)))

    Theorem: ident-optionp-of-ident-option-rename

    (defthm ident-optionp-of-ident-option-rename
      (b* ((fty::result (ident-option-rename ident-option subst)))
        (ident-optionp fty::result))
      :rule-classes :rewrite)

    Theorem: ident-option-rename-under-iff

    (defthm ident-option-rename-under-iff
      (iff (ident-option-rename ident-option subst)
           ident-option))

    Theorem: ident-option-rename-of-ident-option-fix-ident-option

    (defthm ident-option-rename-of-ident-option-fix-ident-option
      (equal (ident-option-rename (ident-option-fix ident-option)
                                  subst)
             (ident-option-rename ident-option subst)))

    Theorem: ident-option-rename-ident-option-equiv-congruence-on-ident-option

    (defthm
      ident-option-rename-ident-option-equiv-congruence-on-ident-option
      (implies (c$::ident-option-equiv ident-option ident-option-equiv)
               (equal (ident-option-rename ident-option subst)
                      (ident-option-rename ident-option-equiv subst)))
      :rule-classes :congruence)

    Theorem: ident-option-rename-of-ident-ident-alist-fix-subst

    (defthm ident-option-rename-of-ident-ident-alist-fix-subst
      (equal (ident-option-rename ident-option
                                  (ident-ident-alist-fix subst))
             (ident-option-rename ident-option subst)))

    Theorem: ident-option-rename-ident-ident-alist-equiv-congruence-on-subst

    (defthm
        ident-option-rename-ident-ident-alist-equiv-congruence-on-subst
      (implies (ident-ident-alist-equiv subst subst-equiv)
               (equal (ident-option-rename ident-option subst)
                      (ident-option-rename ident-option subst-equiv)))
      :rule-classes :congruence)