The Polymorphic Blame Calculus and Parametricity
Jeremy G. Siek Indiana University, Bloomington University of Strathclyde August 2015
1/ 31
The Polymorphic Blame Calculus and Parametricity Jeremy G. Siek - - PowerPoint PPT Presentation
The Polymorphic Blame Calculus and Parametricity Jeremy G. Siek Indiana University, Bloomington University of Strathclyde August 2015 1/ 31 Integrating static and dynamic typing Static Dynamic 2/ 31 Outline Quick review of gradual
1/ 31
2/ 31
◮ Quick review of gradual typing ◮ New: a polymorphic gradually typed lambda calculus ◮ Review: Poly. Blame Calculus and Parametricity
3/ 31
4/ 31
5/ 31
6/ 31
7/ 31
8/ 31
9/ 31
10/ 31
◮ Quick review of gradual typing ◮ New: a polymorphic gradually typed lambda calculus ◮ Review: Poly. Blame Calculus and Parametricity
11/ 31
12/ 31
13/ 31
14/ 31
1 2
1Polymorphic type inference and containment,
2Gradual Type for Objects, Siek and Taha, ECOOP 2007.
15/ 31
p
16/ 31
◮ Quick review of gradual typing ◮ New: a polymorphic gradually typed lambda calculus ◮ Review: Poly. Blame Calculus and Parametricity
17/ 31
p
p
p
3
3Blame for All. Ahmed et al. POPL 2011
18/ 31
p
p
p
19/ 31
p
q
20/ 31
q
p
p
21/ 31
q
p
p
22/ 31
q
p
p
4
4Types are not sets, James H. Morris, Jr., POPL 1973.
23/ 31
p
p
p
p
24/ 31
25/ 31
p
◮ If A <:+ B, then M −
◮ If A <:− B, then M −
◮ If A <:n B, then M −
◮ If B <:n A, then M −
26/ 31
p
◮ If A <: B, then M −
27/ 31
p
p
28/ 31
29/ 31
30/ 31
31/ 31