Filtering...

numerator

books/rtl/rel9/arithmetic/numerator

Included Books

other
(in-package "ACL2")
local
(local (include-book "ground-zero"))
local
(local (include-book "fp2"))
local
(local (include-book "denominator"))
local
(local (include-book "predicate"))
numerator-of-non-rational-is-zerotheorem
(defthm numerator-of-non-rational-is-zero
  (implies (not (rationalp x)) (equal (numerator x) 0)))
numerator-negative-integer-type-prescriptiontheorem
(defthm numerator-negative-integer-type-prescription
  (implies (and (< x 0) (case-split (rationalp x)))
    (and (< (numerator x) 0) (integerp (numerator x))))
  :rule-classes (:type-prescription))
numerator-positive-integer-type-prescriptiontheorem
(defthm numerator-positive-integer-type-prescription
  (implies (and (< 0 x) (case-split (rationalp x)))
    (and (< 0 (numerator x)) (integerp (numerator x))))
  :rule-classes (:type-prescription))
numerator-non-positive-integer-type-prescriptiontheorem
(defthm numerator-non-positive-integer-type-prescription
  (implies (<= x 0)
    (and (<= (numerator x) 0) (integerp (numerator x))))
  :rule-classes (:type-prescription))
numerator-non-negative-integer-type-prescriptiontheorem
(defthm numerator-non-negative-integer-type-prescription
  (implies (<= 0 x)
    (and (<= 0 (numerator x)) (integerp (numerator x))))
  :rule-classes (:type-prescription))
numerator-less-than-zerotheorem
(defthm numerator-less-than-zero
  (implies (case-split (rationalp x))
    (equal (< (numerator x) 0) (< x 0)))
  :hints (("goal" :in-theory (disable rational-implies2)
     :use (rational-implies2))))
numerator-greater-than-zerotheorem
(defthm numerator-greater-than-zero
  (implies (case-split (rationalp x))
    (equal (< 0 (numerator x)) (< 0 x)))
  :hints (("goal" :in-theory (disable rational-implies2)
     :use (rational-implies2))))
numerator-equal-zerotheorem
(defthm numerator-equal-zero
  (implies (case-split (rationalp x))
    (equal (equal (numerator x) 0) (equal x 0))))
numerator-of-integer-is-the-integer-itselftheorem
(defthm numerator-of-integer-is-the-integer-itself
  (implies (integerp x) (equal (numerator x) x))
  :hints (("Goal" :in-theory (disable rational-implies2)
     :use (rational-implies2))))