DXsmiley / mathbot

Discord bot for mathematics
https://dxsmiley.github.io/mathbot/
GNU General Public License v3.0
278 stars 53 forks source link

Add bussproofs for inference rules and other logical proofs #71

Open Ailrun opened 4 years ago

Ailrun commented 4 years ago

Link: https://www.ctan.org/pkg/bussproofs

Even though it is possible to write simple inference rules and logical proofs with array env and \frac, \cfrac, etc., it becomes significantly hard to write complex rules and proofs with those commands.

DXsmiley commented 4 years ago

I'm not familiar with this package. Can you show me some sample code and output so I can see what it does?

Ailrun commented 4 years ago

Sure. I will post it as soon as I can access my PC.

Ailrun commented 4 years ago

With this code

\begin{prooftree}
  \AxiomC{A}
  \AxiomC{B}
  \AxiomC{C}
  \BinaryInfC{D}
  \BinaryInfC{E}
\end{prooftree}

the package gives image

Ailrun commented 4 years ago

If you don't like the package, I think https://www.ctan.org/pkg/ebproof would also work for the task.

In that package, the following code

\begin{prooftree}
  \infer0{\vdash A}
  \hypo{\vdash B} \infer1{\vdash B, C}
  \infer2{\vdash A \wedge B, C}
\end{prooftree}

is rendered as Screenshot_20200623-235444_Drive

Ailrun commented 3 years ago

@DXsmiley any updates?