• 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
      • Riscv
      • Taspi
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
              • Dynamic-semantics
              • Compilation
              • Static-semantics
                • Type-checking
                • Static-environments
                  • Var/const-sinfo
                  • Ident-sinfo
                  • Function-sinfo
                  • Var/const-sinfo-option
                  • Struct-sinfo-option
                  • Struct-sinfo
                  • Ident-sinfo-option
                  • Function-sinfo-option
                  • Senv-option
                  • Add-var/const-sinfo
                  • Add-ident-sinfo
                  • Senv
                    • Senvp
                    • Senv-fix
                    • Senv-equiv
                      • Make-senv
                      • Senv->identifiers
                      • Change-senv
                    • Add-struct-sinfo
                    • Add-function-sinfo
                    • Get-var/const-sinfo
                    • Get-struct-sinfo
                    • Get-function-sinfo
                    • Ident-senv
                    • Get-ident-sinfo
                    • Senv-result
                    • Var/const-sinfo-list
                    • Init-senv
                  • Curve-parameterization
                  • Function-recursion
                  • Struct-recursion
                  • Input-checking
                  • Program-checking
                  • Type-maps-for-struct-components
                  • Program-and-input-checking
                  • Output-checking
                • Concrete-syntax
        • 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
    • Senv

    Senv-equiv

    Basic equivalence relation for senv structures.

    Definitions and Theorems

    Function: senv-equiv$inline

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

    Theorem: senv-equiv-is-an-equivalence

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

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

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

    Theorem: senv-fix-under-senv-equiv

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

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

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

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

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

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

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

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

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