SSG/Html.lean
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
- Dashboard/Common.lean
- Dashboard/Components/Base.lean
- Dashboard/Components/CompAnchor.lean
- Dashboard/Components/Footer.lean
- Dashboard/Components/Navbar.lean
- Dashboard/Contests/Imo.lean
- Dashboard/Contests/Usamo.lean
- Dashboard/Models/Contests.lean
- Dashboard/Pages/All.lean
- Dashboard/Pages/ContestPage.lean
- Dashboard/Pages/Index.lean
- Dashboard/Pages/ProblemPage.lean
- SSG.lean
- SSG/Tags.lean
- abbrev
AttrA single HTML attribute line 8 sourceSource documentation
A single HTML attribute
abbrev Attr := String × String
- inductive
HtmlHTML document tree line 11 sourceSource documentation
HTML document tree. Structural correctness by construction.
inductive Html where …
- def
Html.renderRender to string line 27 sourceSource 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
- def
Html.renderDocRender a full HTML5 document with doctype line 40 sourceSource documentation
Render a full HTML5 document with doctype
def renderDoc (h : Html) : String := …
- instance
Html.(instance at line 43)line 43 source - instance
Html.(instance at line 46)line 46 source - instance
Html.(instance at line 49)line 49 source