• Top
    • Documentation
      • Xdoc
        • Undocumented
        • Save
        • Defsection
        • Markup
        • Preprocessor
        • Emacs-links
        • Defxdoc
        • Katex-integration
        • Constructors
          • Primitive-constructors
          • Composite-constructors
          • Constructor-preliminaries
          • Trees
            • Tree-to-string
            • Treep
            • Make-tree-dir/&&
            • Make-tree-tag
          • Entities
          • Save-rendered
          • Add-resource-directory
          • Defxdoc+
          • Testing
          • Order-subtopics
          • Save-rendered-event
          • Archive-matching-topics
          • Archive-xdoc
          • Xdoc-extend
          • Missing-parents
          • Set-default-parents
          • Defpointer
          • Defxdoc-raw
          • Xdoc-tests
          • Xdoc-prepend
          • Defsection-progn
          • Gen-xdoc-for-file
        • ACL2-doc
        • Pointers
        • Doc
        • Documentation-copyright
        • Args
        • ACL2-doc-summary
        • Finding-documentation
        • Broken-link
      • Books
      • Recursion-and-induction
      • Boolean-reasoning
      • Debugging
      • Projects
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Testing-utilities
      • Math
    • Trees

    Make-tree-tag

    Construct a non-leaf XDOC tree with an XML tag at the root.

    This is for internal use of the XDOC constructor library. Users of this library should use constructors for specific tags, e.g. p.

    See also make-tree-dir/&&.

    Definitions and Theorems

    Function: make-tree-tag

    (defun make-tree-tag (tag attributes trees)
           (declare (xargs :guard (and (keywordp tag)
                                       (keyword-tree-alistp attributes)
                                       (tree-listp trees))))
           (cons (cons tag attributes) trees))

    Theorem: treep-of-make-tree-tag

    (defthm treep-of-make-tree-tag
            (equal (treep (make-tree-tag tag attributes trees))
                   (and (keywordp tag)
                        (keyword-tree-alistp attributes)
                        (tree-listp trees))))