package datalog

  1. Overview
  2. Docs
An in-memory datalog implementation for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

datalog-0.7.tbz
sha256=13ca520bddf4f0c44d1468bc89347be72ec543be58fff29469a0da24956be541
sha512=25d6e9cb5abe8aa1110730d884abb9e51ae78bf681b3f21709efa32359b9cbdd97d9076761c91562580c090cbce12ce159c97533ae5d9d427c24cb329e950793

doc/datalog.caml_interface/Datalog_caml_interface/Logic/Rewriting/index.html

Module Logic.RewritingSource

Sourcetype rule = T.t * T.t
Sourcetype t

A rewriting system. It is basically a mutable set of rewrite rules.

Sourceval create : unit -> t

New rewriting system

Sourceval copy : t -> t

Copy the rewriting system

Sourceval add : t -> rule -> unit

Add a rule to the system

Sourceval add_list : t -> rule list -> unit
Sourceval to_list : t -> rule list

List of rules

Sourceval rewrite_root : t -> T.t -> T.t

rewrite the term, but only its root. Subterms are not rewritten at all.

Sourceval rewrite : t -> T.t -> T.t

Normalize the term recursively. The returned type cannot be rewritten any further, assuming the rewriting system is terminating

OCaml

Innovation. Community. Security.