Retrieve the state of the network in the system.
(get-network-state systate) → network
This is a thin layer, but it provides slightly more abstraction.
Function:
(defun get-network-state (systate) (declare (xargs :guard (system-statep systate))) (let ((__function__ 'get-network-state)) (declare (ignorable __function__)) (system-state->network systate)))
Theorem:
(defthm message-setp-of-get-network-state (b* ((network (get-network-state systate))) (message-setp network)) :rule-classes :rewrite)
Theorem:
(defthm get-network-state-of-update-validator-state (equal (get-network-state (update-validator-state val vstate systate)) (get-network-state systate)))
Theorem:
(defthm get-network-state-of-system-state-fix-systate (equal (get-network-state (system-state-fix systate)) (get-network-state systate)))
Theorem:
(defthm get-network-state-system-state-equiv-congruence-on-systate (implies (system-state-equiv systate systate-equiv) (equal (get-network-state systate) (get-network-state systate-equiv))) :rule-classes :congruence)