• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
        • Transformations
        • Language
          • Abstract-syntax
          • Dynamic-semantics
            • Exec
            • Find-fun
            • Init-local
            • Write-vars-values
            • Add-vars-values
            • Add-funs
            • Eoutcome
            • Soutcome
            • Ensure-funscope-disjoint
            • Write-var-value
            • Restrict-vars
            • Add-var-value
            • Funinfo
            • Exec-top-block
            • Values
            • Cstate
              • Cstate-fix
              • Cstatep
              • Cstate-equiv
                • Make-cstate
                • Cstate->local
                • Change-cstate
              • Funinfo+funenv
              • Read-vars-values
              • Read-var-value
              • Funenv
              • Funscope-for-fundefs
              • Exec-path
              • Path-to-var
              • Funinfo+funenv-result
              • Exec-literal
              • Soutcome-result
              • Mode-set-result
              • Literal-evaluation
              • Funscope-result
              • Funinfo-result
              • Funenv-result
              • Eoutcome-result
              • Cstate-result
              • Paths-to-vars
              • Funinfo-for-fundef
              • Lstate
              • Funscope
              • Mode-set
              • Modes
            • Concrete-syntax
            • Static-soundness
            • Static-semantics
            • Errors
          • Yul-json
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Cstate

    Cstate-equiv

    Basic equivalence relation for cstate structures.

    Definitions and Theorems

    Function: cstate-equiv$inline

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

    Theorem: cstate-equiv-is-an-equivalence

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

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

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

    Theorem: cstate-fix-under-cstate-equiv

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

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

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

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

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

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

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

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

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