Skip to main content

Module rules

Module rules 

Source
Expand description

The general lowering rule of a theorem, TheoremRule (THEOREM_RULE), the default on every backend that has no rule of its own for theorems: a block that opens with the theorem’s heading and, for a class with a closing mark, closes with the mark.

TheoremRule writes a theorem as a flm.pres.block of role THEOREM, whose kind tokens are the class’s name then the kind’s (theoremlike lemma), around the theorem’s body laid out as blocks. The block carries the anchor of the theorem’s reference point where the references feature computed one. The role and the kind tokens are what a stylesheet or a host’s lowering rule selects on.

The heading (the class’s template instantiated at the theorem; see heading) is placed at the start of the body’s first paragraph as a flm.pres.deco.runin decoration, which each backend sets as it sets a run-in heading. The class’s closing mark is placed at the end of the body’s last paragraph as a flm.pres.deco.final decoration. Where the body opens or closes with another block (a list, a quotation), the heading or the mark gets a paragraph of its own; a displayed formula stands inside its paragraph, so the heading or the mark shares that paragraph with it. An empty body gets one paragraph holding both.

The kind’s word and number in the heading are the theorem’s number as the numbering feature wrote it, with the kind’s word (Lemma~4), read from the counter table (COUNTERS) when the theorem is lowered. Where the document did not number the theorem (an unnumbered kind, or a registry without the numbering feature), the heading shows the kind’s word alone (Proof). The heading’s title is the theorem’s title, or, where a proof shows its back-reference, the statement it refers to. The theorem’s fields, \label{…} and \noproofref, are not written.

Structs§

TheoremRule
The lowering rule THEOREM_RULE: a theorem as a block with its heading and closing mark. See the module documentation.

Constants§

THEOREM_RULE
The name of the theorem’s general lowering rule, flm.theorems.theorem.lower.default (TheoremRule).