Math & ScienceSequent calculus

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
drbob
Posts: 5
Joined: Sun Feb 08, 2009 4:17 pm

Sequent calculus

Post by drbob »

I'm trying to typeset a proof using sequent calculus. I'm using an align* environment, but I can't figure out a way to do lines over each line of the proof, as shown here: http://en.wikipedia.org/wiki/Sequent_ca ... derivation. Does anyone have any ideas about how to achieve this?

This is the code I've got so far, which typesets the proof nicely, apart from the lack of lines.

Code: Select all

\begin{align*}
	P(a) \lseq P(a)			&\qquad	P(b) \lseq P(b)			& \mbox{$\forall{}l$} \\
	\forall x.\, P(x) \lseq P(a)	&\qquad	\forall x.\, P(x) \lseq P(b)	& \mbox{$\land{}r$} \\
	\forall x.\, P(x) &\lseq P(a) \land P(b)				& \mbox{$\limpl{}r$} \\
	&\lseq \forall x.\, P(x) \limpl P(a) \land P(b)
\end{align*}
I've considered \frac, but it would make the LaTeX completely unreadable, which I'd rather avoid. \overline doesn't want to work, and gives the following errors:
! Missing } inserted.
<inserted text>
}
l.250 \end{align*}

! Missing { inserted.
<inserted text>
{
l.250 \end{align*}

! Missing } inserted.
<inserted text>
}
l.250 \end{align*}

! Missing \endgroup inserted.
<inserted text>
\endgroup
l.250 \end{align*}

! Undefined control sequence.
\reserved@b ->\sf@subref

l.250 \end{align*}

! Misplaced \omit.
<recently read> \omit

l.250 \end{align*}

! Missing { inserted.
<inserted text>
{
l.250 \end{align*}
Last edited by drbob on Mon Oct 25, 2010 10:57 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Sequent calculus

Post by frabjous »

I recommend doing this with the bussproofs package instead. Some other options are discussed on this page of the LaTeX for Logicians site.
drbob
Posts: 5
Joined: Sun Feb 08, 2009 4:17 pm

Re: Sequent calculus

Post by drbob »

Wow, the bussproofs package is perfect. Thanks!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Sequent calculus

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic accordingly as clearly written in Section 3 of the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Best regards and welcome to the board
Thorsten
drbob
Posts: 5
Joined: Sun Feb 08, 2009 4:17 pm

Sequent calculus

Post by drbob »

localghost wrote:Now that the problem is solved, please be so kind and mark the topic accordingly as clearly written in Section 3 of the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.
Sorry, done!
Post Reply