Template:Proof tree
Write derivation trees. See the the documentation of the template for the detailed syntax.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Inline mode | inline | Whether the derivation tree should be written inline. This is mostly intended for writing several trees and centering them altogether. | Boolean | optional |
Idea
It works similarly as the ebproof LaTeX package: hypotheses a pushed on a stack, and then popped to form inferences that are in turn pushed on the stack. When the process is finished, there should remain only one element on the stack: the complete proof tree, that is printed.
Syntax
The syntax is as follows:
{{Proof tree
| command argument1 argument2 ... content
| command argument1 argument2 ... content
| ...
}}
There are currently two commands (besides the inline parameter described above):
hypotakes noargumentand pushes itscontenton the stack.inferhas the following syntax:infer n style:(...) label:(...) content, where:- the mandatory argument
nis an integer telling how many premises the inferences needs (and will therefore be popped from the stack), - the optional argument
stylecan be given the valuedoubleto produce a double-line inference, - the optional argument
labelcan be given mathematical content, to be printed next to the inference.
- the mandatory argument
In both cases, content is mathematical content that will be rendered via KaTeX (see explanations on math typesetting).