Skip to main content

Showing 1–13 of 13 results for author: Johann, P

Searching in archive cs. Search in all archives.
.
  1. arXiv:2203.14891  [pdf, ps, other

    cs.LO cs.PL

    How Functorial Are (Deep) GADTs?

    Authors: Patricia Johann, Pierre Cagne

    Abstract: It is well-known that GADTs do not admit standard map functions of the kind supported by ADTs and nested types. In addition, standard map functions are insufficient to distribute their data-changing argument functions over all of the structure present in elements of deep GADTs, even just deep ADTs or nested types. This paper develops an algorithm for detecting exactly which functions are mappable… ▽ More

    Submitted 28 March, 2022; originally announced March 2022.

    Comments: Accompanying code at https://www.normalesup.org/~cagne/gadts/adm/README.html

  2. arXiv:2105.08155  [pdf, ps, other

    cs.LO

    (Deep) Induction Rules for GADTs

    Authors: Patricia Johann, Enrico Ghiorzi

    Abstract: Deep data types are those that are constructed from other data types, including, possibly, themselves. In this case, they are said to be truly nested. Deep induction is an extension of structural induction that traverses all of the structure in a deep data type, propagating predicates on its primitive data throughout the entire structure. Deep induction can be used to prove properties of nested ty… ▽ More

    Submitted 7 December, 2021; v1 submitted 17 May, 2021; originally announced May 2021.

    Comments: 14 pages

  3. GADTs, Functoriality, Parametricity: Pick Two

    Authors: Patricia Johann, Enrico Ghiorzi, Daniel Jeffries

    Abstract: GADTs can be represented either as their Church encodings a la Atkey, or as fixpoints a la Johann and Polonsky. While a GADT represented as its Church encoding need not support a map function satisfying the functor laws, the fixpoint representation of a GADT must support such a map function even to be well-defined. The two representations of a GADT thus need not be the same in general. This observ… ▽ More

    Submitted 8 April, 2022; v1 submitted 7 May, 2021; originally announced May 2021.

    Comments: In Proceedings LSFA 2021, arXiv:2204.03415

    Journal ref: EPTCS 357, 2022, pp. 77-92

  4. Parametricity for Nested Types and GADTs

    Authors: Patricia Johann, Enrico Ghiorzi

    Abstract: 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 expres… ▽ More

    Submitted 22 December, 2021; v1 submitted 12 January, 2021; originally announced January 2021.

    Journal ref: Logical Methods in Computer Science, Volume 17, Issue 4 (December 23, 2021) lmcs:7086

  5. arXiv:1807.05263  [pdf, ps, other

    math.CT cs.LO math.LO

    On local presentability of T/A

    Authors: Patricia Johann, Andrew Polonsky

    Abstract: We prove that if $\mathcal{A}$ is a locally $λ$-presentable category and $T : \mathcal{A} \to \mathcal{A}$ is a $λ$-accessible functor then $T/\mathcal{A}$ is locally $λ$-presentable.

    Submitted 6 July, 2018; originally announced July 2018.

    MSC Class: 18A25 ACM Class: F.3.2

  6. arXiv:1805.00067  [pdf, ps, other

    cs.LO

    A General Framework for Relational Parametricity

    Authors: Kristina Sojakova, Patricia Johann

    Abstract: Reynolds' original theory of relational parametricity was intended to capture the idea that polymorphically typed System F programs preserve all relations between inputs. But as Reynolds himself later showed, his theory can only be formalized in a meta-theory with an impredicative universe, such as the Calculus of Inductive Constructions. Abstracting from Reynolds' ideas, Dunphy and Reddy develope… ▽ More

    Submitted 11 May, 2018; v1 submitted 30 April, 2018; originally announced May 2018.

  7. arXiv:1701.06244  [pdf, ps, other

    cs.LO

    Cubical Categories for Higher-Dimensional Parametricity

    Authors: Patricia Johann, Kristina Sojakova

    Abstract: Reynolds' theory of relational parametricity formalizes parametric polymorphism for System F, thus capturing the idea that polymorphically typed System F programs always map related inputs to related results. This paper shows that Reynolds' theory can be seen as the instantiation at dimension 1 of a theory of relational parametricity for System F that holds at all higher dimensions, including infi… ▽ More

    Submitted 22 January, 2017; originally announced January 2017.

  8. arXiv:1608.04415  [pdf, ps, other

    cs.PL

    A Productivity Checker for Logic Programming

    Authors: E. Komendantskaya, P. Johann, M. Schmidt

    Abstract: Automated analysis of recursive derivations in logic programming is known to be a hard problem. Both termination and non-termination are undecidable problems in Turing-complete languages. However, some declarative languages offer a practical work-around for this problem, by making a clear distinction between whether a program is meant to be understood inductively or coinductively. For programs mea… ▽ More

    Submitted 19 August, 2016; v1 submitted 15 August, 2016; originally announced August 2016.

    Comments: Pre-proceedings paper presented at the 26th International Symposium on Logic-Based Program Synthesis and Transformation (LOPSTR 2016), Edinburgh, Scotland UK, 6-8 September 2016 (arXiv:1608.02534)

    Report number: LOPSTR/2016/31 ACM Class: D.1.6; D.2.4; F.3.1; F.4.1; F.3.2

  9. arXiv:1511.07865  [pdf, ps, other

    cs.LO

    Structural Resolution: a Framework for Coinductive Proof Search and Proof Construction in Horn Clause Logic

    Authors: Ekaterina Komendantskaya, Patricia Johann, Martin Schmidt

    Abstract: Logic programming (LP) is a programming language based on first-order Horn clause logic that uses SLD-resolution as a semi-decision procedure. Finite SLD-computations are inductively sound and complete with respect to least Herbrand models of logic programs. Dually, the corecursive approach to SLD-resolution views infinite SLD-computations as successively approximating infinite terms contained in… ▽ More

    Submitted 4 May, 2017; v1 submitted 24 November, 2015; originally announced November 2015.

    Comments: A working draft

    ACM Class: F.3.2; F.4.1

  10. arXiv:1507.06010  [pdf, ps, other

    cs.LO

    Structural Resolution for Logic Programming

    Authors: P. Johann, E. Komendantskaya, V. Komendantskiy

    Abstract: We introduce a Three Tier Tree Calculus (3TC) that defines in a systematic way three tiers of tree structures underlying proof search in logic programming. We use 3TC to define a new -- structural -- version of resolution for logic programming.

    Submitted 21 July, 2015; originally announced July 2015.

    Comments: in ICLP 2015 Technical Communications

  11. Indexed Induction and Coinduction, Fibrationally

    Authors: Neil Ghani, Patricia Johann, Clement Fumex

    Abstract: This paper extends the fibrational approach to induction and coinduction pioneered by Hermida and Jacobs, and developed by the current authors, in two key directions. First, we present a dual to the sound induction rule for inductive types that we developed previously. That is, we present a sound coinduction rule for any data type arising as the carrier of the final coalgebra of a functor, thus r… ▽ More

    Submitted 20 September, 2013; v1 submitted 11 July, 2013; originally announced July 2013.

    Journal ref: Logical Methods in Computer Science, Volume 9, Issue 3 (August 28, 2013) lmcs:738

  12. Generic Fibrational Induction

    Authors: Neil Ghani, Patricia Johann, Clement Fumex

    Abstract: This paper provides an induction rule that can be used to prove properties of data structures whose types are inductive, i.e., are carriers of initial algebras of functors. Our results are semantic in nature and are inspired by Hermida and Jacobs' elegant algebraic formulation of induction for polynomial data types. Our contribution is to derive, under slightly different assumptions, a sound indu… ▽ More

    Submitted 17 June, 2012; v1 submitted 2 June, 2012; originally announced June 2012.

    Comments: For Special Issue from CSL 2010

    ACM Class: F.3.2, D.3.1

    Journal ref: Logical Methods in Computer Science, Volume 8, Issue 2 (June 19, 2012) lmcs:717

  13. Refining Inductive Types

    Authors: Robert Atkey, Patricia Johann, Neil Ghani

    Abstract: Dependently typed programming languages allow sophisticated properties of data to be expressed within the type system. Of particular use in dependently typed programming are indexed types that refine data by computationally useful information. For example, the N-indexed type of vectors refines lists by their lengths. Other data types may be refined in similar ways, but programmers must produce pu… ▽ More

    Submitted 1 June, 2012; v1 submitted 11 May, 2012; originally announced May 2012.

    ACM Class: D.3.3, F.3.3, D.3.1, F.3.2, F.3.1

    Journal ref: Logical Methods in Computer Science, Volume 8, Issue 2 (June 4, 2012) lmcs:957