Cartesian differential categories come equipped with a differential combinator that formalizes the directional derivative from multivariable calculus. Cartesian differential categories provide a categorical semantics of the differential lambda-calculus and have also found applications in causal computation, incremental computation, game theory, differentiable programming, and machine learning. There has recently been a desire to provide a (coordinate-free) characterization of Jacobians and gradients in Cartesian differential categories. One's first attempt might be to consider Cartesian differential categories which are Cartesian closed, such as models of the differential lambda-calculus, and then take the curry of the derivative. Unfortunately, this approach excludes numerous important examples of Cartesian differential categories such as the category of real smooth functions. In this paper, we introduce linearly closed Cartesian differential categories, which are Cartesian differential categories that have an internal hom of linear maps, a bilinear evaluation map, and the ability to curry maps which are linear in their second argument. As such, the Jacobian of a map is defined as the curry of its derivative. Many well-known examples of Cartesian differential categories are linearly closed, such as, in particular, the category of real smooth functions. We also explain how a Cartesian closed differential category is linearly closed if and only if a certain linear idempotent on the internal hom splits. To define the gradient of a map, one must be able to define the transpose of the Jacobian, which can be done in a Cartesian reverse differential category. Thus, we define the gradient of a map to be the curry of its reverse derivative and show this equals the transpose of its Jacobian. We also explain how a linearly closed Cartesian reverse differential category is precisely a linearly closed Cartesian differential category with an appropriate notion of transpose.
The Biequivalence of Locally Cartesian Closed Categories and Martin-Löf Type Theories
Seely的论文“Locally Carnival closed categories and type theory“包含了范畴类型论中一个著名的结果:局部Carnival closed categories等价于Martin-Löf类型论中的Pi-类型、Sigma-类型和外延恒等式。然而,Seely的证明依赖于一个有问题的假设,即类型中的替换可以通过回调来解释。在这里,我们证明了西利定理的一个修正版本:马丁-洛夫类型论的Bénabou-Hofmann解释在局部范畴闭范畴中产生2-范畴的双等价。为了促进技术的发展,我们采用了具有族的范畴来代替句法的马丁-洛夫类型论。作为第二个结果,我们证明了,如果我们删除PI型所产生的类别与家庭是双等价的左正合范畴。
Change Actions: Models of Generalised Differentiation
Cai等人最近提出了变化结构作为增量计算的语义框架。我们将变化结构推广到任意的范畴,并提出了变化动作模型作为(高阶)广义微分的范畴模型的概念。变化行为模型自然地产生于许多几何和计算环境,例如(广义)卡氏微分范畴、离散微积分的群模型和正则表达式的Kleene代数。我们展示了如何在任意的carbohydrate类别上构建规范的变化动作模型,让人想起Fàa di Bruno构造。