(moddb-mod-badguy moddb) → *
Function:
(defun moddb-mod-badguy (moddb) (declare (xargs :stobjs (moddb))) (declare (xargs :non-executable t)) (declare (xargs :guard t)) (prog2$ (acl2::throw-nonexec-error 'moddb-mod-badguy (list moddb)) (let ((__function__ 'moddb-mod-badguy)) (declare (ignorable __function__)) (let ((moddb (moddb-fix moddb))) (moddb-find-bad-mod (moddb->nmods moddb) moddb)))))
Theorem:
(defthm moddb-mod-badguy-of-moddb-fix-moddb (equal (moddb-mod-badguy (moddb-fix moddb)) (moddb-mod-badguy moddb)))
Theorem:
(defthm moddb-mod-badguy-moddb-equiv-congruence-on-moddb (implies (moddb-equiv moddb moddb-equiv) (equal (moddb-mod-badguy moddb) (moddb-mod-badguy moddb-equiv))) :rule-classes :congruence)
Theorem:
(defthm moddb-mods-not-ok (implies (acl2::rewriting-positive-literal (cons 'moddb-mods-ok (cons moddb 'nil))) (equal (moddb-mods-ok moddb) (let ((idx (moddb-mod-badguy moddb))) (or (>= (nfix idx) (nfix (nth *moddb->nmods* moddb))) (moddb-mod-ok idx moddb))))))