• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
        • Fgl-rewrite-rules
        • Fgl-function-mode
        • Fgl-object
          • Fgl-object-eval
          • Fgl-object-p
          • G-map
          • G-ite
          • G-cons
          • G-concrete
          • G-apply
          • G-integer
          • Fgl-object-equiv
            • G-boolean
            • G-var
            • Fgl-bitvector
            • Fgl-object-kind
            • Summarize-fgl-object
            • Fgl-make-isomorphic
            • Fgl-object-alist
            • Fgl-objectlist
            • Fgl-object-fix
            • Fgl-object-count
          • Fgl-solving
          • Fgl-handling-if-then-elses
          • Fgl-getting-bits-from-objects
          • Fgl-primitive-and-meta-rules
          • Fgl-counterexamples
          • Fgl-interpreter-overview
          • Fgl-correctness-of-binding-free-variables
          • Fgl-debugging
          • Fgl-testbenches
          • Def-fgl-boolean-constraint
          • Fgl-stack
          • Fgl-rewrite-tracing
          • Def-fgl-param-thm
          • Def-fgl-thm
          • Fgl-fast-alist-support
          • Fgl-array-support
          • Advanced-equivalence-checking-with-fgl
          • Fgl-fty-support
          • Fgl-internals
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Fgl-object

    Fgl-object-equiv

    Basic equivalence relation for fgl-object structures.

    Definitions and Theorems

    Function: fgl-object-equiv$inline

    (defun fgl-object-equiv$inline (x y)
      (declare (xargs :guard (and (fgl-object-p x)
                                  (fgl-object-p y))))
      (equal (fgl-object-fix x)
             (fgl-object-fix y)))

    Theorem: fgl-object-equiv-is-an-equivalence

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

    Theorem: fgl-object-equiv-implies-equal-fgl-object-fix-1

    (defthm fgl-object-equiv-implies-equal-fgl-object-fix-1
      (implies (fgl-object-equiv x x-equiv)
               (equal (fgl-object-fix x)
                      (fgl-object-fix x-equiv)))
      :rule-classes (:congruence))

    Theorem: fgl-object-fix-under-fgl-object-equiv

    (defthm fgl-object-fix-under-fgl-object-equiv
      (fgl-object-equiv (fgl-object-fix x) x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: equal-of-fgl-object-fix-1-forward-to-fgl-object-equiv

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

    Theorem: equal-of-fgl-object-fix-2-forward-to-fgl-object-equiv

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

    Theorem: fgl-object-equiv-of-fgl-object-fix-1-forward

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

    Theorem: fgl-object-equiv-of-fgl-object-fix-2-forward

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