• 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
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
          • Transformations
            • Renaming-variables
            • Dead-code-eliminator
            • Renamings
              • Renaming
                • Renamingp
                  • Renaming-fix
                  • Renaming-equiv
                  • Make-renaming
                  • Renaming->list
                  • Change-renaming
                • Renaming-result
                • Renaming-old
                • Renaming-new
                • Renaming-pair-equality
              • Disambiguator
              • Unique-variables
              • Dead-code-eliminator-static-safety
              • No-function-definitions
              • Unique-functions
              • Renaming-functions
              • Dead-code-eliminator-no-loop-initializers
              • Dead-code-eliminator-no-function-definitions
              • No-loop-initializers
              • For-loop-init-rewriter
            • Language
            • Yul-json
          • 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
    • Renaming

    Renamingp

    Recognizer for renaming structures.

    Signature
    (renamingp x) → *

    Definitions and Theorems

    Function: renamingp

    (defun renamingp (x)
      (declare (xargs :guard t))
      (let ((__function__ 'renamingp))
        (declare (ignorable __function__))
        (and (mbe :logic (and (alistp x)
                              (equal (strip-cars x) '(list)))
                  :exec (fty::alist-with-carsp x '(list)))
             (b* ((list (cdr (std::da-nth 0 x))))
               (and (identifier-identifier-alistp list)
                    (no-duplicatesp-equal (strip-cars list))
                    (no-duplicatesp-equal (strip-cdrs list)))))))

    Theorem: consp-when-renamingp

    (defthm consp-when-renamingp
      (implies (renamingp x) (consp x))
      :rule-classes :compound-recognizer)