Construct an XDOC tree for an HTML description list
See the
Macro:
(defmacro dl (&rest args) (mv-let (trees attributes) (partition-macro-args args 'dl) (let ((attributes (keyword-macro-args-to-terms attributes))) (list 'dl-fn (cons 'list attributes) (cons 'list trees)))))
Function:
(defun dl-fn (attributes trees) (declare (xargs :guard (and (keyword-tree-alistp attributes) (tree-listp trees)))) (make-tree-tag :dl attributes trees))
Theorem:
(defthm stringp-of-dl (equal (treep (dl-fn attributes trees)) (and (keyword-tree-alistp attributes) (tree-listp trees))))