MeTTa (Meta Type Talk) is a novel programming language created for use in the OpenCog Hyperon AGI system. It is designed as a meta-language with very basic and general facilities for handling symbols, groundings, variables, types, substitutions and pattern matching. Primitives exist for creating new type systems and associated DSLs. IInformally, MeTTa is Hyperon's lowest-level "language of thought" -- the meta-language in which algorithms for learning more particular knowledge representations, will operate, and in which these algorithms themselves may be represented. Here we explain how one might go about formalizing the MeTTa language as a system of metagraph rewrite rules, an approach that fits in naturally to the Hyperon framework given that the latter's core component is a distributed metagraph knowledge store (the Atomspace). The metagraph rewrite rules constituting MeTTa programs can also be represented as metagraphs, giving a natural model for MeTTa reflection and self-modifying code. Considering MeTTa programs that compute equivalences between execution traces of other MeTTa programs allows us to model spaces of MeTTa execution traces using Homotopy Type Theory. Considering the limit of MeTTa programs mapping between execution traces of MeTTa programs that map between execution traces of MeTTa programs that ..., we find that a given MeTTa codebase is effectively modeled as an infinity-groupoid, and the space of all MeTTa codebases as an (infinity,1)-topis This topos is basically the same as the so-called "Ruliad" previously derived from rewrite rules on hypergraphs, in a discrete physics context. The formalization of MeTTA as metagraph rewrite rules may also provide a useful framework for structuring the implementation of efficient methods for pattern matching and equality inference within the MeTTa interpreter.
翻译:Metta (Metta Tyle Talk) 是用于 OpenCog Hyperon AGI 系统的一种新编程语言。 我们在这里解释如何将Metta 语言正规化成一个用于处理符号、 地面、 变量、 类型、 替代和模式匹配的系统, 这是一种非常基本和普通的元语言。 创建新类型系统和相关 DSL 的原始存在。 通常, Metta 是超文本的“ 思想语言”, 这是一种元语言, 用于学习更特定知识表达的算法, 将操作, 并代表这些算法本身。 我们在这里解释如何将Metta 语言正规化成一个用于处理符号、 地面、 地面规则的系统, 后者的核心部分是分布的数学知识库( Atoomspace) 。 构成Mettatama 程序的代词重写规则也可以作为数学的元模模型, 给Mettatail 提供Mettail 的自然模型, 在Mettail 程序中, 我们通过执行Mettaly roal romatoal 进行一个模型的模型程序。