Equations
- Lean.Doc.instReprMathMode.repr Lean.Doc.MathMode.inline prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Lean.Doc.MathMode.inline")).group prec✝
- Lean.Doc.instReprMathMode.repr Lean.Doc.MathMode.display prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Lean.Doc.MathMode.display")).group prec✝
Instances For
Equations
- Lean.Doc.instReprMathMode = { reprPrec := Lean.Doc.instReprMathMode.repr }
Equations
Equations
- Lean.Doc.instBEqMathMode.beq x✝ y✝ = (x✝.ctorIdx == y✝.ctorIdx)
Instances For
Equations
Equations
- Lean.Doc.instOrdMathMode = { compare := Lean.Doc.instOrdMathMode.ord }
Equations
- Lean.Doc.instOrdMathMode.ord x✝ y✝ = compare x✝.ctorIdx y✝.ctorIdx
Instances For
Inline content that is part of the text flow.
- text {i : Type u} (string : String) : Inline i
Textual content.
- emph {i : Type u} (content : Array (Inline i)) : Inline i
Emphasis, typically rendered using italic text.
- bold {i : Type u} (content : Array (Inline i)) : Inline i
Strong emphasis, typically rendered using bold text.
- code {i : Type u} (string : String) : Inline i
Inline literal code, typically rendered in a monospace font.
- math {i : Type u} (mode : MathMode) (string : String) : Inline i
Embedded TeX math, to be rendered by an engine such as TeX or KaTeX. The
modedetermines whether it is rendered in inline mode or display mode; even display-mode math is an inline element for purposes of document structure. - linebreak {i : Type u} (string : String) : Inline i
A user's line break. These are typically ignored when rendering, but don't need to be.
- link {i : Type u} (content : Array (Inline i)) (url : String) : Inline i
A link to some URL.
- footnote {i : Type u} (name : String) (content : Array (Inline i)) : Inline i
A footnote. In Verso's concrete syntax, their contents are specified elsewhere, but elaboration places the contents at the use site.
- image {i : Type u} (alt url : String) : Inline i
An image.
altshould be displayed if the image can't be shown. - concat {i : Type u} (content : Array (Inline i)) : Inline i
A sequence of inline elements.
- other {i : Type u} (container : i) (content : Array (Inline i)) : Inline i
A genre-specific inline element.
containerspecifies what kind of element it is, andcontentspecifies the contained elements.
Instances For
Equations
Equations
- Lean.Doc.instOrdInline = { compare := Lean.Doc.instOrdInline.ord }
Equations
- Lean.Doc.instReprInline = { reprPrec := Lean.Doc.instReprInline.repr }
Equations
Rewrites using a proof that two inline element types are equal.
Equations
- Lean.Doc.Inline.cast inlines_eq x = inlines_eq ▸ x
Instances For
Equations
- One or more equations did not get rendered due to their size.
No inline content.
Equations
Instances For
An item in either an ordered or unordered list.
- contents : Array α
The contents of the list item.
Instances For
Equations
- Lean.Doc.instReprListItem = { reprPrec := Lean.Doc.instReprListItem.repr }
Equations
Equations
- Lean.Doc.instOrdListItem = { compare := Lean.Doc.instOrdListItem.ord }
Equations
Equations
- Lean.Doc.instReprDescItem = { reprPrec := Lean.Doc.instReprDescItem.repr }
Equations
Equations
Instances For
Equations
- Lean.Doc.instOrdDescItem = { compare := Lean.Doc.instOrdDescItem.ord }
Equations
Block-level content in a document.
- para {i : Type u} {b : Type v} (contents : Array (Inline i)) : Block i b
A paragraph.
- code {i : Type u} {b : Type v} (content : String) : Block i b
A code block.
- ul {i : Type u} {b : Type v} (items : Array (ListItem (Block i b))) : Block i b
An unordered list.
- ol {i : Type u} {b : Type v} (start : Int) (items : Array (ListItem (Block i b))) : Block i b
An ordered list.
- dl {i : Type u} {b : Type v} (items : Array (DescItem (Inline i) (Block i b))) : Block i b
A description list that associates explanatory text with shorter items.
- blockquote {i : Type u} {b : Type v} (items : Array (Block i b)) : Block i b
A quotation.
- concat {i : Type u} {b : Type v} (content : Array (Block i b)) : Block i b
Multiple blocks, merged.
- other {i : Type u} {b : Type v} (container : b) (content : Array (Block i b)) : Block i b
A genre-specific block.
containerspecifies what kind of block it is, whilecontentspecifies the content within the block.
Instances For
Equations
Equations
- Lean.Doc.instOrdBlock = { compare := Lean.Doc.instOrdBlock.ord }
Equations
- Lean.Doc.instReprBlock = { reprPrec := Lean.Doc.instReprBlock.repr }
Equations
An empty block with no content.
Equations
Instances For
Rewrites using proofs that two inline element types and two block types are equal.
Equations
- Lean.Doc.Block.cast inlines_eq blocks_eq x = inlines_eq ▸ blocks_eq ▸ x
Instances For
A logical division of a document.
The part's title
- titleString : String
A string approximation of the part's title, for use in contexts where formatted text is invalid.
- metadata : Option p
Genre-specific metadata
The part's textual content
Sub-parts (e.g. subsections of a section, sections of a chapter)
Instances For
Equations
- Lean.Doc.instOrdPart = { compare := Lean.Doc.instOrdPart.ord }
Equations
- Lean.Doc.instReprPart = { reprPrec := Lean.Doc.instReprPart.repr }
Equations
Rewrites using proofs that inline element types, block types, and metadata types are equal.
Equations
- Lean.Doc.Part.cast inlines_eq blocks_eq metadata_eq x = inlines_eq ▸ blocks_eq ▸ metadata_eq ▸ x
Instances For
A Verso document, which is a sequence of blocks. Its syntax is produced by Lean.Doc.Parser.document.
Use VersoDocument.view or TSyntax.getVersoBlocks to extract its contents.
Equations
- Lean.Doc.VersoDocument = Lean.TSyntax `Lean.Doc.Parser.document