Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a2277295feee1528

Jump to content

Talk:Parametricity

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 11 years ago by Vlad Patryshev

Abstraction Theorem

[edit]

I just finished a presentation of Reynolds' theorem for school (John C. Reynolds - Types, Abstraction and Parametric Polymorphism).

It states that relations on sets (type interpretations), appropriately extended to things such as ordinary functions, functions on the class of sets (polymorphic functions), pairs and environments (assignments of values to lambda-variables), carry over from the above-mentioned environments to semantic values. That is, if two environments are related, then the values of any lambda-term according to these environments are also related. A corollary to the abstraction theorem [actually I am not quite sure that this cannot be proven, without invoking the abstraction theorem, by a simple induction on the semantic functions] is that: the semantic value of any lambda-term with a polymorphic type, is a parametric function.

Would you like me to write something along these lines (without my own comment of course) - PanayiotisK (talk) 08:25, 1 November 2012 (UTC)Reply

What you are saying, these details on how Reynolds explains his theorem, it's very important to add to the article.

So far, I may be wrong, but in my view his theorem consists of this: take a well-pointed cartesian-closed category, map its objects to Set so that points, limits and exponentials are preserved - and you get a functor. The proof relies on representing functions in Set binary relations, so it's kind of pretty transparent.

But what I do not see is how this can be applied to any type theory, without an attached semantics in Sets.

Vlad Patryshev (talk) 06:39, 21 December 2014 (UTC)Reply