Description of the language Automath
Citation for published version (APA):de Bruijn, N. G. (1967). Description of the language Automath. Technische Hogeschool Eindhoven.
Document status and date: Published: 01/01/1967
Document Version:
Publisher’s PDF, also known as Version of Record (includes final page, issue and volume numbers)
Please check the document version of this publication:
• A submitted manuscript is the version of the article upon submission and before peer-review. There can be important differences between the submitted version and the official published version of record. People interested in the research are advised to contact the author for the final version of the publication, or visit the DOI to the publisher's website.
• The final author version and the galley proof are versions of the publication after peer review.
• The final published version features the final layout of the paper including the volume, issue and page numbers.
Link to publication
General rights
Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners and it is a condition of accessing publications that users recognise and abide by the legal requirements associated with these rights. • Users may download and print one copy of any publication from the public portal for the purpose of private study or research. • You may not further distribute the material or use it for any profit-making activity or commercial gain
• You may freely distribute the URL identifying the publication in the public portal.
If the publication is distributed under the terms of Article 25fa of the Dutch Copyright Act, indicated by the “Taverne” license above, please follow below link for the End User Agreement:
www.tue.nl/taverne
Take down policy
If you believe that this document breaches copyright please contact us at:
openaccess@tue.nl
providing details and we will investigate your claim.
Description of the language kUTOMArPII.
1. The grammar of the language consists of a s e t of rules according t o which
1.1 A book i s a l i n e a r l y ordered f i n i t e s e t of "lines". If we wish, the l i n e s o m be numbered: l i n e 1,
.
..
,
l i n eN.
The r u l e s of grammar w i l l be r u l e s f o r adding an (N+I )-st l i n e t o a book of N l i n e s (and thereis,
of arule
f o r writing a f i r s t l i n e ) . I f these r u l e s are obeyed, we say thatt
( ~ + 1 )-st l i n e i s acceptable.The rules f o r a c c e p t a b i l i t y of t h e ( ~ + l ) - s t li n e make senae only i f each n (1 9 n
<
N ) the (n+l)-st l i n e i s acceptable with respect t o t h e book consisting of l i n e s l,...,n.1.2 A l i n e a o n s i s t s of f i v e partsr an indicator, an i d e n t i f i e r ,
a
d e f i n i t i o n ,a
oaterroq. Occasionally we add a f i f t h part, c a l l e d ahint.
1.2.1 The h i n t
i s intended
t o assist
the reader in hi8 attemptst o
oheokwhether
p"r9
,..tho d e l e . have been properly applied. The hint. w S L be e - r e s a & ~ ~
means
of
a
d i f f e r e n t from those we a r e going t o diacuss next. The h i n taf
a
oertafn
s i t s r 8 l e only when ahecking t h a t l i n e ;it
i r s
not t o be consulted whentes l i n e s . For the time being we shall disregard the h i n t s e n t i m w r
- - O f Z p o s*,
are
The h s s i a symbolsof
which the other partsThe seven separation marks, l i s t e d herer
Arbitrarily m,ny other symbols t o be a a l l e d i d e n t i f i e r s , mutually ( i i i )
d i s t i n c t , and d i s t i n c t from the 11 symbols l i s t e d under ( i ) aad ( i i )
1.2.3 The S d e n t i f i e r p a r t of a l i n e consists i s a single i d e n t i f i e r . It
hae
t o be d i f f e r e n tfmm
the i d e n t i f i e r part of any previous l i n e . There would be no object- i o n against gystematic use of positive integers i n such a way t h a t t h e numbera
i s the i d e n t i f i e r p a r t of the n-th l i n e . However, i n order t o make books e a s i e r t o read, and e a s i e r t o compare with existing ways t o express mathemtics, one may p r e f e r t o choose more suggestive symbols l i k e words, o r words with numbers added
t o them. Note t h a t
an
i d e n t i f i e r i s t o be considered asa
single symbol, It has already been s t i p u l a t e d that i d e n t i f i e r s have t o be d i a t i n o t from t h e other basio symbols (see 1.2.2). I n a printed t e x t an i d e n t i f i e r may be represented by arstring
of l e t t e r s , d i g i t s o r other signs, containing no separation mrsdcs.1.2.4 The i n d i c a t o r part of a l i n e i s e i t h e r t h e symbol 0 o r t h e i d e n t i f i e r
of
any previous l i n e . The i d e n t i f i e r of thek-th
l i n em y
be usedas
i n d i c a t o r ofa
l a t e r l i n e i f and only i f t h e d e f i n i t i o npart
of the, k-th l i n e i e t h e eymbol --.
I n t h e discussion of t h e language (not i n the
l m g m p
i t s e l f ) r e o f t e n c o m i d e r the n i n d i c a t o r strizqf ofa
line. We oan describei t ~ ~ s i r s l y .
If
t h e i n d i c a t o r
i s
0, then t h e indicator s t r i n gi s
empty. I f t h e indicataa. of the n-th l i n e i e t h e i d e n t i f i e r partof
the k-th l i n e (whenoe k Cn),
t
the i n d i c a t o r s t r i n g
of
t h e n-th l i n e is t h e i n d i c a t o r of the n-thline
&
t h e i n d i o a t o r string of the k-th l i n e ,lkanple 1 If t h e book oonsiats of 8 l i n e s , with i d e n t i f i e r s 1,2,3,4,5,6,7,8,
and i n d i c a t o r s 0,1,1
,O,4,5,5,4,
then t h e i n d i c a t o r a t r i w areIf
a and T a mstrings,
r e w r i t e a c T i f e i t h e r o - 7 o r ? e q d ~ u f o l l a e d by some otherstring.
If ai s any
string (possibly empty),them
a
bloak
ia
the
r e taf
a l l lines
whose indioator s t r i n g T r s t i s f i e s a e t,
I n the above example the blocks a r e ( 2 ) .
( 3 ) ,
( 6 ) ,(7),
(2,3), (1,2,3),consecutive l i n e s .
We do not always have t h i s simple block structure. X.g., i f t h e i n d i c a t o r s
We
o d
represent the indicators by means of an oriented rooted t r e e ,The
points of the t r e e are i d e n t i f i e r s , a p a r t from t h e point0
t h a t fig me^ apl t h eroot of the tree. We draw a directed path from t h e i d e n t i f i e r b t o a point,@ir
# /I
if
and o n l yif
p i s the i n d i c a t o r of t h e l i n e whose i d e n t i f i e r ie.3.1.2.5 The d e f i n i t i o n
mrt
of a l i n ecan
be one of t h e following things:( i > The symbol
-
( t o be called "bar")
( i i ) The symbol
PN
( t o be a a l l e d "primitive notion")(
iii) An emreasion, This i a acertain
string of eymbols, aonaiet of eeparation marks and i d e n t i f i e r s , I f an i d e n t i f i e r iaaed SAan
expression occurring i n thek-th
l i n e i s not t h e i d e n t u i e part of a previourr l i n e , thenit i s cralled
a "boundnariable".
Althougfi
it
is not s t r i c t l y neoeasary,i t i a b e t t e r t o
think
of
a
bound WLritbbl~ aasn
i d e n t i f i e r that doe8m t
oaoura8
t h e i d e n t i f i e r p a r tof
thek-th
o rany
f u r t h e rline
either.We a h a l l explain
later how expreemime should
be
b u i l t .1,2*6 The aategoxy wrt;
of
aline
can.
be one of t h e following t h b g ~ :(i
>
The symbol sort.Li-stic variables. In our d e s c r i p t i o n of t h e language r u l e s w e shall
use greek l e t t e r 8 as l i n g u i s t i c variables. They denote i d e n t i f i e r s , expmssionn o r other parts of a book. They occur i f i general statements about t h e language, but do not appear l i t e r a l l y i n the books, I n o r d e r t o avoid confusion, we ~haI.1 agree t h a t i d e n t i f i e r s ( s e e 1 . 2 . 3 ) a r e composed e n t l r e l y of symbols d i f f e r e n t from greek l e t t e r s , so a s t o minimize reconfu:iion be4,ween t h e contents of t h e
book on t h e one hand, and our discussion about t h e book on t h e o t h e r hand.
The following n o t a t i o n w i l l be used i n t h e sequel. I f j i s a positive! i n t e g e r , w e denote by A t the j L i t h e j u : t h e j ' j : t h e b j : t h e
J
r t h e j-th line!. i n d i c a t o r ofJ'
i n d i c a t o r s t r i n g of h3'
i d e n t i f i e r part of A j* d e f i n i t i o n p a r t of A2'
category ofX
j'1 . 3
P r i m i t i v e ATVTOMBTH language. I n order t o f a c i l i t a t e t h e expositionra
8hal.l f i r s t d e s c r i b e a s e t of r u l e s f o r a language that uses onlya
part
of
t h o oomplete AUI'OMATH language. A book w r i t t e n i n the p r i m i t i v elanguage
( t o
be o a l l e d PAL) w i l l
a l s o be acceptable
i n
t h e complete language( t o
beorlled
AL).
In PAL we uee only#
(
1
as s e p a r a t i o n marks, and we do not
use
bound vaxiables.PAL
isan
abbreviated form of a language LONGPAL,. The l a t t e r has eimpler r u l e s , but has t h e p r a c t i c a l disadvantage of very l o n g expressione. We s h a l lf h s t d e f i n e LONGPAL.
1.4.1 We s h a l l desaribe the rules i n t h e following way. We f i r s t say when a book i s aalled p a r t l y correct, next w e give an addition law, i,e.
a
s e t of ruleef o r
adding a l i n e t o a p a r t l y correct book, and w e show t h a t t h i e l e a d s again t o a partly correct book. F i n a l l y w e call a book correct i f t h e f i r a t l i n e i s correct, and i f i t can 3e obtfiine?? step-by-step by repeated applicationof the addition law.
1.4.2 A partly c o r r e c t book i s a set of l i n e s A 1
,.
. .
,AN
s a t i s f y i n g the following c m d i t i o n s :( i ) For 1 j N t h e indicator L e i t h e r is equal t o 0 or t o aokae
j
4.
with 1 6 i < j. I n the latter aasei t
i s required t h a tbi
, --
,
W e have b1 P - o r PN; Y1 I ~ o r t .
Aa a preparation t o condition ( i i i ) we define the notion PALe~preseion*
''1
Moreover,
expressions
,
then $ (.I+,.
.
.
,Zt
)
i sa
PAL-exprassion.
We now phrase t h e l a s t condition f o r a book t o bepartly
aorrect t( i i i ) I f 1
<
j 6 N, then 6 . i s either -- orPN
or a
PAL-exprsrrsio~r,
JMoreover, y i s e i t h e r s o r t o r
a
PAL-erpressi~n,j
-
1.4.3 We define i n d i e a t o r & r i n g s as i n 1.2.4. Given a partly aorract book A1,...,Ap the t a m "admissible s t r i n g "
will
e i t h e r denote t h a indioator s t r i n g of ane of the l i n e e , o r tha indicator string ,that capartly
a o r r e c tbook A,
,..
.
s i g h t haveat
i t al a s t
line. Thrst is,i t
might be tha a t r i n g obtainedby
addingPi t o
i t s i n d i c a t o r a t r i n g ai,for an
i
withLi
--
.
T h b
string doaa not neceesarily occur a s the i n d i c a t o r string o elh.8
in
the book,*)
Thisnotion
doe8not
depend
on
having
any
partioulsr
book,but
o n l y onthe
presenae of s s e t of d i s t i n c t ~ymbole called i d e n t i f i e r s .from t h e i d e n t i f i e r s
P I ,
..
.
,
PI[.
Let a be a s t r i n g consistin?; of k - 1 ) 1 - e l n f i i c l n t i f i e r s , taken
from
-
-
-
This operator transf~rms PN i n t o i t s e l f , according t o t h e following rule.Let hE
PN.
This expressionh
may contain t h e i d e n t i f i e r represented by fl a number of t i n e s . Ne replace t h i s i d e n t i f i e r , wherever i t occurs,il
by t h e symbol C Ve repeat t h i s procedure with
,
. .
,Pi
.
Next we replaoe2 k
t h e symbols El
,.. .
,Z
oy t h e expressions they denote. This d e f i n e s k(Q
o(zl,.
. .
, \ ) ) A . Note that i: l , .. .
&
k themselves may contain,
.
.
.
,
i l ik t h a t t h e simple order : " r e p l a c e by Z 1 everywhere, $ i2 by everg- where...."
would be q u i t e confusing.1.4.5 Admissible t r i p l e s . Let t h e p a r t l y c o r r e c t book
3,.
.
.
,
$
be given, Werrhall
d e f i n e the notion "admissible triple'!, The admissible t r i p l e s
a l l have
t h e form ( u , A , ~ ) h e r e U E S ~ , A E P ~ ,r
-
-
sort' o r ~ E P ~ .F ~ ~ T - L -
b - + . h kSu,
G
We d e f i n e t h e s e t of admissible t r i p 1 es recursively,
I f oE
SN,
%?
i i s such t h a t f3 i s one of t h e e n t r i e s of u,
then (u,fli,yi) i s an admissible t r i p l e .This
f3
5
i s j u s tP,
i f t h e i n d i c a t o r a t r i n g a, i s empty,J J
strin J
I f i t i s not, and o.
J
mF$
l1 2 ik,
thenp*
J =3
(f3 il g * . * , Pik
).
h hat
is,
t h e expression t3Sr i s formed by w r i t i n g t h e i d e n t i f i e rJ
denoted by
pj,
an opening p r e n t h e s i s , t h e i d e n t i f i e rdenoted
bJ
f3
,
a comma, etc.), ilNow we require r if 1
<
j 4 N, a E S N ,ani
o cu
t h e n3
(a,f3* Y
)
i san
admissible t r i p l e . j93
Moreover,
Then a l s o
Let k > 0, and l e t
( p i
,
.
.
.
,Pi
) = CJ EP
Assume that1 k
N*
u ( 5 ,Cl ,PI
),
.
.
.
,
(T,
4,111-) are admissible t r i p l e s . assume thatJ
the following trip1 e i s admissible
Examples. Consider the book A
,,...
, A l 4 of 1.4.Take
o E x,y,u. Thes t h ef o l l m i n g a r e examplea of acceptable t r i p l e s r (0, x
,
e l t ) ,1 . 4 6 Addition l a w .
AN+, s h o u l d be
Let h,
,
,
.
.
,
%
be a p a r t l y c o r r e c t book. The i n d i c a t o r of e i t h e r 0 o r a /3 w i t h 1 a; j 4 N, b r-
5
3
Thie d e f i n e s thei n d i c a t o r string uN+l
.
Now we admit two cases f o r b N+1 and
YW
'-
-
o r PN, s i o nwith
t h et r i p l e .
Finally, t h e i d e n t i f i e r
pN+l
should be d i f f e r e n t fromP1
,
.
. .
,
PN,
and d i f f e r e n t from t h e o t h e r b a s i c symbols ( s e e 1.2.2).partly
aorrsat
(see 1.42) and if, f o r j
-
2,..,,N, t h e j-th l i n e ha8 been added t othe
bmkhl,
..,,4-,
acoording t o t h e a d d i t i o n law (see1.4.6).
(
ii.1
( i i i )A t t h e j-th l i n e b . and y
.
( i f they a r e not-,
PN o r s o r t ) J Ja r e expressions c o n t a i n i y o n l y i d e n t i f i e r s
P,
,
.
. .
,p
j-l (and of course parenthes.26 and cn7nrna'
s ).
If
pi
occurs i n an expression, then y i s-
o r PN. iI f (0,n.P) i s an admissibl e t r i p l e f o r t h e book A,
,..
.
,AN,
and if l? s o r t , t h e n (o,17,
-1
i s a l s o an admissible t r i p l e f o r t h a t book.1.5 Description of PAL. Having described LONGPAL completely,
it
i s q u i t e eaey t o say I r h a t B L is, The d i f f e r e n c e l i e s only i n t h e f a c t t h a t t h e PAL-expreesion a r e abbreviated n o t a t i o n s f o r the LOI?GPALexpressions. Actuallya
book w r i t t e n i n PAL can be t r a n s l a t e d i n t o a book i n LONGPAL by t h e simple procedure of r e p l a c i n g e v e r y b and every y . ( i f they a r e not--,
PN
o r s o r t ) by t h ej J
LONGPAL-express ions they a r e abbreviations for. On t h e other hand, every book w r i t t e n i n LONGPAL i s a l s o a c o r r e c t book i n PAL. It may be p o s s i b l e t o a b b r e v i a t e some of i t s expressions, but i t i s by no means
an o b l i g a t i o n
1.5.1 Our present d e s c r i p t i o n of PAL i s given by means of LONGPAL. However, part of t h e p r a c t i c a l value of PAL l i e s i n t h e f a c t t h a t i t i s p o s a i b l e t o m ~ n i p u l a t e with t h e abbreviated expressions themselves, m t h e r then
translating
i n t o LONCPAL a t mry stage.1.5.2 The expmasione occurring i n PAL a r e s t i l l of t h e form deeoribed
in
11.4.2, and a book w r i t t e n in PAL s t i l l s a t i s f i e s ( i ) of 1.4.7, butit
doer n o t neoeaearily e a t i s f y ( i i ) of 1.4.Let A,,..
,AN
be a book m i t t e n in LONGPAL, and l e t o bean
admiasiblortring
( m e 1.4.3). We shall d e f i n e (by r e c u r s i v e d e f i n i t i o n )an
o p e n t o rTo
that mps
a
o e r t a i n subset of pN i n t o PN ( a s i n 1.4.4, t h i s pN i n the a e tof
a l l P A L - ~ I ~ ~ B E ~ O ~ ) , T ~ ( E ) rill be oalled t h e normalforn
of 2,
andZ
i13died
an
a b b m i a t i o n f o r a ( ~ ) .(
ii)
Let 1
c
j 4 N, l e t 6 P -,and assume thatp i
i s one o f t h ej
e n t r i e s of a
.
ThenP
. is a P-4L-expression, and w e d e f i n e JLet 1 S j G N, l e t T be a str~rg such t h a t both T c a .
and
J
s c a. Let k be t h e length of T
,
an7 l e t h+
lc be t h e leng-th of a Let the s t r i n g o c o n s i s t ofp i
,...,pi
,
pi
,...,$
.
j* j 1
h
h+llh4.k
If k
>
0, l e t El,..
.
, E b expressions f o r which To(Z1),
. . .
,T=(%)
k
have already been defined. Let now Z
be
t h eexpression
P
( 2,..
.
,C]
j 1 Then w e d e f i n e
T
)
Q(P
'j
i~
,***,Pi
k
T~(Z~)~.**,T,(~~)))
i f b . i s d i f f e r e n t from
-
andPN,
and J(pf
as
definedin
1 . 4 5 ( i i ) ) i fL
-
FN.
j
I n t h e case that k = 0, we define
if b
.
is
d i f f e r e n t f r o m-
and PI?, and JI - 1 1
-
, I 'i.
-
-.
.*
1 , t b ,, / I :;' ,Correct PAL book, A book i s c a l l e d correct \fS''PAL i f it can be obtained from a LONGPBL book A,
,
.
.
.
,
%
in the following way : If 1s
j'
n, and if 63
is
not-
o r
W, then replaoe b by any expression b ! which i s such t h a t T ( b t )-
j J
%
j9
and
s i m i l h l y replace y,
i fi t
i s n o tsort,
by some y! J with T ( y ' )-
y.
I o t i o7
j3
t h a t and y! an, not uniquely defined, and t h a t i n p a r t i c u l a r T ( 8)
=J
3
j
%'
T ( y j )
-
Yj.9
G
Examples. We r e f a r t o 1.4 f o r the PAL version of a LONPAL book. ( l i n e s A',O,..., A' 14
).
AL an6 LQNGAL. These languages have the same s t r u o t u r e
as
PALaad
LOWPAL.They a m richer, since they admit expressions t h a t do not e x i s t
in
PALe r
L O W -
PAL. Every PAL-book i s a l s o an AL-book, but not t h e o t h e r w s ym a .
The
mlatld
between AL and LONGBL i s s i m i l a r t o the r e l a t i o n between PAL
and
LOISCPBL.Bgsin,
any LONGAL-book i s
a1
s oan
&-book. And e w q . AL-bookoan
be considered t o u i . 4 from a LONGAL-book by abbreviation of the expreesione givenas
d e f i n i t l o n e .nbaategoriee.
1.6.1 I n 1.4.1 r e defined the notion of PAL-expnasion. The d e f i n i t i o n of
AL-
expremion w i l l be similar. A s i n 1.4.1, the d e f i n i t i o n w i l l be ohossn r a t h e r l i b e r a l l y , and i t i. not automatic t h a t every A l - e r p n s a i o n can a c t u a l l y oaourin
an AL-book.Again we have a s e t of d i s t i n c t symbols oalled i d e n t i f i e r s . Moreover
no
now have an i n f i n i t e s e t K of symbols whichare
mutually different,aad
diffora
from the i d e n t i f i e r e . The element8 of K a r e c a l l e d indetermiaater. We s h a l l uaro t h e word l e t t e r t o denote something that i s e i t h e r
an
indetexminatb o ran
i d e n t i f br. The eret of all l e t t e r s i s denoted by S.\'I
1.6,2 ~ h ~ ~ ~ ~ t ' i o n of "AL-expnssiontt i s defined by
'
-.
( i ) If
$3
i s a l e t t e r , thenP
i s an AL-expression.( i i
>
I f k 3 1, ifp
i s an i d e n t i f i e r , and i f XI,
.
.
.
,
i;x
a r ea-
expressions, then,
,
.
.
,,
i s an R1.-expression.( i i i ) If
Z,
and 1: a r e AL-expressions, t h e n(z,
}.Y2 i s an AL- expression.( i d If L1 and C2 a r e AL-expressions, and i f A i s an indeterminate,
1.6.3 F r e e variables.
Uz
of S t o be c a l l e d recursively.To every Al-expression C we s h a l l a s s i g n a subset t h e s e t of f r e e v a r i a b l e s of
C
.
We d e f i n eit
an i d e n t i f i e r , then U f3 is empty. an indeterminate, then UA
-
{A).
( i i i ) I f k 3 1 , i f i s an i d e n t i f i e r , and X I ,
...,\
a r e hl- expressions, then t h e s e t of f r e e v a r i a b l e s of $(z,,.
.
.
, X k)
i s t h e union of those of Z,,
.
.
.
,
zk*(
i v ) I f C 1 and X2 a r e AL-eqressions, t h e s e t of f r e e variables of{x,
}z2
i s t h e union of t h o s e of Z1 and Z2.(4
Lf
X 1 and G 2 a r e ALeexprassions, and ff A € S, t h e n t h o ref o f f r e e v a r i a b l e s of [A,$
@
i s defined as1
A.4
We shall d e s c r i b e LONGAL i n j u s t t h e same r a y ae o u t l i n e d i n 1.4.1 f o r LONGPAL.1
,6.5
A
LONGAL-bookis
called
partly
correct
if oonditions (i),
(ii),
(iii)
of
1.4.2 hold, provided that ( i i i ) is phrased w i t h &-erpressions instead of PAL-expre~sions.1i6.6 The i n d i c a t o r s t r i n g s &d admissible s t r i n g s a r e defined as i n 1.2.4
1.6.7 S u b s t i t u t i o n operator. Let a be a f i n i t e s t r i n g of k d i f f e r e n t l e t t e r s ( k
>
1)
Let5 ,
.
.
.
,
be AL-eqressions. We s h a l l define an operator Q( 5
,.
.
.
,
s)
th8tu
maps a c e r t a i n claes of AL-expressions i n t o AL-expressions.
o or
t h especial
case t h a t
u
contains no i n d e t s m i n a t es and that Z.,,
.
.
.
,
%
a r e PAL-expreeeiolllr, t h e e f f e c t of the operator on PAL-expressions i s t h e one described i n 1.4.4).We s h a l l define R ~ ( Z . ,
,
. .
.
,
I$ recursively.( 0 I f
p
i s a l e t t e r then ( Q u ( I + , , . .,%))$
equals fl i t s e l fif $
d u o
not occur i n the s t r i n g a,
and i t equalsZi
i fP
i s t h e i - t h e l a a a t of t h e s t r i n g .( i i ) I f
P
i s an i d e n t i f i e r , i f A,,.
.
.
,%
a r e AL-expresaions (1r
I), and A-
p(+,..
.+,),
then( 1 t may arouse a u r i o s i t y t h a t $ ? f Z f Z f o r m e d , but
in
our a p p l i c a t i o n s this$ w i l l not be
a
m e m b e r of t h e e t r i n g o).
(id
Let A l 4 be Al-expressions, l e t A be an indetezminate,and
A j
-
[A&,&.
It is possible that A occurs i n t h e a t r i n g a. We denote by+
the a t r i n g obtained from
o
by d e l e t i n gI
( s o r-
o i f A does n d t oocud sad1*.
+**.13
t h e a t r i n g obtained from El,
.
.
.
,%
by d a l e t i n g t h e P3
If' A happ.n.dt o
be
t h e j-th entryof
0.
( ~ e n c e1
-
k o r1
-
k-
1).
and
we d e f i n e1,6,8 Admissible t r i p l e s . As i n 1.4.5,we shall d e f i n e a s e t of admissible t r i p l e s with respect t o a book A , , , . . , ) ' N by recursion. The c o n s t r u c t i o n i s more i n t r i c a t e i n the present case, i n p a r t i c u l a r s i n c e N w i l l be not constant d u r i n g the recursion: the question whether some t r i p l e s a r e admissible with r e s p e c t t o a given book w i l l sometimes be answered by a s k i n g whether some a l i g h t l y simpler t r i p l e w i l l be admissible with r e s p e c t t o a s l i g h t l y longer book.
We assume that
+,...,b
i s a p a r t l y c o r r e c t book. Let Px denote t h emet
of
a l l AL-expressions formed by means of $l,...#N as i d e n t i f i e r e .SN
i s
the set of a l l admissible s t r i n g sof
A ? , ..
.
,AN.
The admissible t r i p l e s f o r t h e b a ~ k A ~ , . . . & ~ all have t h e form (o&&'), where u E S P A €Pp F-
sert
o r
F E pr ~ c t m ~ l yi t rill t u r n out
that A has t h e empty s e t aa k i ~met
oft-
1 . f ~f r e e v a r i a b l e s . The same t h i n g holds f o r
'
I
i fit
i s not aort. We r e q u i r e(ii) ( i d e n t i o a l t o ( i i ) of 1.4.5) ( i d e n t i c a l
t o
( i i i ) of 1.4.5)(
i d
LetA €
PN,
8 EPr
Let A bean
indeterminate. Then the t r i p l e(u,[A,A@,
e o r t )
i a admissible i f t h e following aonditione sue Both s a t i s f i e d : (a) ( u , & s o r t ) is an admissible t r i p l e t (b)(o
',
@ l r )
(B
N+,))O, 8013) i san
admissible t r i p l e with reapeot t o t h e book A,,.
. .
,
Ap.
Hem AN+,is
t h e l i n e with identifierBN+l
,
and with ON+,-
0#$+,
-
-9YN+,
- A , aad a* i s t h est*
o
+
{&+l}
( L e e t h e string obtained by p l a c i n g t h eextra
dement@ ~ + l a f t e r the s t r i n g = ) . F i n a l l y ,
{A}
atands f o r the string o m - s i s t i n g of the element A only.(4
Let AEPp
B EPN,B
EP N,
and l e t A be en indeterminate.Then
t h e t r i p l e (U,[A,A]B,[A,A 12) i s admissible i f both (o,h,sort),(P
)@,
Q { ~ J ( P , + , 12)' A } N+1 axe admissible ( f o r n o t a t i o n s e e under (iv&
Let A EPN, 9 EPNe C EFpT, l e t o be a n admissible string, and
l e t Alp be d i s t i n o t v a r i a b l e s . Assume t h a t (a ,@ ,A) and ( a & ,[A,A 191
are admissible, We consider two cases:
( a ) C has the f o w , A ] E ~ . NOW we define that
(b) C does not start with
[
.
Then we, d e f i n e t h a t(
4{@N
(@
18i s an admissible t r i p l e .
1.6.9 Addition
law.
This lawi s l i t e r a l l y the same
as t h e one of 1.4.6, although t h e meaning of t h e words and symbols i s t h e one of s e c t i o n a 1r6.1-1.6.8 r a t h e rthur
t h e one of s e c t i o n s 1 .4.1-1.4.5.
1.6.10 A book A l
,.
.
.
,AN
is milled a c o r r e c t LONGAL-book i fit
i spartly
oornot
and if, f o r j
-
2,...,
N1 the j-th l i n e has been added t o t h e bookAl,...,5-, socording t o t h e a d d i t i o n l a w .1.7. D e s c r i p t i o n of
BL.
An AL-book i s a LONGAL-book with abbreviated formsof
t h e expressions, j u s t l i k e PAL a b b r e v i a t e s LONGPAL. Therulee
a r e t h o s e of 1.5 p l u s some e x t r a ruleer( i i i > If 0 and A
are
expressions f o r which T Q has been defined,and
if C-
[A #]E,
then we d e f i n eI f 8
and
Z
are
exprerssione
for
whioh
T
ohas
been defined,
if
I f 8 and C a r e expressions f o r which