Added assignmemnt 6
authorChris Barker <barker@kappa.linguistics.fas.nyu.edu>
Mon, 1 Nov 2010 19:14:53 +0000 (15:14 -0400)
committerChris Barker <barker@kappa.linguistics.fas.nyu.edu>
Mon, 1 Nov 2010 19:14:53 +0000 (15:14 -0400)
assignment5.mdwn
index.mdwn
intensionality_monad.mdwn
week6.mdwn

index b1f65d2..3989928 100644 (file)
@@ -233,8 +233,8 @@ any auxiliary functions you need.
 Baby monads
 -----------
 
-Read the material on dividing by zero/towards monads from the end of lecture
-notes for week 6, then write a function `lift'` that generalized the
+Read the material on dividing by zero/towards monads from <strike>the end of lecture
+notes for week 6</strike> the start of lecture notes for week 7, then write a function `lift'` that generalized the
 correspondence between + and `add'`: that is, `lift'` takes any two-place
 operation on integers and returns a version that takes arguments of type `int
 option` instead, returning a result of `int option`.  In other words, `lift'`
index 107c803..6bee224 100644 (file)
@@ -47,7 +47,7 @@ preloaded is available at [[assignment 3 evaluator]].
 
 (18 Oct, 25 Oct) Lecture notes for [[Week5]] and [[Week6]]; [[Assignment5]].
 
->      Topics: Types, Polymorphism, Unit and Bottom, Dividing by Zero/[[Towards Monads]]
+>      Topics: Types, Polymorphism, Unit and Bottom
 
 (1 Nov) Lecture notes for [[Week7]]; Assignment6.
 
index 6887487..3b69ef9 100644 (file)
@@ -1,9 +1,23 @@
-The intensionality monad
-------------------------
+Now we'll look at using monads to do intensional function application.
+This really is just another application of the reader monad, not a new monad.
+In Shan (2001) [Monads for natural
+language semantics](http://arxiv.org/abs/cs/0205026v1), Ken shows that
+making expressions sensitive to the world of evaluation is conceptually
+the same thing as making use of the reader monad.
+This technique was beautifully re-invented
+by Ben-Avi and Winter (2007) in their paper [A modular
+approach to
+>>>>>>> f879a647e289a67b992caaafd497910259a81040
+intensionality](http://parles.upf.es/glif/pub/sub11/individual/bena_wint.pdf),
+though without explicitly using monads.
+
+
+All of the code in the discussion below can be found here: [[intensionality-monad.ml]].
+To run it, download the file, start OCaml, and say 
 
-In the meantime, we'll look at several linguistic applications for
-monads, based on what's called the *reader monad*, starting with
-intensional function application.  
+       # #use "intensionality-monad.ml";;
+
+Note the extra `#` attached to the directive `use`.
 
 First, the familiar linguistic problem:
 
@@ -18,22 +32,6 @@ we have a problem: if the sentences *Bill left* and *Cam left* are
 both true, they denote the same object, and Ann's beliefs can't
 distinguish between them.
 
-In Shan (2001) [Monads for natural language
-semantics](http://arxiv.org/abs/cs/0205026v1), Ken shows that making
-expressions sensitive to the world of evaluation is conceptually the
-same thing as making use of a *reader monad*.  This technique was
-beautifully re-invented by Ben-Avi and Winter (2007) in their paper [A
-modular approach to
-intensionality](http://parles.upf.es/glif/pub/sub11/individual/bena_wint.pdf),
-though without explicitly using monads.
-
-All of the code in the discussion below can be found here: [[intensionality-monad.ml]].
-To run it, download the file, start OCaml, and say 
-
-       # #use "intensionality-monad.ml";;
-
-Note the extra `#` attached to the directive `use`.
-
 The traditional solution to the problem sketched above is to allow
 sentences to denote a function from worlds to truth values, what
 Montague called an intension.  So if `s` is the type of possible
index 12fea5b..2a4586a 100644 (file)
@@ -299,5 +299,5 @@ diverge. As we consider richer languages, thunks will become more useful.
 Towards Monads
 --------------
 
-This has now been moved to [its own page](/towards_monads).
+This has now been moved to the start of [[week7]].