skip to main content
10.1145/604131.604145acmconferencesArticle/Chapter ViewAbstractPublication PagespoplConference Proceedingsconference-collections
Article

Coercive subtyping for the calculus of constructions

Published:15 January 2003Publication History

ABSTRACT

We present a coercive subtyping system for the calculus of constructions. The proposed system λCCOover≤ is obtained essentially by adding coercions and η-conversion to λC[10], which is a subtyping extension to the calculus of constructions without coercions. Following [17, 18], the coercive subtyping c : A η B is understood as a special case of typing in arrow type c : AB such that the term c behaves like an identity function. We prove that, with respect to this semantic interpretation, the proposed coercive subtyping system is sound and complete, and that this completeness leads to transitivity elimination (transitivity rule is admissible). In addition, we establish the equivalence between λCCOover≤ and CCßη, this fact implies that λCCOover≤ has confluence, subject reduction and strong normalization. We propose a formalization of coercion inference problem and present a sound and complete coercion inference algorithm.

References

  1. D. Aspinall and A. Compagnoni. Subtyping dependent types. In Proc. 11th Annual Synposium on Logic in Computer Science, IEEE, pages 86--97, 1996.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. A. Bailey. Lego with implicit coercions, 1996. draft.]]Google ScholarGoogle Scholar
  3. G. Barthe. Implicit coercions in type systems. In S. Berardi and M. Coppo, editors, Proceedings of Types'95, LNCS 1128, pp 1--15., 1995.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. V. Breazu-Tannen, T. Coquand, C. Gunter, and A. Scedrov. Inheritance as implicit coercion. Information and Computation, 93(1):172--221, July 1991.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. K. B. Bruce and G. Longo. A modest model of records, inheritance, and bounded quantification. Information and Computation, 87:196--240, 1990.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. L. Cardelli. Typechecking dependent types and subtypes. In Proc. of the Workshop on Foundations of Logic and Functional Programming, December 1987.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. L. Cardelli and P. Wegner. On understanding types, data abstraction, and polymorphism. Computing Surveys, 17(4):471--522, December 1985.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. G. Castagna. Object-Oriented Programming: A Unified Foundation. Progress in Theoretical Computer Science. Birkäuser, Boston, 1997. ISBN 3-7643-3905-5.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. G. Chen. Dependent type system with subtyping. Technical Report LIENS-96-27, Laboratoire d'Informatique, Ecole Normale Supérieure - Paris, 12 1996. Revised version in Journal of Computer Science and Technology, vol. 14, no. 1 (1999).]]Google ScholarGoogle Scholar
  10. G. Chen. Subtyping calculus of construction, extended abstract. In The 22nd International Symposium on Mathematical Foundation of Computer Science, volume 1295. Springer-Verlag LNCS, August 1997. Bratislava, Slovakia.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. G. Chen. Subtyping, type conversions and elimination of transitivity. PhD thesis, Université Paris 7, December 1998.]]Google ScholarGoogle Scholar
  12. A. B. Compagnoni. Subtyping in Fωover∧ is decidable. Technical Report ECS-LFCS-94-281, LFCS University of Edinburgh, January 1994. and in CSL'94.]]Google ScholarGoogle Scholar
  13. P.-L. Curien and G. Ghelli. Coherence of subsumption, minimum typing and the type checking in F≤. Mathematical Structures in Computer Science, 2(1):55--91, 1992.]]Google ScholarGoogle ScholarCross RefCross Ref
  14. H. Geuvers. Logics and Type Systems. PhD thesis, University of Nijmegen, Netherlands, 1993.]]Google ScholarGoogle Scholar
  15. A. Jones, Z. Luo, and S. Soloviev. Some algorithmic and proof-theoretical aspects of coercive subtyping. In Workshop on Subtyping, Inheritance and Modular Development of Proofs, September 1997. Durham, U.K.]]Google ScholarGoogle Scholar
  16. M. Lillibridge. Translucent Sums: A Foundation for Higher-Order Module Systems. PhD thesis, CMU, May 1997. CMU-CS-97-122.]]Google ScholarGoogle Scholar
  17. G. Longo, K. Milsted, and S. Soloviev. A Logic of Subtyping, extended abstract. In Logic in Computer Science (LICS), pages 292--300. IEEE, 1995. San Diego, June 1995.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. G. Longo, K. Milsted, and S. Soloviev. Coherence and transitivity of subtyping as entailment, 1998. Journal of Logic and Computation., vol. 10: 4, pp. 493--526, August 2000.]]Google ScholarGoogle ScholarCross RefCross Ref
  19. Y. Luo and Z. Luo. Coherence and transitivity of subtyping in coercive subtyping. In Proc. of the 8th Inter. Conf. on Logic for Programming, Arificial Intelligence and Reasoning (LPAR'01), Havana, Cuba., number 2250 in LNAI, 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. Z. Luo. Coercive subtyping in type theory. In CSL'96, the 1996 Annual Conference of the European Association for Computer Science Logic, Utrecht, volume 1258 of LNCS, 1996.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. Z. Luo. Coercive subtyping. Journal of Logic and Computation, 9(97--13), 1997.]]Google ScholarGoogle Scholar
  22. J. Mitchell. Polymorphic type inference and containment. Information and Computation, 76:211--249, 1988.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. B. Pierce and M. Steffen. Higher-order subtyping. In IFIP Working Conference on Programming Concepts, Methods and Calculi (PROCOMET), 1994. Full version in Theoretical Computer Science, vol. 176, no. 1--2, pp. 235--282, 1997 (with a corrigendum in TCS vol. 184 (1997), p. 247).]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. A. Saibi. Typing algorithm in type theory with inheritance. In the 24th Annual SIGPLAN-SIGACT Symposium on principles of Programming Languages, January 1997. Paris, France.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. S. Soloviev and Z. Luo. Coercion completion and conservativity in coercive subtyping. Annalsof Pure and Applied Logic, 113(1-3):297--322, 2002.]]Google ScholarGoogle ScholarCross RefCross Ref

Index Terms

  1. Coercive subtyping for the calculus of constructions

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      POPL '03: Proceedings of the 30th ACM SIGPLAN-SIGACT symposium on Principles of programming languages
      January 2003
      308 pages
      ISBN:1581136285
      DOI:10.1145/604131
      • cover image ACM SIGPLAN Notices
        ACM SIGPLAN Notices  Volume 38, Issue 1
        January 2003
        298 pages
        ISSN:0362-1340
        EISSN:1558-1160
        DOI:10.1145/640128
        Issue’s Table of Contents

      Copyright © 2003 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 15 January 2003

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • Article

      Acceptance Rates

      POPL '03 Paper Acceptance Rate24of126submissions,19%Overall Acceptance Rate824of4,130submissions,20%

      Upcoming Conference

      POPL '25

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader