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