• 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
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Riscv
      • 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
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
                • Expression
                • Syntax-abstraction
                • Statement
                • Files
                • Input-files
                • Identifiers
                  • Identifier
                    • Identifierp
                    • Identifier-fix
                    • Identifier-equiv
                      • Make-identifier
                      • Identifier->name
                      • Change-identifier
                    • Identifier-option
                    • Programid
                    • Locator
                    • Identifier-grammar-chars-p
                    • Identifier-option-result
                    • Programid-result
                    • Locator-result
                    • Identifier-result
                    • Identifier-list-result
                    • Identifier-string-p
                    • Identifier-set
                    • Identifier-list
                  • Types
                  • Struct-init
                  • Branch
                  • Statements
                  • Format-strings
                  • Input-syntax-abstraction
                  • Expressions
                  • Output-files
                  • Addresses
                  • Literals
                  • Characters
                  • Expression-list
                  • Statement-list
                  • Output-syntax-abstraction
                  • Struct-init-list
                  • Branch-list
                  • Annotations
                  • Abstract-syntax-trees
                  • Symbols
                  • Keywords
                  • Programs
                  • Packages
                  • Bit-sizes
                • Dynamic-semantics
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Identifier

    Identifier-equiv

    Basic equivalence relation for identifier structures.

    Definitions and Theorems

    Function: identifier-equiv$inline

    (defun identifier-equiv$inline (acl2::x acl2::y)
      (declare (xargs :guard (and (identifierp acl2::x)
                                  (identifierp acl2::y))))
      (equal (identifier-fix acl2::x)
             (identifier-fix acl2::y)))

    Theorem: identifier-equiv-is-an-equivalence

    (defthm identifier-equiv-is-an-equivalence
      (and (booleanp (identifier-equiv x y))
           (identifier-equiv x x)
           (implies (identifier-equiv x y)
                    (identifier-equiv y x))
           (implies (and (identifier-equiv x y)
                         (identifier-equiv y z))
                    (identifier-equiv x z)))
      :rule-classes (:equivalence))

    Theorem: identifier-equiv-implies-equal-identifier-fix-1

    (defthm identifier-equiv-implies-equal-identifier-fix-1
      (implies (identifier-equiv acl2::x x-equiv)
               (equal (identifier-fix acl2::x)
                      (identifier-fix x-equiv)))
      :rule-classes (:congruence))

    Theorem: identifier-fix-under-identifier-equiv

    (defthm identifier-fix-under-identifier-equiv
      (identifier-equiv (identifier-fix acl2::x)
                        acl2::x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: equal-of-identifier-fix-1-forward-to-identifier-equiv

    (defthm equal-of-identifier-fix-1-forward-to-identifier-equiv
      (implies (equal (identifier-fix acl2::x) acl2::y)
               (identifier-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: equal-of-identifier-fix-2-forward-to-identifier-equiv

    (defthm equal-of-identifier-fix-2-forward-to-identifier-equiv
      (implies (equal acl2::x (identifier-fix acl2::y))
               (identifier-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: identifier-equiv-of-identifier-fix-1-forward

    (defthm identifier-equiv-of-identifier-fix-1-forward
      (implies (identifier-equiv (identifier-fix acl2::x)
                                 acl2::y)
               (identifier-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: identifier-equiv-of-identifier-fix-2-forward

    (defthm identifier-equiv-of-identifier-fix-2-forward
      (implies (identifier-equiv acl2::x (identifier-fix acl2::y))
               (identifier-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)