• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
        • Deftreeops
        • Defdefparse
        • Defgrammar
        • Tree-utilities
          • Check-tree-nonleaf-num-range-4
          • Check-tree-nonleaf-num-range-3
          • Check-tree-num-range-4
          • Check-tree-nonleaf-num-range-2
          • Check-tree-num-range-3
          • Check-tree-num-range-2
          • Tree-list-tuple10
          • Check-tree-nonleaf-num-range
          • Tree-list-tuple9
          • Tree-list-tuple8
          • Tree-list-tuple7
          • Tree-list-tuple6
          • Check-tree-nonleaf-num-seq
          • Check-tree-num-range
          • Tree-list-tuple5
          • Check-tree-nonleaf-10
          • Check-tree-nonleaf-9
          • Check-tree-nonleaf-8
          • Check-tree-nonleaf-7
          • Check-tree-list-list-10
          • Tree-list-tuple4
          • Check-tree-nonleaf-6
          • Check-tree-nonleaf-5
          • Check-tree-list-list-9
          • Check-tree-nonleaf-4
          • Check-tree-nonleaf-3
          • Check-tree-nonleaf-2
          • Check-tree-nonleaf
          • Check-tree-list-list-8
          • Check-tree-nonleaf-1-1
          • Check-tree-nonleaf-1
          • Check-tree-list-list-7
          • Tree-list-tuple3
          • Pass
          • Check-tree-list-list-6
          • Check-tree-list-list-5
          • Tree=>string
          • Tree-list-tuple2
          • Check-tree-list-list-4
          • Check-tree-list-list-3
          • Check-tree-ichars
          • Check-tree-schars
          • Check-tree-num-seq
          • Check-tree-list-list-2
          • Tree-list-tuple9-result
          • Tree-list-tuple8-result
          • Tree-list-tuple7-result
          • Tree-list-tuple6-result
          • Tree-list-tuple5-result
            • Tree-list-tuple5-result-fix
            • Tree-list-tuple5-result-equiv
              • Tree-list-tuple5-resultp
              • Tree-list-tuple5-result-ok
              • Tree-list-tuple5-result-err
              • Tree-list-tuple5-result-kind
            • Tree-list-tuple4-result
            • Tree-list-tuple3-result
            • Tree-list-tuple2-result
            • Tree-list-tuple10-result
            • Pass-result
            • Check-tree-list-list-1
            • Tree-info-for-error
            • Check-tree-list-1
            • Check-tree-nonleaf?
            • Check-tree-leafterm
          • Notation
          • Grammar-parser
          • Meta-circular-validation
          • Parsing-primitives-defresult
          • Parsing-primitives-seq
          • Operations
          • Examples
          • Differences-with-paper
          • Constructor-utilities
          • Grammar-printer
          • Parsing-tools
        • Vwsim
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • Legacy-defrstobj
        • C
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • 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
    • Tree-list-tuple5-result

    Tree-list-tuple5-result-equiv

    Basic equivalence relation for tree-list-tuple5-result structures.

    Definitions and Theorems

    Function: tree-list-tuple5-result-equiv$inline

    (defun tree-list-tuple5-result-equiv$inline (acl2::x acl2::y)
      (declare (xargs :guard (and (tree-list-tuple5-resultp acl2::x)
                                  (tree-list-tuple5-resultp acl2::y))))
      (equal (tree-list-tuple5-result-fix acl2::x)
             (tree-list-tuple5-result-fix acl2::y)))

    Theorem: tree-list-tuple5-result-equiv-is-an-equivalence

    (defthm tree-list-tuple5-result-equiv-is-an-equivalence
      (and (booleanp (tree-list-tuple5-result-equiv x y))
           (tree-list-tuple5-result-equiv x x)
           (implies (tree-list-tuple5-result-equiv x y)
                    (tree-list-tuple5-result-equiv y x))
           (implies (and (tree-list-tuple5-result-equiv x y)
                         (tree-list-tuple5-result-equiv y z))
                    (tree-list-tuple5-result-equiv x z)))
      :rule-classes (:equivalence))

    Theorem: tree-list-tuple5-result-equiv-implies-equal-tree-list-tuple5-result-fix-1

    (defthm
     tree-list-tuple5-result-equiv-implies-equal-tree-list-tuple5-result-fix-1
     (implies (tree-list-tuple5-result-equiv acl2::x x-equiv)
              (equal (tree-list-tuple5-result-fix acl2::x)
                     (tree-list-tuple5-result-fix x-equiv)))
     :rule-classes (:congruence))

    Theorem: tree-list-tuple5-result-fix-under-tree-list-tuple5-result-equiv

    (defthm
        tree-list-tuple5-result-fix-under-tree-list-tuple5-result-equiv
      (tree-list-tuple5-result-equiv
           (tree-list-tuple5-result-fix acl2::x)
           acl2::x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: equal-of-tree-list-tuple5-result-fix-1-forward-to-tree-list-tuple5-result-equiv

    (defthm
     equal-of-tree-list-tuple5-result-fix-1-forward-to-tree-list-tuple5-result-equiv
     (implies (equal (tree-list-tuple5-result-fix acl2::x)
                     acl2::y)
              (tree-list-tuple5-result-equiv acl2::x acl2::y))
     :rule-classes :forward-chaining)

    Theorem: equal-of-tree-list-tuple5-result-fix-2-forward-to-tree-list-tuple5-result-equiv

    (defthm
     equal-of-tree-list-tuple5-result-fix-2-forward-to-tree-list-tuple5-result-equiv
     (implies (equal acl2::x
                     (tree-list-tuple5-result-fix acl2::y))
              (tree-list-tuple5-result-equiv acl2::x acl2::y))
     :rule-classes :forward-chaining)

    Theorem: tree-list-tuple5-result-equiv-of-tree-list-tuple5-result-fix-1-forward

    (defthm
     tree-list-tuple5-result-equiv-of-tree-list-tuple5-result-fix-1-forward
     (implies (tree-list-tuple5-result-equiv
                   (tree-list-tuple5-result-fix acl2::x)
                   acl2::y)
              (tree-list-tuple5-result-equiv acl2::x acl2::y))
     :rule-classes :forward-chaining)

    Theorem: tree-list-tuple5-result-equiv-of-tree-list-tuple5-result-fix-2-forward

    (defthm
     tree-list-tuple5-result-equiv-of-tree-list-tuple5-result-fix-2-forward
     (implies (tree-list-tuple5-result-equiv
                   acl2::x
                   (tree-list-tuple5-result-fix acl2::y))
              (tree-list-tuple5-result-equiv acl2::x acl2::y))
     :rule-classes :forward-chaining)