Generate the hints to prove the theorem that says that the new function maps values in the new representation to values in the old representation.
(expdata-gen-newp-of-new-thm-hints appcond-thm-names old$ arg-surjmaps res-surjmaps new-to-old$ wrld) → hints
Function:
(defun expdata-gen-newp-of-new-thm-hints (appcond-thm-names old$ arg-surjmaps res-surjmaps new-to-old$ wrld) (declare (xargs :guard (and (symbol-symbol-alistp appcond-thm-names) (symbolp old$) (expdata-symbol-surjmap-alistp arg-surjmaps) (expdata-pos-surjmap-alistp res-surjmaps) (symbolp new-to-old$) (plist-worldp wrld)))) (declare (xargs :guard (consp res-surjmaps))) (let ((__function__ 'expdata-gen-newp-of-new-thm-hints)) (declare (ignorable __function__)) (b* ((oldp-of-old (cdr (assoc-eq :oldp-of-old appcond-thm-names))) (instances-back-image (expdata-gen-back-image-instances-to-x1...xn arg-surjmaps wrld)) (instance-oldp-of-old (expdata-gen-lemma-instance-x1...xn-to-back-of-x1...xn oldp-of-old old$ arg-surjmaps wrld)) (x1...xn (formals old$ wrld)) (old-call (fcons-term old$ x1...xn)) (back-of-x1...xn (expdata-gen-back-of-terms x1...xn arg-surjmaps)) (old-call-of-back-x1...xn (subcor-var x1...xn back-of-x1...xn old-call)) (instances-forth-image (if (= (len res-surjmaps) 1) (b* ((res-surjmap (cdar res-surjmaps)) (forth-image-res (expdata-surjmap->forth-image res-surjmap)) (var (expdata-formal-of-forth res-surjmap wrld))) (cons (cons ':instance (cons forth-image-res (cons ':extra-bindings-ok (cons (cons var (cons old-call-of-back-x1...xn 'nil)) 'nil)))) 'nil)) (expdata-gen-forth-image-instances-to-mv-nth old-call-of-back-x1...xn res-surjmaps wrld)))) (cons (cons '"Goal" (cons ':in-theory (cons 'nil (cons ':use (cons (append instances-back-image (cons instance-oldp-of-old (append instances-forth-image (cons new-to-old$ 'nil)))) 'nil))))) 'nil))))
Theorem:
(defthm true-listp-of-expdata-gen-newp-of-new-thm-hints (b* ((hints (expdata-gen-newp-of-new-thm-hints appcond-thm-names old$ arg-surjmaps res-surjmaps new-to-old$ wrld))) (true-listp hints)) :rule-classes :rewrite)