Skip to main content

Showing 1–50 of 84 results for author: Spivak, D

.
  1. arXiv:2407.01849  [pdf, other

    math.CT

    What kind of linearly distributive category do polynomial functors form?

    Authors: David I. Spivak, Priyaa Varshinee Srinivasan

    Abstract: This paper has two purposes. The first is to extend the theory of linearly distributive categories by considering the structures that emerge in a special case: the normal duoidal category $(\mathsf{Poly} ,\mathcal{y}, \otimes, \triangleleft )$ of polynomial functors under Dirichlet and substitution product. This is an isomix LDC which is neither $*$-autonomous nor fully symmetric. The additional s… ▽ More

    Submitted 1 July, 2024; originally announced July 2024.

    Comments: 32 pages

    MSC Class: 18B99 ACM Class: F.4.1

  2. arXiv:2405.13157  [pdf, ps, other

    math.CT

    A Polynomial Construction of Nerves for Higher Categories

    Authors: Brandon T. Shapiro, David I. Spivak

    Abstract: We show that the construction due to Leinster and Weber of a generalized Lawvere theory for a familially representable monad on a (co)presheaf category, and the associated ``nerve'' functor from monad algebras to (co)presheaves, have an elegant categorical description in the double category $\mathbb{C}\mathbf{at}^{\#}$ of categories, cofunctors, familial functors, and transformations. In… ▽ More

    Submitted 21 May, 2024; originally announced May 2024.

    Comments: 29 pages. The content of this paper has been split from arXiv:2305.02571, which will be updated shortly

    MSC Class: 18C10; 18C15; 18C20; 18D15; 18D70; 18M05; 18N10; 18N99

  3. arXiv:2404.16321  [pdf, ps, other

    math.CT

    Pattern runs on matter: The free monad monad as a module over the cofree comonad comonad

    Authors: Sophie Libkind, David I. Spivak

    Abstract: Interviews run on people, programs run on operating systems, voting schemes run on voters, games run on players. Each of these is an example of the abstraction pattern runs on matter. Pattern determines the decision tree that governs how a situation can unfold, while matter responds with decisions at each juncture. In this article, we will give a straightforward and concrete construction of the… ▽ More

    Submitted 24 April, 2024; originally announced April 2024.

  4. arXiv:2404.16140  [pdf, other

    math.CT

    Organizing Physics with Open Energy-Driven Systems

    Authors: Matteo Capucci, Owen Lynch, David I. Spivak

    Abstract: Organizing physics has been a long-standing preoccupation of applied category theory, going back at least to Lawvere. We contribute to this research thread by noticing that Hamiltonian mechanics and gradient descent depend crucially on a consistent choice of transformation -- which we call a reaction structure -- from the cotangent bundle to the tangent bundle. We then construct a compositional th… ▽ More

    Submitted 24 April, 2024; originally announced April 2024.

    Comments: 14 pages, 3 figures, Submitted to Applied Category Theory 2024

  5. arXiv:2312.00990  [pdf, ps, other

    math.CT

    Polynomial Functors: A Mathematical Theory of Interaction

    Authors: Nelson Niu, David I. Spivak

    Abstract: This monograph is a study of the category of polynomial endofunctors on the category of sets and its applications to modeling interaction protocols and dynamical systems. We assume basic categorical background and build the categorical theory from the ground up, highlighting pictorical techniques and concrete examples to build intuition and provide applications.

    Submitted 1 December, 2023; originally announced December 2023.

    Comments: 360 pages

    MSC Class: 18M35

  6. arXiv:2305.02571  [pdf, ps, other

    math.CT

    All Concepts are $\mathbb{C}\mathbf{at}^\#$

    Authors: Owen Lynch, Brandon T. Shapiro, David I. Spivak

    Abstract: We show that the double category $\mathbb{C}\mathbf{at}^\#$ of comonoids in the category of polynomial functors (previously shown by Ahman-Uustalu and Garner to be equivalent to the double category of categories, cofunctors, and prafunctors) contains several formal settings for basic category theory and has subcategories equivalent to both the double category $\mathbb{O}\mathbf{rg}$ of dynamic rew… ▽ More

    Submitted 23 May, 2024; v1 submitted 4 May, 2023; originally announced May 2023.

    Comments: 31 pages. Proofs in appendix moved into the main body, and chapter on nerves of higher categories removed to a separate submission at arXiv:2405.13157

    MSC Class: 18A05; 18A35; 18B10; 18B15; 18B20; 18D15; 18M05; 18M35; 68Q70

  7. arXiv:2305.00167  [pdf, ps, other

    math.CT

    Structures on Categories of Polynomials

    Authors: Brandon T. Shapiro, David I. Spivak

    Abstract: We define the monoidal category $(Poly_E,y,\triangleleft)$ of polynomials under composition in any category $E$ with finite limits, including both cartesian and vertical morphisms of polynomials, and generalize to this setting the Dirichlet tensor product of polynomials $\otimes$, duoidality of $\otimes$ and $\triangleleft$, closure of $\otimes$, and coclosures of $\triangleleft$. We also prove th… ▽ More

    Submitted 18 May, 2023; v1 submitted 29 April, 2023; originally announced May 2023.

    Comments: 50 pages. Additional references added, and minor expository improvements

    MSC Class: 18C40; 18D15; 18D40; 18M50

  8. arXiv:2304.14950  [pdf, other

    cs.LO math.CT math.LO

    Dynamic Tracing: a graphical language for rewriting protocols

    Authors: Kristopher Brown, David I. Spivak

    Abstract: The category Set_* of sets and partial functions is well-known to be traced monoidal, meaning that a partial function S+U -/-> T+U can be coherently transformed into a partial function S -/-> T. This transformation is generally described in terms of an implicit procedure that must be run. We make this procedure explicit by enriching the traced category in Cat#, the symmetric monoidal category of c… ▽ More

    Submitted 1 May, 2023; v1 submitted 24 April, 2023; originally announced April 2023.

  9. arXiv:2301.04846  [pdf, other

    cs.LO cs.DB math.CT

    Algebraic Model Management: A Survey

    Authors: Patrick Schultz, David I. Spivak, Ryan Wisnesky

    Abstract: We survey the field of model management and describe a new model management approach based on algebraic specification.

    Submitted 12 January, 2023; originally announced January 2023.

    Comments: Published in WADT 2016, Recent Trends in Algebraic Development Techniques

  10. arXiv:2210.01962  [pdf, ps, other

    math.CT

    Duoidal Structures for Compositional Dependence

    Authors: Brandon T. Shapiro, David I. Spivak

    Abstract: We provide a categorical framework for mathematical objects for which there is both a sort of "independent" and "dependent" composition. Namely we model them as duoidal categories in which both monoidal structures share a unit and the first is symmetric. We construct the free such category and observe that it is a full subcategory of the category of finite posets. Indeed each algebraic expression… ▽ More

    Submitted 4 October, 2022; originally announced October 2022.

    Comments: 36 pages

    MSC Class: 18M50 (Primary) 18M35 (Secondary)

  11. arXiv:2205.03906  [pdf, other

    math.CT cs.LG cs.MA math.DS

    Dynamic Operads, Dynamic Categories: From Deep Learning to Prediction Markets

    Authors: Brandon T. Shapiro, David I. Spivak

    Abstract: Natural organized systems adapt to internal and external pressures and this happens at all levels of the abstraction hierarchy. Wanting to think clearly about this idea motivates our paper, and so the idea is elaborated extensively in the introduction, which should be broadly accessible to a philosophically-interested audience. In the remaining sections, we turn to more compressed category theory.… ▽ More

    Submitted 31 July, 2023; v1 submitted 8 May, 2022; originally announced May 2022.

    Comments: In Proceedings ACT 2022, arXiv:2307.15519

    Journal ref: EPTCS 380, 2023, pp. 183-202

  12. arXiv:2205.02425  [pdf, other

    cs.DB math.CT

    Fast Left Kan Extensions Using The Chase

    Authors: Joshua Meyers, David I. Spivak, Ryan Wisnesky

    Abstract: We show how computation of left Kan extensions can be reduced to computation of free models of cartesian (finite-limit) theories. We discuss how the standard and parallel chase compute weakly free models of regular theories and free models of cartesian theories, and compare the concept of "free model" with a similar concept from database theory known as "universal model". We prove that, as algorit… ▽ More

    Submitted 4 May, 2022; originally announced May 2022.

    Comments: This paper is the subject of United States Letters Patent No. 11,256,672

    ACM Class: I.1.2; H.2.4

  13. Generalized Interference of Fermions and Bosons

    Authors: Dylan Spivak, Murphy Yuezhen Niu, Barry C. Sanders, Hubert de Guise

    Abstract: Using tools from representation theory, we derive expressions for the coincidence rate of partially-distinguishable particles in an interferometry experiment. Our expressions are valid for either bosons or fermions, and for any number of particles. In an experiment with $n$ particles the expressions we derive contain a term for each partition of the integer $n$; Gamas's theorem is used to determin… ▽ More

    Submitted 11 March, 2022; originally announced March 2022.

    Comments: 26 Pages, 2 figues

    Journal ref: Phys. Rev. Research 4, 023013 (2022)

  14. arXiv:2202.00534  [pdf, ps, other

    math.CT

    A reference for categorical structures on $\mathbf{Poly}$

    Authors: David I. Spivak

    Abstract: In this document, we collect a list of categorical structures on the category $\mathbf{Poly}$ of polynomial functors. There is no implied claim that this list is in any way complete. It includes: infinitely many monoidal structures, all but one of which is symmetric, closed, and distributes over $+$, several of which interact duoidally; it also includes a right-coclosure and two indexed left coclo… ▽ More

    Submitted 4 May, 2024; v1 submitted 1 February, 2022; originally announced February 2022.

    Comments: 22 pages

    MSC Class: 18A25; 18M05

  15. Polynomial Functors and Shannon Entropy

    Authors: David I. Spivak

    Abstract: Past work shows that one can associate a notion of Shannon entropy to a Dirichlet polynomial, regarded as an empirical distribution. Indeed, entropy can be extracted from any d:Dir by a two-step process, where the first step is a rig homomorphism out of Dir, the *set* of Dirichlet polynomials, with rig structure given by standard addition and multiplication. In this short note, we show that this r… ▽ More

    Submitted 31 July, 2023; v1 submitted 30 January, 2022; originally announced January 2022.

    Comments: In Proceedings ACT 2022, arXiv:2307.15519

    Journal ref: EPTCS 380, 2023, pp. 331-343

  16. arXiv:2112.11518  [pdf, ps, other

    math.CT

    Collectives: Compositional protocols for contributions and returns

    Authors: Nelson Niu, David I. Spivak

    Abstract: We introduce a concept called a collective: an interface with a protocol for aggregating contributions and distributing returns. Through such a protocol, many members may participate in a mutual endeavor. We present a variety of real-world examples of collectives to explore the many kinds of things that members can contribute (such as time, work, ideas, or resources) as well as the many ways these… ▽ More

    Submitted 27 January, 2022; v1 submitted 21 December, 2021; originally announced December 2021.

    Comments: 20 pages

    MSC Class: 18M35; 18B20

  17. arXiv:2111.10968  [pdf, ps, other

    math.CT cs.DB

    Functorial aggregation

    Authors: David I. Spivak

    Abstract: Aggregating data in a database could also be called "integrating along fibers": given functions $π\colon E\to D$ and $s\colon E\to R$, where $(R,\circledast)$ is a commutative monoid, we want a new function $(\circledast s)_π$ that sends each $d\in D$ to the "sum" of all $s(e)$ for which $π(e)=d$. The operation lives alongside querying -- or more generally data migration -- in typical database usa… ▽ More

    Submitted 12 June, 2023; v1 submitted 21 November, 2021; originally announced November 2021.

    MSC Class: 18D65; 18M05 ACM Class: H.0

  18. arXiv:2111.01297  [pdf, other

    cs.LG math.CT math.DS q-bio.NC

    Deep neural networks as nested dynamical systems

    Authors: David I. Spivak, Timothy Hosgood

    Abstract: There is an analogy that is often made between deep neural networks and actual brains, suggested by the nomenclature itself: the "neurons" in deep neural networks should correspond to neurons (or nerve cells, to avoid confusion) in the brain. We claim, however, that this analogy doesn't even type check: it is structurally flawed. In agreement with the slightly glib summary of Hebbian learning as "… ▽ More

    Submitted 1 November, 2021; originally announced November 2021.

  19. arXiv:2109.14123  [pdf, ps, other

    math.CT math.LO

    Regular Calculi I: Graphical Regular Logic

    Authors: Tslil Clingman, Brendan Fong, David I. Spivak

    Abstract: What is ergonomic syntax for relations? In this first paper in a series of two, to answer the question we define regular calculi: a suitably structured functor from a category representing the syntax of regular logic to the category of posets, that takes each object to the poset of relations on that type. We introduce two major classes of examples, regular calculi corresponding to regular theories… ▽ More

    Submitted 28 September, 2021; originally announced September 2021.

  20. arXiv:2107.04832  [pdf, ps, other

    cs.IT math.CT

    Dirichlet polynomials and entropy

    Authors: David I. Spivak, Timothy Hosgood

    Abstract: A Dirichlet polynomial $d$ in one variable ${\mathcal{y}}$ is a function of the form $d({\mathcal{y}})=a_n n^{\mathcal{y}}+\cdots+a_22^{\mathcal{y}}+a_11^{\mathcal{y}}+a_00^{\mathcal{y}}$ for some $n,a_0,\ldots,a_n\in\mathbb{N}$. We will show how to think of a Dirichlet polynomial as a set-theoretic bundle, and thus as an empirical distribution. We can then consider the Shannon entropy $H(d)$ of t… ▽ More

    Submitted 28 October, 2021; v1 submitted 10 July, 2021; originally announced July 2021.

    Journal ref: Entropy 23 (2021)

  21. Learners' Languages

    Authors: David I. Spivak

    Abstract: In "Backprop as functor", the authors show that the fundamental elements of deep learning -- gradient descent and backpropagation -- can be conceptualized as a strong monoidal functor Para(Euc)$\to$Learn from the category of parameterized Euclidean spaces to that of learners, a category developed explicitly to capture parameter update and backpropagation. It was soon realized that there is an isom… ▽ More

    Submitted 3 November, 2022; v1 submitted 1 March, 2021; originally announced March 2021.

    Comments: In Proceedings ACT 2021, arXiv:2211.01102

    Journal ref: EPTCS 372, 2022, pp. 14-28

  22. Wiring diagrams as normal forms for computing in symmetric monoidal categories

    Authors: Evan Patterson, David I. Spivak, Dmitry Vagner

    Abstract: Applications of category theory often involve symmetric monoidal categories (SMCs), in which abstract processes or operations can be composed in series and parallel. However, in 2020 there remains a dearth of computational tools for working with SMCs. We present an "unbiased" approach to implementing symmetric monoidal categories, based on an operad of directed, acyclic wiring diagrams. Because t… ▽ More

    Submitted 25 January, 2021; originally announced January 2021.

    Comments: In Proceedings ACT 2020, arXiv:2101.07888

    Journal ref: EPTCS 333, 2021, pp. 49-64

  23. Behavioral Mereology: A Modal Logic for Passing Constraints

    Authors: Brendan Fong, David Jaz Myers, David I. Spivak

    Abstract: Mereology is the study of parts and the relationships that hold between them. We introduce a behavioral approach to mereology, in which systems and their parts are known only by the types of behavior they can exhibit. Our discussion is formally topos-theoretic, and agnostic to the topos, providing maximal generality; however, by using only its internal logic we can hide the details and readers may… ▽ More

    Submitted 25 January, 2021; originally announced January 2021.

    Comments: In Proceedings ACT 2020, arXiv:2101.07888. arXiv admin note: substantial text overlap with arXiv:1811.00420

    ACM Class: F4.1

    Journal ref: EPTCS 333, 2021, pp. 276-288

  24. A Compositional Sheaf-Theoretic Framework for Event-Based Systems

    Authors: Gioele Zardini, David I. Spivak, Andrea Censi, Emilio Frazzoli

    Abstract: A compositional sheaf-theoretic framework for the modeling of complex event-based systems is presented. We show that event-based systems are machines, with inputs and outputs, and that they can be composed with machines of different types, all within a unified, sheaf-theoretic formalism. We take robotic systems as an exemplar of complex systems and rigorously describe actuators, sensors, and algor… ▽ More

    Submitted 25 January, 2021; originally announced January 2021.

    Comments: In Proceedings ACT 2020, arXiv:2101.07888. arXiv admin note: substantial text overlap with arXiv:2005.04715

    Journal ref: EPTCS 333, 2021, pp. 139-153

  25. arXiv:2101.07888   

    cs.DM cs.PL

    Proceedings of the 3rd Annual International Applied Category Theory Conference 2020

    Authors: David I. Spivak, Jamie Vicary

    Abstract: The third annual International Applied Category Theory Conference (ACT2020) was planned to take place at MIT in Cambridge, Massachusetts USA. However, the global COVID-19 pandemic made the prospect of holding a large in-person meeting impossible, and the event was thus held completely online. Holding the talks online had the new benefits of reducing carbon footprint, being inclusive of people from… ▽ More

    Submitted 19 January, 2021; originally announced January 2021.

    Journal ref: EPTCS 333, 2021

  26. arXiv:2011.07010  [pdf, other

    cs.RO cs.AI cs.CV

    Monitoring and Diagnosability of Perception Systems

    Authors: Pasquale Antonante, David I. Spivak, Luca Carlone

    Abstract: Perception is a critical component of high-integrity applications of robotics and autonomous systems, such as self-driving vehicles. In these applications, failure of perception systems may put human life at risk, and a broad adoption of these technologies requires the development of methodologies to guarantee and monitor safe operation. Despite the paramount importance of perception systems, curr… ▽ More

    Submitted 16 October, 2021; v1 submitted 11 November, 2020; originally announced November 2020.

    Comments: Updated version of arXiv:2005.11816

  27. String Diagrams for Regular Logic (Extended Abstract)

    Authors: Brendan Fong, David Spivak

    Abstract: Regular logic can be regarded as the internal language of regular categories, but the logic itself is generally not given a categorical treatment. In this paper, we understand the syntax and proof rules of regular logic in terms of the free regular category FRg(T) on a set T. From this point of view, regular theories are certain monoidal 2-functors from a suitable 2-category of contexts -- the 2-c… ▽ More

    Submitted 14 September, 2020; originally announced September 2020.

    Comments: In Proceedings ACT 2019, arXiv:2009.06334. Condensed version of arXiv:1812.05765

    Journal ref: EPTCS 323, 2020, pp. 196-229

  28. arXiv:2005.11816  [pdf, other

    cs.RO cs.AI

    Monitoring and Diagnosability of Perception Systems

    Authors: Pasquale Antonante, David I. Spivak, Luca Carlone

    Abstract: Perception is a critical component of high-integrity applications of robotics and autonomous systems, such as self-driving cars. In these applications, failure of perception systems may put human life at risk, and a broad adoption of these technologies relies on the development of methodologies to guarantee and monitor safe operation as well as detect and mitigate failures. Despite the paramount i… ▽ More

    Submitted 16 November, 2020; v1 submitted 24 May, 2020; originally announced May 2020.

  29. arXiv:2005.04715  [pdf, other

    eess.SY cs.RO eess.SP math.CT

    A Compositional Sheaf-Theoretic Framework for Event-Based Systems (Extended Version)

    Authors: Gioele Zardini, David I. Spivak, Andrea Censi, Emilio Frazzoli

    Abstract: A compositional sheaf-theoretic framework for the modeling of complex event-based systems is presented. We show that event-based systems are machines, with inputs and outputs, and that they can be composed with machines of different types, all within a unified, sheaf-theoretic formalism. We take robotic systems as an exemplar of complex systems and rigorously describe actuators, sensors, and algor… ▽ More

    Submitted 22 June, 2020; v1 submitted 10 May, 2020; originally announced May 2020.

    Comments: 24 pages

  30. arXiv:2005.01894  [pdf, ps, other

    math.CT math.DS

    Poly: An abundant categorical setting for mode-dependent dynamics

    Authors: David I. Spivak

    Abstract: Dynamical systems---by which we mean machines that take time-varying input, change their state, and produce output---can be wired together to form more complex systems. Previous work has shown how to allow collections of machines to reconfigure their wiring diagram dynamically, based on their collective state. This notion was called "mode dependence", and while the framework was compositional (for… ▽ More

    Submitted 11 June, 2020; v1 submitted 4 May, 2020; originally announced May 2020.

    Comments: 13 pages

    MSC Class: 18M35; 18B20; 18M05

  31. Sum rules in multiphoton coincidence rates

    Authors: David Amaro Alcalá, Dylan Spivak, Hubert de Guise

    Abstract: We show that sums of carefully chosen coincidence rates in a multiphoton interferometry experiment can be simplified by replacing the original unitary scattering matrix with a coset matrix containing $0$s. The number and placement of these $0$s reduces the complexity of each term in the sum without affecting the original sum of rates. In particular, the evaluation of sums of modulus squared of per… ▽ More

    Submitted 11 January, 2021; v1 submitted 23 April, 2020; originally announced April 2020.

    Comments: Post publication version which includes minor typos fixes and clarifications. 21 pages, 3 figures

  32. arXiv:2004.04183  [pdf, ps, other

    math.CT

    Dirichlet Functors are Contravariant Polynomial Functors

    Authors: David Jaz Myers, David I. Spivak

    Abstract: Polynomial functors are sums of covariant representable functors from the category of sets to itself. They have a robust theory with many applications -- from operads and opetopes to combinatorial species. In this paper, we define a contravariant analogue of polynomial functors: Dirichlet functors. We develop the basic theory of Dirichlet functors, and relate them to their covariant analogues.

    Submitted 8 April, 2020; originally announced April 2020.

    Comments: 11 pages

    MSC Class: 18A22; 18B25

  33. arXiv:2003.04827  [pdf, ps, other

    math.CT

    Dirichlet Polynomials form a Topos

    Authors: David I. Spivak, David Jaz Myers

    Abstract: One can think of power series or polynomials in one variable, such as $P(x)=2x^3+x+5$, as functors from the category $\mathsf{Set}$ of sets to itself; these are known as polynomial functors. Denote by $\mathsf{Poly}_{\mathsf{Set}}$ the category of polynomial functors on $\mathsf{Set}$ and natural transformations between them. The constants $0,1$ and operations $+,\times$ that occur in $P(x)$ are a… ▽ More

    Submitted 4 November, 2020; v1 submitted 10 March, 2020; originally announced March 2020.

    Comments: 11 pages

    MSC Class: 18B25; 18M80

  34. A Categorical Semantics for Guarded Petri Nets

    Authors: Fabrizio Genovese, David I. Spivak

    Abstract: We build on the correspondence between Petri nets and free symmetric strict monoidal categories already investigated in the literature, and present a categorical semantics for Petri nets with guards. This comes in two flavors: Deterministic and with side-effects. Using the Grothendieck construction, we show how the guard semantics can be internalized in the net itself.

    Submitted 10 February, 2020; v1 submitted 29 January, 2020; originally announced February 2020.

    Comments: 24 pages (11 appendix), 13 figures

    Journal ref: In: Gadducci F., Kehrer T. (eds) Graph Transformation. ICGT 2020. Lecture Notes in Computer Science, vol 12150. Springer, Cham

  35. arXiv:1909.00069  [pdf, ps, other

    math.CT

    Regular and relational categories: Revisiting 'Cartesian bicategories I'

    Authors: Brendan Fong, David I Spivak

    Abstract: Regular logic is the fragment of first order logic generated by $=$, $\top$, $\wedge$, and $\exists$. A key feature of this logic is that it is the minimal fragment required to express composition of binary relations; another is that it is the internal logic of regular categories. The link between these two facts is that in any regular category, one may construct a notion of binary relation using… ▽ More

    Submitted 30 August, 2019; originally announced September 2019.

    Comments: 31 pages, lots of figures

    MSC Class: 18-01; 18B10; 18D10

  36. arXiv:1908.02633  [pdf, ps, other

    math.CT

    Supplying bells and whistles in symmetric monoidal categories

    Authors: Brendan Fong, David I Spivak

    Abstract: It is common to encounter symmetric monoidal categories $\mathcal{C}$ for which every object is equipped with an algebraic structure, in a way that is compatible with the monoidal product and unit in $\mathcal{C}$. We define this formally and say that $\mathcal{C}$ supplies the algebraic structure. For example, the category $\mathsf{Rel}$ of relations between sets has monoidal structures given by… ▽ More

    Submitted 5 May, 2020; v1 submitted 7 August, 2019; originally announced August 2019.

    Comments: 17 pages + 3 page appendix

    MSC Class: 18M05; 18M30; 18C40

  37. arXiv:1908.02202  [pdf, ps, other

    math.CT cs.LO

    Generalized Lens Categories via functors $\mathcal{C}^{\rm op}\to\mathsf{Cat}$

    Authors: David I. Spivak

    Abstract: Lenses have a rich history and have recently received a great deal of attention from applied category theorists. We generalize the notion of lens by defining a category $\mathsf{Lens}_F$ for any category $\mathcal{C}$ and functor $F\colon \mathcal{C}^{\rm op}\to\mathsf{Cat}$, using a variant of the Grothendieck construction. All of the mathematics in this note is straightforward; the purpose is si… ▽ More

    Submitted 16 March, 2022; v1 submitted 6 August, 2019; originally announced August 2019.

    Comments: 10 pages. (This version: fix some typos)

    MSC Class: 18D30; 68N18

  38. arXiv:1904.01081  [pdf, ps, other

    math.LO math.CT

    Temporal Landscapes: A Graphical Logic of Behavior

    Authors: Brendan Fong, Alberto Speranzon, David I. Spivak

    Abstract: We present an elementary introduction to a new logic for reasoning about behaviors that occur over time. This logic is based on temporal type theory. The syntax of the logic is similar to the usual first-order logic; what differs is the notion of truth value. Instead of reasoning about whether formulas are true or false, our logic reasons about temporal landscapes. A temporal landscape may be thou… ▽ More

    Submitted 3 November, 2022; v1 submitted 1 April, 2019; originally announced April 2019.

    Comments: In Proceedings ACT 2021, arXiv:2211.01102

    Journal ref: EPTCS 372, 2022, pp. 276-288

  39. arXiv:1903.10579  [pdf, other

    cs.DB

    Categorical Data Integration for Computational Science

    Authors: Kristopher Brown, David I. Spivak, Ryan Wisnesky

    Abstract: Categorical Query Language is an open-source query and data integration scripting language that can be applied to common challenges in the field of computational science. We discuss how the structure-preserving nature of CQL data migrations protect those who publicly share data from the misinterpretation of their data. Likewise, this feature of CQL migrations allows those who draw from public data… ▽ More

    Submitted 25 March, 2019; originally announced March 2019.

    Comments: 10 pages, 5 figures

  40. arXiv:1812.05765  [pdf, ps, other

    math.CT cs.LO math.LO

    Graphical Regular Logic

    Authors: Brendan Fong, David I Spivak

    Abstract: Regular logic can be regarded as the internal language of regular categories, but the logic itself is generally not given a categorical treatment. In this paper, we understand the syntax and proof rules of regular logic in terms of the free regular category $\mathsf{FRg}(\mathrm{T})$ on a set $\mathrm{T}$. From this point of view, regular theories are certain monoidal 2-functors from a suitable 2-… ▽ More

    Submitted 20 June, 2019; v1 submitted 13 December, 2018; originally announced December 2018.

    Comments: 47 pages

    MSC Class: 18B10; 03G30

  41. arXiv:1811.00420  [pdf, ps, other

    math.LO math.CT

    Behavioral Mereology (Proofs and Properties)

    Authors: Brendan Fong, David Jaz Myers, David I. Spivak

    Abstract: Mereology is the study of parts and the relationships that hold between them. We introduce a behavioral approach to mereology, in which systems and their parts are known only by the types of behavior they can exhibit. Our discussion is formally topos-theoretic, and agnostic to the topos, providing maximal generality; however, by using only its internal logic we can hide the details and readers may… ▽ More

    Submitted 2 July, 2020; v1 submitted 1 November, 2018; originally announced November 2018.

    Comments: 18 pages, Extended version of version accepted for publication for the ACT 2020 conference

    MSC Class: 03B45; 18B25; 03A10

  42. arXiv:1808.01724  [pdf, other

    math.AP

    Evaluating the Pixel Array Method as Applied to Partial Differential Equations

    Authors: Cynthia T. Liu, David I. Spivak

    Abstract: The Pixel Array (PA) Method, originally introduced by Spivak et. al., is a fast method for solving nonlinear or linear systems. One of its distinguishing features is that it presents all solutions within a bounding box, represented by a plot whose axes are the values of "exposed variables." Here we develop a set-theoretic variant of the PA method, named the Pixel Array Solution-Set (PASS) method,… ▽ More

    Submitted 5 August, 2018; originally announced August 2018.

    Comments: 12 pages

    MSC Class: 35-04; 35C99; 35G60; 15A69

  43. arXiv:1807.06000  [pdf, ps, other

    math.CT math.AT

    Decomposition-space slices are toposes

    Authors: Joachim Kock, David I. Spivak

    Abstract: We show that the category of decomposition spaces and CULF maps is locally a topos. Precisely, the slice category over any decomposition space D is a presheaf topos, namely decomp/D=Psh(tw D).

    Submitted 2 September, 2019; v1 submitted 16 July, 2018; originally announced July 2018.

    Comments: 14 pages

    MSC Class: 18G30; 55U10; 18B25

  44. arXiv:1806.08304  [pdf, ps, other

    math.CT cs.LO

    Hypergraph Categories

    Authors: Brendan Fong, David I Spivak

    Abstract: Hypergraph categories have been rediscovered at least five times, under various names, including well-supported compact closed categories, dgs-monoidal categories, and dungeon categories. Perhaps the reason they keep being reinvented is two-fold: there are many applications---including to automata, databases, circuits, linear relations, graph rewriting, and belief propagation---and yet the standar… ▽ More

    Submitted 18 January, 2019; v1 submitted 21 June, 2018; originally announced June 2018.

    Comments: 38 pages

    MSC Class: 18D10; 18D50

  45. arXiv:1803.05316  [pdf, other

    math.CT

    Seven Sketches in Compositionality: An Invitation to Applied Category Theory

    Authors: Brendan Fong, David I Spivak

    Abstract: This book is an invitation to discover advanced topics in category theory through concrete, real-world examples. It aims to give a tour: a gentle, quick introduction to guide later exploration. The tour takes place over seven sketches, each pairing an evocative application, such as databases, electric circuits, or dynamical systems, with the exploration of a categorical structure, such as adjoint… ▽ More

    Submitted 12 October, 2018; v1 submitted 14 March, 2018; originally announced March 2018.

    Comments: 341+xii pages

    MSC Class: 18-01

  46. arXiv:1802.03080  [pdf, other

    cs.LO eess.SY

    Abstraction, Composition and Contracts: A Sheaf Theoretic Approach

    Authors: Alberto Speranzon, David I. Spivak, Srivatsan Varadarajan

    Abstract: Complex systems of systems (SoS) are characterized by multiple interconnected subsystems. Typically, each subsystem is designed and analyzed using methodologies and formalisms that are specific to the particular subsystem model of computation considered --- Petri nets, continuous time ODEs, nondeterministic automata, to name a few. When interconnecting subsystems, a designer needs to choose, based… ▽ More

    Submitted 8 February, 2018; originally announced February 2018.

  47. arXiv:1711.10455  [pdf, ps, other

    math.CT cs.AI cs.LG

    Backprop as Functor: A compositional perspective on supervised learning

    Authors: Brendan Fong, David I. Spivak, Rémy Tuyéras

    Abstract: A supervised learning algorithm searches over a set of functions $A \to B$ parametrised by a space $P$ to find the best approximation to some ideal function $f\colon A \to B$. It does this by taking examples $(a,f(a)) \in A\times B$, and updating the parameter according to some rule. We define a category where these update rules may be composed, and show that gradient descent---with respect to a f… ▽ More

    Submitted 1 May, 2019; v1 submitted 28 November, 2017; originally announced November 2017.

    Comments: 13 pages + 4 page appendix

    Journal ref: LICS 2019

  48. arXiv:1711.09526  [pdf, ps, other

    math.OA math-ph math.CO math.FA

    An infinite quantum Ramsey theorem

    Authors: Matthew Kennedy, Taras Kolomatski, Daniel Spivak

    Abstract: We prove an infinite Ramsey theorem for noncommutative graphs realized as unital self-adjoint subspaces of linear operators acting on an infinite dimensional Hilbert space. Specifically, we prove that if V is such a subspace, then provided there is no obvious obstruction, there is an infinite rank projection P with the property that the compression PVP is either maximal or minimal in a certain nat… ▽ More

    Submitted 26 November, 2017; originally announced November 2017.

    Comments: 19 pages

  49. arXiv:1710.10258  [pdf, ps, other

    math.CT math.LO

    Temporal Type Theory: A topos-theoretic approach to systems and behavior

    Authors: Patrick Schultz, David I. Spivak

    Abstract: This book introduces a temporal type theory, the first of its kind as far as we know. It is based on a standard core, and as such it can be formalized in a proof assistant such as Coq or Lean by adding a number of axioms. Well-known temporal logics---such as Linear and Metric Temporal Logic (LTL and MTL)---embed within the logic of temporal type theory. The types in this theory represent "behavi… ▽ More

    Submitted 23 December, 2017; v1 submitted 27 October, 2017; originally announced October 2017.

    Comments: 224 pages, including an index

    MSC Class: 03G30; 18B25; 06B35; 93A30

  50. arXiv:1709.06615  [pdf, other

    quant-ph physics.optics

    Permutational symmetries for coincidence rates in multi-mode multi-photonic interferometry

    Authors: Abdullah Khalid, Dylan Spivak, Barry C. Sanders, Hubert de Guise

    Abstract: We obtain coincidence rates for passive optical interferometry by exploiting the permutational symmetries of partially distinguishable input photons, and our approach elucidates qualitative features of multi-photon coincidence landscapes. We treat the interferometer input as a product state of any number of photons in each input mode with photons distinguished by their arrival time. Detectors at t… ▽ More

    Submitted 20 June, 2018; v1 submitted 19 September, 2017; originally announced September 2017.

    Journal ref: Phys. Rev. A 97, 063802 (2018)