• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
        • Proof-support
        • Abstract-syntax
        • R1cs-subset
        • Semantics
          • Semantics-deeply-embedded
            • Exec-proof-tree
            • Assertion-list->constr-list
            • Assertion-list->asg-list
            • Eval-expr
            • Eval-expr-list
            • Assertion
            • Assignment-wfp
            • Proof-outcome
              • Proof-outcome-fix
              • Proof-outcome-case
              • Proof-outcome-equiv
                • Proof-outcomep
                • Proof-outcome-assertion
                • Proof-outcome-kind
                • Proof-outcome-fail
                • Proof-outcome-error
              • Proof-list-outcome
              • Assertion-list-from
              • Definition-satp
              • Constraint-satp
              • Assignment
              • System-satp
              • Constraint-list-satp
              • Assertion-list
              • Assignment-list
              • Proof-trees
            • Lifting
            • Semantics-shallowly-embedded
          • Abstract-syntax-operations
          • Indexed-names
          • Well-formedness
          • Concrete-syntax
          • R1cs-bridge
          • Parser-interface
        • 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
        • 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
    • Proof-outcome

    Proof-outcome-equiv

    Basic equivalence relation for proof-outcome structures.

    Definitions and Theorems

    Function: proof-outcome-equiv$inline

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

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

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

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

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

    Theorem: proof-outcome-fix-under-proof-outcome-equiv

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

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

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

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

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

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

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

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

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