Skip to main content

Showing 1–23 of 23 results for author: Vákár, M

  1. arXiv:2405.07724  [pdf, ps, other

    math.CT cs.LO cs.PL

    Monoidal closure of Grothendieck constructions via $Σ$-tractable monoidal structures and Dialectica formulas

    Authors: Fernando Lucatelli Nunes, Matthijs Vákár

    Abstract: We study the categorical structure of the Grothendieck construction of an indexed category $\mathcal{L}:\mathcal{C}^{op}\to\mathbf{CAT}$ and characterise fibred limits, colimits, and monoidal structures. Next, we give sufficient conditions for the monoidal closure of the total category $Σ_\mathcal{C} \mathcal{L}$ of a Grothendieck construction of an indexed category… ▽ More

    Submitted 21 May, 2024; v1 submitted 13 May, 2024; originally announced May 2024.

  2. arXiv:2403.10447  [pdf, ps, other

    math.CT cs.LO cs.PL math.LO

    Free Doubly-Infinitary Distributive Categories are Cartesian Closed

    Authors: Fernando Lucatelli Nunes, Matthijs Vákár

    Abstract: We delve into the concept of categories with products that distribute over coproducts, which we call doubly-infinitary distributive categories. We show various instances of doubly-infinitary distributive categories aiming for a comparative analysis with established notions such as extensivity, infinitary distributiveness, and cartesian closedness. Our exploration reveals that this condition repres… ▽ More

    Submitted 30 March, 2024; v1 submitted 15 March, 2024; originally announced March 2024.

    Comments: 16 pages, minor, corrected some typos, added references

    MSC Class: 18N15; 18C15; 18C20; 18D15; 18N10; 18D65; 18B50

  3. Efficient CHAD

    Authors: Tom Smeding, Matthijs Vákár

    Abstract: We show how the basic Combinatory Homomorphic Automatic Differentiation (CHAD) algorithm can be optimised, using well-known methods, to yield a simple, composable, and generally applicable reverse-mode automatic differentiation (AD) technique that has the correct computational complexity that we would expect of reverse-mode AD. Specifically, we show that the standard optimisations of sparse vector… ▽ More

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

  4. arXiv:2210.08530  [pdf, ps, other

    cs.PL cs.LO math.CT math.LO

    Logical Relations for Partial Features and Automatic Differentiation Correctness

    Authors: Fernando Lucatelli Nunes, Matthijs Vákár

    Abstract: We present a simple technique for semantic, open logical relations arguments about languages with recursive types, which, as we show, follows from a principled foundation in categorical semantics. We demonstrate how it can be used to give a very straightforward proof of correctness of practical forward- and reverse-mode dual numbers style automatic differentiation (AD) on ML-family languages. The… ▽ More

    Submitted 23 October, 2022; v1 submitted 16 October, 2022; originally announced October 2022.

    Comments: 25 pages (18 pages + references and appendices), conference paper (the corresponding extended work can be found at arXiv:2210.07724), submitted to FoSSaCS. arXiv admin note: substantial text overlap with arXiv:2210.07724

    MSC Class: 68N15; 68N18; 68Q55; 68W30; 18D20; 18A25 ACM Class: D.3; F.3.1; F.3.2; D.3.1

  5. arXiv:2210.07724  [pdf, ps, other

    cs.PL

    Automatic Differentiation for ML-family languages: correctness via logical relations

    Authors: Fernando Lucatelli Nunes, Matthijs Vákár

    Abstract: We give a simple, direct and reusable logical relations technique for languages with term and type recursion and partially defined differentiable functions. We demonstrate it by working out the case of Automatic Differentiation (AD) correctness: namely, we present a correctness proof of a dual numbers style AD code transformation for realistic functional languages in the ML-family. We also show ho… ▽ More

    Submitted 14 June, 2024; v1 submitted 14 October, 2022; originally announced October 2022.

  6. arXiv:2207.03418  [pdf, other

    cs.PL

    Parallel Dual-Numbers Reverse AD

    Authors: Tom Smeding, Matthijs Vákár

    Abstract: Where dual-numbers forward-mode automatic differentiation (AD) pairs each scalar value with its tangent value, dual-numbers reverse-mode AD attempts to achieve reverse AD using a similarly simple idea: by pairing each scalar value with a backpropagator function. Its correctness and efficiency on higher-order input languages have been analysed by Brunel, Mazza and Pagani, but this analysis used a c… ▽ More

    Submitted 7 May, 2024; v1 submitted 7 July, 2022; originally announced July 2022.

    Comments: This is the journal version for JFP. For the shorter conference version (POPL'23), see arXiv:2207.03418v2. For an earlier preprint, see arXiv:2205.11368

  7. arXiv:2205.11368  [pdf, other

    cs.PL

    Dual-Numbers Reverse AD, Efficiently

    Authors: Tom Smeding, Matthijs Vákár

    Abstract: Where dual-numbers forward-mode automatic differentiation (AD) pairs each scalar value with its tangent derivative, dual-numbers /reverse-mode/ AD attempts to achieve reverse AD using a similarly simple idea: by pairing each scalar value with a backpropagator function. Its correctness and efficiency on higher-order input languages have been analysed by Brunel, Mazza and Pagani, but this analysis w… ▽ More

    Submitted 23 May, 2022; originally announced May 2022.

  8. arXiv:2110.00446  [pdf, ps, other

    cs.PL cs.LO math.CT

    CHAD for Expressive Total Languages

    Authors: Fernando Lucatelli Nunes, Matthijs Vákár

    Abstract: We show how to apply forward and reverse mode Combinatory Homomorphic Automatic Differentiation (CHAD) to total functional programming languages with expressive type systems featuring the combination of - tuple types; - sum types; - inductive types; - coinductive types; - function types. We achieve this by analysing the categorical semantics of such types in $Σ$-types (Grothendieck constructions)… ▽ More

    Submitted 3 April, 2023; v1 submitted 1 October, 2021; originally announced October 2021.

    Comments: Under review at MSCS

    MSC Class: 18C50; 18D15; 18D30; 18C15; 18C20; 03B38; 03B70 ACM Class: F.3.2

    Journal ref: Mathematical Structures in Computer Science, 33(4-5):311-426, 2023

  9. arXiv:2103.15776  [pdf, ps, other

    cs.PL cs.LO

    CHAD: Combinatory Homomorphic Automatic Differentiation

    Authors: Matthijs Vákár, Tom Smeding

    Abstract: We introduce Combinatory Homomorphic Automatic Differentiation (CHAD), a principled, pure, provably correct define-then-run method for performing forward and reverse mode automatic differentiation (AD) on programming languages with expressive features. It implements AD as a compositional, type-respecting source-code transformation that generates purely functional code. This code transformation is… ▽ More

    Submitted 8 June, 2022; v1 submitted 29 March, 2021; originally announced March 2021.

    Comments: arXiv admin note: substantial text overlap with arXiv:2007.05283

  10. Higher Order Automatic Differentiation of Higher Order Functions

    Authors: Mathieu Huot, Sam Staton, Matthijs Vákár

    Abstract: We present semantic correctness proofs of automatic differentiation (AD). We consider a forward-mode AD method on a higher order language with algebraic data types, and we characterise it as the unique structure preserving macro given a choice of derivatives for basic operations. We describe a rich semantics for differentiable programming, based on diffeological spaces. We show that it interprets… ▽ More

    Submitted 21 March, 2022; v1 submitted 17 January, 2021; originally announced January 2021.

    Comments: arXiv admin note: substantial text overlap with arXiv:2001.02209

    Journal ref: Logical Methods in Computer Science, Volume 18, Issue 1 (March 22, 2022) lmcs:7106

  11. arXiv:2010.11887  [pdf, other

    cs.PL cs.LG stat.ML

    Conditional independence by typing

    Authors: Maria I. Gorinova, Andrew D. Gordon, Charles Sutton, Matthijs Vákár

    Abstract: A central goal of probabilistic programming languages (PPLs) is to separate modelling from inference. However, this goal is hard to achieve in practice. Users are often forced to re-write their models in order to improve efficiency of inference or meet restrictions imposed by the PPL. Conditional independence (CI) relationships among parameters are a crucial aspect of probabilistic models that cap… ▽ More

    Submitted 18 February, 2022; v1 submitted 22 October, 2020; originally announced October 2020.

    Journal ref: ACM Transactions on Programming Languages and Systems, Volume 44, Issue 1, March 2022, Article No 4, pp 1-54

  12. arXiv:2008.09680  [pdf, other

    cs.AI cs.LG cs.PL

    Transforming Probabilistic Programs for Model Checking

    Authors: Ryan Bernstein, Matthijs Vákár, Jeannette Wing

    Abstract: Probabilistic programming is perfectly suited to reliable and transparent data science, as it allows the user to specify their models in a high-level language without worrying about the complexities of how to fit the models. Static analysis of probabilistic programs presents even further opportunities for enabling a high-level style of programming, by automating time-consuming and error-prone task… ▽ More

    Submitted 21 August, 2020; originally announced August 2020.

    Comments: To be published in Proceedings of the 2020 ACM-IMS Foundations of Data Science Conference

    ACM Class: G.3; I.1.3; D.3

  13. arXiv:2007.05283  [pdf, ps, other

    cs.PL

    Reverse AD at Higher Types: Pure, Principled and Denotationally Correct

    Authors: Matthijs Vákár

    Abstract: We show how to define forward- and reverse-mode automatic differentiation source-code transformations or on a standard higher-order functional language. The transformations generate purely functional code, and they are principled in the sense that their definition arises from a categorical universal property. We give a semantic proof of correctness of the transformations. In their most elegant for… ▽ More

    Submitted 22 January, 2021; v1 submitted 10 July, 2020; originally announced July 2020.

    Journal ref: Proc. ESOP 2021

  14. arXiv:2007.05282  [pdf, ps, other

    cs.PL

    Denotational Correctness of Forward-Mode Automatic Differentiation for Iteration and Recursion

    Authors: Matthijs Vákár

    Abstract: We present semantic correctness proofs of forward-mode Automatic Differentiation (AD) for languages with sources of partiality such as partial operations, lazy conditionals on real parameters, iteration, and term and type recursion. We first define an AD macro on a standard call-by-value language with some primitive operations for smooth partial functions and constructs for real conditionals and i… ▽ More

    Submitted 27 May, 2024; v1 submitted 10 July, 2020; originally announced July 2020.

  15. arXiv:2001.02209  [pdf, ps, other

    cs.PL cs.LO

    Correctness of Automatic Differentiation via Diffeologies and Categorical Gluing

    Authors: Mathieu Huot, Sam Staton, Matthijs Vákár

    Abstract: We present semantic correctness proofs of Automatic Differentiation (AD). We consider a forward-mode AD method on a higher order language with algebraic data types, and we characterise it as the unique structure preserving macro given a choice of derivatives for basic operations. We describe a rich semantics for differentiable programming, based on diffeological spaces. We show that it interprets… ▽ More

    Submitted 1 April, 2020; v1 submitted 7 January, 2020; originally announced January 2020.

    Comments: Proceedings of FoSSaCS 2020

  16. arXiv:1811.04196  [pdf

    cs.LO cs.PL

    A Domain Theory for Statistical Probabilistic Programming

    Authors: Matthijs Vákár, Ohad Kammar, Sam Staton

    Abstract: We give an adequate denotational semantics for languages with recursive higher-order types, continuous probability distributions, and soft constraints. These are expressive languages for building Bayesian models of the kinds used in computational statistics and machine learning. Among them are untyped languages, similar to Church and WebPPL, because our semantics allows recursive mixed-variance da… ▽ More

    Submitted 29 July, 2021; v1 submitted 10 November, 2018; originally announced November 2018.

    Journal ref: Proc. ACM Program. Lang. 3(POPL): 36:1-36:29 (2019)

  17. Denotational validation of higher-order Bayesian inference

    Authors: Adam Ścibior, Ohad Kammar, Matthijs Vákár, Sam Staton, Hongseok Yang, Yufei Cai, Klaus Ostermann, Sean K. Moss, Chris Heunen, Zoubin Ghahramani

    Abstract: We present a modular semantic account of Bayesian inference algorithms for probabilistic programming languages, as used in data science and machine learning. Sophisticated inference algorithms are often explained in terms of composition of smaller parts. However, neither their theoretical justification nor their implementation reflects this modularity. We show how to conceptualise and analyse such… ▽ More

    Submitted 8 November, 2017; originally announced November 2017.

    Journal ref: Proc. ACM Program. Lang. 2, POPL, Article 60 (January 2018)

  18. arXiv:1706.07997  [pdf, other

    cs.LO

    In Search of Effectful Dependent Types

    Authors: Matthijs Vákár

    Abstract: Real world programming languages crucially depend on the availability of computational effects to achieve programming convenience and expressive power as well as program efficiency. Logical frameworks rely on predicates, or dependent types, to express detailed logical properties about entities. According to the Curry-Howard correspondence, programming languages and logical frameworks should be ver… ▽ More

    Submitted 6 December, 2017; v1 submitted 24 June, 2017; originally announced June 2017.

    Comments: PhD thesis, Version submitted to Exam Schools

  19. arXiv:1603.04298  [pdf, other

    cs.PL

    An Effectful Treatment of Dependent Types

    Authors: Matthijs Vákár

    Abstract: We extend Levy's call-by-push-value (CBPV) analysis from simple to dependent type theory (DTT) in order to study the interaction between computational effects and dependent types. We define the naive system of dependently typed CBPV, dCBPV-, and its extension with a principle of Kleisli extensions for dependent functions, dCBPV+. We investigate these systems from the points of view of syntax, cate… ▽ More

    Submitted 14 March, 2016; originally announced March 2016.

    Comments: arXiv admin note: substantial text overlap with arXiv:1512.08009

  20. arXiv:1512.08009  [pdf, ps, other

    cs.LO

    A Framework for Dependent Types and Effects

    Authors: Matthijs Vákár

    Abstract: We generalise Levy's call-by-push-value (CBPV) to dependent type theory, to gain a better understanding of how to combine dependent types with effects. We define a dependently typed extension of CBPV, dCBPV-, and show that it has a very natural small-step operational semantics, which satisfies subject reduction and (depending on the effects present) determinism and strong normalization, and an ele… ▽ More

    Submitted 14 March, 2016; v1 submitted 25 December, 2015; originally announced December 2015.

  21. arXiv:1508.05023  [pdf, ps, other

    cs.LO

    Games for Dependent Types

    Authors: Samson Abramsky, Radha Jagadeesan, Matthijs Vákár

    Abstract: We present a model of dependent type theory (DTT) with Pi-, 1-, Sigma- and intensional Id-types, which is based on a slight variation of the category of AJM-games and history-free winning strategies. The model satisfies Streicher's criteria of intensionality and refutes function extensionality. The principle of uniqueness of identity proofs is satisfied. We show it contains a submodel as a full… ▽ More

    Submitted 20 August, 2015; originally announced August 2015.

    Comments: revised version of ICALP 2015 publication

    Journal ref: ICALP 2015, Part II, LNCS 9135

  22. arXiv:1501.05016  [pdf, ps, other

    cs.LO

    A Categorical Semantics for Linear Logical Frameworks

    Authors: Matthijs Vákár

    Abstract: A type theory is presented that combines (intuitionistic) linear types with type dependency, thus properly generalising both intuitionistic dependent type theory and full linear logic. A syntax and complete categorical semantics are developed, the latter in terms of (strict) indexed symmetric monoidal categories with comprehension. Various optional type formers are treated in a modular way. In par… ▽ More

    Submitted 20 January, 2015; originally announced January 2015.

    Comments: Based on the technical report arXiv:1405.0033 . To appear in the proceedings of FoSSaCS 2015, in the Advanced Research in Computing and Software Science (ARCoSS) subline of Springer's Lecture Notes in Computer Science series

  23. arXiv:1405.0033  [pdf, ps, other

    cs.LO cs.PL math.CT

    Syntax and Semantics of Linear Dependent Types

    Authors: Matthijs Vákár

    Abstract: A type theory is presented that combines (intuitionistic) linear types with type dependency, thus properly generalising both intuitionistic dependent type theory and full linear logic. A syntax and complete categorical semantics are developed, the latter in terms of (strict) indexed symmetric monoidal categories with comprehension. Various optional type formers are treated in a modular way. In par… ▽ More

    Submitted 16 January, 2015; v1 submitted 30 April, 2014; originally announced May 2014.