Filtering...

mini-theories

books/arithmetic-3/bind-free/mini-theories

Included Books

other
(in-package "ACL2")
local
(local (include-book "mini-theories-helper"))
|(- x)|theorem
(defthm |(- x)| (equal (- x) (* -1 x)))
in-theory
(in-theory (disable |(- x)|))
other
(theory-invariant (not (and (active-runep '(:rewrite |(* -1 x)|))
      (active-runep '(:rewrite |(- x)|))))
  :error t)
|(/ x)|theorem
(defthm |(/ x)|
  (equal (/ x) (expt x -1))
  :hints (("Goal" :expand (expt x -1))))
in-theory
(in-theory (disable |(/ x)|))
other
(theory-invariant (not (and (active-runep '(:rewrite |(expt x -1)|))
      (active-runep '(:rewrite |(/ x)|))))
  :error t)
rewrite-linear-equalities-to-ifftheorem
(defthm rewrite-linear-equalities-to-iff
  (equal (equal (< w x) (< y z)) (iff (< w x) (< y z))))
expt-type-prescription-negative-base-even-exponenttheorem
(defthm expt-type-prescription-negative-base-even-exponent
  (implies (and (< r 0)
      (rationalp r)
      (integerp i)
      (integerp (* 1/2 i)))
    (< 0 (expt r i)))
  :rule-classes (:type-prescription :generalize))
expt-type-prescription-negative-base-odd-exponenttheorem
(defthm expt-type-prescription-negative-base-odd-exponent
  (implies (and (< r 0)
      (rationalp r)
      (integerp i)
      (not (integerp (* 1/2 i))))
    (< (expt r i) 0))
  :rule-classes (:type-prescription :generalize))
expt-type-prescription-nonpositive-base-even-exponenttheorem
(defthm expt-type-prescription-nonpositive-base-even-exponent
  (implies (and (<= r 0)
      (rationalp r)
      (integerp i)
      (integerp (* 1/2 i)))
    (<= 0 (expt r i)))
  :rule-classes (:type-prescription :generalize)
  :hints (("Goal" :use ((:instance expt-type-prescription-negative-base-even-exponent)))))
expt-type-prescription-nonpositive-base-odd-exponenttheorem
(defthm expt-type-prescription-nonpositive-base-odd-exponent
  (implies (and (<= r 0)
      (rationalp r)
      (integerp i)
      (not (integerp (* 1/2 i))))
    (<= (expt r i) 0))
  :rule-classes (:type-prescription :generalize)
  :hints (("Goal" :use ((:instance expt-type-prescription-negative-base-odd-exponent)))))
expt-negative-base-even-exponenttheorem
(defthm expt-negative-base-even-exponent
  (implies (and (rationalp r) (integerp i) (integerp (* 1/2 i)))
    (equal (expt (* -1 r) i) (expt r i))))
expt-negative-base-odd-exponenttheorem
(defthm expt-negative-base-odd-exponent
  (implies (and (rationalp r) (integerp i) (not (integerp (* 1/2 i))))
    (equal (expt (* -1 r) i) (* -1 (expt r i)))))