• 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
                • Flatten-statements/branches
                • Simplify-flattened-if
                • Flatten-expression
                • Fenv-option
                • Flatten-fundecl
                • Fenv-const-add
                • Fenv
                  • Fenv-fix
                  • Fenvp
                  • Fenv-equiv
                    • Make-fenv
                    • Fenv->constants
                    • Change-fenv
                    • Fenv->curve
                  • Fenv-const-lookup
                  • Init-fenv
                  • Const-fenv
                • Abstract-syntax
                • Dynamic-semantics
                • Compilation
                • Static-semantics
                • 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
    • Fenv

    Fenv-equiv

    Basic equivalence relation for fenv structures.

    Definitions and Theorems

    Function: fenv-equiv$inline

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

    Theorem: fenv-equiv-is-an-equivalence

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

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

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

    Theorem: fenv-fix-under-fenv-equiv

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

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

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

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

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

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

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

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

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