(moddb-mod-ninsts modidx moddb) → ninsts
Function:
(defun moddb-mod-ninsts (modidx moddb) (declare (xargs :stobjs (moddb))) (declare (xargs :guard (and (natp modidx) (moddb-basics-ok moddb)))) (declare (xargs :guard (< modidx (moddb->nmods moddb)))) (let ((__function__ 'moddb-mod-ninsts)) (declare (ignorable __function__)) (b* (((unless (mbt (< (lnfix modidx) (moddb->nmods moddb)))) 0) ((stobj-get ninsts) ((elab-mod (moddb->modsi modidx moddb))) (elab-mod-ninsts elab-mod))) ninsts)))
Theorem:
(defthm natp-of-moddb-mod-ninsts (b* ((ninsts (moddb-mod-ninsts modidx moddb))) (natp ninsts)) :rule-classes :type-prescription)
Theorem:
(defthm moddb-mod-ninsts-of-nfix-modidx (equal (moddb-mod-ninsts (nfix modidx) moddb) (moddb-mod-ninsts modidx moddb)))
Theorem:
(defthm moddb-mod-ninsts-nat-equiv-congruence-on-modidx (implies (nat-equiv modidx modidx-equiv) (equal (moddb-mod-ninsts modidx moddb) (moddb-mod-ninsts modidx-equiv moddb))) :rule-classes :congruence)
Theorem:
(defthm moddb-mod-ninsts-of-moddb-fix-moddb (equal (moddb-mod-ninsts modidx (moddb-fix moddb)) (moddb-mod-ninsts modidx moddb)))
Theorem:
(defthm moddb-mod-ninsts-moddb-equiv-congruence-on-moddb (implies (moddb-equiv moddb moddb-equiv) (equal (moddb-mod-ninsts modidx moddb) (moddb-mod-ninsts modidx moddb-equiv))) :rule-classes :congruence)