Filtering...

defmin-int-tests

books/std/util/defmin-int-tests

Included Books

other
(in-package "ACL2")
include-book
(include-book "defmin-int")
other
(defmin-int min-geq-10 i nil (>= i 10))
min-geq-10.elementp-of-100theorem
(defthm min-geq-10.elementp-of-100
  (min-geq-10.elementp 100))
min-geq-10.lboundp-of-0theorem
(defthm min-geq-10.lboundp-of-0
  (min-geq-10.lboundp 0)
  :hints (("Goal" :in-theory (enable min-geq-10.lboundp))))
min-geq-10.existsp-via-100-and-0theorem
(defthm min-geq-10.existsp-via-100-and-0
  (min-geq-10.existsp)
  :hints (("Goal" :use (:instance min-geq-10.existsp-when-nonempty-and-bounded
       (i0 100)
       (i1 0)))))
min-geq-10.lboundp-of-10theorem
(defthm min-geq-10.lboundp-of-10
  (min-geq-10.lboundp 10)
  :hints (("Goal" :in-theory (enable min-geq-10.lboundp))))
min-geq-10-is-10theorem
(defthm min-geq-10-is-10
  (equal (min-geq-10) 10)
  :hints (("Goal" :use (:instance min-geq-10.equal-when-member-and-lbound (i 10)))))
other
(defmin-int min-geq-x y (x) (>= y x) :guard (integerp x))
min-geq-x.elementp-of-xtheorem
(defthm min-geq-x.elementp-of-x
  (min-geq-x.elementp x x)
  :hints (("Goal" :in-theory (enable min-geq-x.elementp))))
min-geq-x.lboundp-of-xtheorem
(defthm min-geq-x.lboundp-of-x
  (implies (integerp x) (min-geq-x.lboundp x x))
  :hints (("Goal" :in-theory (enable min-geq-x.lboundp min-geq-x.elementp))))
min-geq-x.existsp-via-x-and-xtheorem
(defthm min-geq-x.existsp-via-x-and-x
  (implies (integerp x) (min-geq-x.existsp x))
  :hints (("Goal" :use (:instance min-geq-x.existsp-when-nonempty-and-bounded
       (y0 x)
       (y1 x)))))
min-geq-x-is-xtheorem
(defthm min-geq-x-is-x
  (implies (integerp x) (equal (min-geq-x x) x))
  :hints (("Goal" :use (:instance min-geq-x.equal-when-member-and-lbound (y x)))))