Included Books
other
(in-package "ACL2")
local
(local (include-book "../pass1/top"))
local
(local (defthm hack0 (implies (and (real/rationalp x) (real/rationalp y) (real/rationalp z)) (equal (* z (complex x y)) (complex (* x z) (* y z)))) :hints (("Goal" :use ((:instance complex-definition) (:instance complex-definition (x (* x z)) (y (* y z))))) ("Goal'4'" :use ((:instance distributivity (x z) (y x) (z (* #C(0 1) y))))))))
local
(local (defthm hack1 (implies (and (real/rationalp x) (real/rationalp y)) (equal (real/rationalp (complex x y)) (equal y 0)))))
local
(local (defthm step-one (implies (and (real/rationalp a) (not (equal a 0))) (equal (< x y) (cond ((< a 0) (< (* a y) (* a x))) ((< 0 a) (< (* a x) (* a y)))))) :hints (("Goal" :use completion-of-<) ("Subgoal 6.4'''" :use ((:instance completion-of-< (x (complex (* a r) (* a s))) (y 0)))) ("Subgoal 6.3'''" :use ((:instance completion-of-< (x 0) (y (complex (* a r) (* a s)))))) ("Subgoal 6.2'4'" :use ((:instance completion-of-< (x (complex 0 (* a r))) (y 0)))) ("Subgoal 6.1'4'" :use ((:instance completion-of-< (x (complex 0 (* a r))) (y 0)))) ("Subgoal 5.4'''" :use ((:instance completion-of-< (x 0) (y (complex (* a r) (* a s)))))) ("Subgoal 5.3'''" :use ((:instance completion-of-< (x 0) (y (complex (* a r) (* a s)))))) ("Subgoal 5.2'4'" :use ((:instance completion-of-< (x 0) (y (complex 0 (* a r)))))) ("Subgoal 5.1'4'" :use ((:instance completion-of-< (x 0) (y (complex 0 (* a r)))))) ("Subgoal 4.4'''" :use ((:instance completion-of-< (x 0) (y (complex (* a r) (* a s)))))) ("Subgoal 4.3'''" :use ((:instance completion-of-< (x 0) (y (complex (* a r) (* a s)))))) ("Subgoal 4.2'4'" :use ((:instance completion-of-< (x 0) (y (complex 0 (* a r)))))) ("Subgoal 4.1'4'" :use ((:instance completion-of-< (x 0) (y (complex 0 (* a r)))))) ("Subgoal 3.4'''" :use ((:instance completion-of-< (x (complex (* a r) (* a s))) (y 0)))) ("Subgoal 3.3'''" :use ((:instance completion-of-< (x (complex (* a r) (* a s))) (y 0)))) ("Subgoal 3.2'4'" :use ((:instance completion-of-< (x (complex 0 (* a r))) (y 0)))) ("Subgoal 3.1'4'" :use ((:instance completion-of-< (x (complex 0 (* a r))) (y 0)))) ("Subgoal 2.4'5'" :use ((:instance completion-of-< (x (complex (* a r) (* a s))) (y (complex (* a i) (* a j)))))) ("Subgoal 2.3'5'" :use ((:instance completion-of-< (x (complex (* a r) (* a s))) (y (complex (* a i) (* a j)))))) ("Subgoal 2.2'6'" :use ((:instance completion-of-< (x (complex (* a r) (* a s))) (y (complex (* a r) (* a i)))))) ("Subgoal 2.1'6'" :use ((:instance completion-of-< (x (complex (* a r) (* a s))) (y (complex (* a r) (* a i)))))) ("Subgoal 1.4'5'" :use ((:instance completion-of-< (x (complex (* a i) (* a j))) (y (complex (* a r) (* a s)))))) ("Subgoal 1.3'5'" :use ((:instance completion-of-< (x (complex (* a i) (* a j))) (y (complex (* a r) (* a s)))))) ("Subgoal 1.2'6'" :use ((:instance completion-of-< (x (complex (* a r) (* a i))) (y (complex (* a r) (* a s)))))) ("Subgoal 1.1'6'" :use ((:instance completion-of-< (x (complex (* a r) (* a i))) (y (complex (* a r) (* a s)))))))))
helper-0theorem
(defthm helper-0 (implies (not (equal (fix a) 0)) (equal (equal (* a x) (* y a)) (equal (fix x) (fix y)))))
helper-1theorem
(defthm helper-1 (implies (not (equal (fix a) 0)) (equal (equal (* x a) (* y z a)) (equal (fix x) (* y z)))))
helper-2theorem
(defthm helper-2 (implies (not (equal (fix a) 0)) (equal (equal (* w x a) (* y z a)) (equal (* w x) (* y z)))))
helper-3theorem
(defthm helper-3 (implies (not (equal (fix a) 0)) (equal (equal (+ (* w a) (* x a)) (+ (* y a) (* z a))) (equal (+ x w) (+ z y)))) :hints (("Goal" :use (:instance helper-0 (x (+ w x)) (y (+ y z))))))
helper-4theorem
(defthm helper-4 (implies (not (equal (fix a) 0)) (equal (equal (+ (* x a) (* y a)) (* z a)) (equal (+ x y) (fix z)))) :hints (("Goal" :use (:instance helper-0 (x (+ x y)) (y z)))))
helper-5theorem
(defthm helper-5 (implies (not (equal (fix a) 0)) (equal (equal (+ (* w a) (* x a)) (* y z a)) (equal (+ w x) (* y z)))) :hints (("Goal" :use (:instance helper-0 (x (+ w x)) (y (* y z))))))
helper-6theorem
(defthm helper-6 (implies (and (real/rationalp x) (not (equal x 0))) (equal (< (* a x) (* b x)) (if (< 0 x) (< a b) (< b a)))) :hints (("Goal" :use (:instance step-one (x (* a x)) (y (* b x)) (a (/ x))))))
helper-6atheorem
(defthm helper-6a (implies (and (real/rationalp x) (not (equal x 0))) (equal (< (* x a) (* x b)) (if (< 0 x) (< a b) (< b a)))))
helper-7theorem
(defthm helper-7 (implies (and (real/rationalp x) (not (equal x 0))) (equal (< (+ (* a x) (* b x)) (* c x)) (if (< 0 x) (< (+ a b) c) (< c (+ a b))))) :hints (("Goal" :use (:instance step-one (x (+ (* a x) (* b x))) (y (* c x)) (a (/ x))))))
helper-8theorem
(defthm helper-8 (implies (and (real/rationalp x) (not (equal x 0))) (equal (< (* c x) (+ (* a x) (* b x))) (if (< 0 x) (< c (+ a b)) (< (+ a b) c)))) :hints (("Goal" :use (:instance step-one (x (* c x)) (y (+ (* a x) (* b x))) (a (/ x))))))
helper-9theorem
(defthm helper-9 (implies (and (real/rationalp x) (not (equal x 0))) (equal (< (* a x) (* b c x)) (if (< 0 x) (< a (* b c)) (< (* b c) a)))) :hints (("Goal" :use (:instance step-one (x (* a x)) (y (* b c x)) (a (/ x))))))
helper-10theorem
(defthm helper-10 (implies (and (real/rationalp x) (not (equal x 0))) (equal (< (* a b x) (* c x)) (if (< 0 x) (< (* a b) c) (< c (* a b))))) :hints (("Goal" :use (:instance step-one (x (* a b x)) (y (* c x)) (a (/ x))))))
helper-11theorem
(defthm helper-11 (implies (real/rationalp x) (equal (< 0 (* x y)) (cond ((< x 0) (< y 0)) ((< 0 x) (< 0 y)) (t nil)))) :hints (("Goal" :use ((:instance step-one (a (/ x)) (x 0) (y (* x y)))))))
helper-12theorem
(defthm helper-12 (implies (real/rationalp y) (equal (< 0 (* x y)) (cond ((< x 0) (< y 0)) ((< 0 x) (< 0 y)) (t nil)))) :hints (("Goal" :use ((:instance step-one (a (/ y)) (x 0) (y (* x y)))))))