week1 tweaks
[lambda.git] / week1.mdwn
index 08286db..8124ffe 100644 (file)
@@ -45,7 +45,7 @@ Many of the slogans and keywords we'll encounter in discussions of these issues
 
 For example, you'll encounter the claim that declarative languages are distinguished by their **referential transparency.** What's meant by this is not always exactly the same, and as a cluster, it's related to but not the same as this means for philosophers and linguists.
 
-The notion of "function" that we'll be working with will be one that, by default, sometimes counts as non-identical functions that map all their inputs to the very same outputs. For example, two functions from jumbled decks of cards to sorted decks of cards may use different algorithms and hence be different functions.
+The notion of **function** that we'll be working with will be one that, by default, sometimes counts as non-identical functions that map all their inputs to the very same outputs. For example, two functions from jumbled decks of cards to sorted decks of cards may use different algorithms and hence be different functions.
 
 It's possible to enhance the lambda calculus so that functions do get identified when they map all the same inputs to the same outputs. This is called making the calculus **extensional**. Church called languages which didn't do this "intensional." If you try to understand this in terms of functions from worlds to extensions (an idea also associated with Church), you will hurt yourself. So too if you try to understand it in terms of mental stereotypes, another notion sometimes designated by "intension."
 
@@ -86,13 +86,13 @@ sense such that only so matters in imperatival languages.
 
 Finally, you'll see the term **dynamic** used in a variety of ways in the literature for this course:
 
-       * dynamic versus static typing
+*      dynamic versus static typing
 
-       * dynamic versus lexical scoping
+*      dynamic versus lexical scoping
 
-       * dynamic versus static control operators
+*      dynamic versus static control operators
 
-       * finally, we're used ourselves to talking about dynamic versus static semantics
+*      finally, we're used ourselves to talking about dynamic versus static semantics
 
 For the most part, these uses are only loosely connected to each other. We'll tend to use "imperatival" to describe the kinds of semantic properties made available in dynamic semantics, languages which have robust notions of sequencing changes, and so on.
 
@@ -113,19 +113,23 @@ The lambda calculus we'll be focusing on for the first part of the course has no
 
 Here is its syntax:
 
-       Variables: x, y, z, ...
+<blockquote>
+<strong>Variables</strong>: <code>x</code>, <code>y</code>, <code>z</code>...
+</blockquote>
 
 Each variable is an expression. For any expressions M and N and variable a, the following are also expressions:
 
-<blockquote><code>
-       Abstract: ( &lambda;a M )
+<blockquote>
+<strong>Abstract</strong>: <code>(&lambda;a M)</code>
+</blockquote>
 
-       Application: ( M N )
-</code></blockquote>
+We'll tend to write <code>(&lambda;a M)</code> as just `(\a M)`, so we don't have to write out the markup code for the <code>&lambda;</code>. You can yourself write <code>(&lambda;a M)</code> or `(\a M)` or `(lambda a M)`.
 
-We'll tend to write <code>( &lambda;a M )</code> as just `( \a M )`.
+<blockquote>
+<strong>Application</strong>: <code>(M N)</code>
+</blockquote>
 
-Some authors reserve the term "term" for just variables and abstracts. We won't participate in that convention; we'll probably just say "term" and "expression" indiscriminately.
+Some authors reserve the term "term" for just variables and abstracts. We won't participate in that convention; we'll probably just say "term" and "expression" indiscriminately for expressions of any of these three forms.
 
 Examples of expressions:
 
@@ -138,7 +142,7 @@ Examples of expressions:
        (x (\x x))
        ((\x (x x)) (\x (x x)))
 
-The lambda calculus has an associated proof theory. For now, we can regard the proof theory as having just one rule, called the rule of "beta-reduction" or "beta-contraction". Suppose you have some expression of the form:
+The lambda calculus has an associated proof theory. For now, we can regard the proof theory as having just one rule, called the rule of **beta-reduction** or "beta-contraction". Suppose you have some expression of the form:
 
        ((\a M) N)
 
@@ -146,7 +150,7 @@ that is, an application of an abstract to some other expression. This compound f
 
 The rule of beta-reduction permits a transition from that expression to the following:
 
-       M {a:=N}
+       M [a:=N]
 
 What this means is just `M`, with any *free occurrences* inside `M` of the variable `a` replaced with the term `N`.