• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Error-checking
        • Apt
        • Abnf
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Prime-field-constraint-systems
        • Soft
        • Bv
        • Imp-language
        • Event-macros
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
          • Primitive-functions
            • Eval-intern-in-package-of-symbol
            • Eval-pkg-witness
            • Eval-pkg-imports
            • Primitive-function-namep
            • Primitive-function-arity
            • Eval-if
            • Eval-bad-atom<=
              • Eval-coerce
              • Eval-<
              • Eval-complex
              • Eval-binary-+
              • Eval-binary-*
              • Eval-equal
              • Eval-cons
              • Eval-symbol-package-name
              • Eval-complex-rationalp
              • Eval-code-char
              • Eval-unary-/
              • Eval-symbol-name
              • Eval-realpart
              • Eval-numerator
              • Eval-imagpart
              • Eval-denominator
              • Eval-char-code
              • Eval-ACL2-numberp
              • Eval-unary--
              • Eval-symbolp
              • Eval-stringp
              • Eval-rationalp
              • Eval-integerp
              • Eval-characterp
              • Eval-consp
              • Eval-cdr
              • Eval-car
            • Translated-terms
            • Values
            • Evaluation
            • Program-equivalence
            • Functions
            • Packages
            • Programs
            • Interpreter
            • Evaluation-states
          • Prime-fields
          • Java
          • C
          • Syntheto
          • Number-theory
          • Cryptography
          • Lists-light
          • File-io-light
          • Json
          • Built-ins
          • Solidity
          • Axe
          • Std-extensions
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Execloader
        • Axe
      • Testing-utilities
      • Math
    • Primitive-functions

    Eval-bad-atom<=

    Evaluation semantics of bad-atom<=.

    Signature
    (eval-bad-atom<= x y) → result
    Arguments
    x — Guard (valuep x).
    y — Guard (valuep y).
    Returns
    result — Type (valuep result).

    The guard of this function requires bad atoms, which we do not model in our formalization. It looks like the raw Lisp code of this function returns nil. So we do the same here.

    Definitions and Theorems

    Function: eval-bad-atom<=

    (defun eval-bad-atom<= (x y)
           (declare (xargs :guard (and (valuep x) (valuep y))))
           (declare (ignore x y))
           (let ((__function__ 'eval-bad-atom<=))
                (declare (ignorable __function__))
                (value-nil)))

    Theorem: valuep-of-eval-bad-atom<=

    (defthm valuep-of-eval-bad-atom<=
            (b* ((result (eval-bad-atom<= x y)))
                (valuep result))
            :rule-classes :rewrite)

    Theorem: eval-bad-atom<=-of-value-fix-x

    (defthm eval-bad-atom<=-of-value-fix-x
            (equal (eval-bad-atom<= (value-fix x) y)
                   (eval-bad-atom<= x y)))

    Theorem: eval-bad-atom<=-value-equiv-congruence-on-x

    (defthm eval-bad-atom<=-value-equiv-congruence-on-x
            (implies (value-equiv x x-equiv)
                     (equal (eval-bad-atom<= x y)
                            (eval-bad-atom<= x-equiv y)))
            :rule-classes :congruence)

    Theorem: eval-bad-atom<=-of-value-fix-y

    (defthm eval-bad-atom<=-of-value-fix-y
            (equal (eval-bad-atom<= x (value-fix y))
                   (eval-bad-atom<= x y)))

    Theorem: eval-bad-atom<=-value-equiv-congruence-on-y

    (defthm eval-bad-atom<=-value-equiv-congruence-on-y
            (implies (value-equiv y y-equiv)
                     (equal (eval-bad-atom<= x y)
                            (eval-bad-atom<= x y-equiv)))
            :rule-classes :congruence)