Some theorems about the built-in function append.
The theorem
Theorem:
(defthm equal-of-appends-decompose (implies (equal (len a) (len b)) (equal (equal (append a a1) (append b b1)) (and (equal (true-list-fix a) (true-list-fix b)) (equal a1 b1)))))
Theorem:
(defthm append-when-not-consp-2 (implies (and (true-listp y) (not (consp y))) (equal (append x y) (true-list-fix x))))
Theorem:
(defthm equal-of-append-and-left (implies (and (true-listp a) (true-listp b)) (equal (equal (append a b) a) (not (consp b)))))