(update-moddb->nmods n moddb) → moddb
Function:
(defun update-moddb->nmods$inline (n moddb) (declare (xargs :stobjs (moddb))) (declare (xargs :guard (natp n))) (let ((__function__ 'update-moddb->nmods)) (declare (ignorable __function__)) (mbe :logic (non-exec (update-nth *moddb->nmods* (nfix n) (moddb-fix moddb))) :exec (update-moddb->nmods1 n moddb))))
Theorem:
(defthm update-moddb->nmods$inline-of-nfix-n (equal (update-moddb->nmods$inline (nfix n) moddb) (update-moddb->nmods$inline n moddb)))
Theorem:
(defthm update-moddb->nmods$inline-nat-equiv-congruence-on-n (implies (nat-equiv n n-equiv) (equal (update-moddb->nmods$inline n moddb) (update-moddb->nmods$inline n-equiv moddb))) :rule-classes :congruence)
Theorem:
(defthm update-moddb->nmods$inline-of-moddb-fix-moddb (equal (update-moddb->nmods$inline n (moddb-fix moddb)) (update-moddb->nmods$inline n moddb)))
Theorem:
(defthm update-moddb->nmods$inline-moddb-equiv-congruence-on-moddb (implies (moddb-equiv moddb moddb-equiv) (equal (update-moddb->nmods$inline n moddb) (update-moddb->nmods$inline n moddb-equiv))) :rule-classes :congruence)