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.ord x✝ y✝ = compare x✝.ctorIdx y✝.ctorIdx
Instances For
Equations
- Lean.Doc.instOrdMathMode = { compare := Lean.Doc.instOrdMathMode.ord }
Inline content that is part of the text flow.
- text
{i : Type u}
(string : String)
 : Inline iTextual content. 
- emph
{i : Type u}
(content : Array (Inline i))
 : Inline iEmphasis, typically rendered using italic text. 
- bold
{i : Type u}
(content : Array (Inline i))
 : Inline iStrong emphasis, typically rendered using bold text. 
- code
{i : Type u}
(string : String)
 : Inline iInline literal code, typically rendered in a monospace font. 
- math
{i : Type u}
(mode : MathMode)
(string : String)
 : Inline iEmbedded 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 iA 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 iA link to some URL. 
- footnote
{i : Type u}
(name : String)
(content : Array (Inline i))
 : Inline iA 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 iAn image. altshould be displayed if the image can't be shown.
- concat
{i : Type u}
(content : Array (Inline i))
 : Inline iA sequence of inline elements. 
- other
{i : Type u}
(container : i)
(content : Array (Inline i))
 : Inline iA 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 }
Instances For
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.instInhabitedListItem.default = { contents := default }
Instances For
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 bA paragraph. 
- code
{i : Type u}
{b : Type v}
(content : String)
 : Block i bA code block. 
- ul
{i : Type u}
{b : Type v}
(items : Array (ListItem (Block i b)))
 : Block i bAn unordered list. 
- ol
{i : Type u}
{b : Type v}
(start : Int)
(items : Array (ListItem (Block i b)))
 : Block i bAn ordered list. 
- dl
{i : Type u}
{b : Type v}
(items : Array (DescItem (Inline i) (Block i b)))
 : Block i bA description list that associates explanatory text with shorter items. 
- blockquote
{i : Type u}
{b : Type v}
(items : Array (Block i b))
 : Block i bA quotation. 
- concat
{i : Type u}
{b : Type v}
(content : Array (Block i b))
 : Block i bMultiple blocks, merged. 
- other
{i : Type u}
{b : Type v}
(container : b)
(content : Array (Block i b))
 : Block i bA 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 }
Instances For
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 : StringA string approximation of the part's title, for use in contexts where formatted text is invalid. 
- metadata : Option pGenre-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