categories - Category Theory list
 help / color / mirror / Atom feed
From: Meredith Gregory <lgreg.meredith@gmail.com>
To: Vaughan Pratt <pratt@cs.stanford.edu>, Categories <categories@mta.ca>
Subject: Re: MSFT C9 video on a monadic approach to location
Date: Mon, 19 Jul 2010 19:22:49 -0700	[thread overview]
Message-ID: <E1ObCpX-0006ir-Fg@mailserv.mta.ca> (raw)
In-Reply-To: <AANLkTik_gB8FjDox5huc-GyTe4s_UBu5kfiWBU7vx9rL@mail.gmail.com>

Dear Vaughan,

i should mention that for the type, M[=E2=88=82=C2=B5Mx=C2=B5M,=C2=B5M], to b=
e inhabited you need some way to bottom out the recursion. In the reflective=
  higher-order pi-calculus that corresponds to the constant summand, 1, repre=
senting the stopped process.=20

For the lambda calculus you need to do something similar -- like add in an e=
xplicit distinguished representation of divergence, or add in some ground te=
rms, like the booleans.=20

More generally, the trick needs to employ the option monad if the type is is=
o to 1+N for appropriate N.

i'm happy to provide either Haskell or Scala code to illustrate that the pro=
cedure is effective. i can also provide OCaml code, but it's considerably mo=
re verbose and painful to write.

Best wishes,

--greg

Managing Partner
Biosimilarity LLC


[For admin and other information see: http://www.mta.ca/~cat-dist/ ]


  parent reply	other threads:[~2010-07-20  2:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-08 15:41 Meredith Gregory
2010-07-18  8:36 ` Vaughan Pratt
     [not found]   ` <AANLkTiljFy_Y6m3scTpM3xAD1Qc2Ow1YLyouWSXNC01N@mail.gmail.com>
     [not found]     ` <AANLkTik_gB8FjDox5huc-GyTe4s_UBu5kfiWBU7vx9rL@mail.gmail.com>
2010-07-20  2:22       ` Meredith Gregory [this message]
2010-07-18 21:42 ` categories
2010-07-08 15:41 Meredith Gregory

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1ObCpX-0006ir-Fg@mailserv.mta.ca \
    --to=lgreg.meredith@gmail.com \
    --cc=categories@mta.ca \
    --cc=pratt@cs.stanford.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).