kan extensions
Recently Published Documents


TOTAL DOCUMENTS

47
(FIVE YEARS 3)

H-INDEX

8
(FIVE YEARS 0)

2021 ◽  
Vol Volume 17, Issue 4 ◽  
Author(s):  
Patricia Johann ◽  
Enrico Ghiorzi

This paper considers parametricity and its consequent free theorems for nested data types. Rather than representing nested types via their Church encodings in a higher-kinded or dependently typed extension of System F, we adopt a functional programming perspective and design a Hindley-Milner-style calculus with primitives for constructing nested types directly as fixpoints. Our calculus can express all nested types appearing in the literature, including truly nested types. At the level of terms, it supports primitive pattern matching, map functions, and fold combinators for nested types. Our main contribution is the construction of a parametric model for our calculus. This is both delicate and challenging. In particular, to ensure the existence of semantic fixpoints interpreting nested types, and thus to establish a suitable Identity Extension Lemma for our calculus, our type system must explicitly track functoriality of types, and cocontinuity conditions on the functors interpreting them must be appropriately threaded throughout the model construction. We also prove that our model satisfies an appropriate Abstraction Theorem, as well as that it verifies all standard consequences of parametricity in the presence of primitive nested types. We give several concrete examples illustrating how our model can be used to derive useful free theorems, including a short cut fusion transformation, for programs over nested types. Finally, we consider generalizing our results to GADTs, and argue that no extension of our parametric model for nested types can give a functorial interpretation of GADTs in terms of left Kan extensions and still be parametric.







2017 ◽  
Vol 17 (2) ◽  
pp. 1151-1162 ◽  
Author(s):  
Jonathan Beardsley
Keyword(s):  


2017 ◽  
Vol 17 (1) ◽  
pp. 189-271 ◽  
Author(s):  
Emily Riehl ◽  
Dominic Verity
Keyword(s):  


2016 ◽  
Vol 9 (1) ◽  
pp. 65-142 ◽  
Author(s):  
Mark Weber
Keyword(s):  


2014 ◽  
Vol 25 (1) ◽  
pp. 6-45 ◽  
Author(s):  
JIŘÍ ADÁMEK ◽  
LURDES SOUSA ◽  
JIŘÍ VELEBIL

Continuous lattices were characterised by Martín Escardó as precisely those objects that are Kan-injective with respect to a certain class of morphisms. In this paper we study Kan-injectivity in general categories enriched in posets. As an example, ω-CPO's are precisely the posets that are Kan-injective with respect to the embeddings ω ↪ ω + 1 and 0 ↪ 1.For every class $\mathcal{H}$ of morphisms, we study the subcategory of all objects that are Kan-injective with respect to $\mathcal{H}$ and all morphisms preserving Kan extensions. For categories such as Top0 and Pos, we prove that whenever $\mathcal{H}$ is a set of morphisms, the above subcategory is monadic, and the monad it creates is a Kock–Zöberlein monad. However, this does not generalise to proper classes, and we present a class of continuous mappings in Top0 for which Kan-injectivity does not yield a monadic category.



2014 ◽  
pp. 3-16
Author(s):  
Emily Riehl
Keyword(s):  


2012 ◽  
Vol 216 (8-9) ◽  
pp. 2014-2028
Author(s):  
Panagis Karazeris ◽  
Grigoris Protsonis


Sign in / Sign up

Export Citation Format

Share Document