package dolmen

  1. Overview
  2. Docs
A parser library for automated deduction

Install

Dune Dependency

Authors

Maintainers

Sources

dolmen-0.10.tbz
sha256=c5c85f77e3924f378e8d82f166eefe4131b4e041bf9cdeca467410f33c71fa61
sha512=42feb39d13cfdc8a2054abe85ccc47755f45059cda7d95e9261b5a9fd5c730f420732547b3fa19c4af059474f887ef78c119ab5933375a5ea2dbe888f65a3e4f

doc/dolmen.std/Dolmen_std/Normalize/index.html

Module Dolmen_std.NormalizeSource

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.

Sourcemodule Tptp : sig ... end
Sourcemodule Smtlib : sig ... end
OCaml

Innovation. Community. Security.