Built with Alectryon, running Coq+SerAPI. 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.

Compiling without Alectryon

Coq files can always be compiled without Alectryon. reST files are tricker, since they have ..coq :: directives. The repository contains a standalone compiler that treats these directives as code blocks and includes no-op definitions for Alectryon-specific roles:

alectryon minimal.rst # reST → HTML; produces ‘minimal.html’

$ cd ..; python -m alectryon.minimal recipes/minimal.rst recipes/minimal.no-alectryon.html
# Minimal reST → HTML; produces ‘minimal.no-alectryon.html’

Directives

Coq code:
Inductive nat : Set := O : nat | S : nat -> nat Arguments S _%nat_scope1
Quotes:
Print nat.
Assertions:

Exercise: Title

Body

Roles

  • fun x => x + 1
  • Coq.Even.even
  • 1
  • Inductive nat : Set := O : nat | S : nat -> nat Arguments S _%nat_scope