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 条
  • [31] NON-PARAMETRIC MULTIVARIATE STATISTICS
    PFLUG, GC
    [J]. BIOMETRICS, 1984, 40 (01) : 268 - 268
  • [32] Non-Parametric Subject Prediction
    Wang, Shenghui
    Koopman, Rob
    Englebienne, Gwenn
    [J]. DIGITAL LIBRARIES FOR OPEN KNOWLEDGE, TPDL 2019, 2019, 11799 : 312 - 326
  • [33] A NON-PARAMETRIC TEST OF INDEPENDENCE
    HOEFFDING, W
    [J]. ANNALS OF MATHEMATICAL STATISTICS, 1948, 19 (04): : 546 - 557
  • [34] Non-Parametric Calibration for Classification
    Wenger, Jonathan
    Kjellstroem, Hedvig
    Triebel, Rudolph
    [J]. INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND STATISTICS, VOL 108, 2020, 108
  • [35] Progress in Non-parametric Kinetics
    J. Sempere
    R. Nomen
    R. Serra
    [J]. Journal of Thermal Analysis and Calorimetry, 1999, 56 : 843 - 849
  • [36] NON-PARAMETRIC RELIABILITY CRITERION
    HOLMQVIST, S
    [J]. ACTA PSYCHOLOGICA, 1959, 15 : 139 - 140
  • [37] NON-PARAMETRIC ESTIMATION OF SURVIVORSHIP
    MEIER, P
    [J]. JOURNAL OF THE AMERICAN STATISTICAL ASSOCIATION, 1955, 50 (270) : 589 - 589
  • [38] NON-PARAMETRIC TESTING OF INTERACTION
    BREDENKAMP, J
    [J]. PSYCHOLOGISCHE BEITRAGE, 1974, 16 (03): : 398 - 416
  • [39] Non-parametric regression methods
    Ince H.
    [J]. Computational Management Science, 2006, 3 (2) : 161 - 174
  • [40] NON-PARAMETRIC LACTATION CURVES
    ELSTON, DA
    GLASBEY, CA
    NEILSON, DR
    [J]. ANIMAL PRODUCTION, 1989, 48 : 331 - 339