斑块的范畴理论
A Categorical Theory of Patches
摘要:
当与远程协作者在同一文档上工作时,通常使用版本控制系统,这是一个跟踪文件历史并帮助导入其他人带来的修改作为补丁的程序。这种系统的实现需要根据用户对文件执行的操作来处理许多情况,因此难以确保所有的角落情况都得到正确处理。在这里,而不是验证这样一个系统的实现,我们采取了一种补充的方法:我们引入了一个理论模型,它是抽象的定义的普适属性,它应该满足,并制定出一个具体的描述。我们开始定义一类文件和补丁,其中合并的两个初始补丁的效果的操作是由推出定义。由于两个补丁可能是不兼容的,这样的推出不一定存在于类别中,这就提出了一个问题,即哪个类别是表示和操作处于冲突状态的文件的正确类别。我们提供了一个答案,通过调查的自由完成的范畴的文件有限colimits下,并给出了明确的描述这一类别:它的对象是有限集标记的线配备了一个传递关系和态射是部分功能方面的标签和关系。
英文摘要:
When working with distant collaborators on the same documents, one often uses a version control system, which is a program tracking the history of files and helping importing modifications brought by others as patches. The implementation of such a system requires to handle lots of situations depending on the operations performed by users on files, and it is thus difficult to ensure that all the corner cases have been correctly addressed. Here, instead of verifying the implementation of such a system, we adopt a complementary approach: we introduce a theoretical model, which is defined abstractly by the universal property that it should satisfy, and work out a concrete description of it. We begin by defining a category of files and patches, where the operation of merging the effect of two coinitial patches is defined by pushout. Since two patches can be incompatible, such a pushout does not necessarily exist in the category, which raises the question of which is the correct category to represent and manipulate files in conflicting state. We provide an answer by investigating the free completion of the category of files under finite colimits, and give an explicit description of this category: its objects are finite sets labeled by lines equipped with a transitive relation and morphisms are partial functions respecting labeling and relations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。