(no commit message)
[lambda.git] / topics / _week15_continuation_applications.mdwn
index eeb397b..ec0cb5d 100644 (file)
@@ -13,14 +13,14 @@ zippers, then as a monad.  In this lecture, we will generalize
 continuations slightly beyond a monad, and then begin to outline some
 of the applications of monads.  In brief, the generalization can be
 summarized in terms of types: instead of using a Kleisli arrow mapping
 continuations slightly beyond a monad, and then begin to outline some
 of the applications of monads.  In brief, the generalization can be
 summarized in terms of types: instead of using a Kleisli arrow mapping
-a type α to a continuized type α -> ρ -> ρ, we'll allow the result
-types to differ, i.e., we'll map α to α -> β -> γ.  This will be
+a type α to a continuized type (α -> ρ) -> ρ, we'll allow the result
+types to differ, i.e., we'll map α to (α -> β) -> γ.  This will be
 crucial for some natural language applications.
 
 Many (though not all) of the applications are discussed in detail in
 Barker and Shan 2014, *Continuations in Natural Language*, OUP.
 
 crucial for some natural language applications.
 
 Many (though not all) of the applications are discussed in detail in
 Barker and Shan 2014, *Continuations in Natural Language*, OUP.
 
-In terms of list zippers, the continuation of a focussed element in
+In terms of list zippers, the continuation of a focused element in
 the list is the front part of the list.
 
     list zipper for the list [a;b;c;d;e;f] with focus on d:
 the list is the front part of the list.
 
     list zipper for the list [a;b;c;d;e;f] with focus on d:
@@ -31,7 +31,7 @@ the list is the front part of the list.
      continuation
 
 In terms of tree zippers, the continuation is the entire context of
      continuation
 
 In terms of tree zippers, the continuation is the entire context of
-the focussed element--the entire rest of the tree.
+the focused element--the entire rest of the tree.
 
 [drawing of a broken tree]
 
 
 [drawing of a broken tree]
 
@@ -45,15 +45,16 @@ We'll burn through that conceptual fog today.  The natural thing to
 try would have been to defunctionalize the continuation-based solution
 using a tree zipper.  But that would not have been easy, since the
 natural way to implement the doubling behavior of the shifty operator
 try would have been to defunctionalize the continuation-based solution
 using a tree zipper.  But that would not have been easy, since the
 natural way to implement the doubling behavior of the shifty operator
-would have been to simply copy the context provided by the zipper.
+would have been to simply copy the context provided by the zipper.  
 This would have produced two uncoordinated copies of the other shifty
 operator, and we'd have been in the situation described in class of
 having a reduction strategy that never reduced the number of shifty
 This would have produced two uncoordinated copies of the other shifty
 operator, and we'd have been in the situation described in class of
 having a reduction strategy that never reduced the number of shifty
-operators below 2.
+operators below 2. (There are ways around this limitation of tree zippers, 
+but they are essentially equivalent to the technique given just below.)
 
 Instead, we'll re-interpreting what the continuation monad was doing
 
 Instead, we'll re-interpreting what the continuation monad was doing
-in defunctionalized terms by using Quantifier Raising (a technique
-from linguistics).
+in more or less defunctionalized terms by using Quantifier Raising, a technique
+from linguistics.
 
 But first, motivating quantifier scope as a linguistic application.
 
 
 But first, motivating quantifier scope as a linguistic application.
 
@@ -69,7 +70,7 @@ a scope-taking expression to take scope.
     2. For every x, [Ann put a copy of x's homeworks in her briefcase]
 
 The sentence in (1) can be paraphrased as in (2), in which the
     2. For every x, [Ann put a copy of x's homeworks in her briefcase]
 
 The sentence in (1) can be paraphrased as in (2), in which the
-quantificational DP *every student* takes scope over the rest of the sentence.
+quantificational DP *everyone* takes scope over the rest of the sentence.
 Even if you suspect that there could be an analysis of (2) on which
 "every student's term paper" could denote some kind of mereological
 fusion of a set of papers, it is much more difficult to be satisfied
 Even if you suspect that there could be an analysis of (2) on which
 "every student's term paper" could denote some kind of mereological
 fusion of a set of papers, it is much more difficult to be satisfied