Tally.Prose
Prose syntax
Every comment form the navigator reads. The documentation site quotes these comments and renders them with the plugin's own code.
1
From Tally Require Import Core.A doc comment heading
One to four stars open a heading in a doc comment.
A second-level heading
A paragraph in a doc comment. Lines join into one paragraph, and a blank line starts the next.
Square brackets mark code: total links to its declaration, and 1 + 1 stays plain code.
- This dash is plain text, since doc comments have no lists: only headings, paragraphs and
code. Use a Markdown comment for lists.
Definition doc_no_lists := 0.A Markdown heading
The md marker after the opening stars selects Markdown, with one to six # marks for a heading.
Bold, emphasis, total as a linked name and 1 + 1 as plain code.
- A list item
- Another, with a link to a declaration
| Form | Marker | Lists |
|---|---|---|
| Doc | none | no |
| Markdown | md |
yes |
A fenced block. `total` stays text here.
An external link, and raw HTML shown as text: <b>not bold</b>.
Arguments in a doc comment.
Arguments
Arguments in a Markdown comment.
A plain comment above a declaration documents it, as a doc comment does.
Definition with_plain_comment (* a comment inside the statement *) := 0.A comment that has a line of its own, and is attached to no declaration, reads as prose between the declarations.
A first line wholly in bold titles a theorem.
A Theorem or Corollary with this form appears on the Guarantees page under that title. A Lemma
never does.