Hostname: page-component-89b8bd64d-ksp62 Total loading time: 0 Render date: 2026-05-11T20:28:27.878Z Has data issue: false hasContentIssue false

Homotopical patch theory*

Published online by Cambridge University Press:  13 September 2016

CARLO ANGIULI
Affiliation:
Computer Science Department, Carnegie Mellon University, Pittsburgh, Pennsylvania, USA (e-mails: cangiuli@cs.cmu.edu, edmo@cs.cmu.edu)
EDWARD MOREHOUSE
Affiliation:
Computer Science Department, Carnegie Mellon University, Pittsburgh, Pennsylvania, USA (e-mails: cangiuli@cs.cmu.edu, edmo@cs.cmu.edu)
DANIEL R. LICATA
Affiliation:
Department of Mathematics and Computer Science, Wesleyan University, Middletown, Connecticut, USA (e-mail: dlicata@wesleyan.edu)
ROBERT HARPER
Affiliation:
Computer Science Department, Carnegie Mellon University, Pittsburgh, Pennsylvania, USA (e-mail: rwh@cs.cmu.edu)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

Homotopy type theory is an extension of Martin-Löf type theory, based on a correspondence with homotopy theory and higher category theory. In homotopy type theory, the propositional equality type is proof-relevant, and corresponds to paths in a space. This allows for a new class of datatypes, called higher inductive types, which are specified by constructors not only for points but also for paths. In this paper, we consider a programming application of higher inductive types. Version control systems such as Darcs are based on the notion of patches—syntactic representations of edits to a repository. We show how patch theory can be developed in homotopy type theory. Our formulation separates formal theories of patches from their interpretation as edits to repositories. A patch theory is presented as a higher inductive type. Models of a patch theory are given by maps out of that type, which, being functors, automatically preserve the structure of patches. Several standard tools of homotopy theory come into play, demonstrating the use of these methods in a practical programming context.

Information

Type
Research Article
Copyright
Copyright © Cambridge University Press 2016 
Submit a response

Discussions

No Discussions have been published for this article.