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 Lean.Doc.MathMode.inline Lean.Doc.MathMode.inline = Ordering.eq
- Lean.Doc.instOrdMathMode.ord Lean.Doc.MathMode.inline x✝ = Ordering.lt
- Lean.Doc.instOrdMathMode.ord x Lean.Doc.MathMode.inline = Ordering.gt
- Lean.Doc.instOrdMathMode.ord Lean.Doc.MathMode.display Lean.Doc.MathMode.display = Ordering.eq
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
mode
determines 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.
alt
should 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.
container
specifies what kind of element it is, andcontent
specifies 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
Instances For
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 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.
container
specifies what kind of block it is, whilecontent
specifies 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
Instances For
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