• No results found

Build proof tree for Natural Deduction, Sequent Calculus, etc.

N/A
N/A
Protected

Academic year: 2021

Share "Build proof tree for Natural Deduction, Sequent Calculus, etc."

Copied!
4
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Build proof tree for Natural Deduction, Sequent

Calculus, etc.

Paul Taylor

Department of Computing,

Imperial College,

London SW7 2BZ

+44 71 589 5111 ext 5057

<pt@doc.ic.ac.uk>

March 19, 2006

Using my Proof Tree macros, you can produce

[(∃y. ((∃n.xn= y) ∧ qy)) ∧ (∀w. ((∃n.xn= w) ⇒ pw))]α ∧1E ∃y. ((∃n.xn= y) ∧ qy) [(∃y. ((∃n.xn= y) ∧ qy)) ∧ (∀w. ((∃n.xn= w) ⇒ pw))]α ∧2E ∀w. ((∃n.xn= w) ⇒ pw) ∀E (∃n.xn= y) ⇒ py [(∃n.xn= y) ∧ qy]β ∧1E ∃n.xn= y ⇒E py [(∃n.xn= y) ∧ qy]β ∧I py ∧ ((∃n.xn= y) ∧ qy) ∃I ∃z.pz ∧ (((∃n.xn= z) ∧ qz)) ∃Eβ ∃z.pz ∧ (((∃n.xn= z) ∧ qz)) ⇒Iα (∃y. ((∃n.xn= y) ∧ qy)) ∧ (∀w. ((∃n.xn= w) ⇒ pw)) ⇒ (∃z.pz ∧ (((∃n.xn= z) ∧ qz)))

using the TEX or LATEX code

\input prooftree $$

\begin{prooftree}

\[ \[ [(\A y n)\land(\B w n)]_\alpha \andelim1

\A y n \]

\kern-26em

\[ \[ \[ \[ \[ [(\A y n)\land(\B w n)]_\alpha \andelim2 \shiftright60pt \B w n

(2)

\] \allelim

(\E y n)\imp\P y \]

\[

[(\E y n)\land\Q y]_\beta \andelim1 \E y n \] \impelim \shiftright50pt \P y \] \kern-25pt

[(\E y n)\land\Q y]_\beta \andintro \P y\land((\E y n)\land\Q y) \] \existsintro \C z n \] \existselim\beta \C z n \] \impintro\alpha

(\A yn)\land(\B w n)\imp(\C z n) \end{prooftree}$$

In fact the commands \allintro, etc., are not primitive; the basic form is \[ A\quad B \justifies A \land B \thickness=0.08em \shiftright 2em \using {\land}{\cal I} \] which gives A B ∧I A ∧ B

The hypotheses may themselves be proof trees (enclosed in \[. . . \]) and the purpose of the macros is to adjust the length of the horizontal “deduction” line.

(3)

When the hypotheses are proof trees, suitable space is put between them, but of course this must be supplied by hand for simple formulae. The \thickness and \shiftright commands are, of course, optional; they apply to the horizontal line and to the positioning of the conclusion relative to it. For a double line, use \Justifies instead of \justifies.

Notice the overloading of the \[. . . \]; the outermost proof tree must be enclosed with \begin{prooftree} and \end{prooftree} or \prooftree and \endprooftree.

To get a vertical string of dots instead of the proof rule, do \[ [A] \using \pi \proofdotseparation=1.2ex \proofdotnumber=4 \leadsto B \] to get [A] · · · ·π B

All of of the keywords except \prooftree and \endprooftree are optional and may appear in any order. They may also be combined in \newcommands, for example

\newcommand\Cut{\using\sf cut\thickness.08em\justifies} with the abbreviation

\[ A \vdash B \qquad B \vdash C

\Cut

A \vdash C \]

\thickness specifies the breadth of the rule in any units, although font-relative units such as ex or em are preferable. It may optionally be followed by =. \proofrulebreadth=.08em or \setlength\proofrulebreadth{.08em} may also be used either in place of \thickness or globally; the default is 0.04em. \proofdotseparation and \proofdotnumber control the size of the string of dots.

If proof trees and formulae are mixed, some explicit spacing is needed, but don’t put anything to the left of the left-most (or the right of the right-most)

(4)

hypothesis, or put it in braces, because this will cause the indentation to be lost.

By default the conclusion is centered wrt the left-most and right-most im-mediate hypotheses (not their proofs); \shiftright or \shiftleft moves it relative to this position. (Not sure about this specification or how it should affect spreading of proof tree.)

Referenties

GERELATEERDE DOCUMENTEN

This research will conduct therefore an empirical analysis of the global pharmaceutical industry, in order to investigate how the innovativeness of these acquiring

The present study aimed to examine if and how price sensitivity plays a moderating role between the customer-based brand equity consumers own for the brands of three

In conclusion, the study furthers our understanding of how the work-in- progress restrictions of pull production systems affect performance by facilitating motivation gains or

Het doel van deze studie is dan ook om te bepalen of kwaliteitsmanagementpraktijken van elkaar te onderscheiden zijn en om te bepalen hoe kern en

Ik ben dankbaar voor de tijd die jullie genomen hebben om mijn werk te lezen en van commentaar te voorzien.. Ik wil ook graag mijn familie, vrienden en collega’s bedanken voor

(2011b) supplier quality involvement unit cost of manufacturing, on-time delivery performance, fast delivery, flexibility to change product mix, flexibility to change volume,

In chapter 4, we explore the relationship between coordination losses and motivation gains in work-in-progress restricted production systems and thereby address the second

As ‘t nait gait zoas’t mot, mot’t mor zoas’t gait (Groningse wijsheid). Schoenmaker blijf bij je leest