In Lecture Notes in Computer In Proceedings of the 35th International Symposium on Mathematical Foundations of Computer Science (MFCS 2010), LNCS 6281, pp. 368-380, Springer Verlag, May 2010
Fiore and Hur recently introduced a conservative extension of universal algebra and equational logic from first to second order. Second-order universal algebra and second-order equational logic respectively provide a model theory and a formal deductive system for languages with variable binding and parameterised metavariables. This work completes the foundations of the subject from the viewpoint of categorical algebra. Specifically, the paper introduces the notion of second-order algebraic theory and develops its basic theory. Two categorical equivalences are established: at the syntactic level, that of second-order equational presentations and second-order algebraic theories; at the semantic level, that of second-order algebras and second-order functorial models. Our development includes a mathematical definition of syntactic translation between second-order equational presentations. This gives the first formalisation of notions such as encodings and transforms in the context of languages with variable binding.
External univalence for second-order generalized algebraic theories
Voevodsky的univalence公理通常是等价原理的实现,等价的数学结构满足相同的性质。事实上,在同伦类型论中,性质和结构可以通过类型等价来传递。然而,我们可能希望在不依赖于单价公理的情况下解释等价原理。例如,在大多数类型论中,所有的类型形成者都保持等价;因此,即使在非单价类型论中,也应该有可能在类型等价上传输结构。我们定义了外部单性,这是类型论(和更一般的二阶广义代数理论)的一个性质,它捕获了等价性(或其他同伦关系)的保持。这个属性在语法上被定义为理论的(语法上定义的)共分类(Sigma,Pi_rep)-CwF(也称为通用模型或行走模型)上的身份类型的存在。在语义上,它对应于理论模型范畴上存在某种左半模型结构。我们给出的句法条件,可以用来检查,一个理论满足外部单性。我们证明了一些理论的外部单值性,如范畴的一阶广义代数理论,以及依赖类型论与任何标准选择的类型形成者和公理,包括单位类型,Sigma-类型,Pi-类型,universes à la Tarski,univalence公理,Universe of Identity Proofs公理等。