|
ABSTRACT
We explore partial type-inference for System F based on type-containment. We consider both cases of a purely functional semantics and a call-by-value stateful semantics. To enable type-inference, we require higher-rank polymorphism to be user-specified via type annotations on source terms. We allow implicit predicative type-containment and explicit impredicative type-instantiation. We obtain a core language that is both as expressive as System F and conservative over ML. Its type system has a simple logical specification and a partial type-reconstruction algorithm that are both very close to the ones for ML. We then propose a surface language where some annotations may be omitted and rebuilt by some algorithmically defined but logically incomplete elaboration mechanism.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
|
| |
2
|
Jacques Garrigue. Relaxing the value restriction. In International Symposium on Functional and Logic Programming, volume 2998 of Lecture Notes in Computer Science, Nara, April 2004. Springer-Verlag.
|
| |
3
|
|
| |
4
|
Haruo Hosoya and Benjamin C. Pierce. How good is local type inference? Technical Report MS-CIS-99-17, University of Pennsylvania, June 1999.
|
| |
5
|
Didier Le Botlan. MLF: Une extension de ML avec polymorphisme de second ordre et instanciation implicite. PhD thesis, University of Paris 7, June 2004. (english version).
|
 |
6
|
|
| |
7
|
|
 |
8
|
|
| |
9
|
|
 |
10
|
|
 |
11
|
|
 |
12
|
|
| |
13
|
François Pottier and Didier Rémy. The essence of ML type inference. Extended version of {PR05} (in preparation).
|
| |
14
|
François Pottier and Didier Rémy. The essence of ML type inference. In Benjamin C. Pierce, editor, Advanced Topics in Types and Programming Languages, chapter 10, pages 389--489. MIT Press, 2005.
|
| |
15
|
Simon Peyton Jones and Mark Shields. Lexically-scoped type variables. Submitted to ICFP 2004, March 2003.
|
 |
16
|
|
| |
17
|
Simon Peyton Jones, Dimitrios Vytiniotis, Stephanie Weirich, and Mark Shields. Practical type inference for arbitrary-rank types. Submitted to the Journal of Functional Programming, June 2005.
|
| |
18
|
Simon Peyton Jones, Dimitrios Vytiniotis, Stephanie Weirich, and Mark Shields. Practical type inference for arbitrary-rank types. technical appendix. Private communication, June 2005.
|
| |
19
|
|
| |
20
|
Didier Rémy. Simple, partial type-inference for System F based on type-containment. Full version, September 2005.
|
| |
21
|
|
| |
22
|
Dimitrios Vytiniotis, Stephanie Weirich, and Simon Peyton Jones. Boxy type inference for higher-rank types and impredicativity. Available electronically at http://www.cis.upenn.edu/~dimitriv/boxy/boxy.ps, April 2005.
|
| |
23
|
Joe B. Wells. Typability and type checking in the second-order λ-calculus are equivalent and undecidable. In Proceedings of the Ninth Annual IEEE Symposium on Logic in Computer Science (LICS), pages 176--185, 1994.
|
| |
24
|
Joe B. Wells. The undecidability of Mitchell's subtyping relation. Technical Report 95--019, Computer Science Department, Boston Univiversity, December 1995.
|
| |
25
|
|
| |
26
|
|
|