Number of correct validators in the system.
(number-correct systate) → number
Function:
(defun number-correct (systate) (declare (xargs :guard (system-statep systate))) (let ((__function__ 'number-correct)) (declare (ignorable __function__)) (cardinality (correct-addresses systate))))
Theorem:
(defthm natp-of-number-correct (b* ((number (number-correct systate))) (natp number)) :rule-classes :rewrite)
Theorem:
(defthm number-correct-upper-bound (b* ((common-lisp::?number (number-correct systate))) (<= number (number-validators systate))) :rule-classes :linear)
Theorem:
(defthm number-correct-of-system-state-fix-systate (equal (number-correct (system-state-fix systate)) (number-correct systate)))
Theorem:
(defthm number-correct-system-state-equiv-congruence-on-systate (implies (system-state-equiv systate systate-equiv) (equal (number-correct systate) (number-correct systate-equiv))) :rule-classes :congruence)