Retrieve the value of a variable.
(read-env ident env) → value?
A result of
Function:
(defun read-env (ident env) (declare (xargs :guard (and (identp ident) (envp env)))) (let ((__function__ 'read-env)) (declare (ignorable __function__)) (b* (((when (endp env)) nil) (lookup (omap::assoc ident (env-block-fix (first env))))) (if lookup (cdr lookup) (read-env ident (rest env))))))
Theorem:
(defthm value-optionp-of-read-env (b* ((value? (read-env ident env))) (c::value-optionp value?)) :rule-classes :rewrite)