Yoneda is CPS

Jul 01, 2016 19:39

https://bartoszmilewski.com/2015/09/01/the-yoneda-lemma/

forall r . (a -> r) -> r ≅ a

Is it forall a or not? Yoneda says yes. Does this mean type system is boolean?

Leave a comment

Comments 12

ex_juan_gan July 1 2016, 20:59:38 UTC
The notation is kind of misleading.

It's about natural transformations from (a->_) to id, in Sets, and they are in one-to-one correspondence with the set a.

Hask is not Sets. Again, Hask is not Sets. I don't know where Bartosz takes all this, to me he seems over-creative.

So - never mind. He's just fantasizing.

Reply

sassa_nf July 1 2016, 21:09:50 UTC
ok, that's better.

The question actually comes from the allegation that CPS is isomorphic to "direct" expression. I cannot recall where I saw this allegation, so was looking for a confirmation.

Then if they are not isomorphic, it means one of the ways is "more expressive"?

Reply

ex_juan_gan July 1 2016, 21:15:05 UTC
Most probably, yes.

Reply

sassa_nf July 1 2016, 21:23:12 UTC
meaning, one of them is more expressive?

Reply


zeit_raffer July 2 2016, 06:49:38 UTC

Wadler says yes. His free theorems guarantee...

Reply

sassa_nf July 2 2016, 06:54:05 UTC
Does this mean Hask type system is boolean then?

Reply

zeit_raffer July 2 2016, 07:01:45 UTC

no. it means that expression of cps with a quantifier is a good approximation for Yoneda.

Reply

sassa_nf July 4 2016, 07:33:38 UTC
да, я забыл, это же fast and loose reasoning, а не полная правда.

А как Йонеда в Set выглядит? Вот у нас есть Hom(A,-), тогда Hom(A,⊥) - пустое множество для непустых A. Не наврал? И вот множество стрелок из пустого множества (естественные преобразования) изоморфно множеству, отображающему A?..

Reply


Leave a comment

Up