Skip to main content

Showing 1–28 of 28 results for author: Ahrens, B

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

    cs.LO cs.PL

    An Introduction to Different Approaches to Initial Semantics

    Authors: Thomas Lamiaux, Benedikt Ahrens

    Abstract: Characterizing programming languages with variable binding as initial objects, was first achieved by Fiore, Plotkin, and Turi in their seminal paper published at LICS'99. To do so, in particular to prove initiality theorems, they developed a framework based on monoidal categories, functors with strengths, and $Σ$-monoids. An alternative approach using modules over monads was later introduced by Hi… ▽ More

    Submitted 17 January, 2024; originally announced January 2024.

  2. arXiv:2310.09220  [pdf, other

    math.CT cs.LO

    Univalent Double Categories

    Authors: Niels van der Weide, Nima Rasekh, Benedikt Ahrens, Paige Randall North

    Abstract: Category theory is a branch of mathematics that provides a formal framework for understanding the relationship between mathematical structures. To this end, a category not only incorporates the data of the desired objects, but also "morphisms", which capture how different objects interact with each other. Category theory has found many applications in mathematics and in computer science, for examp… ▽ More

    Submitted 13 October, 2023; originally announced October 2023.

  3. arXiv:2308.05485  [pdf, other

    cs.PL

    Substitution for Non-Wellfounded Syntax with Binders through Monoidal Categories

    Authors: Ralph Matthes, Kobe Wullaert, Benedikt Ahrens

    Abstract: We describe a generic construction of non-wellfounded syntax involving variable binding and its monadic substitution operation. Our construction of the syntax and its substitution takes place in category theory, notably by using monoidal categories and strong functors between them. A language is specified by a multi-sorted binding signature, say Σ. First, we provide sufficient criteria for Σ to ge… ▽ More

    Submitted 7 May, 2024; v1 submitted 10 August, 2023; originally announced August 2023.

    Comments: v3: reworked introduction, expanded examples, changes in textual formulations; this is the full version for the upcoming FSCD'24 paper with the same title, the difference is the presence of Appendix B and Appendix D

  4. arXiv:2307.16270  [pdf, other

    cs.PL math.CT

    Formalizing Monoidal Categories and Actions for Syntax with Binders

    Authors: Benedikt Ahrens, Ralph Matthes, Kobe Wullaert

    Abstract: We discuss some aspects of our work on the mechanization of syntax and semantics in the UniMath library, based on the proof assistant Coq. We focus on experiences where Coq (as a type-theoretic proof assistant with decidable typechecking) made us use more theory or helped us to see theory more clearly.

    Submitted 7 October, 2023; v1 submitted 30 July, 2023; originally announced July 2023.

    Comments: Abstract for a talk at CoqPL 2023, https://popl23.sigplan.org/details/CoqPL-2023-papers/7/Formalizing-Monoidal-Categories-and-Actions-for-Syntax-with-Binders

  5. Univalent Monoidal Categories

    Authors: Kobe Wullaert, Ralph Matthes, Benedikt Ahrens

    Abstract: Univalent categories constitute a well-behaved and useful notion of category in univalent foundations. The notion of univalence has subsequently been generalized to bicategories and other structures in (higher) category theory. Here, we zoom in on monoidal categories and study them in a univalent setting. Specifically, we show that the bicategory of univalent monoidal categories is univalent. Furt… ▽ More

    Submitted 19 May, 2023; v1 submitted 6 December, 2022; originally announced December 2022.

    Comments: 21 pages, accepted for the TYPES'22 postproceedings volume in the LIPIcs series by Schloß Dagstuhl (editors: Delia Kesner and Pierre-Marie Pédrot)

  6. arXiv:2209.01259  [pdf, ps, other

    cs.PL math.CT

    Category Theory for Programming

    Authors: Benedikt Ahrens, Kobe Wullaert

    Abstract: In these lecture notes, we give a brief introduction to some elements of category theory. The choice of topics is guided by applications to functional programming. Firstly, we study initial algebras, which provide a mathematical characterization of datatypes and recursive functions on them. Secondly, we study monads, which give a mathematical framework for effects in functional languages. The note… ▽ More

    Submitted 2 September, 2022; originally announced September 2022.

    Comments: Source code and updates available from https://github.com/benediktahrens/CT4P

  7. arXiv:2202.01892  [pdf, ps, other

    math.LO cs.LO math.HO

    Univalent foundations and the equivalence principle

    Authors: Benedikt Ahrens, Paige Randall North

    Abstract: In this paper, we explore the 'equivalence principle' (EP): roughly, statements about mathematical objects should be invariant under an appropriate notion of equivalence for the kinds of objects under consideration. In set theoretic foundations, EP may not always hold: for instance, the statement '1 \in N' is not invariant under isomorphism of sets. In univalent foundations, on the other hand, EP… ▽ More

    Submitted 3 February, 2022; originally announced February 2022.

    Journal ref: In: Centrone S., Kant D., Sarikaya D. (eds) Reflections on the Foundations of Mathematics. Synthese Library (Studies in Epistemology, Logic, Methodology, and Philosophy of Science), vol 407. 2019. Springer, Cham

  8. Bicategorical type theory: semantics and syntax

    Authors: Benedikt Ahrens, Paige Randall North, Niels van der Weide

    Abstract: We develop semantics and syntax for bicategorical type theory. Bicategorical type theory features contexts, types, terms, and directed reductions between terms. This type theory is naturally interpreted in a class of structured bicategories. We start by develo** the semantics, in the form of comprehension bicategories. Examples of comprehension bicategories are plentiful; we study both specific… ▽ More

    Submitted 12 October, 2023; v1 submitted 25 January, 2022; originally announced January 2022.

    Comments: v2: final version for LICS 2022. v3: long version - for detailed log, see Section 1.5 Version History. v4: Final version to be published in MSCS

    Journal ref: v2: Logic in Computer Science (LICS) 2022. v4: Mathematical Structures in Computer Science, CUP

  9. arXiv:2201.00255  [pdf, ps, other

    cs.LO

    The solutions to single-variable polynomials, implemented and verified in Lean

    Authors: Nicholas Dyson, Benedikt Ahrens, Jacopo Emmenegger

    Abstract: In this work, we describe our experience in learning the use of a computer proof assistant - specifically, Lean - from scratch, through proving formulae for the solutions of polynomial equations. Specifically, in this work we characterize the solutions of quadratic, cubic, and quartic polynomials over certain fields, specifically, fields with operations returning square and cubic roots of characte… ▽ More

    Submitted 1 January, 2022; originally announced January 2022.

  10. Implementing a Category-Theoretic Framework for Typed Abstract Syntax

    Authors: Benedikt Ahrens, Ralph Matthes, Anders Mörtberg

    Abstract: In previous work ("From signatures to monads in UniMath"), we described a category-theoretic construction of abstract syntax from a signature, mechanized in the UniMath library based on the Coq proof assistant. In the present work, we describe what was necessary to generalize that work to account for simply-typed languages. First, some definitions had to be generalized to account for the natural… ▽ More

    Submitted 13 December, 2021; originally announced December 2021.

    Journal ref: In Proceedings of the 11th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP '22), 2022, ACM, New York, NY, USA

  11. arXiv:2104.10611  [pdf, other

    eess.IV cs.CV cs.LG

    FourierNets enable the design of highly non-local optical encoders for computational imaging

    Authors: Diptodip Deb, Zhenfei Jiao, Ruth Sims, Alex B. Chen, Michael Broxton, Misha B. Ahrens, Kaspar Podgorski, Srinivas C. Turaga

    Abstract: Differentiable simulations of optical systems can be combined with deep learning-based reconstruction networks to enable high performance computational imaging via end-to-end (E2E) optimization of both the optical encoder and the deep decoder. This has enabled imaging applications such as 3D localization microscopy, depth estimation, and lensless photography via the optimization of local optical e… ▽ More

    Submitted 2 November, 2022; v1 submitted 21 April, 2021; originally announced April 2021.

    Comments: Accepted to NeurIPS 2022

  12. arXiv:2102.06275  [pdf, ps, other

    math.CT cs.LO math.LO

    The Univalence Principle

    Authors: Benedikt Ahrens, Paige Randall North, Michael Shulman, Dimitris Tsementzis

    Abstract: The Univalence Principle is the statement that equivalent mathematical structures are indistinguishable. We prove a general version of this principle that applies to all set-based, categorical, and higher-categorical structures defined in a non-algebraic and space-based style, as well as models of higher-order theories such as topological spaces. In particular, we formulate a general definition of… ▽ More

    Submitted 29 August, 2022; v1 submitted 11 February, 2021; originally announced February 2021.

    Comments: A short version of this book is available as arXiv:2004.06572. v2: added references and some details on morphisms of premonoidal categories; v3: added proof that exo-nat is sharp if cofibrant, improved presentation following advice from referee

    MSC Class: 18N99; 03B38; 03G30; 55U35

  13. arXiv:2004.06572  [pdf, ps, other

    math.LO cs.LO math.CT

    A Higher Structure Identity Principle

    Authors: Benedikt Ahrens, Paige Randall North, Michael Shulman, Dimitris Tsementzis

    Abstract: The ordinary Structure Identity Principle states that any property of set-level structures (e.g., posets, groups, rings, fields) definable in Univalent Foundations is invariant under isomorphism: more specifically, identifications of structures coincide with isomorphisms. We prove a version of this principle for a wide range of higher-categorical structures, adapting FOLDS-signatures to specify a… ▽ More

    Submitted 23 June, 2020; v1 submitted 14 April, 2020; originally announced April 2020.

    Comments: Long version of publication in LICS 2020 (DOI: 10.1145/3373718.3394755); v2: added sections "Axioms and Theories" and "Version History", other minor changes; v3: added examples

  14. Reduction Monads and Their Signatures

    Authors: Benedikt Ahrens, André Hirschowitz, Ambroise Lafont, Marco Maggesi

    Abstract: In this work, we study 'reduction monads', which are essentially the same as monads relative to the free functor from sets into multigraphs. Reduction monads account for two aspects of the lambda calculus: on the one hand, in the monadic viewpoint, the lambda calculus is an object equipped with a well-behaved substitution; on the other hand, in the graphical viewpoint, it is an oriented multigraph… ▽ More

    Submitted 14 November, 2019; originally announced November 2019.

    Comments: POPL 2020

    Journal ref: Proc. ACM Program. Lang. 4, POPL, Article 31 (January 2020)

  15. Bicategories in Univalent Foundations

    Authors: Benedikt Ahrens, Dan Frumin, Marco Maggesi, Niccolò Veltri, Niels van der Weide

    Abstract: We develop bicategory theory in univalent foundations. Guided by the notion of univalence for (1-)categories studied by Ahrens, Kapulkin, and Shulman, we define and study univalent bicategories. To construct examples of univalent bicategories in a modular fashion, we develop displayed bicategories, an analog of displayed 1-categories introduced by Ahrens and Lumsdaine. We demonstrate the applicabi… ▽ More

    Submitted 15 August, 2022; v1 submitted 4 March, 2019; originally announced March 2019.

    Comments: v1: 16 pages; v2: Veltri added as coauthor, extended version, 32 pages, list of changes given in Section "Publication history"; v3: final journal version to be published in Mathematical Structures in Computer Science; v4: fixed some typos that remain in the MSCS version

    Journal ref: Mathematical Structures in Computer Science (MSCS), 2022

  16. Modular specification of monads through higher-order presentations

    Authors: Benedikt Ahrens, André Hirschowitz, Ambroise Lafont, Marco Maggesi

    Abstract: In their work on second-order equational logic, Fiore and Hur have studied presentations of simply typed languages by generating binding constructions and equations among them. To each pair consisting of a binding signature and a set of equations, they associate a category of `models', and they give a monadicity result which implies that this category has an initial object, which is the language p… ▽ More

    Submitted 3 March, 2019; originally announced March 2019.

    Comments: 17 pages

    Journal ref: Formal Structures for Computation and Deduction (FSCD) 2019, LIPIcs Vol. 131, pp. 6:1-6:19

  17. Presentable signatures and initial semantics

    Authors: Benedikt Ahrens, André Hirschowitz, Ambroise Lafont, Marco Maggesi

    Abstract: We present a device for specifying and reasoning about syntax for datatypes, programming languages, and logic calculi. More precisely, we study a notion of "signature" for specifying syntactic constructions. In the spirit of Initial Semantics, we define the "syntax generated by a signature" to be the initial object -- if it exists -- in a suitable category of models. In our framework, the existe… ▽ More

    Submitted 25 May, 2021; v1 submitted 9 May, 2018; originally announced May 2018.

    Journal ref: Logical Methods in Computer Science, Volume 17, Issue 2 (May 26, 2021) lmcs:5136

  18. arXiv:1705.04310  [pdf, other

    math.LO cs.LO math.CT

    Categorical structures for type theory in univalent foundations

    Authors: Benedikt Ahrens, Peter LeFanu Lumsdaine, Vladimir Voevodsky

    Abstract: In this paper, we analyze and compare three of the many algebraic structures that have been used for modeling dependent type theories: categories with families, split type-categories, and representable maps of presheaves. We study these in univalent type theory, where the comparisons between them can be given more elementarily than in set-theoretic foundations. Specifically, we construct maps betw… ▽ More

    Submitted 8 September, 2018; v1 submitted 11 May, 2017; originally announced May 2017.

    Comments: v2: revised and extended version for publication in LMCS

    MSC Class: 18C50; 03B15; 03B70 ACM Class: F.3.2; F.4.1

    Journal ref: Logical Methods in Computer Science, Volume 14, Issue 3 (September 11, 2018) lmcs:4801

  19. From signatures to monads in UniMath

    Authors: Benedikt Ahrens, Ralph Matthes, Anders Mörtberg

    Abstract: The term UniMath refers both to a formal system for mathematics, as well as a computer-checked library of mathematics formalized in that system. The UniMath system is a core dependent type theory, augmented by the univalence axiom. The system is kept as small as possible in order to ease verification of it - in particular, general inductive types are not part of the system. In this work, we part… ▽ More

    Submitted 2 December, 2016; originally announced December 2016.

    Comments: 30 pages

    Journal ref: J Autom Reasoning (2019) Vol 63, 285-318

  20. Heterogeneous substitution systems revisited

    Authors: Benedikt Ahrens, Ralph Matthes

    Abstract: Matthes and Uustalu (TCS 327(1-2):155-174, 2004) presented a categorical description of substitution systems capable of capturing syntax involving binding which is independent of whether the syntax is made up from least or greatest fixed points. We extend this work in two directions: we continue the analysis by creating more categorical structure, in particular by organizing substitution systems i… ▽ More

    Submitted 17 January, 2016; originally announced January 2016.

    Comments: 24 pages

  21. Non-wellfounded trees in Homotopy Type Theory

    Authors: Benedikt Ahrens, Paolo Capriotti, Régis Spadotti

    Abstract: We prove a conjecture about the constructibility of coinductive types - in the principled form of indexed M-types - in Homotopy Type Theory. The conjecture says that in the presence of inductive types, coinductive types are derivable. Indeed, in this work, we construct coinductive types in a subsystem of Homotopy Type Theory; this subsystem is given by Intensional Martin-Löf type theory with natur… ▽ More

    Submitted 12 April, 2015; originally announced April 2015.

    Comments: 14 pages, to be published in proceedings of TLCA 2015; ancillary files contain Agda files with formalized proofs

    ACM Class: F.3.2

    Journal ref: Proceedings of TLCA 2015, LIPIcs Vol. 38, pp. 17-30

  22. arXiv:1401.1053  [pdf, other

    cs.LO math.CT

    Terminal semantics for codata types in intensional Martin-Löf type theory

    Authors: Benedikt Ahrens, Régis Spadotti

    Abstract: In this work, we study the notions of relative comonad and comodule over a relative comonad, and use these notions to give a terminal coalgebra semantics for the coinductive type families of streams and of infinite triangular matrices, respectively, in intensional Martin-Löf type theory. Our results are mechanized in the proof assistant Coq.

    Submitted 22 April, 2014; v1 submitted 6 January, 2014; originally announced January 2014.

    Comments: 14 pages, ancillary files contain formalized proof in the proof assistant Coq; v2: 20 pages, title and abstract changed, give a terminal semantics for streams as well as for matrices, Coq proof files updated accordingly

    MSC Class: 68Q65

  23. Initial Semantics for Reduction Rules

    Authors: Benedikt Ahrens

    Abstract: We give an algebraic characterization of the syntax and operational semantics of a class of simply-typed languages, such as the language PCF: we characterize simply-typed syntax with variable binding and equipped with reduction rules via a universal property, namely as the initial object of some category of models. For this purpose, we employ techniques developed in two previous works: in the firs… ▽ More

    Submitted 20 March, 2019; v1 submitted 22 December, 2012; originally announced December 2012.

    Comments: Extended version of arXiv:1206.4547, proves a variant of a result of PhD thesis arXiv:1206.4556

    ACM Class: F.3.2; F.4.3

    Journal ref: Logical Methods in Computer Science, Volume 15, Issue 1 (March 21, 2019) lmcs:5027

  24. arXiv:1206.4556  [pdf, other

    cs.LO

    Initiality for Typed Syntax and Semantics

    Authors: Benedikt Ahrens

    Abstract: In this thesis we give an algebraic characterization of the syntax and semantics of simply-typed languages. More precisely, we characterize simply-typed binding syntax equipped with reduction rules via a universal property, namely as the initial object of some category. We specify a language by a 2-signature (Σ, A), that is, a signature on two levels: the syntactic level Σ specifies the sorts and… ▽ More

    Submitted 20 June, 2012; originally announced June 2012.

    Comments: 215 pages, 2012, PhD thesis

  25. Initiality for Typed Syntax and Semantics

    Authors: Benedikt Ahrens

    Abstract: We give an algebraic characterization of the syntax and semantics of a class of simply-typed languages, such as the language PCF: we characterize simply-typed binding syntax equipped with reduction rules via a universal property, namely as the initial object of some category. For this purpose, we employ techniques developed in two previous works: in [2], we model syntactic translations between lan… ▽ More

    Submitted 20 June, 2012; originally announced June 2012.

    Comments: presented at WoLLIC 2012, 15 pages

    Journal ref: Logic, Language, Information and Computation, LNCS 7456 (2012), pp. 127-141, http://www.springerlink.com/content/n180nt1qxg76755g/

  26. Modules over relative monads for syntax and semantics

    Authors: Benedikt Ahrens

    Abstract: We give an algebraic characterization of the syntax and semantics of a class of languages with variable binding. We introduce a notion of 2-signature: such a signature specifies not only the terms of a language, but also reduction rules on those terms. To any 2-signature $S$ we associate a category of "models" of $S$. This category has an initial object, which integrates the terms freely generat… ▽ More

    Submitted 18 November, 2013; v1 submitted 26 July, 2011; originally announced July 2011.

    Comments: v2: - Abstract and Introduction completely rewritten - Addition of examples and remarks in Secs. 1 and 2 - Sec 3 now describes the implementation in proof assistant Coq of the main theorem v3: - final version for publication in MSCS

    Journal ref: Math. Struct. Comp. Sci. 26 (2016) 3-37

  27. Extended Initiality for Typed Abstract Syntax

    Authors: Benedikt Ahrens

    Abstract: Initial Semantics aims at interpreting the syntax associated to a signature as the initial object of some category of 'models', yielding induction and recursion principles for abstract syntax. Zsidó proves an initiality result for simply-typed syntax: given a signature S, the abstract syntax associated to S constitutes the initial object in a category of models of S in monads. However, the iterat… ▽ More

    Submitted 5 April, 2012; v1 submitted 24 July, 2011; originally announced July 2011.

    ACM Class: D.3.1, F.4.3

    Journal ref: Logical Methods in Computer Science, Volume 8, Issue 2 (April 6, 2012) lmcs:1193

  28. arXiv:1012.1010  [pdf, other

    cs.LO math.LO

    Initial Semantics for higher-order typed syntax in Coq

    Authors: Benedikt Ahrens, Julianna Zsido

    Abstract: Initial Semantics aims at characterizing the syntax associated to a signature as the initial object of some category. We present an initial semantics result for typed higher-order syntax together with its formalization in the Coq proof assistant. The main theorem was first proved on paper in the second author's PhD thesis in 2010, and verified formally shortly afterwards. To a simply-typed binding… ▽ More

    Submitted 17 September, 2011; v1 submitted 5 December, 2010; originally announced December 2010.

    Comments: Article as published in JFR (cf. Journal ref). Features some more examples

    MSC Class: 68Q55; 03B70

    Journal ref: Journal of Formalized Reasoning, Vol. 4, No. 1 (2011), pp. 25-69