• 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
          • Semantics
          • Abstract-syntax
            • Aexp
            • Bexp
              • Bexp-case
              • Bexp-fix
              • Bexpp
              • Bexp-count
              • Bexp-equiv
                • Bexp-less
                • Bexp-equal
                • Bexp-and
                • Bexp-const
                • Bexp-not
                • Bexp-kind
              • Comm
              • Comm-list
              • Command-fixtypes
            • Interpreter
          • 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
    • Bexp

    Bexp-equiv

    Basic equivalence relation for bexp structures.

    Definitions and Theorems

    Function: bexp-equiv$inline

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

    Theorem: bexp-equiv-is-an-equivalence

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

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

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

    Theorem: bexp-fix-under-bexp-equiv

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

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

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

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

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

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

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

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

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