Get the constraints field from a svstmt-constraints.
(svstmt-constraints->constraints x) → constraints
This is an ordinary field accessor created by defprod.
Function:
(defun svstmt-constraints->constraints$inline (x) (declare (xargs :guard (svstmt-p x))) (declare (xargs :guard (equal (svstmt-kind x) :constraints))) (let ((__function__ 'svstmt-constraints->constraints)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (svstmt-kind x) :constraints) x))) (constraintlist-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm constraintlist-p-of-svstmt-constraints->constraints (b* ((constraints (svstmt-constraints->constraints$inline x))) (constraintlist-p constraints)) :rule-classes :rewrite)
Theorem:
(defthm svstmt-constraints->constraints$inline-of-svstmt-fix-x (equal (svstmt-constraints->constraints$inline (svstmt-fix x)) (svstmt-constraints->constraints$inline x)))
Theorem:
(defthm svstmt-constraints->constraints$inline-svstmt-equiv-congruence-on-x (implies (svstmt-equiv x x-equiv) (equal (svstmt-constraints->constraints$inline x) (svstmt-constraints->constraints$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm svstmt-constraints->constraints-when-wrong-kind (implies (not (equal (svstmt-kind x) :constraints)) (equal (svstmt-constraints->constraints x) (constraintlist-fix nil))))