Built with Alectryon, running vsrocq-language-server. Bubbles () indicate interactive fragments: hover for details, tap to reveal contents. Use Ctrl+↑ Ctrl+↓ to navigate, Ctrl+🖱️ to focus. On Mac, use instead of Ctrl.

Writing Alectryon documents in Markdown with MyST

To compile this file, use one of the following commands:

$ alectryon literate_MyST.md
  # MyST → HTML, produces ‘literate_MyST.html’

$ alectryon literate_MyST.md --backend coq
  # MyST → Coq, produces ‘literate_MyST.v’

Alectryon supports input files written in MyST (a Markdown variant) in addition to Coq and reStructuredText.

In MyST Coq fragments are spelled as ```{coq}, with arguments on the same line and options below:


exists x : nat, x * x = 49 /\ x < 10

7 < 10

8 <= 10
repeat constructor.

Math is written either in Docutils math roles (\(e^{i\pi} = -1\)) or in $ signs with option dollarmath (see docutils.conf in this directory: \(\cos(\pi) = -1\)). And unlike in reST, built-in inline markup nests, including code and other roles like coqid references or links.