-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.tex
887 lines (887 loc) · 31.3 KB
/
index.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
\addcontentsline{toc}{section}{\protect\numberline{}{Index}}
\label{index-sec}
\begin{theindex}
\item \verb+()+ (0-tuple), 67, 71, 73
\item \verb+( )+, 3
\subitem in expression, 7, 8, 24, 51, 67, 70, 71
\subitem in pattern, 9, 28, 55, 67, 73
\subitem in sequence, 7, 69
\subitem in type expression, 9, 29, 73
\item \verb+[ ]+, 3, 67, 71, 73
\item \verb+{ }+, 3
\subitem in atomic expression, 8, 24, 51, 71
\subitem in pattern, 9, 28, 55, 73
\subitem in record type expression, 9, 29, 73
\item \verb+(* *)+ (comment brackets), 4, 5
\item \verb+,+ (comma), 3, 7, 67, 69, 71, 73
\item \verb+...+ (wildcard pattern row), 3, 9, 28, 30, 55, 73
\item \verb+_+ (underbar)
\subitem wildcard pattern, 3, 28, 54, 73
\subitem in identifier, 4
\item \verb+|+, 3, 4, 71, 72
\item \verb+=+ (reserved word), 3
\item \verb+=+ (identifier and basic value), 4, 48, 77, 79
\item \verb+=>+, 3
\subitem in a match rule, 8, 71
\item \verb+->+, 3, 9, 29, 73
\item \verb+~+, 3, 4, 48, 75, 78
\item \verb+.+ (period)
\subitem in real constants, 3
\subitem in long identifiers, 4
\item \verb+"+, 3
\item \verb+\+, 3, 4
\item \verb+!+, 4, 75, 78
\item \verb+%+, 4
\item \verb+&+, 4
\item \verb+$+, 4
\item \verb+#+, 3, 4, 67, 71
\item \verb(+(, 4, 48, 75, 77, 79
\item \verb+-+, 4, 48, 75, 77, 79
\item \verb+/+, 4, 48, 75, 77, 79
\item \verb+:+ (see also type constraint), 4
\item \verb+::+, 74--77
\item \verb+:=+ (assignment), 47, 51, 75, 77
\item \verb+<+, 4, 48, 75, 77, 79
\item \verb+>+, 4, 48, 75, 77, 79
\item \verb+<=+, 48, 75, 77, 79
\item \verb+>=+, 48, 75, 77, 79
\item \verb+<>+, 48, 75, 77, 79
\item \verb+?+, 4
\item \verb+@+, 4, 75, 77
\item \verb+'+, 4
\item \verb+^+, 3, 4, 75, 77
\item \verb+*+, 4, 48, 67, 73, 75, 77, 79
\item $\emptymap$ (empty map), 17
\item $+$ (modification), 17, 18, 50
\item $\oplus$, 18, 31
\item $\Lambda$ (in type function), 17, 19, 27
\item $\forall$ (in type scheme), 17, 19
\subitem see also generalisation
\item $\alpha$ (see type variable)
\item $\varrho$ (see record type)
\item $\tau$ (see type)
\item $\tauk$ (type vector), 17, 19
\item $\tych$ (type scheme), 17, 19, 21, 23, 27, 34, 42, 75, 76
\item $\longtych$ (see type scheme)
\item $\rightarrow$ (function type), 17, 24, 29
\item $\downarrow$ (restriction), 58
\item $\typefcn$ (see type function)
\item $(\theta,\CE)$ (see type structure)
\item $\typefcnk$ (see type function)
\item $\sig$ (see signature)
\item $\longsig{}$ (see signature)
\item $\funsig$ (see functor signature)
\item $\longfunsig{}$ (see functor signature)
\item $\tyrea$ (type realisation), 33
\item $\strrea$ (structure realisation), 33
\item $\rea$ (realisation), 33, 35, 45
\item $\geq$ (see instance)
\item $\succ$ (see generalisation and enrichment)
\item $\ts$ (turnstile), 2, 23, 24, 37, 49, 58, 63
\item $\tsdyn$ (evaluation), 63
\item $\tsstat$ (elaboration), 63
\item $\ra$, 2, 23, 37, 49, 58, 63
\item $\langle\ \rangle$ (see options)
\item $\langle'\rangle$, 39
\indexspace
\parbox{65mm}{\hfil{\large\bf A}\hfil}
\indexspace
\item $a$ (see address)
\item $\Abs$ (abstype operation), 22, 25
\item {\tt abs}, 48, 75, 78
\item {\tt Abs}, 48, 78
\item $\ABSTYPE$, 3, 8, 22, 25, 68, 72
\item abstype declaration, 8, 22, 25, 72
\item addition of numbers (\ml{+}), 4, 48, 75, 77, 79
\item $\Addr$ (addresses), 46, 47
\item address ($\A$), 46
\subitem fresh, 51
\item admissibility, 33, 35
\item admit equality, 18, 19, 21, 22, 26, 33, 35, 36, 40, 41, 74, 79
\item $\AND$, 3, 12--14, 72
\item \ANDALSO, 3, 67, 71
\item appending lists (\verb+@+), 4, 75, 77
\item $\apexp$ (application expression), 69, 71
\item application, 8, 24
\subitem of basic value ($\APPLY$), 48, 52, 78
\subitem of (function) closure, 52
\subitem of value constructor, 51
\subitem of exception name, 51
\subitem of {\tt ref}, 51
\subitem of {\tt :=}, 51, 75
\subitem infixed, 8
\item application of functor (see functor application)
\item application of type function, 19, 29
\item application expression, 69, 71
\item applicative type variable (see type variable)
\item $\APPLY$ (see application)
\item $\AppTyVar$ (applicative type variables), 4
\item $\apptyvars$ (free applicative type variables), 17
\item {\tt arctan}, 48, 75, 78
\item arity
\subitem of type name, 16
\subitem of type function, 19, 41
\item arrow type (see function type expression)
\item \AS, 3, 9, 29, 56, 73
\item assignment (\ml{:=}), 47, 51, 75, 77
\item $\atexp$ (atomic expression), 7, 8, 23, 50, 67, 71
\item atomic expression, 7, 8, 23, 50, 67, 71
\subitem as expression, 8, 24, 51
\item atomic pattern, 7, 9, 28, 54, 67, 73
\subitem as pattern, 9, 29, 55, 73
\item $\atpat$ (atomic pattern), 7, 9, 28, 54, 67, 73
\indexspace
\parbox{65mm}{\hfil{\large\bf B}\hfil}
\indexspace
\item $b$ (see basic value)
\item $\B$ (see basis)
\item $\B_0$ (initial basis)
\subitem static, 74
\subitem dynamic, 77
\item bare language, 1
\item $\BasExc$ (basic exception names), 48, 77
\item basic value ($b$), 46--48, 77--80
\item basis ($\B$), 1
\subitem static, 23, 31, 37, 63, 74
\subitem dynamic, 57, 63, 77
\subitem combined, 63
\item $\Basis$ (bases), 31, 57, 63
\item $\BasVal$ (basic values), 46--48, 77--80
\item $\Bdyn$ (dynamic basis), 63
\item {\tt Bind} (exception), 48, 54
\item $\BOOL$, 74, 76
\item bound names, 31--33
\item $\Bstat$ (static basis), 63
\indexspace
\parbox{65mm}{\hfil{\large\bf C}\hfil}
\indexspace
\item $\C$ (context), 17, 18, 23--30
\item ``{\tt Cannot open} $s$'', 80
\item \CASE, 3, 67, 71
\item $\CE$ (constructor environment), 17, 21, 22, 27, 43
\item {\tt chr}, 48, 75, 78
\item {\tt Chr}, 48, 78
\item $\cl{}{}$ (closure of types etc.), 21, 25, 27, 40, 42
\item \verb+close_in+, 48, 76, 79, 80
\item \verb+close_out+, 48, 76, 80
\item $\Closure$ (function closures), 47
\subitem recursion, 49
\item closure rules (signatures and functors), 14, 40, 43, 44
\item coercion of numbers (\ml{real}), 48, 75, 78
\item comments, 4, 5
\item composition of functions (\ml{o}), 75, 77
\item $\con$ (see value constructor)
\item $\Con$ (value constructors), 4, 47
\item $\constrs$ (constructor binding), 7, 8, 27, 72
\item $\ConBind$ (constructor bindings), 7, 46
\item concatenating strings (\verb+^+), 4, 75, 77
\item $\condesc$ (constructor description), 11--13, 42, 57
\item ConDesc (constructor descriptions), 11, 57
\item $\ConEnv$ (constructor environments), 17
\item ``consing'' an element to a list (\ml{::}), 74--77
\item consistency
\subitem of type structures, 32, 43
\subitem of semantic object, 32, 33, 42
\item constant (see also value constant and exception constant)
\subitem special (see special constant)
\item construction (see value construction and exception construction)
\item constructor binding ($\constrs$), 7, 8, 27, 72
\item constructor description, 11--13, 42, 57
\item constructor environment ($\CE$), 17, 21, 22, 27, 43
\item $\ConsType$ (constructed types), 17
\item contents of (see dereferencing)
\item context ($\C$), 17, 18, 23--30
\item $\Context$ (contexts), 17
\item control character, 3
\item Core Language, 1
\subitem syntax, 3
\subitem static semantics, 16
\subitem dynamic semantics, 46
\item Core Language Programs, 64
\item {\tt cos}, 48, 75, 78
\item cover, 35
\item cycle-freedom, 32, 33
\indexspace
\parbox{65mm}{\hfil{\large\bf D}\hfil}
\indexspace
\item \DATATYPE, 3, 8, 13, 25, 40, 57, 68, 72
\item datatype binding, 7, 8, 27, 72
\item datatype declaration, 8, 25, 72
\item datatype description, 11, 13, 42
\item datatype specification, 13, 40, 57
\item $\datbind$ (datatype binding), 7, 8, 27, 72
\item DatBind (datatype bindings), 7, 46
\item $\datdesc$ (datatype description), 11, 13, 42
\item DatDesc (datatype descriptions), 11, 57
\item $\dec$ (declaration), 7, 8, 25, 53, 68, 72
\item Dec (declarations), 7
\item declaration (Core), 7, 8, 25, 53, 68, 72
\subitem as structure-level declaration, 12, 38, 59
\item dereferencing (\ml{!}), 4, 75, 78
\item derived forms, 1, 6, 10, 66--68
\item {\tt Diff}, 48, 79
\item digit
\subitem in identifier, 4
\subitem in integers and reals, 3
\item $\dir$ (fixity directive), 6, 8, 10
\item directive, 8
\item {\tt div}, 48, 75, 77, 79
\item {\tt Div}, 48, 79
\item division of reals (\ml{/}), 48, 75, 77, 79
\item \DO, 3, 67, 71
\item $\Dom$ (domain), 17
\item dynamic
\subitem semantics (Core), 46
\subitem semantics (Modules), 57
\subitem basis (see basis)
\indexspace
\parbox{65mm}{\hfil{\large\bf E}\hfil}
\indexspace
\item $\exval$ (exception value), 47
\item $[\exval]$ (see packet)
\item \verb+E+\ (exponent), 3
\item $\E$ (environment)
\subitem static, 17, 22, 23, 25, 26
\subitem dynamic, 47, 50--56, 58, 59
\item $\EE$ (see exception constructor environment)
\item elaboration, 1, 2, 23, 37, 63
\item \ELSE, 3, 67, 71
\item empty
\subitem declaration (Core), 8, 26, 53, 72
\subitem functor declaration, 14, 43, 62
\subitem functor specification, 14, 43
\subitem signature declaration, 12, 40, 60
\subitem specification, 13, 41, 61
\subitem structure-level declaration, 12, 38, 59
\item $\e$ (exception name), 46, 54
\item \END, 3, 8, 12, 13, 71, 72
\item \verb+end_of_stream+, 48, 76, 80
\item enrichment ($\succ$), 30, 34, 37, 39, 44
\item $\excs$ (exception name set), 47, 54
\item $\Env$ (environments), 17, 47
\item \EQTYPE, 10, 13, 40, 57
\item equality
\subitem admit equality, 18, 19, 21, 22, 26, 33, 35, 36, 40, 41, 74, 79
\subitem maximise equality, 21, 25
\subitem on abstract types, 21, 22
\subitem of structures (sharing), 42
\subitem of type functions (sharing), 19, 42, 43
\subitem of type schemes, 19
\subitem of values, 18, 75, 77, 79
\subitem -principal, 36, 39, 40, 43, 44
\subitem respect equality, 21, 26, 35, 36
\item equality attribute
\subitem of type name, 16, 19, 21, 22, 33, 35, 36, 40
\subitem of type variable, 4, 16, 18, 19
\item equality type, 18, 19, 75
\item equality type function, 19
\item equality type specification, 13, 40, 57
\item equality type variable, 4, 16, 18, 19
\item escape sequence, 3
\item evaluation, 1, 2, 49, 58, 63
\item $\exnbind$ (exception binding), 7, 8, 27, 54, 72
\item ExBind (exception bindings), 7
\item \EXCEPTION, 3, 8, 13, 25, 40, 53, 60, 72
\item exception binding, 7, 8, 27, 54, 72
\item exception constant ($\exn$ or $\longexn$)
\subitem as atomic pattern, 9, 28, 54, 55, 73
\item exception construction
\subitem as pattern, 9, 29, 55, 73
\subitem infixed, as pattern, 6, 9, 73
\item exception constructor
\subitem as atomic expression, 8, 23, 51, 71
\item exception constructor environment ($\EE$)
\subitem static, 17, 18, 27, 58
\subitem dynamic, 47, 54, 58
\item exception convention, 50--52, 64
\item exception declaration, 8, 25, 53, 72
\item exception description, 11, 13, 42, 61
\item exception name ($\e$), 46
\subitem fresh, 54
\item exception name set ($\excs$), 47, 54
\item exception packet (see packet)
\item exception specification, 13, 40, 60
\item exception value ($\exval$), 47
\item $\exn$ (see exception constant or constructor)
\item $\Exn$ (exception constructors), 4
\item $\ExnEnv$ (exception constructor environments), 17, 47
\item $\exns$ (exeption constructor set), 57, 61
\item $\exndesc$ (exception description), 11, 13, 42, 61
\item ExDesc (exception descriptions), 11
\item execution, 1, 63
\item exhaustive patterns, 30, 48
\item $\EXCN$, 24, 28, 29, 42, 74, 76
\item $\Exc$ (exception names), 46
\item $\ExcSet$ (exception name sets), 47
\item $\exp$ (expression), 7, 8, 24, 51, 67, 71
\item Exp (expressions), 7
\item {\tt exp} (exponential), 48, 75, 78
\item {\tt Exp}, 48, 78
\item expansive expression, 20, 21
\item {\tt explode} (a string), 48, 75, 79
\item expression, 7, 8, 24, 51, 67, 71
\item expression row, 7, 8, 24, 51, 71
\item $\labexps$ (expression row), 7, 8, 24, 51, 71
\item ExpRow (expression rows), 7
\item $\ExVal$ (exception values), 47
\indexspace
\parbox{65mm}{\hfil{\large\bf F}\hfil}
\indexspace
\item $\F$ (functor environment), 31, 43, 44, 57, 61, 62
\item $\FAIL$ (failure in pattern matching), 46, 50--56
\item \FALSE, 74--76
\item $\finfun{}{}$ (finite map), 16
\item $\Fin$ (finite subset), 16
\item {\tt floor}, 48, 75, 78
\item {\tt Floor}, 48, 78
\item \FN, 3, 8, 9, 24, 52, 71
\item formatting character, 3
\item \FUN, 3, 66, 68, 72
\item $\funbind$ (functor binding), 11, 14, 44, 61, 66, 68
\item FunBind (functor bindings), 11
\item function ($\fnexp$), 8, 24, 52, 71
\item function declaration (see $\FUN$)
\item function type ($\rightarrow$), 17, 24, 29
\item function type expression (\verb+->+), 9, 29, 73
\item function-value binding ($\fvalbind$), 30, 66, 68, 72
\item \FUNCTOR, 10, 14, 43, 62
\item functor application, 12, 37, 59, 68
\item functor binding, 11, 14, 44, 61, 66, 68
\item functor closure, 57, 59, 61
\item functor declaration, 11, 14, 43, 62
\subitem as top-level declaration, 14, 44, 62
\item functor description, 11, 14, 43
\item functor environment ($\F$), 31, 43, 44, 57, 61, 62
\item functor identifier ($\funid$), 10, 12, 14
\item functor signature ($\funsig$), 31, 43--45
\item functor signature expression, 11, 14, 43, 68
\item functor signature matching, 11, 45
\item functor specification, 11, 14, 43
\item $\FunctorClosure$ (functor closures), 57
\item $\fundec$ (functor declaration), 11, 14, 43, 62
\item FunDec (functor declarations), 11
\item $\fundesc$ (functor description), 11, 14, 43
\item FunDesc (functor descriptions), 11
\item $\FunEnv$ (functor environments), 31, 57
\item $\funid$ (functor identifier), 10, 12, 14
\item $\FunId$ (functor identifiers), 10
\item $\funsigexp$ (functor signature expression), 11, 14, 43, 68
\item FunSigExp (functor signature expressions), 11
\item $\funspec$ (functor specification), 11, 14, 43
\item FunSpec (functor specifications), 11
\item $\FunType$ (function types), 17
\item $\fvalbind$ (function-value binding), 66, 68, 72
\subitem exhaustive, 30
\indexspace
\indexspace
\indexspace
\parbox{65mm}{\hfil{\large\bf G}\hfil}
\indexspace
\item $\G$ (signature environment), 31, 40, 57, 60
\item generalisation ($\succ$), 19, 23, 28--30, 34
\item generative signature expression, 12, 39, 60
\item generative structure expression, 12, 37, 59
\item grammar, 1
\subitem for the Core, 6, 69
\subitem for Modules, 10
\indexspace
\parbox{65mm}{\hfil{\large\bf H}\hfil}
\indexspace
\item \HANDLE, 3, 8, 24, 52, 71
\indexspace
\parbox{65mm}{\hfil{\large\bf I}\hfil}
\indexspace
\item $\I$ (interface), 57, 60, 61
\item $\IB$ (interface basis), 57, 58, 60, 61
\item identifier ($\id$), 4, 10
\subitem alphanumeric, 4
\subitem long, 4, 65
\subitem qualified, 4
\subitem symbolic, 4
\item $\IE$ (interface environment), 57, 61
\item \IF, 3, 67, 71
\item imperative attribute, 16, 19
\item imperative type, 19, 27
\item imperative type variable (see type variable)
\item implementation, 1, 63
\item {\tt implode} (a string list), 48, 75, 79
\item $\ImpTyVar$ (imperative type variables), 4
\item $\imptyvars$ (free imperative type variables), 17, 44
\item $\In$ (injection), 18
\item \IN, 3, 8, 12, 13, 67, 71, 72
\item \INCLUDE, 10, 13, 41, 61
\item inference, 2
\item inference rules
\subitem static semantics (Core), 23
\subitem static semantics (Modules), 37
\subitem dynamic semantics (Core), 49
\subitem dynamic semantics (Modules), 58
\item $\inexp$ (infix expression), 69, 71
\item InfExp (infix expressions), 69, 71
\item \INFIX, 3, 5, 6, 8, 72
\item infix expression, 6, 8, 69, 71
\item infix pattern, 6, 9, 73
\item infixed identifiers, 5, 6, 8, 10, 71--73, 75
\item \INFIXR, 3, 5, 6, 8, 72
\item initial basis, 2, 74, 77
\item injection (\In), 18
\item {\tt input}, 48, 76, 80
\item input/output, 76, 79
\item instance ($\geq$)
\subitem of signature, 34--36, 39, 41
\subitem of functor signature, 34, 37
\subitem in matching, 35
\item $\INSTREAM$, 74, 76, 79
\item $\INT$, 74, 76
\item $\Int$ (interfaces), 57
\item $\IntBasis$ (interface bases), 57
\item integer constant, 3, 76
\item $\IntEnv$ (interface environments), 57
\item $\Inter$, 57, 60, 61
\item interaction, 1, 63
\item interface ($\I$), 57, 60, 61
\item interface basis ($\IB$), 57, 58, 60, 61
\item interface environment ($\IE$), 57, 61
\item {\tt Interrupt}, 48, 64
\item {\tt Io}, 48, 80
\item irredundant patterns, 30, 48
\item {\tt it}, 68
\indexspace
\parbox{65mm}{\hfil{\large\bf L}\hfil}
\indexspace
\item L (left associative), 7, 70
\item $\lab$ (label), 4, 5
\item $\Lab$ (labels), 4, 5
\item \LET, 3
\subitem expression (Core), 8, 24, 51, 67, 71
\subitem expression (Modules), 12, 37, 59
\item letter in identifer, 4
\item lexical analysis, 5, 6
\item $\LIST$, 74, 76
\item list reversal (\ml{rev}), 75, 78
\item {\tt ln}, 48, 75, 78
\item {\tt Ln}, 48, 78
\item \LOCAL, 3
\subitem declaration (Core), 8, 26, 53, 72
\subitem declaration (Modules), 12, 38, 59
\subitem specification (Modules), 13, 41, 61
\item long identifiers (e.g. $\longexn$), 4, 65
\item {\tt lookahead}, 48, 76, 80
\indexspace
\parbox{65mm}{\hfil{\large\bf M}\hfil}
\indexspace
\item $\m$ (structure name), 16--18, 31--34, 39, 42, 47
\subitem fresh, 37, 38
\item $\M$ (structure name set), 31, 37
\item \ml{map}, 75, 78
\item match ($\match$), 7, 8, 25, 53
\subitem irredundant, 30, 48
\subitem exhaustive, 30, 48
\subitem in closure, 47, 49
\item $\Match$, 7
\item {\tt Match} (exception), 48, 52
\item match rule, 7, 8, 25, 53
\item matching
\subitem signatures (see signature matching)
\subitem functor signatures (see functor signature matching)
\item maximise equality, 21, 25, 35, 36
\item $\mem$ (memory), 47, 51, 56
\item $\Mem$ (memories), 47
\item memory ($\mem$), 47, 51, 56
\item {\tt mod}, 48, 75, 77, 79
\item {\tt Mod}, 48, 79
\item modification ($+$)
\subitem of finite maps, 17
\subitem of environments, 18, 50
\item module, 11
\item Modules, 1
\item $\mrule$ (match rule), 7, 8, 25, 53
\item Mrule (match rules), 7
\item multiplication of numbers (\ml{*}), 48, 75, 77, 79
\indexspace
\parbox{65mm}{\hfil{\large\bf N}\hfil}
\indexspace
\item $\n$ (name, see structure name, type name and exception name)
\item $\N$ (name set), 31, 37
\item $n$-tuple, 67, 71, 73
\item name
\subitem of structure ($\m$), 16--18, 31--34, 37--39, 42, 47
\item name set ($\N$), 31, 37
\item $\NamesFcn$ (free names), 31, 32, 37, 44
\item $\NameSets$ (name sets), 31
\item Natural Semantics, 2
\item {\tt Neg}, 48, 78
\item negation of booleans (\ml{not}), 75, 78
\item negation of numbers (\verb+~+), 3, 48, 75, 78
\item \NIL, 67, 74--76
\item non-expansive expression, 20, 21
\item \NONFIX, 3, 6, 8, 10, 72, 75
\item nonfix identifiers, 6, 8, 10, 72, 75
\item \ml{not}, 75, 78
\item \NUM, 75
\indexspace
\parbox{65mm}{\hfil{\large\bf O}\hfil}
\indexspace
\item \ml{o} (function composition), 75, 77
\item occurrence
\subitem substructure, 31
\item $\of{}{}$ (projection), 18, 31
\item $\OF$, 3
\subitem in $\CASE$ expression, 67, 71
\subitem in constructor binding, 8
\subitem in exception binding, 8, 46
\subitem in exception description, 13, 57
\item \OP, 3, 6
\subitem on variable or constructor, 8, 9, 71--73
\subitem in constructor binding, 8, 72
\item \OPEN, 3, 8, 13, 26, 41, 53, 57, 61, 65, 68, 72
\item \verb+open_in+, 48, 76, 79, 80
\item \verb+open_out+, 48, 76, 79, 80
\item opening structures in declarations, 8, 26, 53, 72
\item opening structures in specifications, 13, 14, 41, 61
\item options, 7
\subitem first ($\langle\ \rangle$), 23, 39
\subitem second ($\langle\langle\ \rangle\rangle$), 23
\item {\tt ord} (of string), 48, 75, 79
\item {\tt Ord}, 48, 79
\item \ORELSE, 3, 67, 71
\item {\tt output}, 48, 76, 80
\item ``{\tt Output stream is closed}'' , 80
\item $\OUTSTREAM$, 74, 76, 79
\indexspace
\parbox{65mm}{\hfil{\large\bf P}\hfil}
\indexspace
\item $\p$ (see packet)
\item $\Pack$ (packets), 47
\item packet ($\p$), 47, 50, 52, 58, 63, 64
\item parsing, 1, 63
\item $\pat$ (pattern), 7, 9, 29, 55, 67, 73
\item Pat (patterns), 7
\item $\labpats$ (pattern row), 7, 9, 28, 55, 67, 73
\item PatRow (pattern rows), 7
\item pattern, 7, 9, 29, 55, 67, 73
\subitem layered, 9, 29, 56, 73
\item pattern matching, 30, 46, 48, 55
\subitem with $\REF$, 55, 56
\item pattern row, 7, 9, 28, 55, 67, 73
\item polymorphic
\subitem functions, 23, 25, 28
\subitem references, 20, 21, 25, 44, 75
\subitem exceptions, 20, 27, 42, 44
\item precedence, 7, 69
\item principal
\subitem environment, 30, 38
\subitem equality-, 36, 39, 40, 43, 44
\subitem signature, 35, 36, 39, 40, 43, 44
\item printable character, 3
\item {\tt Prod}, 48, 79
\item product type (\verb+*+), 67, 73
\item program ($\program$), 1, 63, 64
\item Program (programs), 63
\item projection ($\of{}{}$), 18, 31
\indexspace
\parbox{65mm}{\hfil{\large\bf Q}\hfil}
\indexspace
\item qualified identifier, 4
\item {\tt Quot}, 48, 79
\indexspace
\parbox{65mm}{\hfil{\large\bf R}\hfil}
\indexspace
\item $\r$ (record), 47, 51, 55
\item R (right associative), 7, 70
\item \RAISE, 3, 8, 24, 25, 50, 52, 63, 71
\item $\Ran$ (range), 17
\item $\REAL$
\subitem the type, 74, 76
\subitem coercion, 48, 75, 78
\item real constant, 3, 76
\item realisation ($\rea$), 33, 35, 45
\item $\REC$, 3, 8, 9, 26, 49, 54, 72
\item $\Rec$ (recursion operator), 49, 52, 54
\item record
\subitem $\r$, 47, 51, 55
\subitem as atomic expression, 8, 24, 51, 67, 71
\subitem as atomic pattern, 9, 28, 55, 67, 73
\subitem selector (\ml{\#}\ {\it lab}), 3, 67, 71
\subitem type expression, 9, 29, 73
\subitem type ($\varrho$), 17, 24, 28, 30
\item Record (records), 47
\item $\RecType$ (record types), 17
\item recursion (see $\REC$, $\Rec$, and $\FUN$)
\item $\REF$
\subitem the type constructor, 74, 76
\subitem the type name, 19, 74--76
\subitem the value constructor, 46, 51, 55, 56, 75, 76, 78
\item reserved words, 3, 10
\item respect equality (see equality)
\item restrictions
\subitem closure rules (see these)
\subitem syntactic (Core), 9, 30
\subitem syntactic (Modules), 12
\item \ml{rev}, 75, 78
\indexspace
\parbox{65mm}{\hfil{\large\bf S}\hfil}
\indexspace
\item $\s$ (state), 47, 49, 51, 56, 58, 63, 64
\item $\S$ (structure), 17, 31, 32, 34, 37, 39, 47
\item {\SCon} (special constants), 3
\item {\scon} (see special constant)
\item scope
\subitem of constructor, 5, 18
\subitem of value variable, 5, 18
\subitem of fixity directive, 6, 10
\subitem of explicit type variable, 20, 26
\item $\SE$ (structure environment)
\subitem static, 17, 18, 31, 34, 39, 42, 74
\subitem dynamic, 47, 58, 60, 77
\item semantic object, 2
\subitem simple (Static), 16
\subitem simple (Dynamic), 46
\subitem compound (Core, Static), 16, 17
\subitem compound (Core, Dynamic), 47
\subitem compound (Modules, Static), 31
\subitem compound (Modules, Dynamic), 57
\item sentence, 2, 23, 37, 49, 58, 63
\item separate compilation, 11, 14, 15, 45
\item sequential
\subitem expression, 67, 71
\subitem declaration (Core), 8, 26, 53, 72
\subitem functor declarations, 14, 44, 62
\subitem functor specification, 14, 43
\subitem signature declaration, 12, 40, 60
\subitem specification, 13, 41, 61
\subitem structure-level declaration, 12, 38, 59
\item $\shareq$ (sharing equation), 11, 13, 42, 57
\item SharEq (sharing equations), 11, 57
\item sharing, 14, 15, 38, 39, 41, 42, 45
\subitem equations, 11, 13, 42, 57
\subitem specification, 13, 41
\subitem of structures, 13, 42
\subitem of types, 13, 42, 43
\subitem multiple, 13, 42
\item \SHARING, 10, 13, 41
\item side-condition, 49, 58
\item side-effect, 58, 64
\item \SIG, 10, 12, 39, 60
\item $\Sig$ (signatures), 31
\item $\sigbind$ (signature binding), 11, 12, 40, 60
\item SigBind (signature bindings), 11
\item $\sigdec$ (signature declaration), 11, 12, 40, 60
\item SigDec (signature declarations), 11
\item $\SigEnv$ (signature environments), 31, 57
\item $\sigexp$ (signature expression), 11, 12, 39, 60
\item SigExp (signature expressions), 11
\item $\sigid$ (signature identifier), 10, 12, 39, 60
\item $\SigId$ (signature identifiers), 10
\item signature ($\sig$), 31--36, 39, 40, 43--45, 58
\item \SIGNATURE, 10, 12, 40, 60
\item signature binding, 11, 12, 40, 60
\item signature declaration, 11, 12, 40, 60
\subitem in top-level declaration, 14, 44, 62
\item signature environment ($\G$)
\subitem static, 31, 40, 44
\subitem dynamic, 57, 58, 60, 62
\item signature expression, 11, 12, 39, 60
\item signature identifier, 10, 12, 39, 60
\item signature instantiation (see instance)
\item signature matching, 35, 37--39, 44
\item {\tt sin}, 48, 75, 78
\item {\tt size} (of strings), 48, 75, 78
\item $\spec$ (specification), 11, 13, 40, 60
\item Spec (specifications), 11
\item special constant (\scon), 3, 16
\subitem as atomic expression, 8, 23, 50, 71
\subitem in pattern, 9, 28, 54, 73
\item special value ($\sv$), 46
\item specification, 11, 13, 40, 60
\item {\tt sqrt} (square root), 48, 75, 78
\item {\tt Sqrt}, 48, 78
\item state ($\s$), 47, 49, 51, 56, 58, 63, 64
\item $\State$, 47
\item state convention, 50, 51
\item static
\subitem basis, 1, 23, 31, 37, 63, 74
\subitem semantics (Core), 16
\subitem semantics (Modules), 31
\item \verb+std_in+, 48, 76, 80
\item \verb+std_out+, 48, 76, 80
\item $\Str$ (structures), 17
\item $\strbind$ (structure binding), 11, 12, 39, 60
\item StrBind (structure bindings), 11
\item $\strdec$ (structure-level declaration), 11, 12, 38, 59, 64
\item StrDec (structure-level declarations), 11
\item $\strdesc$ (structure description), 11, 13, 42, 61
\item StrDesc (structure descriptions), 11
\item stream (input/output), 79
\item $\StrEnv$ (structure environments), 17, 47
\item $\strexp$ (structure expression), 11, 12, 37, 59, 68
\item $\StrExp$ (structure expressions), 11
\item $\strid$ (structure identifier), 4
\subitem as structure expression, 12, 37, 59
\item $\StrId$ (structure identifiers), 4
\item $\STRING$, 74, 76
\item string constant, 3, 76
\item $\StrNames$ (structure names), 16
\item $\StrNamesFcn$ (free structure names), 31
\item $\StrNameSets$ (structure name sets), 31
\item $\STRUCT$, 10, 12, 37, 59, 68
\item structure ($\S$ or $(\m,\E)$), 17, 31, 32, 34, 37, 39, 47
\item $\STRUCTURE$, 10, 12, 13, 38, 40, 59, 61
\item structure binding ($\strbind$), 11, 12, 39, 60
\item structure declaration, 12, 38, 59
\item structure description ($\strdesc$), 11, 13, 42, 61
\item structure environment ($\SE$)
\subitem static, 17, 18, 31, 34, 39, 42, 74
\subitem dynamic, 47, 58, 60, 77
\item structure expression ($\strexp$), 11, 12, 37, 59, 68
\item structure identifier ($\strid$), 4
\subitem as structure expression, 12, 37, 59
\item structure-level declaration ($\strdec$), 11, 12, 38, 59, 64
\subitem in top-level declaration, 14, 44, 62, 64
\item structure name ($\m$, see name)
\item structure name set ($\M$), 31, 37
\item structure realisation ($\strrea$), 33
\item structure specification, 13, 40, 61
\item substructure, 31
\subitem proper, 31, 32
\item subtraction of numbers (\ml{-}), 48, 75, 77, 79
\item {\tt Sum}, 48, 79
\item {\SVal} (special values), 46
\item $\Supp$ (support), 33
\item $\sv$ (special value), 46
\item symbol, 4
\item syntax, 3, 10, 46, 57, 69
\indexspace
\parbox{65mm}{\hfil{\large\bf T}\hfil}
\indexspace
\item $\t$ (type name), 16, 19, 21, 22, 25, 27, 30--34, 42, 76
\item $\T$ (type name set), 17, 31
\item $\TE$ (type environment), 17, 21, 22, 27, 34, 42, 58
\item \THEN, 3, 67, 71
\item $\topdec$ (top-level declaration), 11, 14, 44, 62, 64
\subitem in program, 63, 64
\item TopDec (top-level declarations), 11
\item top-level declaration, 1, 11, 14, 44, 62, 64
\item $\TRUE$, 74--76
\item truncation of reals (\ml{floor}), 48, 75, 78
\item tuple, 67, 71, 73
\item tuple type, 67, 73
\item $\ty$ (type expression), 7, 9, 29, 46, 67, 73
\item Ty (type expressions), 7, 9, 46
\item $\tycon$ (type constructor), 4, 8, 9, 13, 17, 21, 22, 27, 29, 32, 34, 42, 76
\item $\TyCon$ (type constructors), 4
\item $\TyEnv$ (type environments), 17
\item $\TyNames$ (type names), 16
\item $\TyNamesFcn$ (free type names), 17, 37
\item $\TyNameSets$ (type name sets), 17
\item $\typbind$ (type binding), 7, 8, 27, 46, 72
\item TypBind (type bindings), 7, 46
\item $\typdesc$ (type description), 11, 13, 41, 57
\item TypDesc (type descriptions), 11, 57
\item type ($\tau$), 17--19, 21, 23--25, 28, 29
\item $\Type$ (types), 17
\item $\TYPE$, 3, 8, 13, 25, 40, 42, 46, 57, 72
\item $\scontype$ (function on special constants), 16, 23, 28
\item type binding, 7, 8, 27, 46, 72
\item type constraint (\verb+:+)
\subitem in expression, 8, 24, 46, 71
\subitem in pattern, 9, 29, 46, 73
\item type construction, 9, 29
\item type constructor ($\tycon$), 4, 8, 9, 13, 17, 21, 22, 27, 29, 32, 34, 42, 76
\item type constructor name (see type name)
\item type declaration, 8, 25, 46, 72
\item type description ($\typdesc$), 11, 13, 41, 57
\item type environment ($\TE$), 17, 21, 22, 27, 34, 42, 58
\item type explication, 33--35, 38, 39, 44
\item type-explicit signature (see type explication)
\item type expression, 7, 9, 29, 46, 67, 73
\item type-expression row ($\labtys$), 7, 9, 30, 46, 73
\item type function ($\typefcn$), 17, 19, 21, 22, 27, 32--34, 41--43, 76
\item type name ($\t$), 16, 19, 21, 22, 25, 27, 30--34, 42, 76
\item type name set, 17, 31
\item type realisation ($\tyrea$), 33
\item type scheme ($\tych$), 17, 19, 21, 23, 28, 34, 42, 75, 76
\item type specification, 13, 40, 57
\item type structure $(\theta,\CE)$, 17, 21, 22, 25, 27, 29, 32, 34, 40--43, 75, 76
\item type variable ($\tyvar$, $\alpha$), 4, 9, 16
\subitem in type expression, 9, 29, 73
\subitem equality, 4, 16, 18, 19
\subitem imperative, 4, 16, 18, 19, 21, 25, 27, 30, 44
\subitem applicative, 4, 16, 18, 19, 21, 25, 27
\subitem explicit, 20, 25, 26
\item type vector ($\tauk$), 17, 19
\item $\TypeFcn$ (type functions), 17
\item $\TypeScheme$ (type schemes), 17
\item $\labtys$ (type-expression row), 7, 9, 30, 46, 73
\item TyRow (type-expression rows), 7, 9, 46
\item $\TyStr$ (type structures), 17
\item $\tyvar$ (see type variable)
\item $\TyVar$ (type variables), 4, 16
\item $\TyVarFcn$ (free type variables), 17
\item $\tyvarseq$ (type variable sequence), 7
\item $\TyVarSet$, 17
\indexspace
\parbox{65mm}{\hfil{\large\bf U}\hfil}
\indexspace
\item $\U$ (explicit type variables), 17, 18, 20, 25, 26
\item $\UNIT$, 76
\item unguarded type variable, 20
\indexspace
\parbox{65mm}{\hfil{\large\bf V}\hfil}
\indexspace
\item $\V$ (value), 47, 50--53
\item $\sconval$ (function on special constants), 46, 50, 54
\item $\Val$ (values), 47
\item $\VAL$, 3, 8, 13, 25, 40, 53, 60, 72
\item $\valbind$ (value binding), 7, 8, 20, 21, 25, 26, 54, 72
\subitem simple, 8, 26, 54, 72
\subitem recursive, 8, 26, 54, 72
\item Valbind (value bindings), 7
\item $\valdesc$ (value description), 11, 13, 41, 61
\item ValDesc (value descriptions), 11
\item value binding ($\valbind$), 7, 8, 20, 21, 25, 26, 54, 72
\subitem simple, 8, 26, 54, 72
\subitem recursive, 8, 26, 54, 72
\item value constant ($\con$)
\subitem in pattern, 9, 28, 54, 73
\item value constructor ($\con$), 4
\subitem as atomic expression, 8, 23, 51, 71
\subitem scope, 5, 18
\item value construction
\subitem in pattern, 9, 29, 55, 73
\subitem infixed, in pattern, 9, 73
\item value declaration, 8, 20, 25, 53, 72
\item value description ($\valdesc$), 11, 13, 41, 61
\item value variable ($\var$), 4
\subitem as atomic expression, 8, 23, 50, 71
\subitem in pattern, 9, 28, 54, 73
\item value specification, 13, 40, 60
\item $\var$ (see value variable)
\item $\Var$ (value variables), 4
\item $\VarEnv$ (variable environments), 17, 47
\item variable (see value variable)
\item variable environment ($\VE$)
\subitem static, 17, 18, 21, 25--29, 34, 41, 42, 58, 75, 76
\subitem dynamic, 47, 49, 54, 55, 58, 77
\item $\vars$ (set of value variables), 57, 61
\item $\VE$ (see variable environment)
\item via $\rea$, 35, 45
\item view of a structure, 39, 42, 57, 59, 60
\indexspace
\parbox{65mm}{\hfil{\large\bf W}\hfil}
\indexspace
\item well-formed
\subitem assembly, 32, 33
\subitem functor signature, 32
\subitem signature, 32
\subitem type structure, 21
\item \WHILE, 3, 67, 71
\item wildcard pattern (\verb+_+), 9, 28, 54, 73
\item wildcard pattern row (\verb+...+), 3, 9, 28, 30, 55, 73
\item \WITH, 3, 8, 72
\item \WITHTYPE, 3, 66, 68, 72
\indexspace
\parbox{65mm}{\hfil{\large\bf Y}\hfil}
\indexspace
\item $\Yield$, 33
\end{theindex}