SSG/Html.lean

GitHub source file

Explanation legend Lean4 Domain Explanation Language (L4DEL)

L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.

L4DEL
Lean4 Domain Explanation Language

Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.

Project sources: Pinned compfiles documentation, Pinned compfiles corpus index

7 declarations, 0 contain sorry, 0 declared as axioms

Imports (1)
Imported by 14 files
  1. abbrev Attr A single HTML attribute line 8 source

    Source documentation

    A single HTML attribute

    abbrev Attr := String × String
  2. inductive Html HTML document tree line 11 source

    Source documentation

    HTML document tree. Structural correctness by construction.

    inductive Html where
    …
  3. def Html.render Render to string line 27 source

    Source documentation

    Render to string

    partial def render : Html → String
    | .raw s => s
    | .text s => htmlEscape s
    | .void tag attrs => s!"<{tag}{renderAttrs attrs}>"
    | .elem tag attrs children =>
      let inner := String.join (children.map render)
    …

    Mentions: Html, htmlEscape

  4. def Html.renderDoc Render a full HTML5 document with doctype line 40 source

    Source documentation

    Render a full HTML5 document with doctype

    def renderDoc (h : Html) : String :=
    …

    Mentions: h, Html

  5. instance Html.(instance at line 43) line 43 source
  6. instance Html.(instance at line 46) line 46 source
  7. instance Html.(instance at line 49) line 49 source