package dolmen
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=80fc33ae81817a79c6e6b2f6c01c4cfcc0af02bfe4d2d1b87cf70b84cdde3928
sha512=3a44a99bce871161bc70cf909c813e9e6c91c590873cbc163c69b2ec90ab5be65bf0bf45430bc8d00d85d75cf0af004b06b8f5f1c9d4d47c8a30ab9f28762c04
doc/dolmen.std/Dolmen_std/Normalize/index.html
Module Dolmen_std.Normalize
Source
Normalizing functions
Functions in this module are meant to help normalize terms, that is, for a given language, map the semantic pre-defined builtins of that language to the builtins symbols defined by Dolmen Terms.
For instance, the tptp language has a specific syntaxic construction for equality (that is, there is a reduction used to parse equality), thus equalities in tptp are parsed using the builtin equality symbol for terms. On the other hand, smtlib has no syntax rules for equality, which is seen as a regular application of the symbol name "=". Thus, equalities in smtlib files will be parsed as applications of a symbol named "=". Normalization maps that application to the builtin notion of equality defined for terms.
WARNING: this normalization process is a best effort, but cannot be complete in general. Some constructions such as tptp's "$i" (pre-existing type for terms), have no clear builtin notion in other languages. For a general and complete translation, the ast should be typechecked.