The Formal Semantics of Programming Languages: An IntroductionThe Formal Semantics of Programming Languages provides the basic mathematical techniques necessary for those who are beginning a study of the semantics and logics of programming languages. These techniques will allow students to invent, formalize, and justify rules with which to reason about a variety of programming languages. Although the treatment is elementary, several of the topics covered are drawn from recent research, including the vital area of concurency. The book contains many exercises ranging from simple to miniprojects.Starting with basic set theory, structural operational semantics is introduced as a way to define the meaning of programming languages along with associated proof techniques. Denotational and axiomatic semantics are illustrated on a simple language of while-programs, and fall proofs are given of the equivalence of the operational and denotational semantics and soundness and relative completeness of the axiomatic semantics. A proof of Godel's incompleteness theorem, which emphasizes the impossibility of achieving a fully complete axiomatic semantics, is included. It is supported by an appendix providing an introduction to the theory of computability based on while-programs. Following a presentation of domain theory, the semantics and methods of proof for several functional languages are treated. The simplest language is that of recursion equations with both call-by-value and call-by-name evaluation. This work is extended to lan guages with higher and recursive types, including a treatment of the eager and lazy lambda-calculi. Throughout, the relationship between denotational and operational semantics is stressed, and the proofs of the correspondence between the operation and denotational semantics are provided. The treatment of recursive types - one of the more advanced parts of the book - relies on the use of information systems to represent domains. The book concludes with a chapter on parallel programming languages, accompanied by a discussion of methods for specifying and verifying nondeterministic and parallel programs. |
Contents
Basic set theory | 1 |
Introduction to operational semantics | 11 |
Some principles of induction | 27 |
Inductive definitions | 41 |
The denotational semantics of IMP | 55 |
The axiomatic semantics of IMP | 77 |
Completeness of the Hoare rules | 99 |
Introduction to domain theory | 119 |
Recursion equations | 141 |
Techniques for recursion | 163 |
Languages with higher types | 183 |
Information systems | 223 |
Recursive types | 251 |
Nondeterminism and parallelism | 297 |
A Incompleteness and undecidability | 337 |
Other editions - View all
The Formal Semantics of Programming Languages: An Introduction Glynn Winskel No preview available - 1993 |
The Formal Semantics of Programming Languages: An Introduction Glynn Winskel No preview available - 1993 |
The Formal Semantics of Programming Languages: An Introduction Glynn Winskel No preview available - 1993 |
Common terms and phrases
A-calculus A₁ Aexp argument arithmetic expressions Assn Assume Ax.t b₁ Bexp boolean expressions bottom element c₁ canonical forms chapter checkable closed term complete partial orders computation construction continuous function cpo's D₁ defined denotational semantics derivation eager environment equivalence example execution Exercise false finite fix(F Fixf follows free variables function space guarded commands Hence inclusive predicate inclusive subset induction hypothesis information systems integer variables isomorphism lazy least fixed point least upper bound Lemma mathematical induction monotonic N₁ natural numbers nonempty notation obtain operational semantics partial correctness assertion partial function programming languages proof system Proposition prove recursive types rule induction rule instances satisfies Section sequence Sk/Xk skip structural induction Suppose syntax t₁ Theorem tokens true truth values typable Uk/Xk valid w-chain w[co well-founded induction well-founded relation while-loop write αο σ¹ σο