Number of frames in the call stack of a computation state.
(compustate-frames-number compst) → n
The theorem
Function:
(defun compustate-frames-number (compst) (declare (xargs :guard (compustatep compst))) (let ((__function__ 'compustate-frames-number)) (declare (ignorable __function__)) (len (compustate->frames compst))))
Theorem:
(defthm natp-of-compustate-frames-number (b* ((n (compustate-frames-number compst))) (natp n)) :rule-classes :rewrite)
Theorem:
(defthm compustate-frames-number-of-compustate-same-frames (equal (compustate-frames-number (compustate static (compustate->frames compst) heap)) (compustate-frames-number compst)))
Theorem:
(defthm compustate-frames-number-of-compustate-fix-compst (equal (compustate-frames-number (compustate-fix compst)) (compustate-frames-number compst)))
Theorem:
(defthm compustate-frames-number-compustate-equiv-congruence-on-compst (implies (compustate-equiv compst compst-equiv) (equal (compustate-frames-number compst) (compustate-frames-number compst-equiv))) :rule-classes :congruence)