Function:
(defun svstate-fork (x) (declare (xargs :guard (svstate-p x))) (let ((__function__ 'svstate-fork)) (declare (ignorable __function__)) (b* (((svstate x))) (change-svstate x :blkst (svstack-fork x.blkst) :nonblkst (fast-alist-fork x.nonblkst nil)))))
Theorem:
(defthm svstate-p-of-svstate-fork (b* ((new-x (svstate-fork x))) (svstate-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm svstate-fork-blkst-len (b* ((?new-x (svstate-fork x))) (equal (len (svstate->blkst new-x)) (len (svstate->blkst x)))))
Theorem:
(defthm vars-of-svstate-fork (b* ((?new-x (svstate-fork x))) (implies (not (member v (svstate-vars x))) (not (member v (svstate-vars new-x))))))
Theorem:
(defthm svstate-fork-of-svstate-fix-x (equal (svstate-fork (svstate-fix x)) (svstate-fork x)))
Theorem:
(defthm svstate-fork-svstate-equiv-congruence-on-x (implies (svstate-equiv x x-equiv) (equal (svstate-fork x) (svstate-fork x-equiv))) :rule-classes :congruence)