| 1 |
input drv; |
| 2 |
|
| 3 |
verbatimtex%&latex |
| 4 |
|
| 5 |
% Any piece of code related to font selection in the preambule of |
| 6 |
% `coq-sample.tex' (document class, font package, font selection commands ...) |
| 7 |
% should be reported here. |
| 8 |
|
| 9 |
\documentclass[8pt]{beamer} |
| 10 |
\usepackage[T1]{fontenc} |
| 11 |
\usepackage{amsmath} |
| 12 |
\usepackage[varg]{txfonts} |
| 13 |
\newcommand{\var}{\text{Var}} |
| 14 |
\newcommand{\app}{\text{App}} |
| 15 |
\newcommand{\lam}{\text{Lam}} |
| 16 |
\begin{document} |
| 17 |
etex; |
| 18 |
|
| 19 |
drv_font_size "\small"; |
| 20 |
drv_labels_position l; |
| 21 |
|
| 22 |
for index=0 upto 6: |
| 23 |
beginfig(index) |
| 24 |
jgm 0 "\vdash", "(P\to(Q\to R))\to(Q\to(P\to R))"; |
| 25 |
jgm 1 "P\to(Q\to R)\vdash", "Q\to(P\to R)"; |
| 26 |
jgm 2 "P\to(Q\to R), Q\vdash", "P\to R"; |
| 27 |
jgm 3 "P\to(Q\to R), Q, P\vdash", "R"; |
| 28 |
jgm 4 "P\to(Q\to R), Q, P\vdash", "Q\to R"; |
| 29 |
jgm 5 "P\to(Q\to R), Q, P\vdash", "P\to(Q\to R)"; |
| 30 |
jgm 6 "P\to(Q\to R), Q, P\vdash", "P"; |
| 31 |
jgm 7 "P\to(Q\to R), Q, P\vdash", "Q"; |
| 32 |
nfr 0 (1) ("\lam", 1); |
| 33 |
nfr 1 (2) ("\lam", 1); |
| 34 |
nfr 2 (3) ("\lam", 1); |
| 35 |
nfr 3 (4, 7) ("\app", 1); |
| 36 |
nfr 4 (5, 6) ("\app", 1); |
| 37 |
nfr 5 () ("\var", 1); |
| 38 |
nfr 6 () ("\var", 1); |
| 39 |
nfr 7 () ("\var", 1); |
| 40 |
setbounds currentpicture to drv_bbox 0; |
| 41 |
% All the pictures will have the same bounding box |
| 42 |
% as the full derivation tree. |
| 43 |
draw sbj[0][0]; |
| 44 |
if index=0: |
| 45 |
draw sbj[0][1] withcolor blue; |
| 46 |
else: |
| 47 |
draw sbj[0][1]; |
| 48 |
draw iln[0]; |
| 49 |
draw l_ilb[0]; |
| 50 |
draw sbj[1][0]; |
| 51 |
if index=1: |
| 52 |
draw sbj[1][1] withcolor blue; |
| 53 |
else: |
| 54 |
draw sbj[1][1]; |
| 55 |
draw iln[1]; |
| 56 |
draw l_ilb[1]; |
| 57 |
draw sbj[2][0]; |
| 58 |
if index=2: |
| 59 |
draw sbj[2][1] withcolor blue; |
| 60 |
else: |
| 61 |
draw sbj[2][1]; |
| 62 |
draw iln[2]; |
| 63 |
draw l_ilb[2]; |
| 64 |
draw sbj[3][0]; |
| 65 |
if index=3: |
| 66 |
draw sbj[3][1] withcolor blue; |
| 67 |
else: |
| 68 |
draw sbj[3][1]; |
| 69 |
draw iln[3]; |
| 70 |
draw l_ilb[3]; |
| 71 |
draw jdg[4]; |
| 72 |
draw iln[4]; |
| 73 |
draw l_ilb[4]; |
| 74 |
draw jdg[5]; |
| 75 |
draw iln[5]; |
| 76 |
draw l_ilb[5]; |
| 77 |
draw sbj[6][0]; |
| 78 |
draw sbj[7][0]; |
| 79 |
if index=4: |
| 80 |
draw sbj[6][1] withcolor blue; |
| 81 |
draw sbj[7][1] withcolor blue; |
| 82 |
else: |
| 83 |
draw sbj[6][1]; |
| 84 |
draw iln[6]; |
| 85 |
draw l_ilb[6]; |
| 86 |
if index=5: |
| 87 |
draw sbj[7][1] withcolor blue; |
| 88 |
else: |
| 89 |
draw sbj[7][1]; |
| 90 |
draw iln[7]; |
| 91 |
draw l_ilb[7]; |
| 92 |
fi |
| 93 |
fi |
| 94 |
fi |
| 95 |
fi |
| 96 |
fi |
| 97 |
fi |
| 98 |
endfig; |
| 99 |
endfor |
| 100 |
|
| 101 |
end |