Pretty-print a mapping declaration.
(pprint-mappingdecl decl level) → lines
Function:
(defun pprint-mappingdecl (decl level) (declare (xargs :guard (and (mappingdeclp decl) (natp level)))) (let ((__function__ 'pprint-mappingdecl)) (declare (ignorable __function__)) (b* (((mappingdecl decl) decl)) (list (pprint-line (msg "mapping ~@0: ~@1 => ~@2;" (pprint-identifier decl.name) (pprint-type decl.domain-type) (pprint-type decl.range-type)) level)))))
Theorem:
(defthm msg-listp-of-pprint-mappingdecl (b* ((lines (pprint-mappingdecl decl level))) (msg-listp lines)) :rule-classes :rewrite)