• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
        • Primitive-functions
        • Translated-terms
        • Values
        • Evaluation
          • Step-from-trans
          • Call-primitive-function
          • Step-from-init
          • Put-leftmost-nonconst
          • Exec-outcome
            • Exec-outcome-case
            • Exec-outcome-fix
            • Exec-outcome-equiv
              • Exec-outcome-p
              • Exec-outcome-terminating
              • Exec-outcome-nonterminating
              • Exec-outcome-kind
              • Exec-outcome-error
            • Stepn
            • Step
            • Terminatingp
            • Get-leftmost-nonconst
            • Exec-call
            • Step*
          • Program-equivalence
          • Functions
          • Packages
          • Programs
          • Interpreter
          • Evaluation-states
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Exec-outcome

    Exec-outcome-equiv

    Basic equivalence relation for exec-outcome structures.

    Definitions and Theorems

    Function: exec-outcome-equiv$inline

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

    Theorem: exec-outcome-equiv-is-an-equivalence

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

    Theorem: exec-outcome-equiv-implies-equal-exec-outcome-fix-1

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

    Theorem: exec-outcome-fix-under-exec-outcome-equiv

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

    Theorem: equal-of-exec-outcome-fix-1-forward-to-exec-outcome-equiv

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

    Theorem: equal-of-exec-outcome-fix-2-forward-to-exec-outcome-equiv

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

    Theorem: exec-outcome-equiv-of-exec-outcome-fix-1-forward

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

    Theorem: exec-outcome-equiv-of-exec-outcome-fix-2-forward

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