Skip to main content

Showing 1–7 of 7 results for author: Nunes, F L

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

    cs.PL cs.AI cs.LG math.CT math.LO

    Unraveling the iterative CHAD

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

    Abstract: Combinatory Homomorphic Automatic Differentiation (CHAD) was originally formulated as a semantics-driven source transformation for reverse-mode AD in total programming languages. We extend this framework to partial languages with features such as potentially non-terminating operations, real-valued conditionals, and iteration constructs like while-loops, while preserving CHAD's structure-preserving… ▽ More

    Submitted 20 May, 2025; originally announced May 2025.

    Comments: 57 pages

    MSC Class: 18C10; 18C15; 18C20; 18D05; 03B70; 03F52; 68Q55; 68N18; 68T07 ACM Class: F.3.2; F.3.3; D.3.1; D.3.2; D.2.4; G.4; I.2.3; I.2.6; G.1.10

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

  3. 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 investigate categories in which products distribute over coproducts, a structure we call doubly-infinitary distributive categories. Through a range of examples, we explore how this notion relates to established concepts such as extensivity, infinitary distributivity, and cartesian closedness. We show that doubly-infinitary distributivity strictly strengthens the classical notion of infinitary d… ▽ More

    Submitted 24 June, 2025; v1 submitted 15 March, 2024; originally announced March 2024.

    Comments: 16 pages, fixed notation and typos, and adapted some notation for the audience

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

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

    Journal ref: Math. Struct. Comp. Sci. 34 (2024) 747-806

  6. 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

  7. arXiv:2009.08930  [pdf, other

    cs.SE

    Towards the Systematic Testing of Virtual Reality Programs (extended version)

    Authors: Stevao A. Andrade, Fatima L. S. Nunes, Marcio E. Delamaro

    Abstract: Software testing is a critical activity to ensure that software complies with its specification. However, current software testing activities tend not to be completely effective when applied in specific software domains in Virtual Reality (VR) that has several new types of features such as images, sounds, videos, and differentiated interaction, which can become sources of new kinds of faults. This… ▽ More

    Submitted 18 September, 2020; originally announced September 2020.

    Comments: 16 pages, 6 figures