Non-Parametric Parametricity

被引:10
|
作者
Neis, Georg
Dreyer, Derek
Rossberg, Andreas
机构
关键词
Languages; Theory; Verification; Parametricity; intensional type analysis; representation independence; step-indexed logical relations; type-safe cast;
D O I
10.1145/1631687.1596572
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Type abstraction and intensional type analysis are features seemingly at odds-type abstraction is intended to guarantee parametricity and representation independence, while type analysis is inherently non-parametric. Recently, however, several researchers have proposed and implemented "dynamic type generation" as a way to reconcile these features. The idea is that, when one defines an abstract type, one should also be able to generate at run time a fresh type name, which may be used as a dynamic representative of the abstract type for purposes of type analysis. The question remains: in a language with non-parametric polymorphism, does dynamic type generation provide us with the same kinds of abstraction guarantees that we get from parametric polymorphism? Our goal is to provide a rigorous answer to this question. We define a step-indexed Kripke logical relation for a language with both non-parametric polymorphism (in the form of type-safe cast) and dynamic type generation. Our logical relation enables us to establish parametricity and representation independence results, even in a non-parametric setting, by attaching arbitrary relational interpretations to dynamically-generated type names. In addition, we explore how programs that are provably equivalent in a more traditional parametric logical relation may be "wrapped" systematically to produce terms that are related by our non-parametric relation, and vice versa. This leads us to a novel "polarized" form of our logical relation, which enables us to distinguish formally between positive and negative notions of parametricity.
引用
收藏
页码:135 / 148
页数:14
相关论文
共 50 条
  • [1] Non-Parametric Parametricity
    Nei, Georg
    Dreyer, Derek
    Rossberg, Andreas
    [J]. ICFP'09: PROCEEDINGS OF THE 2009 ACM SIGPLAN INTERNATIONAL CONFERENCE ON FUNCTIONAL PROGRAMMING, 2009, : 135 - 148
  • [2] Non-parametric parametricity
    Neis, Georg
    Dreyer, Derek
    Rossberg, Andreas
    [J]. JOURNAL OF FUNCTIONAL PROGRAMMING, 2011, 21 : 497 - 562
  • [3] To be parametric or non-parametric, that is the question Parametric and non-parametric statistical tests
    Van Buren, Eric
    Herring, Amy H.
    [J]. BJOG-AN INTERNATIONAL JOURNAL OF OBSTETRICS AND GYNAECOLOGY, 2020, 127 (05) : 549 - 550
  • [4] On Parametric (and Non-Parametric) Variation
    Smith, Neil
    Law, Ann
    [J]. BIOLINGUISTICS, 2009, 3 (04): : 332 - 343
  • [5] PARAMETRIC AND NON-PARAMETRIC MINIMA
    ANZELLOTTI, G
    [J]. MANUSCRIPTA MATHEMATICA, 1984, 48 (1-3) : 103 - 115
  • [6] Non-parametric Econometrics
    Leong, Chee Kian
    [J]. JOURNAL OF THE ROYAL STATISTICAL SOCIETY SERIES A-STATISTICS IN SOCIETY, 2012, 175 : 1072 - 1072
  • [7] NON-PARAMETRIC STRINGS
    GAMBINI, R
    TRIAS, A
    [J]. PHYSICS LETTERS B, 1988, 200 (03) : 280 - 284
  • [8] Parametric and Non-parametric Encompassing Procedures
    Bontemps, Christophe
    Florens, Jean-Pierre
    Richard, Jean-Francois
    [J]. OXFORD BULLETIN OF ECONOMICS AND STATISTICS, 2008, 70 : 751 - 780
  • [9] The fusion of parametric and non-parametric hypothesis tests
    Singer, PF
    [J]. FUSION 2003: PROCEEDINGS OF THE SIXTH INTERNATIONAL CONFERENCE OF INFORMATION FUSION, VOLS 1 AND 2, 2003, : 780 - 784
  • [10] Parametric and non-parametric methods for linear extraction
    Bascle, B
    Gao, X
    Ramesh, V
    [J]. STATISTICAL METHODS IN VIDEO PROCESSING, 2004, 3247 : 175 - 186