We describe a method for merging multiple spreadsheets into one sheet, and/or exchanging data among the sheets, by expressing each sheet's formulae as an algebraic (equational) theory and each sheet's values as a model of its theory, expressing the overlap between the sheets as theory and model morphisms, and then performing colimit, lifting, and Kan-extension constructions from category theory to compute a canonically universal integrated theory and model, which can then be expressed as a spreadsheet. Our motivation is to find methods of merging engineering models that do not require consensus (agreement) among the authors of the models being merged, a condition fulfilled by our method because theory and model morphisms are semantics-preserving. We describe a case study of this methodology on a real-world oil and gas calculation at a major energy company, describing the theories and models that arise when integrating two different casing pressure test (MASP) calculation spreadsheets constructed by two non-interacting engineers. We also describe the automated theorem proving burden associated with both verifying the semantics preservation of the overlap mappings as well as verifying the conservativity/consistency of the resulting integrated sheet. We conclude with thoughts on how to apply the methodology to scale engineering efforts across the enterprise.
翻译:我们描述一种方法,将多个电子表格合并成一张工作表,和(或)在各工作表之间交换数据,将每个工作表的公式表述为代数(等数)理论,将每个工作表的数值表述为理论模型,将工作表的重叠表述为理论和模型形态学,然后从类别理论中进行共同限制、提升和Kan扩展结构,以计算一种可实现普遍性的综合理论和模型,然后将其表述为电子表格。我们的动机是找到合并工程模型的方法,这些模型不需要在正在合并的模型的作者之间达成共识(协议),这是我们的方法所满足的一个条件,因为理论和模式形态学是保留语义学的。我们描述了在一家主要能源公司进行实际世界石油和天然气计算时对这一方法进行的一项案例研究,描述了在将两个不同的外壳压力测试(MASP)计算电子表格综合起来时产生的理论和模型。我们还描述了自动证明与核查正在合并的模型的重复性制图的语义(协议)有关的负担,因为我们的方法已经满足了这一条件,因为理论和模型形态形态学形态学是保留了语义学,因为理论和形态学形态学是保留的,主要能源公司的计算方法,我们核查了如何在规模上进行综合工程学上的工作。