skip to main content
10.1145/2933575.2934509acmconferencesArticle/Chapter ViewAbstractPublication PageslicsConference Proceedingsconference-collections
research-article

Trace semantics for polymorphic references

Published:05 July 2016Publication History

ABSTRACT

We introduce a trace semantics for a call-by-value language with full polymorphism and higher-order references. This is an operational game semantics model based on a nominal interpretation of parametricity whereby polymorphic values are abstracted with special kinds of names. The use of polymorphic references leads to violations of parametricity which we counter by closely recoding the disclosure of typing information in the semantics. We prove the model sound for the full language and strengthen our result to full abstraction for a large fragment where polymorphic references obey specific inhabitation conditions.

References

  1. S. Abramsky and R. Jagadeesan. A game semantics for generic polymorphism. APAL, 133(1-3), 2005.Google ScholarGoogle Scholar
  2. A. Ahmed. Semantics of types for mutable state. PhD thesis, Princeton University, Princeton, NJ, USA, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. A. Ahmed, D. Dreyer, and A. Rossberg. State-dependent representation independence. In POPL, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. A. Appel, P.-A. Melliès, C. Richards, and J. Vouillon. A very modal model of a modern, major, general type system. In POPL, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. L. Birkedal, K. Støvring, and J. Thamsborg. Realisability semantics of parametric polymorphism, general references and recursive types. MSCS, 20(04), 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. D. Dreyer, G. Neis, and L. Birkedal. The impact of higher-order state and control effects on local relational reasoning. JFP, 22, 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. M. J. Gabbay and A. M. Pitts. A new approach to abstract syntax with variable binding. Formal aspects of computing, 13(3-5), 2002.Google ScholarGoogle Scholar
  8. D. R. Ghica and N. Tzevelekos. A system-level game semantics. ENTCS, 286, 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. D. J. D. Hughes. Hypergame semantics: full completeness for System F. PhD thesis, University of Oxford, 2000.Google ScholarGoogle Scholar
  10. J. M. E. Hyland and C.-H. L. Ong. On Full Abstraction for PCF: I, II, and III. Inf. Comput., 163(2), 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. G. Jaber. Operational nominal game semantics. In FOSSACS, 2015.Google ScholarGoogle ScholarCross RefCross Ref
  12. G. Jaber and N. Tabareau. Kripke open bisimulation - a marriage of game semantics and operational techniques. In APLAS, 2015.Google ScholarGoogle Scholar
  13. R. Jagadeesan, C. Pitcher and J. Riely. Open bisimulation for aspects. In AOSD, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. A. Jeffrey and J. Rathke. Towards a theory of bisimulation for local names. In LICS, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. A. Jeffrey and J. Rathke. Java Jr: Fully abstract trace semantics for a core java language. In ESOP, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. A. Jeffrey and J. Rathke. Full abstraction for polymorphic pi-calculus. TCS, 390(2-3), 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. J. Laird. A fully abstract trace semantics for general references. In ICALP, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. J. Laird. Game semantics for call-by-value polymorphism. In ICALP, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. J. Laird. Game semantics for a polymorphic programming language. J. ACM, 60(4), 2013. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. S. Lassen. Eager normal form bisimulation. In LICS, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. S. B. Lassen and P. B. Levy. Typed normal form bisimulation for parametric polymorphism. In LICS, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. G. Longo, K. Milsted, and S. Soloviev. The genericity theorem and parametricity in the polymorphic λ-calculus. TCS, 121(1&2), 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. P. Levy and S. Staton. Transition systems over games. In LICS, 2014. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. A. S. Murawski, S. J. Ramsay, and N. Tzevelekos. A contextual equivalence checker for IMJ*. In ATVA, 2015.Google ScholarGoogle ScholarCross RefCross Ref
  25. B. C. Pierce and D. Sangiorgi. Behavioral equivalence in the polymorphic pi-calculus. J. ACM, 47(3), 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. J. Reynolds. Types, abstraction and parametric polymorphism. In IFIP Congress, 1983.Google ScholarGoogle Scholar
  27. C. Strachey. Fundamental concepts in programming languages. Reprint. Higher-Order and Symbolic Computation, 13(1/2), 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  28. E. Sumii. A complete characterization of observational equivalence in polymorphic λ-calculus with general references. In CSL, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. P. Wadler. Theorems for free! In FPCA, 1989. Google ScholarGoogle ScholarDigital LibraryDigital Library
  30. A. K. Wright. Simple imperative polymorphism. LASC, 8(4), 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  1. Trace semantics for polymorphic references

    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
      LICS '16: Proceedings of the 31st Annual ACM/IEEE Symposium on Logic in Computer Science
      July 2016
      901 pages
      ISBN:9781450343916
      DOI:10.1145/2933575

      Copyright © 2016 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 the author(s) 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: 5 July 2016

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article
      • Research
      • Refereed limited

      Acceptance Rates

      Overall Acceptance Rate143of386submissions,37%

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader