extension lemma
Recently Published Documents


TOTAL DOCUMENTS

9
(FIVE YEARS 4)

H-INDEX

2
(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.


Author(s):  
Patricia Johann ◽  
Enrico Ghiorzi ◽  
Daniel Jeffries

AbstractThis paper considers parametricity and its resulting 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 term level, 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: 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 prove that our model satisfies an appropriate Abstraction Theorem and verifies all standard consequences of parametricity for primitive nested types.


2019 ◽  
Vol 29 (06) ◽  
pp. 810-827
Author(s):  
Neil Ghani ◽  
Fredrik Nordvall Forsberg ◽  
Federico Orsanigo

AbstractIn the 1980s, John Reynolds postulated that a parametrically polymorphic function is an ad-hoc polymorphic function satisfying a uniformity principle. This allowed him to prove that his set-theoretic semantics has a relational lifting which satisfies the Identity Extension Lemma and the Abstraction Theorem. However, his definition (and subsequent variants) has only been given for specific models. In contrast, we give a model-independent axiomatic treatment by characterising Reynolds’ definition via a universal property, and show that the above results follow from this universal property in the axiomatic setting.


2018 ◽  
Vol 2019 (23) ◽  
pp. 7259-7323 ◽  
Author(s):  
Wen-yuan Yang

Abstract This paper presents a study of the asymptotic geometry of groups with contracting elements, with emphasis on a subclass of statistically convex-cocompact (SCC) actions. The class of SCC actions includes relatively hyperbolic groups, CAT(0) groups with rank-1 elements, and mapping class groups acting on Teichmüller spaces, among others. We exploit an extension lemma to prove that a group with SCC actions contains large free sub-semigroups, has purely exponential growth, and contains a class of barrier-free sets with a growth-tight property. Our study produces new results and recovers existing ones for many interesting groups through a unified and elementary approach.


2010 ◽  
Vol 138 (10) ◽  
pp. 3603-3603
Author(s):  
Miran Černe ◽  
Manuel Flores
Keyword(s):  

Sign in / Sign up

Export Citation Format

Share Document