Function:
(defun lhrange->svex (x) (declare (xargs :guard (lhrange-p x))) (let ((__function__ 'lhrange->svex)) (declare (ignorable __function__)) (b* (((lhrange x) x)) (svcall* concat (svex-quote (2vec x.w)) (lhatom->svex x.atom) (svex-quote (4vec-z))))))
Theorem:
(defthm svex-p-of-lhrange->svex (b* ((s (lhrange->svex x))) (svex-p s)) :rule-classes :rewrite)
Theorem:
(defthm lhrange->svex-of-lhrange-fix-x (equal (lhrange->svex (lhrange-fix x)) (lhrange->svex x)))
Theorem:
(defthm lhrange->svex-lhrange-equiv-congruence-on-x (implies (lhrange-equiv x x-equiv) (equal (lhrange->svex x) (lhrange->svex x-equiv))) :rule-classes :congruence)
Theorem:
(defthm lhrange->svex-correct (equal (svex-eval (lhrange->svex x) env) (lhrange-eval x env)))