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
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
|
\documentstyle[11pt]{article}
\title{ Version 3.0 \\
Albert User's Guide
}
\author{ D.P. Jacobs \thanks{This research was partially supported by NSF Grant \#CCR8905534} \\
\and
S.V. Muddana \\
\and
A.J. Offutt \\
\and
K. Prabhu \\
\and
D. Lee \\
\and
T. Whiteley \\
\\
Department of Computer Science \\
Clemson University \\
Clemson, S.C. 29634-1906 USA
}
\setlength{\textheight}{8.75 in}
\setlength{\textwidth}{6 in}
\setlength{\oddsidemargin}{.20 in}
\setlength{\evensidemargin}{.20 in}
\setlength{\topmargin}{-.30 in}
\parskip=12pt
\parindent=0em
\begin{document}
\newcommand{\dotalbert}{\mbox{{\bf .albert}}}
\newcommand{\identitycmd}{\mbox{{\bf identity}}}
\newcommand{\removecmd}{\mbox{{\bf remove}}}
\newcommand{\generatorscmd}{\mbox{{\bf generators}}}
\newcommand{\fieldcmd}{\mbox{{\bf field}}}
\newcommand{\buildcmd}{\mbox{{\bf build}}}
\newcommand{\loadcmd}{\mbox{{\bf load}}}
\newcommand{\storecmd}{\mbox{{\bf store}}}
\newcommand{\erasecmd}{\mbox{{\bf erase}}}
\newcommand{\displaycmd}{\mbox{{\bf display}}}
\newcommand{\xpandcmd}{\mbox{{\bf xpand}}}
\newcommand{\polynomialcmd}{\mbox{{\bf polynomial}}}
\newcommand{\typecmd}{\mbox{{\bf type}}}
\newcommand{\catalogcmd}{\mbox{{\bf catalog}}}
\newcommand{\helpcmd}{\mbox{{\bf help}}}
\newcommand{\quitcmd}{\mbox{{\bf quit}}}
\newcommand{\viewcmd}{\mbox{{\bf view}}}
\newcommand{\outputcmd}{\mbox{{\bf output}}}
\newcommand{\savecmd}{\mbox{{\bf save}}}
\newcommand{\changecmd}{\mbox{{\bf change}}}
\maketitle
\vspace{5.0in}
\newpage
\parskip=8pt
\parindent=0em
\tableofcontents
\newpage
\pagestyle{plain}
\parskip=12pt
\section{Introduction}
Albert is an interactive research tool to assist the specialist in
the study of nonassociative algebra.
This document serves as a technical guide to Albert.
We refer the reader to \cite{Jacobs}
for a more casual tutorial.
The main problem addressed by Albert is the recognition
of polynomial identities.
Roughly, Albert works in the following way.
Suppose a user wishes to study {\it alternative algebras}.
These are algebras defined by the two polynomial identities
$(yx)x - y(xx)$ and $(xx)y - x(xy)$,
known respectively as
the right and left alternative laws.
In particular, the user wishes to know if, in the presence of
the right and left alternative laws,
$(a,b,c)\circ[a,b]$ is also an identity.
Here $(a,b,c)$ denotes $(ab)c-a(bc)$,
$[a,b]$ denotes $ab-ba$, and $x \circ y$ denotes $xy+yx$.
The user first supplies Albert with the right and left alternative laws,
using the \identitycmd\ command.
Next, the user supplies the {\em problem type}.
This refers to the number and degree of letters in the
target polynomial.
For example in this problem,
each term of the target polynomial
has two $a$'s, two $b$'s, and one $c$,
and so the problem type is $2a2b1c$.
This is entered using the \generatorscmd\ command.
It may be that over certain rings of
scalars the polynomial is an identity, but
over others it is not an identity.
Albert allows the user to supply the ring of scalars, but currently
the user must select a Galois field $Z_p$
in which $p$ is a prime at most 251.
This is done using the \fieldcmd\ command.
If no field is entered, the default field $Z_{251}$ is chosen.
In deciding whether a given polynomial is an identity or not,
Albert internally constructs a certain homomorphic image of the free algebra.
It is not necessary that the user understand the theory of free algebras,
nor is it necessary to understand the algorithms Albert employs to
create them.
The user need only be aware that
Albert builds a multiplication table
for this free algebra.
The user instructs Albert to begin the construction
using the \buildcmd\ command.
Once this construction has been completed,
the user can query whether the polynomial
$(a,b,c)\circ[a,b]$ is an identity using the
\polynomialcmd\ command.
In fact, the user can ask
Albert about any homogeneous polynomial
$p(a,b,c)$ having most two $a$'s, two $b$'s and one $c$
in each term.
For example, the polynomial $(a,b,(a,b,c))~+~[b,a](a,b,c)$
could also be tested.
With Albert, polynomials and identities may be entered
from the keyboard using associators, commutators,
and much of the familiar notation used in
nonassociative ring theory.
Since the standard keyboard does not have the symbol $\circ$,
we use $*$ to denote the Jordan product.
See the section entitled Polynomial Expression Language for a complete
description of how polynomials and identities can be entered in Albert.
Albert has a small set of commands,
and meaningful research can be conducted using only the
\identitycmd,
\generatorscmd,
\buildcmd,
and
\polynomialcmd\
commands.
These commands, and others, are described
in detail in this guide.
The user who wishes to quickly learn the system is advised to first
try these commands.
Thus, the typical user supplies Albert with the following input:
\begin{itemize}
\item A set $I$ of polynomials whose members are assumed to be identities.
\item A problem type as described above.
\item A field $F$ of scalers.
\end{itemize}
In this document polynomial always means a nonassociative polynomial.
These objects together implicitly define a fourth
object, namely the free nonassociative algebra.
In this document we refer to these four objects collectively
as a {\em configuration}.
Various commands may alter
or delete certain objects of a configuration.
Typically, Albert spends much
of its time constructing a multiplication table.
But once a table has been constructed,
Albert can quickly decide if a polynomial or
group of polynomials are identities.
After initiating a ``build'', the user may wish to abort
the construction without exiting Albert.
As a convenience, entering the {\em control-c} character stops
the build operation, and Albert will return to the command prompt.
{\em All polynomials and defining identities must be homogeneous.}
That is, each must be expressible as a linear combination of words
each having the same degree in each variable.
This restriction is not very severe, since any nonhomogeneous polynomial
can be replaced by its homogeneous parts.
This replacement will not affect the results given a sufficiently
high characteristic for the field.
{\em Albert internally linearizes any
defining identity that is not multilinear.}
Thus the right alternative identity
is always interpreted as $(yx)z - y(xz) + (yz)x - y(zx)$.
However, if a defining identity is not multilinear,
the user is advised {\em not } to linearize it
before entering it, but rather enter it in its
non-multilinear form.
In most cases, this allows Albert to treat it more efficiently,
since the identity's symmetry can be exploited.
In general, the larger the degree of the problem type,
the more memory Albert requires.
Given two problems involving the same degree and the same
defining identities,
Albert will cope best with the one having fewer letters.
The defining identities influence
the problem, too.
Defining identities such as the commutative law
(as in the case of Jordan algebras) and the anticommutative
law ``drive down'' the dimension of the free algebra,
thus enabling larger problems to be solved than might
otherwise be possible.
If Albert is unable to complete a problem having degree $n$,
adding additional identities of degree less than $n$
may allow Albert to finish.
Finally, a word of caution.
Like any program, the possibility is
high for errors.
Please report any suspected bugs or general comments to
D.P. Jacobs at dpj@clemson.edu.
\pagebreak
\section{Command Language}
The commands available with Albert are :
\identitycmd, \removecmd, \generatorscmd, \fieldcmd, \buildcmd,
\displaycmd, \polynomialcmd, \xpandcmd, \typecmd, \helpcmd, \quitcmd,
\viewcmd,
\outputcmd,
\savecmd,
\changecmd.
Each command begins with a keyword,
and the user can use any initial sub-string of the keyword.
For example, the \identitycmd\ command can be used by typing {\bf i, id}, etc.
Every command is terminated by a carriage return.
Some commands (e.g. \identitycmd, \polynomialcmd)
require a polynomial as an argument.
This polynomial may at times exceed the screen-width.
In such cases, the user can continue on the next
line by terminating the preceding line with a backslash ($\backslash$).
\subsection{identity command}
\begin{center}
{\bf identity [{\it polynomial}]} \\
\end{center}
Examples:
\begin{center}
{\bf identity (x,x,[y,x]) }\\
{\bf i (x,(x,(x,y,x),x),x) }\\
\end{center}
This command appends the polynomial to the current set of identities.
Albert assigns a unique number to the entered identity for future use.
Entering a new identity destroys any existing multiplication table in memory.
\begin{itemize}
\item {\bf Arguments:} {\it polynomial} as described in
the section Polynomial Expression Language.
Names defined in the \dotalbert\ file can also
be used to enter a polynomial.
The entered polynomial must be homogeneous.
\item{\bf Errors:} malformed or non-homogeneous polynomial.
\end{itemize}
\subsection{remove command}
\begin{center}
{\bf remove [{\it number $\mid$ $\ast$}]}
\end{center}
This command removes one or more identities from the current
set of identities.
For example,
\begin{center}
{\bf remove 2 }\\
\end{center}
would remove the identity whose number is 2.
The remaining identities are renumbered after deletion of the identity.
An asterisk ($\ast$) can be used in place of {\it number} to remove all
existing identities:
\begin{center}
{\bf r $\ast$ }\\
\end{center}
The \removecmd\ command will
destroy a resident multiplication table, if present.
\begin{itemize}
\item{\bf Arguments:} The {\it number} of the identity, or ``*''.
\item{\bf Errors:} Invalid {\it number}.
\end{itemize}
\subsection{generators command}
\begin{center}
{\bf generators [{\it problem type}]}
\end{center}
Before beginning the construction of an algebra, Albert
must know what the generators will be, and
the degrees of the generators.
This information is referred to as the problem type,
and the \generatorscmd\ command is used to define it.
This problem type is stored in the current configuration.
Entering a new problem type destroys any existing problem type
and any multiplication table, if present.
For example,
\begin{center}
{\bf generators aabcc }\\
{\bf gen aabcc }\\
{\bf g 2ab2c }\\
\end{center}
\begin{itemize}
\item{\bf Arguments:} {\it problem type} is a string of lower-case letters indicating
the generators and degrees used in the problem. For example,
{\it aabcc}
indicates that the algebra to be built will be generated by
{\it a},
{\it b}, and
{\it c}, and will be spanned by words
in these letters having at most two {\it a}'s,
one {\it b}, and two {\it c}'s.
This word must have degree at least two.
This can also be entered in abbreviated form as
{\it 2a1b2c},
{\it 2ab2c},
{\it b2a2c}, etc.
\end{itemize}
\subsection{field command}
\begin{center}
{\bf field [{\it number}]}
\end{center}
This command changes the field of scalars,
and this information is stored as part
of the current configuration.
When the field is changed,
any resident multiplication table is destroyed.
For example,
\begin{center}
{\bf field 17}\\
\end{center}
will cause subsequent algebras to be constructed
over the field $Z_{17}$.
When Albert is first entered, the default field $Z_{251}$
is selected.
This field remains in effect until the field is changed.
\begin{itemize}
\item{\bf Arguments:} The {\it number} must be prime and at most 251.
\item{\bf Errors:} {\it number} out of range or not prime.
\end{itemize}
\subsection{build command}
\begin{center}
{\bf build}
\end{center}
This command invokes Albert to begin construction of the
algebra defined by the current configuration.
Albert constructs the algebra using the
current set of identities, problem type and field stored
in the current configuration.
Status information is printed during the construction.
An old multiplication table is destroyed.
\begin{itemize}
\item{\bf Arguments:} None.
\item{\bf Errors:} Problem type not defined, or
memory overflow during the construction.
\end{itemize}
After initiating a ``build'', the user may wish to abort
the construction without exiting Albert altogether.
If the user enters the {\em control-c} character during
the build operation, Albert will return to the command prompt.
\subsection{display command}
\begin{center}
{\bf display}
\end{center}
Typing \displaycmd\ causes Albert to
display the current set of defining identities, field, problem
type and information about the multiplication table, if present.
\subsection{polynomial command}
\begin{center}
{\bf polynomial [{\it polynomial}]}
\end{center}
After a multiplication table has either been constructed using
\buildcmd, this command may be used to test whether the given polynomial
is zero in the resident algebra.
For example, typing
\begin{center}
{\bf p 2((ba)a)a +((aa)a)b -3((aa)b)a }\\
\end{center}
might cause Albert to respond with:\\
\begin{center}
{\tt Polynomial is not an identity.} \\
\end{center}
\begin{itemize}
\item{\bf Arguments:} {\it Polynomial} has to be homogeneous.
\item{\bf Errors:} Invalid or non-homogeneous polynomial,
nonexistent table, polynomial incompatible
with current problem type.
\end{itemize}
\subsection{xpand command}
\begin{center}
{\bf xpand [{\it polynomial}]}
\end{center}
This command is used to see the expanded form of a nonassociative
polynomial.
For example, typing
\begin{center}
{\bf xpand (x,y,z) }\\
\end{center}
would cause Albert to respond with:\\
\begin{center}
{\tt (xy)z - x(yz)} \\
\end{center}
The command is used for information purposes only and does not
effect the current configuration.
\begin{itemize}
\item{\bf Arguments:} {\it Polynomial} has to be homogeneous.
\item{\bf Errors:} Invalid or non-homogeneous polynomial.
\end{itemize}
\subsection{type command}
\begin{center}
{\bf type [{\it nonassociative word}]}
\end{center}
Every {\it nonassociative word} has a particular {\it association type.}
These {\it association types} are
{\it numbered} by Albert.
For example, the association type of the word
$((ab)c)d$ is 1, while the association type of the word
$(ab)(cd)$ is 3.
Thus, typing
\begin{center}
{\bf t (ab)(cd) }\\
\end{center}
would cause Albert to respond with:\\
\begin{center}
{\tt The association type of the word = 3.} \\
\end{center}
This command prints the
{\it number} of the {\it association} of the argument.
This command can be used in conjunction with the W operator
(see the section Polynomial Expression Language).
\begin{itemize}
\item{\bf Arguments:} {\it nonassociative word}\ like $a((ac)b)$. The letters
and their order are not important.
\item{\bf Errors:} Invalid {\it word}.
\end{itemize}
\subsection{help command }
\begin{center}
{\bf help [{\it command}]}
\end{center}
This command provides
detailed information about the {\it command} named as the parameter.
If no such command is given, a list of all commands is displayed.
\begin{itemize}
\item{\bf Arguments:} An Albert command name or the abbreviated form of one.
\end{itemize}
\subsection{view command }
\begin{center}
{\bf view [{\it b $\mid$ m}]}
\end{center}
This command prints the basis table or the multiplication
table to the screen, provided they exist. The argument
specifies the table to be output (b - basis table, m -
multiplication table). For example, typing
\begin{center}
{\bf view b}
\end{center}
will output the current basis table to the screen.
\begin{itemize}
\item{\bf Arguments:} b or m
\end{itemize}
\subsection{output command }
\begin{center}
{\bf output [{\it b $\mid$ m}]}
\end{center}
This command outputs the basis table or the multiplication
table to the printer, provided they exist. The argument
specifies the table to be output (b - basis table, m -
multiplication table). For example, typing
\begin{center}
{\bf output m}
\end{center}
will output the multiplication table to the printer.
Output is sent to the user's default printer,
which can be modified outside of Albert.
\begin{itemize}
\item{\bf Arguments:} b or m
\end{itemize}
\subsection{save command }
\begin{center}
{\bf save [{\it b $\mid$ m}]}
\end{center}
This command saves the basis table or the multiplication
table to a file. The argument
specifies the table to be output (b - basis table, m -
multiplication table). For example, typing
\begin{center}
{\bf save m}
\end{center}
will cause the multiplication table to be written to a file.
The user will be prompted for a file name.
\begin{itemize}
\item{\bf Arguments:} b or m
\end{itemize}
\subsection{change command }
\begin{center}
{\bf change}
\end{center}
Most of the time Albert's computing time and memory are spent
performing matrix computations. These matrices tend to be
sparse (i.e. have relatively few nonzero entries). There are
two ways to store matrices: As ordinary two-dimensional
arrays, in which all matrix elements are stored, or
alternately using a data structure in which only the nonzero
entries are stored. Of course in such a sparse
implementation, there is more overhead associated with each
entry. Consequently, for dense matrices the traditional
two-dimensional array would use less memory, while a sparse
implementation would be more efficient for sparse matrices.
Albert can use either matrix implementation. With the sparse
method, the overhead per entry is now about eight times that
of the traditional method, and so the sparse implementation
will be most beneficial for matrices whose density never
exceeds 12\%.
The matrix densities that occur in Albert vary wildly. Thus,
a sparse method will sometimes benefit memory utilization,
and sometimes it will hinder memory utilization. For this
reason, the change command allows the user to toggle between
the two methods. This switch will not effect the results of
the computation, only the time and memory needed by Albert to
obtain the results. Since many interesting results often
seem to be just beyond Albert's ``reach'', it is hoped that
this fine tuning knob may enable more problems to be solved.
A useful methodology is to begin a problem with the new
(default) sparse setting. It is likely this will be the best
method. But, if the problem is unable to finish due to lack
of memory, there is a chance the ``change'' toggle will
help, especially if the user feels that the matrix densities
are exceeding 12\%.
\subsection{quit command}
\begin{center}
{\bf quit}
\end{center}
This command exits the user from Albert.
\subsection{Summary of commands}
\begin{tabular}{|l|l|} \hline
identity[polynomial] & enter a defining identity \\ \hline
remove[number $\mid$ $\ast$] & remove a defining identity \\ \hline
generators[word] & specify the problem type \\ \hline
field[number] & change the current ring of scalars \\ \hline
build & build a multiplication table \\ \hline
display & display the current configuration \\ \hline
polynomial[polynomial] & query if the polynomial is an identity \\ \hline
xpand[polynomial] & expand the polynomial \\ \hline
type[nonassociative word] & determine the association type \\ \hline
help[command] & help on albert \\ \hline
change & change matrix implementation \\ \hline
view[b $\mid$ m] & view basis or multiplication table \\ \hline
save[b $\mid$ m] & save basis or multiplication table \\ \hline
output[b $\mid$ m] & print basis or multiplication table \\ \hline
quit & quit from albert \\ \hline
\end{tabular}
\pagebreak
\section{Basis Table and Multiplication Table}
There are two important structures created by the {\bf build} command.
These are the basis table and the multiplication table.
These tables can be seen using {\bf view},
printed using {\bf output}, or stored using {\bf save}.
The basis table contains a list of elements
that form a basis in the free algebra that was constructed.
Under Albert's method, basis elements will always be
{\em words} in the original generators.
Shown below is the basis table for a 26 dimensional
right alternative algebra using 2a's and 2b's.
There are five columns. The first of these
is simply the number by which the basis element
is referred.
The second and third columns indicate how
the basis element factors into a product
of two lower degree basis elements.
The fourth columns indicates the type
(degrees in each generator) of the element.
The fifth column shows the basis element as
a nonassociative word.
For example, the table indicates that basis element \#25
is the product of element \#13 and element \#2.
It also indicates that this element has type 22
(2 a's and 2b's), and shows the element as {\tt (((ab)a)b)}.
Obviously, the element's type is inherent in the last
columns, however this column should make it easier to
take a large table and pick out all elements of
a certain type.
{\tt
Basis Table: \\
1. 0 0 10 a \\
2. 0 0 01 b \\
3. 2 2 02 (bb) \\
4. 2 1 11 (ba) \\
5. 1 2 11 (ab) \\
6. 1 1 20 (aa) \\
7. 2 5 12 (b(ab)) \\
8. 3 1 12 ((bb)a) \\
9. 4 2 12 ((ba)b) \\
10. 5 2 12 ((ab)b) \\
11. 1 5 21 (a(ab)) \\
12. 4 1 21 ((ba)a) \\
13. 5 1 21 ((ab)a) \\
14. 6 2 21 ((aa)b) \\
15. 1 10 22 (a((ab)b)) \\
16. 2 14 22 (b((aa)b)) \\
17. 4 5 22 ((ba)(ab)) \\
18. 5 5 22 ((ab)(ab)) \\
19. 7 1 22 ((b(ab))a) \\
20. 8 1 22 (((bb)a)a) \\
21. 9 1 22 (((ba)b)a) \\
22. 10 1 22 (((ab)b)a) \\
23. 11 2 22 ((a(ab))b) \\
24. 12 2 22 (((ba)a)b) \\
25. 13 2 22 (((ab)a)b) \\
26. 14 2 22 (((aa)b)b) \\
}
\pagebreak
A portion of the multiplication table for the same algebra is shown below.
The table lists only the {\em nonzero} products of two basis elements.
Coefficients are given in terms of the current field.
Assuming the default field $Z_{251}$ were in use,
the table below can be interpreted as
\begin{eqnarray}
b_1 b_1 & = & b_6 \nonumber \\
b_1 b_2 & = & b_5 \nonumber \\
b_1 b_3 & = & b_{10} \nonumber \\
b_1 b_4 & = & - b_{11} + b_{13} + b_{14} \nonumber \\
b_1 b_5 & = & b_{11} \nonumber \\
b_1 b_7 & = & - b_{15} + b_{18} + b_{23} \nonumber \\
b_1 b_8 & = & - b_{15} + b_{22} + b_{26} \nonumber \\
b_1 b_9 & = & b_{25} \nonumber
\end{eqnarray}
Had we shown the entire multiplication table,
we would have seen that $b_{13} b_2 = b_{25}$.
Hence $b_{25}$ factors
as $b_1 b_9$ and $b_{13} b_2$.
This merely says that
$a((ba)b) = ((ab)a)b$ in a right alternative ring.
Recall that when Albert constructs an algebra in, say,
2a's and 2b's, products involving more than 2a's
or more than 2b's will be zero.
Other kinds of products, too, can be zero.
{\tt
\begin{tabbing}
\hspace{1 in} \= \\
Multiplication table: \\
(b1)*(b1) \\
\> 1 b6 \\
(b1)*(b2) \\
\> 1 b5 \\
(b1)*(b3) \\
\> 1 b10 \\
(b1)*(b4) \\
\> 250 b11 + 1 b13 + 1 b14 \\
(b1)*(b5) \\
\> 1 b11 \\
(b1)*(b7) \\
\> 250 b15 + 1 b18 + 1 b23 \\
(b1)*(b8) \\
\> 250 b15 + 1 b22 + 1 b26 \\
(b1)*(b9) \\
\> 1 b25 \\
\end{tabbing}
}
\pagebreak
\section{The .albert File}
The \dotalbert\
file contains definitions
for making it easier to enter identities.
This file can be edited by the user outside of Albert.
Arbitrarily many ``defines'' can be given.
Long definitions can be continued on another line by placing a
{\tt backslash} ($\backslash$) at the end of the line.
The \dotalbert\
file can include blank lines.
Comments begin with \% and extend to the end of a line.
A typical
\dotalbert\
file might look like this.
{\tt
\begin{tabular}{lcll}
rightalt & & (x,y,y) & \% Right alternative law.\\
jordan & & ((xx)y)x - (xx)(yx) \\
com & & [x,y] \\
doublecom & & [[x,y],z] \\
\\
\% A strange new identity: \\
ident3 & & (x,[x,y],x) \\
\end{tabular}
}
When Albert is initialized, the
\dotalbert\
file
is
read into memory.
{\em This file must reside in the user's current directory.}
Definitions occurring within this file
can be used in subsequent commands, by surrounding the
defined entity with \$'s.
For example, one now could enter the command: \\
{\tt identity \$jordan\$ $-$ \$ident3\$}\\
The identity is
interpreted as $((xx)y)x-(xx)(yx)-(x,[x,y],x)$ .
The
\dotalbert\
file can make use of definitions occurring
elsewhere in the file.
Moreover, a definition need not occur before its use.
For example, one might have
{\tt
\begin{tabular}{lcll}
RightAlt & & (x,y,y) & \% Right alternative law.\\
RightAltCom & & [w, \$RightAlt\$] & \%Right alternators commute. \\
\end{tabular}
}
This last identity is interpreted as $[w,(x,y,y)]$.
Circular definitions will cause great problems.
\pagebreak
\section{Invoking Albert}
Albert is invoked on the command line by giving its name
followed by two optional arguments.
\begin{center}
albert -d dimlimit -a dirname
\end{center}
Here, dirname refers to the
directory location where albert will get the
\dotalbert\
file.
If this argument is not given, albert will look for
it in the current directory.
Here dimlimit refers to the dimension limit that albert will
use. When the build command is given, and a construction is
begun for an algebra whose dimension exceeds this limit, the
construction will fail. This dimension limit will be in
effect for the duration of the session. Thus the user should
give an adequate setting. However, {\em setting this number too
large will cause albert to run extraordinarily slow, so some
care should be used}.
Legitimate values for dimension limits are multiples of 500
up to 10,000. If no dimension limit is given, the default
is 500.
\pagebreak
\section{Installing and Obtaining Albert over Internet}
Albert is written in C and is intended to run on a UNIX based computer.
Ideally, a workstation having at least 4 MB. of main memory is recommended.
The amount of memory present will effect the success of the system.
To obtain the latest albert system over internet,
using an anonymous ftp, first
create a new directory on your Unix system and from this directory,
\begin{enumerate}
\item ftp -i ftp.cs.clemson.edu
\item When it prompts for a name, type ``anonymous''
\item When it prompts for a password, type ``anonymous''
\item cd albert
\item mget *.c
\item mget *.h
\item get Makefile
\item quit
\end{enumerate}
First-time users may also want a sample copy of
the \dotalbert\ file.
After quitting from ftp, type ``make''.
After the make process, you should have an object
program called ``albert''.
Execute the program, and hopefully you will see the
Albert prompt {\bf {\tt -->}}.
You may delete the *.o files that were generated.
\pagebreak
\section{Sample Scenario}
The following example illustrates interaction with Albert.
Text appearing after the \mbox{\tt -->}
prompt has been printed by the user; all other text has been
typed by the Albert system. \\
{\tt
indigo[25] albert \\
\begin{center}
Albert, Version 3.0, 1993 \\
Dept. of Computer Science, Clemson University \\
\end{center}
-->identity (x,x,y) \\
(xx)y - x(xy) \\
Entered as identity 1. \\
-->identity (x,y,y) \\
(xy)y - x(yy) \\
Entered as identity 2. \\
-->generators 2a2b1c \\
Problem type stored. \\
-->display \\
Defining identities are: \\
1. (x,x,y) \\
2. (x,y,y) \\
Field = 251. \\
Problem type = [2a,2b,c]; Total degree = 5. \\
Multiplication table not present. \\
-->build \\
Building the Multiplication Table. \\
Build begun at Fri Aug 31 13:51:34 1990 \\
\begin{tabbing}
Degree \hspace{.5in} \=Current Dimension \hspace{.5in} \=Elapsed Time(s) \\
1 \> 3 \> 0 \\
2 \> 11 \> 0 \\
3 \> 30 \> 0 \\
4 \> 64 \> 2 \\
5 \> 99 \> 7 \\
Build completed \\
\end{tabbing}
-->polynomial (a,b,c)*[a,b] \\
Polynomial is an identity. \\
-->polynomial (a,b,(a,b,c)) + [b,a](a,b,c) \\
Polynomial is an identity. \\
-->polynomial [a,[b,(a,b,c)]] \\
Polynomial is not an identity. \\
-->remove 1 \\
Identity 1 removed. \\
Destroyed the Multiplication Table. \\
-->generators 4a2b \\
Problem type changed. \\
-->display \\
Defining identities are: \\
1. (x,y,y) \\
Field = 251. \\
Problem type = [4a,2b]; Total degree = 6. \\
Multiplication table not present. \\
-->build \\
Building the Multiplication Table. \\
Build begun at Fri Aug 31 13:55:24 1990 \\
\begin{tabbing}
Degree \hspace{.5in} \=Current Dimension \hspace{.5in} \=Elapsed Time(s) \\
1 \> 2 \> 0 \\
2 \> 6 \> 0 \\
3 \> 15 \> 0 \\
4 \> 35 \> 1 \\
5 \> 77 \> 2 \\
6 \> 146 \> 5 \\
Build completed \\
\end{tabbing}
-->poly (a,a,b)\verb+^+2 \\
Polynomial is not an identity. \\
-->poly (a,a,b)\verb+^+3 \\
Polynomial type not a subtype of Target\_type. \\
-->quit \\
}
\pagebreak
\section{\bf Polynomial Expression Language}
The \identitycmd, \polynomialcmd, and \xpandcmd\
commands require a nonassociative polynomial
to be entered.
This section describes the proper syntax of nonassociative polynomials.
In Appendix A, a formal grammar is given.
Nonassociative polynomials are described using the following operators.
\begin{description}
\item[addition:] $x+y$.
\item[subtraction:] $x-y$.
\item[unary minus:] $-x$.
\item[scalar product:] $3x$. The scalar is interpreted to be
from the ring of integers.
\item[juxtaposed product:] $xy$.
\item[commutator:] $[x, y]=xy - yx$.
\item[associator:] $(x, y, z) = (xy)z - x(yz)$.
\item[Jordan product:] $x * y = xy + yx$.
\item[Jordan associator:] $< x, y, z > = (x * y) * z - x * (y * z)$.
\item[Jacobi:] $J(x, y, z) = (xy)z + (yz)x + (zx)y$.
\item[left associated exponential:] $x \verb+^+ 3 = (xx)x$.
Warning: $xy \verb+^+ 3$ means $((xy)(xy))(xy)$ not $x((yy)y)$.
\item[left/right multiplication:] x` denotes left multiplication by x, and x'
denotes right multiplication. Here x can be more complicated expression. These
operators are written to the right of an operand, and can be composed.
Thus \{xy`z'u'\} denotes ((yx)z)u and
\{xy`z'u'(w(ts))`\} denotes (w(ts))((yx)z)u.
\item[artificial word:] $W\{n; a:b:a:c:d \}:\ n$ is called an {\sl association type}.
Often it is cumbersome to type in long parenthesized expressions. To simplify
the typing, the artificial word construct can be used. W\{n;a:b:a:c:d\}
represents the word having letters a,b,a,c,d and association type n.
Albert places a well-ordering on associations. If two associations $w_{1}$
and $w_{2}$ have different degrees, then $w_{1} < w_{2}$ if $w_{1}$ has
smaller degree. Suppose $w_{1}$ and $w_{2}$ have the same degree. If this
degree is 1 or 2 then $w_{1} = w_{2}$. But if
\begin{center}
$w_{1} = (l_{1})(r_{1})$\\
$w_{2} = (l_{2})(r_{2})$\\
\end{center}
then $w_{1} < w_{2}$ if either $r_{1} < r_{2}$ or $r_{1} = r_{2}$ and
$l_{1} < l_{2}$.
Thus, the smallest degree n {\sl association type} is
\begin{center}
$(...(((xx)x)x)...)x$
\end{center}
and the largest degree in {\sl association type} is
\begin{center}
$x(...(x(x(x(xx))))...).$
\end{center}
The degree 4 association types, in order, are :
\begin{tabular}{ll}
degree 4 & $((xx)x)x$\\
& $(x(xx))x$\\
& $(xx)(xx)$\\
& $x((xx)x)$\\
& $x(x(xx))$\\
\end{tabular}
Thus $W\{4;a:a:c:b\}$ means $a((ac)b)$.
Note that typing in a number n that exceeds the number of degree n {\sl association}
types is an error. The user can easily determine the number for an association
using the \typecmd\ command described in the section Command Language.
\end{description}
The operators can be intermixed in any arbitrary fashion. For example the following constructs are allowed:
\begin{center}
$(x,[x,y],x)$\\
$J(x,< x,y,z >,z)$\\
$[x$ $\verb+^+$ 3, $(x,x*y,y)]$\\
\end{center}
{\em All variables must be entered lower case letters.}
The order in which operators are applied is controlled using parenthesis. Thus
one may write $(x*y)*z$ or $x*(y*z)$.
An ambiguous expression such as $x*y*z$ is illegal.
Most expressions have the same common meaning
as they do in mathematics.
For example,
scalar multiplication and unary minus(-) have higher precedence over addition
and subtraction and therefore 3(a,b,c) + (c,b,a) means (3(a,b,c)) + (c,b,a).
However there are some caveats.
%The operators ` and ' bind tighter than juxtaposition : \{xyz`\} means x(zy).
%However \{(xy)z`\} means z(xy) and x(yz)` means (yz)x.
When used in the presence of $\verb+^+$ or $*$,
juxtaposition has higher precedence :
$xy \verb+^+ 3$ means ((xy)(xy))(xy) not $x(y^{2}y)$ and $xy*x$ means $(xy)*y.$
\pagebreak
\appendix{\bf Appendix A : } {\bf Formal Grammar}
\nopagebreak
\begin{tabular}{lcl}
{\sl polynomial} & $\rightarrow$ & {\sl term} \\
\ & $\mid$ & {\sl + \ term} \\
\ & $\mid$ & {\sl - \ term} \\
\ & $\mid$ & {\sl polynomial \ + \ term} \\
\ & $\mid$ & {\sl polynomial \ - \ term} \\
\ & \ & \ \\
{\sl term} & $\rightarrow$ & {\sl product} \\
\ & $\mid$ & {\tt int} {\sl product} \\
\ & \ & \ \\
{\sl product} & $\rightarrow$ & {\sl atom\_or\_double\_atom} \\
\ & $\mid$ & {\sl atom\_or\_double\_atom\ $\uparrow$ \ } {\tt int}\\
\ & $\mid$ & {\sl atom\_or\_double\_atom\ * \ atom\_or\_double\_atom}\\
\ & \ & \ \\
{\sl atom\_or\_double\_atom} & $\rightarrow$ & {\sl atom} \\
\ & $\mid$ & {\sl double\_atom} \\
\ & \ & \ \\
{\sl double\_atom} & $\rightarrow$ & {\sl atom\ atom} \\
\ & \ & \ \\
{\sl atom} & $\rightarrow$ & {\tt small\_letter} \\
\ & $\mid$ & {\sl commutator} \\
\ & $\mid$ & {\sl associator} \\
\ & $\mid$ & {\sl jacobi} \\
\ & $\mid$ & {\sl jordan\_associator} \\
\ & $\mid$ & {\sl artificial\_word} \\
\ & $\mid$ & {\sl operator\_product} \\
\ & $\mid$ & {\sl (\ polynomial\ )} \\
\ & \ & \ \\
{\sl commutator} & $\rightarrow$ & {\sl [\ polynomial,\ polynomial\ ]}\\
\ & \ & \ \\
{\sl associator} & $\rightarrow$ & {\sl (\ polynomial,\ polynomial,\ polynomial\ )}\\
\ & \ & \ \\
{\sl jacobi} & $\rightarrow$ & {\sl J\ (\ polynomial,\ polynomial,\ polynomial\ )}\\
\ & \ & \ \\
{\sl jordan\_associator} & $\rightarrow$ & {\sl < \ polynomial,\ polynomial,\ polynomial\ > }\\
\ & \ & \ \\
{\sl artificial\_word} & $\rightarrow$ & {\sl W\ } {\tt \{\ int;} {\sl letter\_list\ \} }\\
\ & \ & \ \\
{\sl letter\_list} & $\rightarrow$ & {\tt small\_letter} \\
\ & $\mid$ & {\sl letter\_list :} {\tt small\_letter} \\
\ & \ & \ \\
\end{tabular}
\pagebreak
\begin{tabular}{lcl}
{\sl operator\_product} & $\rightarrow$ & {\sl \{ atom\ operator\_list \}}\\
\ & \ & \ \\
{\sl operator\_list} & $\rightarrow$ & {\sl operator} \\
\ & $\mid$ & {\sl operator\_list \ operator} \\
\ & \ & \ \\
{\sl operator} & $\rightarrow$ & {\sl atom\ `} \\
\ & $\mid$ & {\sl atom\ '} \\
\ & \ & \ \\
\end{tabular}
{\em int} {: Positive. Sequence of digits not beginning with 0. } \\
\newpage
\begin{thebibliography}{99}
\bibitem{Jacobs}
D.P. Jacobs, S.V. Muddana, A.J. Offutt,
"A Computer Algebra System for Nonassociative Identities,
Hadronic Mechanics and Nonpotential Interactions",
Proceedings of the Fifth International Conference,
Cedar Falls, Myung, H.C. (Ed.),
Nova Science Publishers, Inc., New York, 1993.
\bibitem{HentzelJacobsDynamic}
I.R. Hentzel and D. Pokrass Jacobs,
"A Dynamic Programming Method for Building Free Algebras,
Computers \& Mathematics with Applications",
22 (1991), 12, 61-66.
\end{thebibliography}
\end{document}
|