Programming Research Group A BRIEF HISTORY OF ALGEBRA AND COMPUTING: AN ECLECTIC OXONIAN VIEW Jonathan P. Bowen PRG-TR-9-94

 Oxford University Computing Laboratory Wolfson Building, Parks Road, Oxford OX1 3QD

A Brief History of Algebra and Computing: An Eclectic Oxonian View Jonathan P. Boweny Dedicated to Prof. C.A.R. Hoare, , James Martin Professor of Computing at the Oxford University Computing Laboratory on his 60th birthday in 1994 [16]. FRS

If you are faced by a diculty or a controversy in science, an ounce of algebra is worth a ton of verbal argument. J. B. S. Haldane

That excellent woman knew no more about Homer than she did about Algebra, but she was quite contented with Pen's arrangements . . . and felt perfectly con dent that her dear boy would get the place which he merited. Pendennis (1848{50) by William Makepeace Thackeray (1811{1863) (The story of the progress of an Oxford student.)

 Opposite side Hypoteneuse

Oh heck|another hour of algebra! Adjacent side Opposite side Hypoteneuse Adjacent side

= sine;

= cosine;

 = tangent

Further copies of this Technical Report may be obtained from the Librarian, Oxford University Computing Laboratory, Programming Research Group, Wolfson Building, Parks Road, Oxford OX1 3QD, England (Telephone: +44-865-273837, Email: [email protected]). yFunded by the UK Engineering and Physical Sciences Research Council (EPSRC) on grant no. GR/J15186. Email: [email protected] 

1

1 The Origins of Algebra The following problem on the Rhind Papyrus in the British Museum, London, was written in about 1650 BC: Divide 100 loaves among 10 men including a boatman, a foreman and a doorkeeper, who receive double portions. What is the share of each? This can of course be solved using algebra. The rst treatise on algebra was written by Diophantus of Alexandria in the 3rd century AD. The term derives from the Arabic al-jabr or literally \the reunion of broken parts." As well as its mathematical meaning, the word also means the surgical treatment of fractures. It gained widespread use through the title of a book ilm al-jabr wa'lmukabala|the science of restoring what is missing and equating like with like|written by the mathematician Abu Ja'far Muhammad (active c800{847), who subsequently has become know as al-Kharazmi, the man of Kwarazm (now Khiva in Uzbekistan). He introduced the writing down of calculations in place of using an abacus. Algorism (the Arabic or decimal system of writing numbers) and algorithm both derive from his name. Algebra was brought from ancient Babylon, Egypt and India to Europe via Italy by the Arabs and Fibonacci of Pisa.

2 Early English Algebra In the rst half of the 16th century, Cuthbert Tonstall (1474{1559) and Robert Recorde (1510?{1558) were two of the foremost English mathematicians [3]. They were the rst mathematicians at the University of Cambridge whose lives have been recorded in any detail and as such may be considered founders of one of the most important centres of mathematics in the world. Both migrated to Oxford University during their careers. Robert Recorde, perhaps the more important of the two, became a Fellow of All Souls College at Oxford in 1531. The earliest use of the word algebra may be found in Recorde's Pathway of Knowledge (1551) in which he wrote: 2

Also the rule of false position, with dyvers examples not onely vulgar, but some appertayning to the rule of Algebra. In 1557 he introduced the equality sign `=' in his Whetstone of Witte, chosen \bicause noe 2 thynges can be moare equalle" (than two parallel lines of the same length). The symbols `+' and `;' were introduced for the rst time in print in John Widmann's Arithmetic (Leipzig, 1489), but only came into general use in England after Recorde's Whetstone: There be other 2 signes in often use of which the rst is made thus -+- and betokeneth more: the other is thus made | and betokeneth lesse. These symbols may have originated from marks chalked on chests of merchandise in German warehouses, indicating the variation from some standard weight. They appeared in a work by Stifel in 1544. Thomas Hariot (1560{1621), a native of Oxford, at St. Mary Hall (subsequently incorporated with Oriel College), invented the signs of inequality `<' and `>' [4]. He continued the work of Recorde, helping to give algebra its modern form. His work on algebra was published ten years after his death, although it was probably written around 1610, including Hariot's law of Signs concerning roots. William Oughtred (1574{1660), a private tutor to Oxford students, worked on mathematics at a country vicarage and extended the use of the multiplication sign `' in his Clavis Mathematica (1631), previously used in a rather di erent manner by Recorde in his Grounde of Artes (1542). He also introduced the trigonometrical terms sine, cosine and tangent. The division sign `' was used by J. H. Rahn in 1659 and was introduced into England by John Pell in 1668.

3 Algebra and Analytical Engines In 1827, John Hershel wrote enquiring whether Charles Babbage (1791{ 1871) [11] wished to be considered for the Savilian chair of mathematics at Oxford University, which was then vacant. Babbage's father had just died and on 12th February Georgina Babbage, his wife, replied saying: It is seldom that I cannot say a priori what Charles would like or would not like, but with regard to this professorship I 3

cannot judge. Before his father's death he would have taken it, but whether this event wil make him more or less desirous of obtaining it, without more knowledge of our a airs I cannot say. In the event, the appointment of the professorship had already e ectively been decided. Babbage did not apply and Baden Powell was o ered the Chair. Instead Babbage became Lucasian Professor of Mathematics at Cambridge, a post previously occupied by Sir Isaac Newton. He was in uential in introducing the continental European notations of the German mathematician Gottfried Wilhelm Leibniz (1646{1716) into Britain. The Newtonian notation prevalent until then had been detrimental to the progress of mathematics compared to the rest of Europe (e.g., the use of the Newtonian `dot' notation for di erential calculus instead of the more powerful Leibniz `d's notation). But if Cambridge mathematics was in a poor state at the time despite its renown, Oxford mathematics was even worse! By 1836, Babbage was already considering the design for an Algebra or Formula Engine, a generalised version of his more famous Analytical Engines. Ada Lovelace's notes for the paper by Luigi Federico Menabrea on Babbage's work state: Many persons who are not conversant with mathematical studies, imagine that because the business of the engine is to give its results in numerical notation, the nature of its processes must consequently be arithmetical and numerical, rather than algebraic and analytic. This is an error . . . . The engine might develop three sets of results . . . symbolic results . . . ; numerical results . . . ; and algebraical results in literal notation. The potential symbolic results of Babbage's Analytical Engines are important in connection with their relation to modern computers. Ada Lovelace noted that: . . . each circle at the top [of a column of wheels recording decimal digits] is intended to contain the algebraic sign + or ;, . . . In a similar manner any other purely symbolic results of algebraic processes might be made to appear in these circles. 4

On 10 July 1836, soon after Babbage had considered a punched-card input system, he recorded the following: . . . this day I had a general but only indistinct conception of the possibility of making an engine work out algebraic developments . . . I mean without any reference to the value of the letters . . . My notion is that as the cards (Jacquards) of the calc. engine direct a series of operations and then recommence with the rst so it might perhaps be possible to cause some of the cards to punch others equivalent to any given number of repetitions. But these hole[s] might perhaps be small pieces of formula previously made by the rst cards and possibly some mode might be found of arranging such detached parts. Next year, on 13 December 1837, Babbage noted the following in one of his sketchbooks: On machinery for the Algebraic Development of Functions About this date the idea of making a development engine arose with considerable distinctness. It is obvious that if the Calculating Engine could print the substitutions which it makes in an Algebraic form we should arrive at the algebraic development `it can print all those substitutions which are noted in the composition in some of the notations'|it will however be better to construct a new engine for such purposes. I.e., he was considering the construction of an engine for general algebraic operations and printing formulae resulting from calculations on such a machine. These ideas may be regarded as an extension of the Analytical Engines, but were not developed further by Babbage. Towards the end of his life Babbage asked Harry Wilmot Buxton to write his biography. An early draft, together with other papers Babbage lent him whilst undertaking this task, are now held as part of the Buxton collection at the Museum of the History of Science in Oxford.

5

4 Boolean Algebra Leibniz initiated the search for a system of symbols with rules of their combination in his De Arte Combinatoria of 1666, as well as developing the binary notation. In 1854, George Boole (1815{1864), Professor of Mathematics at Cork from 1849 despite having no rst degree, formalised a set of such rules in the seminal work entitled, perhaps optimistically, An Investigation of the Laws of Thought. Boole's aim was to identify the rules of reasoning in a rigorous framework and revolutionised formal logic after thousands of years of little progress. They transformed logic from a philosophical into a mathematical discipline. These rules have subsequently become known as Boolean algebra and the design of all modern binary digital computers has depended on the results of this work. These logical operations, normally implemented as electronic gates, are all that are required to perform more complicated operations such as arithmetic. Charles Lutwidge Dodgson (1832{1898) [1], a Mathematics Lecturer at Christ Church, Oxford from 1855 to 1881, was in uenced by the work of Boole. He had a general interest in algebra and also teaching. In May 1855 he noted in his diary: I began arranging a scheme for teaching systematically the rst part of Algebraic Geometry: a thing which no one hitherto seems to have attempted|I nd it exceedingly dicult to do it in anything like a satisfactory way. He subsequently produced works on The Fifth Book of Euclid proved Algebraically and A Syllabus of Plan Algebraical Geometry as well as collections of algebraic and arithmetic formulae to aid examination candidates. Much later, in his diaries of 1884 Dodgson noted: \In these last few days I have been working on a Logical Algebra and seem to be getting to a simpler notation than Boole's." In 1885 he notes: \I have occupied myself at Guildford in teaching my new `Logical Algebra' to Loiusa, Margaret and the two boys." In March 1885 he mentions \A Symbolic Logic, treated by my algebraic method." He published a number of works on logic, including Symbolic Logic, Part I: Elementary in 1896 under his more famous alias of Lewis Carroll. Unfortunately Part II never appeared. 6

5 Algebra and Computing From the end of the 2nd World War in 1945 the world was set for an exponential growth in the use of computers. At this time, Leslie Fox (1918{1992) [15] moved from the Admiralty Computing Service to the National Physical Laboratory (NPL) joining a section including Alan Turing [10] and led by E. T. Goodwin. He was interested in numerical linear algebra and whilst at the NPL he started a line of investigation into using Gaussian elimination to estimate the accuracy with solving linear equations. Prof. Fox went on to become the rst director of the Oxford University Computing Laboratory in 1957, becoming Professor of Numerical Analysis in 1963. He stayed there until his retirement in 1983. J. R. Womersley was the Superintendent of the Mathematics Division at the NPL. In 1946 he noted in a report on the proposed ACE computer that: . . . this device is not a calculating machine in the ordinary sense of the word. One does not need to limit its functions to arithmetic. It is just as much at home in algebra . . . In 1951, Christopher Strachey [5], then a teacher at Harrow School, made contact with Mike Woodger at the NPL via a mutual friend. He started to write a draughts program for the Pilot ACE, and soon progressed to the machine being developed at Manchester University. He obtained a copy of the Programmer's Handbook by Alan Turing and wrote a long letter to Turing on his plans: . . . It would be a great convenience to say the least if the notation chosen were intelligible as mathematics when printed by the output . . . once the suitable notation is decided, all that would be necessary would be to type more or less ordinary mathematics and a special routine called, say, `Programme' would convert this into the necessary instructions to make the machine carry out the operations indicated. This may sound rather Utopian, but I think it, or something like it, should be possible . . . These ideas were very much in line with those of Turing, who ensured that Strachey was o ered an attractive job to make use of his programming skills which tempted him away from teaching. Later Strachey went 7

on to set up and lead the Programming Research Group as part of the Computing Laboratory in Oxford until his untimely death in 1975. Programs speci cally designed to read, manipulate and output mathematical algebraic formulae in a manner similar to that envisaged by Strachey are now readily available. Perhaps the market leader is Mathematica, developed by Wolfram Research Inc., founded by Stephen Wolfram (who was at school and brie y a student in Oxford during the 1960s and 70s). This is enthusiastically used by researchers such as Dana Scott|previously at Oxford and now at Carnegie-Mellon University in the US|to help speed up mathematical investigations in both teaching and research. As well as symbolic representations of algebraic formulae, graphical output is also possible. The speed and capacity of personal computers and workstations has now enabled such programs to be accessible to many people even though the implementation consists of over 1 million lines of C code.

6 Recent Developments in the Algebra of Programs Until relatively recently, rules of algebra followed from assumptions about the unknown quantities, assuming that the symbols represented numerical values for example. By the 20th century, this had been replaced by a more abstract view. The rules could be interpreted in a concrete context if required, but this is not necessary or even appropriate in all circumstances. Other mathematical objects may also be manipulation algebraically and computer programs themselves may be considered as such objects, if assigned a suitable mathematical semantics. General algebraic laws of programming, applicable to many imperative programming languages, or subsets of them, have been proposed by researchers led by Prof. Tony Hoare, who took over the leadership of the Programming Research Group at Oxford in 1977 [9]. Many special purpose process algebras have been proposed, with sets of laws for their manipulation to enable formal reasoning about them. Perhaps the most widely used of these are Robin Milner's CCS (Calculus of Communicating Systems) [14] and Hoare's CSP (Communicating Sequential Processes) [6], both useful for reasoning about concurrent systems. 8

The latter has inspired the development of the parallel programming language Occam [12]. The laws for this language, developed by Bill Roscoe, Hoare and others [17], have been used to successfully verify the

oating-point unit for the Inmos T800 Transputer [13], which has resulted in commercial success for Inmos Ltd. and prestige in the form of a Queen's Award for Technological Achievement. More recent work has investigated the use of algebraic laws in the veri cation of compiler speci cations [7], either compiling directly into object code for a machine de ned by an interpreter in the high-level language being compiled, or via a normal form consisting of a very restricted subset of the high-level language that is close to the nal implementation. The proofs may be mechanised by systems such as OBJ [2], designed by Prof. Joseph Goguen, now at Oxford, who undertook much of the theoretical underpinning in the area of initial algebras and order sorted algebra. This tool facilitates the algebraic manipulation of mathematical structures (such as programs), with semi-automation of some of the more mundane aspects including associative and commutative (\AC") matching. Modelling is an important aspect of computer science. However many algebraic properties may be derived from models. To quote Hoare [8]: A model of a computational paradigm starts with choice of a carrier set of potential direct or indirect observations that can be made of a computational process. A particular process is modelled as the subset of observations to which it can give rise. Process composition is modelled by relating observations of a composite process to those of its components. Indirect observations play an essential role is such compositions. Algebraic properties of the composition operators are derived with the aid of the simple theory of sets and relations. The viability of such approaches has yet to be seen in widespread industrial practice. As Hoare says [8]: The construction of a single mathematical model obeying an elegant set of algebraic laws is a signi cant intellectual 9

achievement; so is the formulation of a set of algebraic laws characterising an interesting and useful set of models. But neither of these achievements is enough. We need to build up a large collection of models and algebras, covering a wide range of computational paradigms, appropriate for implementation either in hardware or in software, either of the present day or of some possible future. However the prospects for the use of algebraic techniques in the design and veri cation of computer based systems are promising if the techniques can become as familiar to engineers as school algebra is to many today.

References [1] M. Campbell-Kelly. Christopher Strachey, 1916{1975: A biographical note. Annals of the History of Computing, 7(1):19{42, January 1985. [2] J. Gattegno. Lewis Carroll: Fragments of a Looking Glass. Thomas Y. Crowell Company, New York, 1976. Translated by R. Sheed. [3] J. Goguen and T. Winkler. Introducing OBJ3. Technical Report SRI-CSL-88-9, Computer Science Laboratory, SRI International, 333 Ravenswood Avenue, Menlo Park, California 94025-3493, USA, August 1988. [4] R.T. Gunther. Chemistry, Mathematics, Physics and Surveying, volume I of Early Science in Oxford. Oxford, 1923. Printed for the Oxford Historical Society at the Clarendon Press. [5] R.T. Gunther. Oxford Colleges and their Men of Science, volume XI of Early Science in Oxford. Oxford, 1937. Printed for the author. [6] C.A.R. Hoare. Communicating Sequential Processes. Prentice Hall International Series in Computer Science, 1985. [7] C.A.R. Hoare. Re nement algebra proves correctness of compiling speci cations. In C.C. Morgan and J.C.P. Woodcock, editors, 10

3rd Re nement Workshop, Workshops in Computing, pages 33{48. Springer-Verlag, 1991.

[8] C.A.R. Hoare. Algebra and models. ACM Software Engineering Notes, 18(5):1{8, December 1993. [9] C.A.R. Hoare et al. Laws of programming. Communications of the ACM, 30(8):672{687, August 1987. [10] A. Hodges. Alan Turing: The Enigma. Simon & Schuster, New York, 1983. [11] R.A. Hyman. Charles Babbage: Pioneer of the Computer. Oxford University Press, 1982. [12] INMOS Limited. Occam 2 Reference Manual. Prentice Hall International Series in Computer Science, 1988. [13] D. May, G. Barrett, and D.E. Shepherd. Designing chips that work. In C.A.R. Hoare and M.J.C. Gordon, editors, Mechanized Reasoning and Hardware Design, pages 3{19. Prentice Hall International Series in Computer Science, 1992. [14] R. Milner. Communication and Concurrency. Prentice Hall International Series in Computer Science, 1983. [15] N.K. Nichols. Obituary: Professor Leslie Fox, C. Math., FIMA. IMA Bulletin, 29:175{176, November/December 1993. [16] A.W. Roscoe, editor. A Classical Mind: Essays in Honour of C.A.R. Hoare. Prentice Hall International Series in Computer Science, 1994. [17] A.W. Roscoe and C.A.R. Hoare. Laws of Occam programming. Theoretical Computer Science, 60:177{229, 1988.

11

Programming Research Group

studies, imagine that because the business of the engine is to give its results in ... each circle at the top of a column of wheels recording decimal digits] is ... be small pieces of formula previously made by the first cards and possibly some ... gressed to the machine being developed at Manchester University. He obtained a ...

158KB Sizes 4 Downloads 403 Views

Recommend Documents

Programming Research Group
Other colleges have a variety of di erent names for the head of the college to ..... Silicon Swamp: Florida (it's true!, there are many high-tech companies here). 24 ...

Programming Research Group
SEQ s1 s2 js1,s2 source code. DECL v s jv var s source code. LET v1 v2 ... first and a decision has to be made as to which is to ... and then try to run it backwards, making use of the ... potential solution to the problem of constructing an.

Programming Research Group
Programming Research Group. A CONCRETE Z GRAMMAR. Peter T. Breuer. Jonathan P. Bowen. PRG-TR-22-95. Oxford University Computing Laboratory. Wolfson Building, Parks Road, Oxford OX1 3QD ...

Online panel research - Political Psychology Research Group
Jan 16, 2014 - 2008). A third strategy is to offer Internet and non-Internet households the same device. For example, FFRISP members were given a laptop, whereas the French panel Elipps6 provided ...... Exploiting analytical advances: Mini- mizing th

wargames research group pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. wargames ...

Curriculum Study Research Group
i) exploration of system relations among Data Mining in Science, Data ... Data Mining in Engineering and Risk Management, and between them and society;.

Bioingenium Research Group Technical Report ...
labels is defined by domain experts and for each of those labels a Support Vector ... basal-cell carcinoma [29], a common skin disease in white populations whose ... detect visual differences between image modalities in a heterogeneous ...

Group Message Authentication - Research at Google
let a smartcard digitally authenticate each purchase transaction on behalf of the card holder. Message authentication can be achieved using a digital signature.

Group Sparse Coding - Research at Google
encourage using the same dictionary words for all the images in a class, providing ... For dictionary construction, the standard approach in computer vision is to use .... learning, is to estimate a good dictionary D given a set of training groups.

Towards Property Driven Hardware Security - Kastner Research Group
such security properties can be specified, translated and verified ... In the past, computer security largely assumed that the un- derlying ... running in the cloud leak private information through inter- .... And you would never allow your financial

Visual and Semantic Similarity in ImageNet - CALVIN research group
and leads to our best result (blue line in fig. 7b; row COMB. ALL' in table). ... to one category [14], or more globally for a small set of. 20-30 categories [1]. Nowak ...

Focused Research Group 12frg163: Geometrization of ...
gredients of both sides of the local Langlands correspondence with geometric avatars (in this case, perverse sheaves) and then bring techniques from algebraic geometry to bear on the correspondence itself. We hope, in the process, to see how to make

Towards Property Driven Hardware Security - Kastner Research Group
provide code reviews to hardware designs to identifying secu- rity flaws. .... policy could be that CPU1 cannot read from or write to the. Firmware (see Fig. 2). CPU1. L1 ..... It also can beneficial to develop light-weight online estimators that can

The Data Integration Research Group at UFPE - SEER-UFMG
IOS Press,. 1998. Halevy, A. Y. Theory of Answering Queries Using Views. SIGMOD Record 29 (4): 40–47, 2000. Halevy, A. Y., Franklin, M. J., and Maier, ...

The Data Integration Research Group at UFPE
use of Peer-to-Peer (P2P) architectures as a platform for data integration and the use of semantic technologies to help solving semantic heterogeneity problems. ..... Pierre et Marie Curie-Paris VI and Université Paul Cézanne Aix-Marseille 3), in U

The Data Integration Research Group at UFPE
The Internet era in the 1990's changed the way information systems were implemented. One of the first .... As data integration systems, Peer Data Management Systems (PDMSs) accomplish their services ..... Cambridge, USA, pp. 447–461 ...

The Data Integration Research Group at UFPE - SEER-UFMG
In this setting, we focused our research on the development of ...... IOS Press,. 1998. ... In Proceedings of the International Conference on Advanced Information ...

Spector: An OpenCL FPGA Benchmark Suite - Kastner Research Group
for design optimization since even experts typically need to test many designs due to the ... Unfortunately, a major drawback of these OpenCL FPGA tools is that the .... requiring 1 to 4 hours on a modern server, and occasionally taking more ...

CoMedia: Mobile Group Media for Active ... - Research at Google
May 3, 2007 - driven by motivations and prior experiences to act out situations ..... facilitated their decision making as to where to point the video camera.

Scalable Group Signatures with Revocation - Research at Google
For a digital signature scheme to be adopted, an efficient ... membership revocation remains a non-trivial problem in group signatures: all existing solutions are ...

Coordinating group of European network of paediatric research at the ...
Sep 9, 2016 - National Institute for Health. Research Clinical Research ... Anne Junker [email protected]. Duke Clinical Research Institute. Brian Smith.

Global Oral Health Inequalities: Dental Caries Task Group--Research ...
consolidate and adapt oral health programs, to encourage the. intercountry exchange ... ies scoring system for use in dental education, clinical practice,. research, and ...... determinants of early childhood caries in low-income African. American ..