The Recursive Union of Some Gradual Types
Jeremy G. Siek Sam Tobin-Hochstadt Indiana University, Bloomington
1/ 24
The Recursive Union of Some Gradual Types Jeremy G. Siek Sam - - PowerPoint PPT Presentation
The Recursive Union of Some Gradual Types Jeremy G. Siek Sam Tobin-Hochstadt Indiana University, Bloomington 1/ 24 Gradual Typing Goal: support the entire spectrum in one language. Program Dependent Static Dynamic Logics Types Typing
1/ 24
Dynamic Typing Static Typing Program Logics Dependent Types more guarantees greater burden of proof 1
1Anderson and Drossopoulou, WOOD 2003. Ou et al., IFIP TCS
2/ 24
3/ 24
2
2Wadler & Findler, Well-typed programs can’t be blamed, ESOP 2009.
4/ 24
5/ 24
1
2
3
4
5
5
1
2
2
−1
−5
5
1
6/ 24
3
3Tobin-Hochstadt and Felleisen, The Design and Impl. of Typed Scheme,
7/ 24
8/ 24
◮ The case of set-theoretic union (Pierce, 1991) doesn’t
◮ CDuce’s (Castagna, 2014) typecase is more powerful than
◮ The “true union” type of Cartwright and Fagan (1991)
9/ 24
10/ 24
11/ 24
12/ 24
p
p
13/ 24
14/ 24
4
4Inspired by Vouillon (2004).
15/ 24
p
p
p
q
p
q
p
16/ 24
17/ 24
18/ 24
5
5Inspired by Brandt and Henglein (1998).
19/ 24
p
p
p
20/ 24
q
p
q
p
p
p
p
p
p
p
p
21/ 24
◮ Definition of a gradually typed lambda calculus with
◮ Type checking algorithm for this source language. ◮ Translation to the blame calculus. ◮ Proofs of Type Safety and Blame Safety for the blame
22/ 24
23/ 24
24/ 24