This document provides a formal proof of Birkhoff's completeness theorem for multi-sorted algebras which states that any equational entailment valid in all models is also provable in the equational theory. More precisely, if a certain equation is valid in all models that validate a fixed set of equations, then this equation is derivable from that set using the proof rules for a congruence. The proof has been formalized in Agda version 2.6.2 with the Agda Standard Library version 1.7 and this document reproduces the commented Agda code.
翻译:本文件正式证明Birkhoff对多种分类代数的完整性理论,其中指出,所有模型中有效的任何方程式内涵在等式理论中也是可以验证的。更确切地说,如果某一方程式在所有验证固定方程式的模型中都有效,那么这一方程式就可以从该方程式中衍生出,使用证据规则求一致。Agda 2.6.2版和Agda标准图书馆1.7版正式确定了证据,本文件转载了Agda的备注代码。