Linear Permissions
Nov. 4th, 2012 09:44 amI wrote an unfortunately long pdf about linear logic and comonads. It might be interesting? It might solve a long-standing problem? Or it might just be a good way for me to procrastinate on my homework---only one way to find out!
no subject
Date: 2012-11-05 05:32 pm (UTC)no subject
Date: 2012-11-05 05:37 pm (UTC)W a -o b
--------
W a -o W b
and it works (and in fact, I do show this at the level of contextual transitions for the last system I present). Importantly, though, you can prove cojoin : W a -o W (W a) with any of them, which should be enough.
I'm not entirely sure what the rationale for this is, but it has something to do with how things are only functorial at a 'higher' level: so you don't have, say,
!A -o (A -o B) -o !B
but you *do* have
!A -o !(A -o B) -o !B
and similarly,
!A -o !(!A -o B) -o !B
The same things work for [].
no subject
Date: 2012-11-05 05:39 pm (UTC)no subject
Date: 2012-11-05 05:45 pm (UTC)no subject
Date: 2012-11-05 05:35 pm (UTC)i'm still not clear on how this constitutes a solution to permissions, though. what's your imagined encoding of "with permission p, a -o b"? does the permission become a worldy-resource?
no subject
Date: 2012-11-05 05:41 pm (UTC)I think that would be ([p]a) -o b.
no subject
Date: 2012-11-05 06:00 pm (UTC)no subject
Date: 2012-11-05 06:04 pm (UTC)So if you just wanted to write a function that morally has type a -o b, but with elevated permissions, you'd write ([]a) -o b to indicate that you need the extra privilege to get into the function.
no subject
Date: 2012-11-05 06:06 pm (UTC)no subject
Date: 2012-11-05 06:01 pm (UTC)no subject
Date: 2012-11-05 06:08 pm (UTC)no subject
Date: 2012-11-05 05:44 pm (UTC)no subject
Date: 2012-11-05 06:02 pm (UTC)no subject
Date: 2012-11-05 06:08 pm (UTC)