Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

Incremental Inference of Partial Types

  • Conference paper
  • First Online:
Theoretical Computer Science (ICTCS 2001)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2202))

Included in the following conference series:

  • 394 Accesses

Abstract

We present a type inference procedure with partial types for a λ-calculus equipped withda tatypes. Our procedure handles a type language containing greatest and least types (ω and ⊥ respectively), recursive types, subtyping, and datatypes (yielding constants at the level of terms). The main feature of our algorithm is incrementality; this allows us to progressively analyse successive de.nitions, which is of interest in the setting of a system like the CuCh machine (developed at the University of Rome). The methods we describe have led to an implementation; we illustrate its use on a few examples.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

References

  1. R. Amadio and L. Cardelli. Subtyping recursive types. ACM Transactions on Programming Languages and Systems, 15(4):575–631, 1993.

    Article  Google Scholar 

  2. Z. M. Ariola and J. W. Klop. Equational term graphrewrit ing. Technical report, University of Oregon, 1995.

    Google Scholar 

  3. H. Abelson and G. J. Susman. Structure and Interpretation of Computer Programs. MIT Press, 1985.

    Google Scholar 

  4. C. Böhm and A. Berarducci. Automatic Synthesis of Typed λ-programs on Term Algebras. Theoretical Computer Science, 39:135–154, 1985.

    Article  MATH  MathSciNet  Google Scholar 

  5. H. P. Barendregt, M. Coppo, and M. Dezani-Ciancaglini. A filter lambda model and the completeness of type assignment. Journal of Symbolic Logic, 48:931–940, 1983.

    Article  MATH  MathSciNet  Google Scholar 

  6. M. Brandt and F. Henglein. Coinductive axiomatization of recursive type equality and subtyping. Fundamenta Informaticæ, 33:309–338, 1998.

    MATH  MathSciNet  Google Scholar 

  7. C. Böhm, A. Piperno, and S. Guerrini. Lambda-definition of Function(al)s by Normal Forms. In Proc. of ESOP’94, volume 788 of LNCS, pages 135–154. Springer Verlag, 1994.

    Google Scholar 

  8. F. Cardone and M. Coppo. Two Extensions of Curry’s Inference System. In P. Odifreddi, editor, Logic and Computer Science, pages 19–75. Accademic Press, 1990.

    Google Scholar 

  9. F. Cardone and M. Coppo. Type inference withr ecursive types. Syntax and Semantics. Information and Computation, 92(1):48–80, 1991.

    Article  MATH  MathSciNet  Google Scholar 

  10. C. Gomard. Partial Type Inference for Untyped Functional Programs. In Proceedings of the ACM Conference on Lisp and Functional Programming, pages 282–287, 1990.

    Google Scholar 

  11. T. Jim. What are principal typings and what are they good for? In POPL’96, pages 42–53. ACM, 1996.

    Google Scholar 

  12. D. Kozen, J. Palsberg, and M. I. Schwartzbach. Efficient inference of partial types. Journal of Computer and System Sciences, 49(2):306–324, 1994. also in Proceedings of FOCS’92, pages 363–371.

    Article  MATH  MathSciNet  Google Scholar 

  13. R. Milner. A Theory of Type Polimorphism in Programming. Journal of Computer and System Sciences, 17:348–375, 1978.

    Article  MATH  MathSciNet  Google Scholar 

  14. S. Thatte. Type inference with partial types. TCS, 124:127–148, 1994. also in Proceedings of ICALP’ 88, pages 615–629.

    Article  MATH  MathSciNet  Google Scholar 

  15. Mitchell Wand and Patrick M. O’Keefe. Type inference for partial types is decidable. In B. Krieg-Brückner, editor, European Symposium on Programming’ 92, volume 582 of LNCS, pages 408–417. Springer Verlag, 1992.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2001 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Coppo, M., Hirschkoff, D. (2001). Incremental Inference of Partial Types. In: Theoretical Computer Science. ICTCS 2001. Lecture Notes in Computer Science, vol 2202. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45446-2_4

Download citation

  • DOI: https://doi.org/10.1007/3-540-45446-2_4

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-42672-1

  • Online ISBN: 978-3-540-45446-5

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics