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.
(isodata-gen-newp-of-new-thm-hints appcond-thm-names old$ arg-isomaps res-isomaps new-to-old$ wrld) → hints
Function:
(defun isodata-gen-newp-of-new-thm-hints (appcond-thm-names old$ arg-isomaps res-isomaps new-to-old$ wrld) (declare (xargs :guard (and (symbol-symbol-alistp appcond-thm-names) (symbolp old$) (isodata-symbol-isomap-alistp arg-isomaps) (isodata-pos-isomap-alistp res-isomaps) (symbolp new-to-old$) (plist-worldp wrld)))) (declare (xargs :guard (consp res-isomaps))) (let ((__function__ 'isodata-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 (isodata-gen-back-image-instances-to-x1...xn arg-isomaps wrld)) (instance-oldp-of-old (isodata-gen-lemma-instance-x1...xn-to-back-of-x1...xn oldp-of-old old$ arg-isomaps wrld)) (x1...xn (formals old$ wrld)) (old-call (fcons-term old$ x1...xn)) (back-of-x1...xn (isodata-gen-back-of-terms x1...xn arg-isomaps)) (old-call-of-back-x1...xn (subcor-var x1...xn back-of-x1...xn old-call)) (instances-forth-image (if (= (len res-isomaps) 1) (b* ((res-isomap (cdar res-isomaps)) (forth-image-res (isodata-isomap->forth-image res-isomap)) (var (isodata-formal-of-forth res-isomap 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)) (isodata-gen-forth-image-instances-to-mv-nth old-call-of-back-x1...xn res-isomaps 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-isodata-gen-newp-of-new-thm-hints (b* ((hints (isodata-gen-newp-of-new-thm-hints appcond-thm-names old$ arg-isomaps res-isomaps new-to-old$ wrld))) (true-listp hints)) :rule-classes :rewrite)