Set the error flag in the state.
Function:
(defun error32 (stat) (declare (xargs :guard (state32p stat))) (let ((__function__ 'error32)) (declare (ignorable __function__)) (change-state32 stat :error t)))
Theorem:
(defthm state32p-of-error32 (b* ((new-stat (error32 stat))) (state32p new-stat)) :rule-classes :rewrite)
Theorem:
(defthm error32-of-state32-fix-stat (equal (error32 (state32-fix stat)) (error32 stat)))
Theorem:
(defthm error32-state32-equiv-congruence-on-stat (implies (state32-equiv stat stat-equiv) (equal (error32 stat) (error32 stat-equiv))) :rule-classes :congruence)