Replace occurrences of a variable within an svex with an svex.
Theorem:
(defthm return-type-of-svex-replace-var.xa (b* ((?xa (svex-replace-var x var repl))) (equal xa (svex-compose x (list (cons (svar-fix var) repl))))) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-svexlist-replace-var.xa (b* ((?xa (svexlist-replace-var x var repl))) (equal xa (svexlist-compose x (list (cons (svar-fix var) repl))))) :rule-classes :rewrite)