(lhatom-eval x env) → val
Function:
(defun lhatom-eval (x env) (declare (xargs :guard (and (lhatom-p x) (svex-env-p env)))) (let ((__function__ 'lhatom-eval)) (declare (ignorable __function__)) (lhatom-case x :z (4vec-z) :var (4vec-rsh (2vec x.rsh) (svex-env-fastlookup x.name env)))))
Theorem:
(defthm 4vec-p-of-lhatom-eval (b* ((val (lhatom-eval x env))) (4vec-p val)) :rule-classes :rewrite)
Theorem:
(defthm lhatom-eval-of-lhatom-fix-x (equal (lhatom-eval (lhatom-fix x) env) (lhatom-eval x env)))
Theorem:
(defthm lhatom-eval-lhatom-equiv-congruence-on-x (implies (lhatom-equiv x x-equiv) (equal (lhatom-eval x env) (lhatom-eval x-equiv env))) :rule-classes :congruence)
Theorem:
(defthm lhatom-eval-of-svex-env-fix-env (equal (lhatom-eval x (svex-env-fix env)) (lhatom-eval x env)))
Theorem:
(defthm lhatom-eval-svex-env-equiv-congruence-on-env (implies (svex-env-equiv env env-equiv) (equal (lhatom-eval x env) (lhatom-eval x env-equiv))) :rule-classes :congruence)