Revisiting Iso-Recursive Subtyping

被引:3
|
作者
Zhou, Yaoda [1 ]
Oliveira, Bruno C. D. S. [1 ]
Zhao, Jinxu [1 ]
机构
[1] Univ Hong Kong, Dept Comp Sci, Hong Kong, Peoples R China
来源
关键词
Iso-recursive types; Formalization; Subtyping;
D O I
10.1145/3428291
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The Amber rules are well-known and widely used for subtyping iso-recursive types. They were first briefly and informally introduced in 1985 by Cardelli in a manuscript describing the Amber language. Despite their use over many years, important aspects of the metatheory of the iso-recursive style Amber rules have not been studied in depth or turn out to be quite challenging to formalize. This paper aims to revisit the problem of subtyping iso-recursive types. We start by introducing a novel declarative specification that we believe captures the "spirit" of Amber-style iso-recursive subtyping. Informally, the specification states that two recursive types are subtypes if all their finite unfoldings are subtypes. The Amber rules are shown to be sound with respect to this declarative specification. We then derive a sound, complete and decidable algorithmic formulation of subtyping that employs a novel double unfolding rule. Compared to the Amber rules, the double unfolding rule has the advantage of: 1) being modular; 2) not requiring reflexivity to be built in; and 3) leading to an easy proof of transitivity of subtyping. This work sheds new insights on the theory of subtyping iso-recursive types, and the new double unfolding rule has important advantages over the original Amber rules for both implementations and metatheoretical studies involving recursive types. All results are mechanically formalized in the Coq theorem prover. As far as we know, this is the first comprehensive treatment of iso-recursive subtyping dealing with unrestricted recursive types in a theorem prover.
引用
收藏
页数:28
相关论文
共 43 条
  • [31] Revisiting the ODE Method for Recursive Algorithms: Fast Convergence Using Quasi Stochastic Approximation
    Chen Shuhang
    Devraj, Adithya
    Berstein, Andrey
    Meyn, Sean
    JOURNAL OF SYSTEMS SCIENCE & COMPLEXITY, 2021, 34 (05) : 1681 - 1702
  • [32] Revisiting the ODE Method for Recursive Algorithms: Fast Convergence Using Quasi Stochastic Approximation
    Shuhang Chen
    Adithya Devraj
    Andrey Berstein
    Sean Meyn
    Journal of Systems Science and Complexity, 2021, 34 : 1681 - 1702
  • [33] Revisiting the ODE Method for Recursive Algorithms:Fast Convergence Using Quasi Stochastic Approximation
    CHEN Shuhang
    DEVRAJ Adithya
    BERSTEIN Andrey
    MEYN Sean
    Journal of Systems Science & Complexity, 2021, 34 (05) : 1681 - 1702
  • [34] REVISITING THE SUBTYPING OF LOWER GASTROINTESTINAL DISORDERS OF GUT-BRAIN INTERACTION PATIENTS USING UNSUPERVISED MACHINE LEARNING
    Dowrick, Jarrah M.
    Roy, Nicole C.
    Carco, Caterina
    James, Shanalee C.
    Heenan, Phoebe E.
    Frampton, Chris
    Fraser, Karl
    Young, Wayne
    Cooney, Janine
    Trower, Tania M.
    Keenan, Jacqui
    McNabb, Warren
    Mullaney, Jane A.
    Bayer, Simone B.
    Talley, Nicholas J.
    Gearry, Richard
    Angeli-Gordon, Timothy R.
    GASTROENTEROLOGY, 2024, 166 (05) : S1378 - S1378
  • [35] Revisiting the Economic Impacts of Eimeria and Its Control in European Intensive Broiler Systems With a Recursive Modeling Approach
    Gilbert, William
    Bellet, Camille
    Blake, Damer P.
    Tomley, Fiona M.
    Rushton, Jonathan
    FRONTIERS IN VETERINARY SCIENCE, 2020, 7
  • [36] Early and late adopters of ISO 14001-type standards: revisiting the role of firm characteristics and capabilities
    Serdal Ozusaglam
    Stéphane Robin
    Chee Yew Wong
    The Journal of Technology Transfer, 2018, 43 : 1318 - 1345
  • [37] Early and late adopters of ISO 14001-type standards: revisiting the role of firm characteristics and capabilities
    Ozusaglam, Serdal
    Robin, Stephane
    Wong, Chee Yew
    JOURNAL OF TECHNOLOGY TRANSFER, 2018, 43 (05): : 1318 - 1345
  • [38] On Beyond-Birthday-Bound Security: Revisiting the Development of ISO/IEC 9797-1 MACs
    Shen, Yaobin
    Wang, Lei
    IACR TRANSACTIONS ON SYMMETRIC CRYPTOLOGY, 2019, 2019 (02) : 146 - 168
  • [39] Revisiting ISO 14001 diffusion among national terrains: panel data evidence from OECD countries and the BRIICS
    George Halkos
    Stylianos Nomikos
    Antonis Skouloudis
    Environmental Economics and Policy Studies, 2021, 23 : 781 - 803
  • [40] Revisiting ISO 14001 diffusion among national terrains: panel data evidence from OECD countries and the BRIICS
    Halkos, George
    Nomikos, Stylianos
    Skouloudis, Antonis
    ENVIRONMENTAL ECONOMICS AND POLICY STUDIES, 2021, 23 (04) : 781 - 803