Skip to content

Commit

Permalink
Add additional comment on optional syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoeldner authored and mn200 committed Jan 4, 2024
1 parent 0b5c895 commit df2fa4a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Manual/Description/definitions.stex
Original file line number Diff line number Diff line change
Expand Up @@ -2036,10 +2036,12 @@ one writes
\end{verbatim}
where, as with other special syntaxes, the keywords (\ml{Inductive} and \ml{End}) have to be in the leftmost column of the source file.
Additionally, users can automatically export each rule as a theorem by assigning a name using the square-bracket syntax.
The appropriate format is \holtxt{[\(\sim\)Name:]}, where \holtxt{Name} acts as the placeholder for the rule name, see the following example:
The appropriate format is \holtxt{[\textasciitilde Name:]}, where \holtxt{Name} acts as the placeholder for the rule name.
Inside the square brackets, the tilde (\textasciitilde) is optional; if included, it prefixes the exported rule name with \ml{<stem>\_}.
For instance, the following example will export rules as \ml{rule1} and \ml{foo\_rule2}.
\begin{verbatim}
Inductive foo:
[~rule1:]
[rule1:]
...
[~rule2:]
...
Expand Down

0 comments on commit df2fa4a

Please sign in to comment.