• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
      • Gl
      • Witness-cp
      • Ccg
      • Install-not-normalized
      • Rewrite$
      • Fgl
        • Fgl-rewrite-rules
        • Fgl-function-mode
        • Fgl-object
        • Fgl-solving
        • Fgl-handling-if-then-elses
        • Fgl-getting-bits-from-objects
        • Fgl-primitive-and-meta-rules
        • Fgl-counterexamples
          • Def-ctrex-rule
          • Fgl-counterexample-implementation-details
            • Cgraph
              • Cgraph-p
              • Ctrex-rule
              • Cgraph-fix
              • Cgraph-equiv
              • Cgraph-derive-assignments-for-vars
              • Cgraph-derive-assignments-obj
              • Cgraph-derive-assignments-bindings
          • 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
        • Removable-runes
        • Efficiency
        • Rewrite-bounds
        • Bash
        • Def-dag-measure
        • Bdd
        • Remove-hyps
        • Contextual-rewriting
        • Simp
        • Rewrite$-hyps
        • Bash-term-to-dnf
        • Use-trivial-ancestors-check
        • Minimal-runes
        • Clause-processor-tools
        • Fn-is-body
        • Without-subsumption
        • Rewrite-equiv-hint
        • Def-bounds
        • Rewrite$-context
        • Try-gl-concls
        • Hint-utils
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Cgraph

    Cgraph-equiv

    Basic equivalence relation for cgraph structures.

    Definitions and Theorems

    Function: cgraph-equiv$inline

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

    Theorem: cgraph-equiv-is-an-equivalence

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

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

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

    Theorem: cgraph-fix-under-cgraph-equiv

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

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

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

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

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

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

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

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

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