• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Community
    • 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
                  • 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
          • 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
    • Abstract-syntax-rename

    Iconst-option-rename

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

    Definitions and Theorems

    Function: iconst-option-rename

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

    Theorem: iconst-optionp-of-iconst-option-rename

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

    Theorem: iconst-option-rename-under-iff

    (defthm iconst-option-rename-under-iff
      (iff (iconst-option-rename c$::iconst-option subst)
           c$::iconst-option))

    Theorem: iconst-option-rename-of-iconst-option-fix-iconst-option

    (defthm iconst-option-rename-of-iconst-option-fix-iconst-option
     (equal
         (iconst-option-rename (c$::iconst-option-fix c$::iconst-option)
                               subst)
         (iconst-option-rename c$::iconst-option subst)))

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

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

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

    (defthm iconst-option-rename-of-ident-ident-alist-fix-subst
      (equal (iconst-option-rename c$::iconst-option
                                   (ident-ident-alist-fix subst))
             (iconst-option-rename c$::iconst-option subst)))

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

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