LLWiki LaTeX Style
From LLWiki
(Difference between revisions)
(→Proof trees: \VdotsRule added) |
Lionel Vaux (Talk | contribs) (→Proof trees: describe all available commands for proof trees) |
||
Line 109: | Line 109: | ||
== Proof trees == |
== Proof trees == |
||
+ | Proof trees are described using a postfix syntax and terminated with <tt>\DisplayProof</tt> |
||
+ | |||
+ | {| border="1" cellpadding="10" cellspacing="0" |
||
+ | |- |
||
+ | | '''Description''' |
||
+ | | '''Command''' |
||
+ | | '''Example''' |
||
+ | | '''LaTeX source''' |
||
+ | |- |
||
+ | | Axiom node <br /> (for hypotheses) |
||
+ | | <pre>\AxRule</pre> |
||
+ | | <math> |
||
+ | \AxRule{\vdash A} |
||
+ | \DisplayProof</math> |
||
+ | | <pre> |
||
+ | \AxRule{\vdash A} |
||
+ | \DisplayProof</pre> |
||
+ | |- |
||
+ | | Nullary rule <br /> (for logical axioms) |
||
+ | | <pre>\NulRule</pre> |
||
+ | | <math> |
||
+ | \NulRule{A \vdash A} |
||
+ | \DisplayProof</math> |
||
+ | | <pre> |
||
+ | \NulRule{A \vdash A} |
||
+ | \DisplayProof</pre> |
||
+ | |- |
||
+ | | Unary rule |
||
+ | | <pre>\UnaRule</pre> |
||
+ | | <math> |
||
+ | \AxRule{\vdash \wn\Gamma, A} |
||
+ | \UnaRule{\vdash \wn\Gamma, \oc A} |
||
+ | \DisplayProof</math> |
||
+ | | <pre> |
||
+ | \AxRule{\vdash \wn\Gamma, A} |
||
+ | \UnaRule{\vdash \wn\Gamma, \oc A} |
||
+ | \DisplayProof</pre> |
||
+ | |- |
||
+ | | Binary rule |
||
+ | | <pre>\BinRule</pre> |
||
+ | | <math> |
||
+ | \AxRule{\Gamma\vdash A} |
||
+ | \AxRule{\Delta,A\vdash C} |
||
+ | \BinRule{\Gamma,\Delta\vdash C} |
||
+ | \DisplayProof</math> |
||
+ | | <pre> |
||
+ | \AxRule{\Gamma\vdash A} |
||
+ | \AxRule{\Delta,A\vdash C} |
||
+ | \BinRule{\Gamma,\Delta\vdash C} |
||
+ | \DisplayProof</pre> |
||
+ | |- |
||
+ | | Ternary rule |
||
+ | | <pre>\TriRule</pre> |
||
+ | | <math> |
||
+ | \AxRule{\vdash A} |
||
+ | \AxRule{\vdash B} |
||
+ | \AxRule{\vdash C} |
||
+ | \TriRule{\vdash A\land B\land C} |
||
+ | \DisplayProof</math> |
||
+ | | <pre> |
||
+ | \AxRule{\vdash A} |
||
+ | \AxRule{\vdash B} |
||
+ | \AxRule{\vdash C} |
||
+ | \TriRule{\vdash A\land B\land C} |
||
+ | \DisplayProof</pre> |
||
+ | |- |
||
+ | | Label <br /> (before any of the above) |
||
+ | | <pre>\LabelRule</pre> |
||
+ | | <math>\AxRule{\Gamma\vdash A} |
||
+ | \AxRule{\Delta,A\vdash C} |
||
+ | \LabelRule{\rulename{cut}} |
||
+ | \BinRule{\Gamma,\Delta\vdash C} |
||
+ | \DisplayProof</math> |
||
+ | | <pre> |
||
+ | \AxRule{\Gamma\vdash A} |
||
+ | \AxRule{\Delta,A\vdash C} |
||
+ | \LabelRule{\rulename{cut}} |
||
+ | \BinRule{\Gamma,\Delta\vdash C} |
||
+ | \DisplayProof</pre> |
||
+ | |- |
||
+ | | Proof ellipsis<br /> ''(two arguments !)'' |
||
+ | | <pre>\VdotsRule</pre> |
||
+ | | <math> |
||
+ | \AxRule{[A]} |
||
+ | \VdotsRule{\pi}{B} |
||
+ | \UnaRule{A\imp B} |
||
+ | \DisplayProof</math> |
||
+ | | <pre> |
||
+ | \AxRule{[A]} |
||
+ | \VdotsRule{\pi}{B} |
||
+ | \UnaRule{A\imp B} |
||
+ | \DisplayProof</pre> |
||
+ | |} |
||
<math> |
<math> |
||
− | \AxRule{{}\vdash\Gamma,A,B,C} |
||
− | \VdotsRule{\pi}{{}\vdash\Gamma,A\parr B\parr C} |
||
− | \NulRule{{}\vdash A,A\orth} |
||
− | \NulRule{{}\vdash B,B\orth} |
||
− | \NulRule{{}\vdash C,C\orth} |
||
− | \TriRule{{}\vdash A,B,C,A\orth\tens B\orth\tens C\orth} |
||
− | \LabelRule{\rulename{cut}} |
||
− | \BinRule{{}\vdash\Gamma,A,B,C} |
||
− | \UnaRule{{}\vdash\Gamma,A\parr B\parr C} |
||
− | \DisplayProof |
||
− | </math> |
Revision as of 17:58, 6 July 2009
Mathematical notations
![]() |
A\orth |
![]() |
A\biorth |
![]() |
A\triorth |
![]() |
A\tens B |
![]() |
A\parr B |
![]() |
A\plus B |
![]() |
A\with B |
![]() |
\one |
![]() |
\bot |
![]() |
\zero |
![]() |
\top |
![]() |
\oc A |
![]() |
\wn A |
![]() |
A\limp B |
![]() |
A\linequiv B |
![]() |
\shpos A |
![]() |
\shneg A |
![]() |
\shift A |
![]() |
\pg A |
![]() |
A\imp B |
![]() |
\sem{A} |
![]() |
\web{A} |
![]() |
A\coh B |
![]() |
A\scoh B |
![]() |
A\incoh B |
![]() |
A\sincoh B |
![]() |
A\cliq B |
![]() |
\set{x}{P} |
![]() |
\powerset{A} |
![]() |
\finpowerset{A} |
![]() |
\mulset{A} |
![]() |
\finmulset{A} |
![]() |
\Bot |
![]() |
A\Perp B |
Proof trees
Proof trees are described using a postfix syntax and terminated with \DisplayProof
Description | Command | Example | LaTeX source |
Axiom node (for hypotheses) |
\AxRule |
![]() |
\AxRule{\vdash A} \DisplayProof |
Nullary rule (for logical axioms) |
\NulRule |
![]() |
\NulRule{A \vdash A} \DisplayProof |
Unary rule | \UnaRule |
![]() |
\AxRule{\vdash \wn\Gamma, A} \UnaRule{\vdash \wn\Gamma, \oc A} \DisplayProof |
Binary rule | \BinRule |
![]() |
\AxRule{\Gamma\vdash A} \AxRule{\Delta,A\vdash C} \BinRule{\Gamma,\Delta\vdash C} \DisplayProof |
Ternary rule | \TriRule |
![]() |
\AxRule{\vdash A} \AxRule{\vdash B} \AxRule{\vdash C} \TriRule{\vdash A\land B\land C} \DisplayProof |
Label (before any of the above) |
\LabelRule |
![]() |
\AxRule{\Gamma\vdash A} \AxRule{\Delta,A\vdash C} \LabelRule{\rulename{cut}} \BinRule{\Gamma,\Delta\vdash C} \DisplayProof |
Proof ellipsis (two arguments !) |
\VdotsRule |
![]() |
\AxRule{[A]} \VdotsRule{\pi}{B} \UnaRule{A\imp B} \DisplayProof |
UNIQ58730cd94fa7c888-math-00000059-QINU