Alists from package names (strings) to lists of Java fields.
This is an ordinary std::defalist.
Function:
(defun string-jfieldlist-alistp (x) (declare (xargs :guard t)) (if (consp x) (and (consp (car x)) (stringp (caar x)) (jfield-listp (cdar x)) (string-jfieldlist-alistp (cdr x))) (null x)))
Function:
(defun string-jfieldlist-alistp (x) (declare (xargs :guard t)) (if (consp x) (and (consp (car x)) (stringp (caar x)) (jfield-listp (cdar x)) (string-jfieldlist-alistp (cdr x))) (null x)))
Theorem:
(defthm string-jfieldlist-alistp-of-revappend (equal (string-jfieldlist-alistp (revappend acl2::x acl2::y)) (and (string-jfieldlist-alistp (list-fix acl2::x)) (string-jfieldlist-alistp acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-remove (implies (string-jfieldlist-alistp acl2::x) (string-jfieldlist-alistp (remove acl2::a acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-last (implies (string-jfieldlist-alistp (double-rewrite acl2::x)) (string-jfieldlist-alistp (last acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-nthcdr (implies (string-jfieldlist-alistp (double-rewrite acl2::x)) (string-jfieldlist-alistp (nthcdr acl2::n acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-butlast (implies (string-jfieldlist-alistp (double-rewrite acl2::x)) (string-jfieldlist-alistp (butlast acl2::x acl2::n))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-update-nth (implies (string-jfieldlist-alistp (double-rewrite acl2::x)) (iff (string-jfieldlist-alistp (update-nth acl2::n acl2::y acl2::x)) (and (and (consp acl2::y) (stringp (car acl2::y)) (jfield-listp (cdr acl2::y))) (or (<= (nfix acl2::n) (len acl2::x)) (and (consp nil) (stringp (car nil)) (jfield-listp (cdr nil))))))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-repeat (iff (string-jfieldlist-alistp (repeat acl2::n acl2::x)) (or (and (consp acl2::x) (stringp (car acl2::x)) (jfield-listp (cdr acl2::x))) (zp acl2::n))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-take (implies (string-jfieldlist-alistp (double-rewrite acl2::x)) (iff (string-jfieldlist-alistp (take acl2::n acl2::x)) (or (and (consp nil) (stringp (car nil)) (jfield-listp (cdr nil))) (<= (nfix acl2::n) (len acl2::x))))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-union-equal (equal (string-jfieldlist-alistp (union-equal acl2::x acl2::y)) (and (string-jfieldlist-alistp (list-fix acl2::x)) (string-jfieldlist-alistp (double-rewrite acl2::y)))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-intersection-equal-2 (implies (string-jfieldlist-alistp (double-rewrite acl2::y)) (string-jfieldlist-alistp (intersection-equal acl2::x acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-intersection-equal-1 (implies (string-jfieldlist-alistp (double-rewrite acl2::x)) (string-jfieldlist-alistp (intersection-equal acl2::x acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-set-difference-equal (implies (string-jfieldlist-alistp acl2::x) (string-jfieldlist-alistp (set-difference-equal acl2::x acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-when-subsetp-equal (and (implies (and (subsetp-equal acl2::x acl2::y) (string-jfieldlist-alistp acl2::y)) (equal (string-jfieldlist-alistp acl2::x) (true-listp acl2::x))) (implies (and (string-jfieldlist-alistp acl2::y) (subsetp-equal acl2::x acl2::y)) (equal (string-jfieldlist-alistp acl2::x) (true-listp acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-rcons (iff (string-jfieldlist-alistp (rcons acl2::a acl2::x)) (and (and (consp acl2::a) (stringp (car acl2::a)) (jfield-listp (cdr acl2::a))) (string-jfieldlist-alistp (list-fix acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-append (equal (string-jfieldlist-alistp (append acl2::a acl2::b)) (and (string-jfieldlist-alistp (list-fix acl2::a)) (string-jfieldlist-alistp acl2::b))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-rev (equal (string-jfieldlist-alistp (rev acl2::x)) (string-jfieldlist-alistp (list-fix acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-duplicated-members (implies (string-jfieldlist-alistp acl2::x) (string-jfieldlist-alistp (duplicated-members acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-difference (implies (string-jfieldlist-alistp acl2::x) (string-jfieldlist-alistp (difference acl2::x acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-intersect-2 (implies (string-jfieldlist-alistp acl2::y) (string-jfieldlist-alistp (intersect acl2::x acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-intersect-1 (implies (string-jfieldlist-alistp acl2::x) (string-jfieldlist-alistp (intersect acl2::x acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-union (iff (string-jfieldlist-alistp (union acl2::x acl2::y)) (and (string-jfieldlist-alistp (sfix acl2::x)) (string-jfieldlist-alistp (sfix acl2::y)))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-mergesort (iff (string-jfieldlist-alistp (mergesort acl2::x)) (string-jfieldlist-alistp (list-fix acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-delete (implies (string-jfieldlist-alistp acl2::x) (string-jfieldlist-alistp (delete acl2::k acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-insert (iff (string-jfieldlist-alistp (insert acl2::a acl2::x)) (and (string-jfieldlist-alistp (sfix acl2::x)) (and (consp acl2::a) (stringp (car acl2::a)) (jfield-listp (cdr acl2::a))))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-sfix (iff (string-jfieldlist-alistp (sfix acl2::x)) (or (string-jfieldlist-alistp acl2::x) (not (setp acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-list-fix (implies (string-jfieldlist-alistp acl2::x) (string-jfieldlist-alistp (list-fix acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm true-listp-when-string-jfieldlist-alistp-compound-recognizer (implies (string-jfieldlist-alistp acl2::x) (true-listp acl2::x)) :rule-classes :compound-recognizer)
Theorem:
(defthm string-jfieldlist-alistp-when-not-consp (implies (not (consp acl2::x)) (equal (string-jfieldlist-alistp acl2::x) (not acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-cdr-when-string-jfieldlist-alistp (implies (string-jfieldlist-alistp (double-rewrite acl2::x)) (string-jfieldlist-alistp (cdr acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-cons (equal (string-jfieldlist-alistp (cons acl2::a acl2::x)) (and (and (consp acl2::a) (stringp (car acl2::a)) (jfield-listp (cdr acl2::a))) (string-jfieldlist-alistp acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-make-fal (implies (and (string-jfieldlist-alistp acl2::x) (string-jfieldlist-alistp acl2::y)) (string-jfieldlist-alistp (make-fal acl2::x acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm jfield-listp-of-cdr-when-member-equal-of-string-jfieldlist-alistp (and (implies (and (string-jfieldlist-alistp acl2::x) (member-equal acl2::a acl2::x)) (jfield-listp (cdr acl2::a))) (implies (and (member-equal acl2::a acl2::x) (string-jfieldlist-alistp acl2::x)) (jfield-listp (cdr acl2::a)))) :rule-classes ((:rewrite)))
Theorem:
(defthm stringp-of-car-when-member-equal-of-string-jfieldlist-alistp (and (implies (and (string-jfieldlist-alistp acl2::x) (member-equal acl2::a acl2::x)) (stringp (car acl2::a))) (implies (and (member-equal acl2::a acl2::x) (string-jfieldlist-alistp acl2::x)) (stringp (car acl2::a)))) :rule-classes ((:rewrite)))
Theorem:
(defthm consp-when-member-equal-of-string-jfieldlist-alistp (implies (and (string-jfieldlist-alistp acl2::x) (member-equal acl2::a acl2::x)) (consp acl2::a)) :rule-classes ((:rewrite :backchain-limit-lst (0 0)) (:rewrite :backchain-limit-lst (0 0) :corollary (implies (if (member-equal acl2::a acl2::x) (string-jfieldlist-alistp acl2::x) 'nil) (consp acl2::a)))))
Theorem:
(defthm string-jfieldlist-alistp-of-remove-assoc (implies (string-jfieldlist-alistp acl2::x) (string-jfieldlist-alistp (remove-assoc-equal acl2::name acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm jfield-listp-of-cdr-of-assoc-when-string-jfieldlist-alistp (implies (string-jfieldlist-alistp acl2::x) (jfield-listp (cdr (assoc-equal acl2::k acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-put-assoc (implies (and (string-jfieldlist-alistp acl2::x)) (iff (string-jfieldlist-alistp (put-assoc-equal acl2::name acl2::val acl2::x)) (and (stringp acl2::name) (jfield-listp acl2::val)))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-fast-alist-clean (implies (string-jfieldlist-alistp acl2::x) (string-jfieldlist-alistp (fast-alist-clean acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-hons-shrink-alist (implies (and (string-jfieldlist-alistp acl2::x) (string-jfieldlist-alistp acl2::y)) (string-jfieldlist-alistp (hons-shrink-alist acl2::x acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-jfieldlist-alistp-of-hons-acons (equal (string-jfieldlist-alistp (hons-acons acl2::a acl2::n acl2::x)) (and (stringp acl2::a) (jfield-listp acl2::n) (string-jfieldlist-alistp acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm jfield-listp-of-cdr-of-hons-assoc-equal-when-string-jfieldlist-alistp (implies (string-jfieldlist-alistp acl2::x) (jfield-listp (cdr (hons-assoc-equal acl2::k acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm alistp-when-string-jfieldlist-alistp-rewrite (implies (string-jfieldlist-alistp acl2::x) (alistp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm alistp-when-string-jfieldlist-alistp (implies (string-jfieldlist-alistp acl2::x) (alistp acl2::x)) :rule-classes :tau-system)
Theorem:
(defthm stringp-of-caar-when-string-jfieldlist-alistp (implies (string-jfieldlist-alistp acl2::x) (iff (stringp (caar acl2::x)) (consp acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm jfield-listp-of-cdar-when-string-jfieldlist-alistp (implies (string-jfieldlist-alistp acl2::x) (jfield-listp (cdar acl2::x))) :rule-classes ((:rewrite)))