Get the constraints field from a system.
(system->constraints x) → constraints
This is an ordinary field accessor created by fty::defprod.
Function:
(defun system->constraints$inline (x) (declare (xargs :guard (systemp x))) (declare (xargs :guard t)) (let ((__function__ 'system->constraints)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (constraint-list-fix (cdr (std::da-nth 1 (cdr x))))) :exec (cdr (std::da-nth 1 (cdr x))))))
Theorem:
(defthm constraint-listp-of-system->constraints (b* ((constraints (system->constraints$inline x))) (constraint-listp constraints)) :rule-classes :rewrite)
Theorem:
(defthm system->constraints$inline-of-system-fix-x (equal (system->constraints$inline (system-fix x)) (system->constraints$inline x)))
Theorem:
(defthm system->constraints$inline-system-equiv-congruence-on-x (implies (system-equiv x x-equiv) (equal (system->constraints$inline x) (system->constraints$inline x-equiv))) :rule-classes :congruence)