• 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
        • C
          • Syntax-for-tools
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Compilation-database
            • Printer
            • Output-files
            • Abstract-syntax-operations
            • Implementation-environments
            • Abstract-syntax
            • Concrete-syntax
            • Disambiguation
            • Validation
            • Gcc-builtins
            • Preprocessing
              • Preprocessor
                • Preprocessor-states
                  • Plexeme
                  • Ppstate
                  • Pnumber
                  • Macro-info
                  • Macro-add
                  • Init-ppstate
                  • Plexeme-token/newline-p
                  • Newline
                  • Plexeme-option
                  • Macro-info-option
                  • Macro-table
                  • Plexeme+span
                  • Update-ppstate->lexemes-unread
                  • Update-ppstate->lexemes-read
                  • Update-ppstate->lexemes-length
                  • Update-ppstate->chars-unread
                  • Update-ppstate->chars-read
                  • Update-ppstate->version
                  • Update-ppstate->position
                  • Update-ppstate->macros
                  • Update-ppstate->chars-length
                  • Macro-lookup
                  • Update-ppstate->bytes
                  • Update-ppstate->size
                  • Plexeme-token/space-p
                  • Plexeme-tokenp
                  • Ppstate->gcc
                  • Plexeme-list-token/space-p
                  • Ppstate->size
                  • Ppstate->lexemes-unread
                  • Ppstate->lexemes-read
                  • Ppstate->lexemes-length
                  • Ppstate->chars-unread
                  • Ppstate->bytes
                  • Plexeme-list-token/newline-p
                  • Plexeme-list-not-token/newline-p
                  • Ident-macroinfo-alist
                    • Ident-macroinfo-alistp
                    • Ident-macroinfo-alist-fix
                    • Ident-macroinfo-alist-equiv
                    • Update-ppstate->lexeme
                    • Update-ppstate->char
                    • Ppstate->version
                    • Ppstate->macros
                    • Ppstate->chars-read
                    • Ppstate->chars-length
                    • Plexeme-list-tokenp
                    • Plexeme-list-not-tokenp
                    • Macro-table-init
                    • Ppstate->lexeme
                    • Ppstate->char
                    • Ppstate-fix
                    • Plexeme+span-list
                    • Plexeme-list
                    • Irr-pnumber
                    • Irr-plexeme
                    • Irr-macro-table
                    • Ppstate->position
                  • Preprocessor-printer
                  • Pread-token/newline
                  • Pread-token
                  • Preprocessor-lexer
                  • Pproc-files
                  • Pproc-file
                  • Filepath-plexeme-list-alist-to-filepath-filedata-map
                  • Filepath-plexeme-list-alist
                  • Preprocessor-reader
                  • Preprocessor-messages
                • External-preprocessing
              • Parsing
            • Atc
            • Transformation-tools
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Ident-macroinfo-alist

    Ident-macroinfo-alist-equiv

    Basic equivalence relation for ident-macroinfo-alist structures.

    Definitions and Theorems

    Function: ident-macroinfo-alist-equiv$inline

    (defun ident-macroinfo-alist-equiv$inline (acl2::x acl2::y)
      (declare (xargs :guard (and (ident-macroinfo-alistp acl2::x)
                                  (ident-macroinfo-alistp acl2::y))))
      (equal (ident-macroinfo-alist-fix acl2::x)
             (ident-macroinfo-alist-fix acl2::y)))

    Theorem: ident-macroinfo-alist-equiv-is-an-equivalence

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

    Theorem: ident-macroinfo-alist-equiv-implies-equal-ident-macroinfo-alist-fix-1

    (defthm
     ident-macroinfo-alist-equiv-implies-equal-ident-macroinfo-alist-fix-1
     (implies (ident-macroinfo-alist-equiv acl2::x x-equiv)
              (equal (ident-macroinfo-alist-fix acl2::x)
                     (ident-macroinfo-alist-fix x-equiv)))
     :rule-classes (:congruence))

    Theorem: ident-macroinfo-alist-fix-under-ident-macroinfo-alist-equiv

    (defthm ident-macroinfo-alist-fix-under-ident-macroinfo-alist-equiv
      (ident-macroinfo-alist-equiv (ident-macroinfo-alist-fix acl2::x)
                                   acl2::x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: equal-of-ident-macroinfo-alist-fix-1-forward-to-ident-macroinfo-alist-equiv

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

    Theorem: equal-of-ident-macroinfo-alist-fix-2-forward-to-ident-macroinfo-alist-equiv

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

    Theorem: ident-macroinfo-alist-equiv-of-ident-macroinfo-alist-fix-1-forward

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

    Theorem: ident-macroinfo-alist-equiv-of-ident-macroinfo-alist-fix-2-forward

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