SIGNATURES AND INDUCTION PRINCIPLES FOR HIGHER INDUCTIVE-INDUCTIVE TYPES

被引:5
|
作者
Kaposi, Ambrus [1 ]
Kovacs, Andras [1 ]
机构
[1] Eotvos Lorand Univ, Dept Programming Languages & Compilers, Budapest, Hungary
关键词
homotopy type theory; higher inductive types; inductive types; PARAMETRICITY;
D O I
10.23638/LMCS-16(1:10)2020
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Higher inductive-inductive types (HIITs) generalize inductive types of dependent type theories in two ways. On the one hand they allow the simultaneous definition of multiple sorts that can be indexed over each other. On the other hand they support equality constructors, thus generalizing higher inductive types of homotopy type theory. Examples that make use of both features are the Cauchy real numbers and the well-typed syntax of type theory where conversion rules are given as equality constructors. In this paper we propose a general definition of HIITs using a small type theory, named the theory of signatures. A context in this theory encodes a HIIT by listing the constructors. We also compute notions of induction and recursion for HIITs by using variants of syntactic logical relation translations. Building full categorical semantics and constructing initial algebras is left for future work. The theory of HIIT signatures was formalised in Agda together with the syntactic translations. We also provide a Haskell implementation, which takes signatures as input and outputs translation results as valid Agda code.
引用
收藏
页数:30
相关论文
共 50 条
  • [1] Quotient Inductive-Inductive Types
    Altenkirch, Thorsten
    Capriotti, Paolo
    Dijkstra, Gabe
    Kraus, Nicolai
    Forsberg, Fredrik Nordvall
    FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES, FOSSACS 2018, 2018, 10803 : 293 - 310
  • [2] Constructing Quotient Inductive-Inductive Types
    Kaposi, Ambrus
    Kovacs, Andras
    Altenkirch, Thorsten
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2019, 3
  • [3] Large and Infinitary Quotient Inductive-Inductive Types
    Kovacs, Andras
    Kaposi, Ambrus
    PROCEEDINGS OF THE 35TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS 2020), 2020, : 648 - 661
  • [4] Constructing Inductive-Inductive Types in Cubical Type Theory
    Hugunin, Jasper
    FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES, FOSSACS 2019, 2019, 11425 : 295 - 312
  • [5] Inductive-Inductive Definitions
    Forsberg, Fredrik Nordvall
    Setzer, Anton
    COMPUTER SCIENCE LOGIC, 2010, 6247 : 454 - 468
  • [6] Higher Inductive Types in Programming
    Basold, Henning
    Geuvers, Herman
    van der Weide, Niels
    JOURNAL OF UNIVERSAL COMPUTER SCIENCE, 2017, 23 (01) : 63 - 88
  • [7] Partiality, Revisited The Partiality Monad as a Quotient Inductive-Inductive Type
    Altenkirch, Thorsten
    Danielsson, Nils Anders
    Kraus, Nicolai
    FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES (FOSSACS 2017), 2017, 10203 : 534 - 549
  • [8] Semantics of higher inductive types
    Lumsdaine, Peter Lefanu
    Shulman, Mike
    MATHEMATICAL PROCEEDINGS OF THE CAMBRIDGE PHILOSOPHICAL SOCIETY, 2020, 169 (01) : 159 - 208
  • [9] Impredicative Encodings of (Higher) Inductive Types
    Awodey, Steve
    Frey, Jonas
    Speight, Sam
    LICS'18: PROCEEDINGS OF THE 33RD ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, 2018, : 76 - 85
  • [10] QUOTIENTS, INDUCTIVE TYPES, & QUOTIENT INDUCTIVE TYPES
    Fiore, Marcelo P.
    Pitts, Andrew M.
    Steenkamp, S. C.
    LOGICAL METHODS IN COMPUTER SCIENCE, 2022, 18 (02)