Published online by Cambridge University Press: 05 June 2012
Introduction
The types of mappings we have met in Chapter 5 have mostly been the sort where the domain has been simple, that is, not a cartesian product of sets. There is a type of mapping which arises frequently in applications, and it is exemplified by the function f : ℝ2 → ℝ given by f(x,y) = x + y. Such mappings are called binary operations, and much effort has been expended during the last two centuries on studying their properties.
A seemingly unrelated problem is that of finding a mathematical specification for strings in programming languages. Strings and binary operations are not all that different when we look at their formalism, and the theory we shall develop will also be able to model stacks, queues, and other related structures.
Finally, we shall look at the way in which programming languages are specified, and shall develop a notation for working with their syntax. We shall investigate the way we can simplify the structure of a language, and how to write a program to recognize valid statements in the language.
The pace of this chapter will be brisker than previous ones. We shall leave more details for the student to fill in. It is hoped that by now the student has acquired enough mathematical confidence to be able to do this.
To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.