Expands a given context list with the side-conditions from the term
(context-from-rp term context) → *
Function:
(defun context-from-rp (term context) (declare (xargs :guard t)) (let ((__function__ 'context-from-rp)) (declare (ignorable __function__)) (if (is-rp term) (let ((type (car (cdr (car (cdr term))))) (x (car (cdr (cdr term))))) (b* ((rcontext (context-from-rp x context))) (cons (cons type (cons (ex-from-rp x) 'nil)) rcontext))) context)))