Wrapper for print-object$ that ensures serialize compression is enabled (if supported).
(print-compressed obj &optional (channel 'channel) (state 'state)) → state
When writing to an
Using
Function:
(defun print-compressed-fn (obj channel state) (declare (xargs :stobjs (state))) (declare (xargs :guard (and (symbolp channel) (open-output-channel-p channel :object state)))) (let ((__function__ 'print-compressed)) (declare (ignorable __function__)) (print-legibly-aux obj t channel state)))
Theorem:
(defthm state-p1-of-print-compressed (let ((ret (print-compressed obj channel state))) (implies (and (state-p1 state) (symbolp channel) (open-output-channel-p1 channel :object state)) (state-p1 ret))))
Theorem:
(defthm open-output-channel-p1-of-print-compressed (let ((ret (print-compressed obj channel state))) (implies (and (state-p1 state) (symbolp channel) (open-output-channel-p1 channel :object state)) (open-output-channel-p1 channel :object ret))))