Skip to main content

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

  • 168 Accesses

  • 2 Citations

Abstract

We present an intuitive model of polymorphic recursive types and subtypes based on a metric space of projections. We show this model to be semantically equivalent to types as strong ideals although requiring less structure in the semantic framework and allowing a more concise analysis. We present a new set of type inference rules for a combinatorial language and prove the rules correct with respect to our model. An algorithm embodying these rules has been implemented.

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

Access this chapter

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, K. B. Bruce, and G. Longo. “The Finitary Projection Model for Second Order Lambda Calculus and Solutions to Higher Order Domain Equations”. In IEEE Symposium on Logic in Computer Science, 1986.

    Google Scholar 

  2. M. Abadi and G. Plotkin. “A Per Model of Polymorphism and Recursive Types”. In IEEE Symposium on Logic in Computer Science, 1990.

    Google Scholar 

  3. P. America and J. Rutten. “Solving Reflexive Domain Equations in a Category of Complete Metric Spaces”. Journal of Computer and System Sciences, 39:343–375, 1989.

    Google Scholar 

  4. J. Backus. “Can Programming be Liberated from the von Neumann Style? A Functional Style and its Algebra of Programs”. Communications of the ACM, 21(8), 1978.

    Google Scholar 

  5. S. Banach. “Sur les operations dans les ensembles abstraits et leurs applications aux equations integrales”. Fund. Math., 3:7–33, 1922.

    Google Scholar 

  6. R. M. Burstall, D. B. MacQueen, and D. T. Sanella. “Hope: an Experimental Applicative Language”. In Lisp Conference, pages 136–143. A.C.M., August 1980.

    Google Scholar 

  7. L. Cardelli. “A Semantics of Multiple Inheritance”. Information and Computation, 76:138–164, 1988.

    Google Scholar 

  8. P.-L. Curien. Categorical Combinators, Sequential Algorithms and Functional Programming. Pitman, 1986.

    Google Scholar 

  9. M. Coppo and M. Zacchi. “Type Inference and Logical Relations”. In IEEE Symposium on Logic in Computer Science, 1986.

    Google Scholar 

  10. A. J. Field and P. G. Harrison. Functional Programming. Addisonwesley Publishing Company, 1988.

    Google Scholar 

  11. G. Gierz, K. H. Hofmann, K. Keimel, J. D. Lawson, M. Mislove, and D. S. Scott. A Compendium of Continuous Lattices. Springer-Verlag, 1980.

    Google Scholar 

  12. M. J. Gordon, A. J. Milner, and C. P. Wadsworth. Edinburgh LCF, LNCS. Number 78 in LNCS. Springer-Verlag, 1979.

    Google Scholar 

  13. S. Hunt. “PERs Generalise Projections for Strictness Analysis”. In Third Annual Glasgow Workshop on Functional Programming, Draft Proceedings, pages 156–168, 1990.

    Google Scholar 

  14. R. Milner. “A Theory of Type Polymorphism in Programming”. Journal of Computer and System Sciences, 17:348–375, 1978.

    Google Scholar 

  15. D. MacQueen, G. Plotkin, and R. Sethi. “An Ideal Model for Recursive Polymorphic Types”. Information and Control, 71:95–130, 1986.

    Google Scholar 

  16. D.S. Scott. “Data Types as Lattices”. SIAM Journal on Computing, 5(3):522–587, 1976.

    Google Scholar 

  17. R.A.G. Seely. “Categorical Semantics for Hiugher-Order Polymorphic Lambda Calculus”. Journal of Symbolic Logic, 52(4), 1987.

    Google Scholar 

  18. M. B. Smyth and G. D. Plotkin. “The Category-Theoretic Solution of Recursive Domain Equations”. SIAM Journal on Computing, 11:761–783, 1982.

    Google Scholar 

  19. P. Wadler and R.J.M. Hughes. “Projections for Strictness Analysis”. In Functional Programming and Computer Architecture, LNCS, vol. 274, pages 386–406, 1987.

    Google Scholar 

Download references

Authors

Editor information

John Hughes

Rights and permissions

Reprints and permissions

Copyright information

© 1991 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Lillie, D.J., Harrison, P.G. (1991). A projection model of types. In: Hughes, J. (eds) Functional Programming Languages and Computer Architecture. FPCA 1991. Lecture Notes in Computer Science, vol 523. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3540543961_13

Download citation

  • DOI: https://doi.org/10.1007/3540543961_13

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

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

  • Online ISBN: 978-3-540-47599-6

  • eBook Packages: Springer Book Archive

Keywords

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Publish with us

Policies and ethics