Parametric polymorphism for XML

Author:

Hosoya Haruo1,Frisch Alain2,Castagna Giuseppe3

Affiliation:

1. The University of Tokyo, Tokyo, Japan

2. LexiFi - France

3. PPS (CNRS) - Université Denis Diderot, Paris, France

Abstract

Despite the extensiveness of recent investigations on static typing for XML, parametric polymorphism has rarely been treated. This well-established typing discipline can also be useful in XML processing in particular for programs involving “parametric schemas,” that is, schemas parameterized over other schemas (e.g., SOAP). The difficulty in treating polymorphism for XML lies in how to extend the “semantic” approach used in the mainstream (monomorphic) XML type systems. A naive extension would be “semantic” quantification over all substitutions for type variables. However, this approach reduces to an NEXPTIME-complete problem for which no practical algorithm is known and induces a subtyping relation that may not always match the programmer's intuition. In this article, we propose a different method that smoothly extends the semantic approach yet is algorithmically easier. The key idea here is to devise a novel and simple marking technique, where we interpret a polymorphic type as a set of values with annotations of which subparts are parameterized. We exploit this interpretation in every ingredient of our polymorphic type system such as subtyping, inference of type arguments, etc. As a result, we achieve a sensible system that directly represents a usual expected behavior of polymorphic type systems—“values of abstract types are never reconstructed”—in a reminiscence of Reynold's parametricity theory. Also, we obtain a set of practical algorithms for typechecking by local modifications to existing ones for a monomorphic system.

Funder

Seventh Framework Programme

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference53 articles.

1. Decidability of Systems of Set Constraints with Negative Constraints

2. XML with data values

3. Altheim M. and McCarron S. 2001. XHTML 1.1 — Module-based XHTML. http://www.w3.org/TR/2001/REC-xhtml11-20010531/. Altheim M. and McCarron S. 2001. XHTML 1.1 — Module-based XHTML. http://www.w3.org/TR/2001/REC-xhtml11-20010531/.

4. Standard ML of New Jersey

5. Ausbrooks R. Buswell S. Dalmas S. Devitt S. Diaz A. Hunter R. Smith B. Soiffer N. Sutor R. and Watt S. 2003. Mathematical Markup Language (MathML) Version 2.0 (Second Edition). http://www.w3.org/Math/. Ausbrooks R. Buswell S. Dalmas S. Devitt S. Diaz A. Hunter R. Smith B. Soiffer N. Sutor R. and Watt S. 2003. Mathematical Markup Language (MathML) Version 2.0 (Second Edition). http://www.w3.org/Math/.

Cited by 12 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Programming with Union, Intersection, and Negation Types;The French School of Programming;2023-10-11

2. Inclusion algorithms for one-unambiguous regular expressions and their applications;Science of Computer Programming;2020-07

3. Gaza Under Hamas;2017

4. A Logical Approach to Deciding Semantic Subtyping;ACM Transactions on Programming Languages and Systems;2015-10-16

5. Verification of tree-processing programs via higher-order mode checking;Mathematical Structures in Computer Science;2014-11-10

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3