sidekick/dev/sidekick-base/Sidekick_base/Model/index.html
2021-07-04 01:47:36 +00:00

2 lines
No EOL
4.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Model (sidekick-base.Sidekick_base.Model)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.2"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> <a href="../../index.html">sidekick-base</a> &#x00BB; <a href="../index.html">Sidekick_base</a> &#x00BB; Model</nav><h1>Module <code>Sidekick_base.Model</code></h1><p>Models</p><p>A model is a solution to the satisfiability question, created by the SMT solver when it proves the formula to be <b>satisfiable</b>.</p><p>A model gives a value to each term of the original formula(s), in such a way that the formula(s) is true when the term is replaced by its value.</p></header><div class="spec module" id="module-Val_map"><a href="#module-Val_map" class="anchor"></a><code><span class="keyword">module</span> <a href="Val_map/index.html">Val_map</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec module" id="module-Fun_interpretation"><a href="#module-Fun_interpretation" class="anchor"></a><code><span class="keyword">module</span> <a href="Fun_interpretation/index.html">Fun_interpretation</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd><p>Model for function symbols.</p></dd></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> t</code><code> = </code><code>{</code><table class="record"><tr id="type-t.values" class="anchored"><td class="def field"><a href="#type-t.values" class="anchor"></a><code>values : <span><a href="../Base_types/Value/index.html#type-t">Base_types.Value.t</a> <a href="../../Sidekick_base__Base_types/Term/index.html#module-Map">Sidekick_base__.Base_types.Term.Map</a>.t</span>;</code></td></tr><tr id="type-t.funs" class="anchored"><td class="def field"><a href="#type-t.funs" class="anchor"></a><code>funs : <span><a href="Fun_interpretation/index.html#type-t">Fun_interpretation.t</a> <a href="../../Sidekick_base__Base_types/Fun/index.html#module-Map">Sidekick_base__.Base_types.Fun.Map</a>.t</span>;</code></td></tr></table><code>}</code></dt><dd><p>Model</p></dd></dl><dl><dt class="spec value" id="val-empty"><a href="#val-empty" class="anchor"></a><code><span class="keyword">val</span> empty : <a href="index.html#type-t">t</a></code></dt><dd><p>Empty model</p></dd></dl><dl><dt class="spec value" id="val-add"><a href="#val-add" class="anchor"></a><code><span class="keyword">val</span> add : <a href="../Base_types/Term/index.html#type-t">Base_types.Term.t</a> <span>&#45;&gt;</span> <a href="../Base_types/Value/index.html#type-t">Base_types.Value.t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-mem"><a href="#val-mem" class="anchor"></a><code><span class="keyword">val</span> mem : <a href="../Base_types/Term/index.html#type-t">Base_types.Term.t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-find"><a href="#val-find" class="anchor"></a><code><span class="keyword">val</span> find : <a href="../Base_types/Term/index.html#type-t">Base_types.Term.t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <span><a href="../Base_types/Value/index.html#type-t">Base_types.Value.t</a> option</span></code></dt><dt class="spec value" id="val-merge"><a href="#val-merge" class="anchor"></a><code><span class="keyword">val</span> merge : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-pp"><a href="#val-pp" class="anchor"></a><code><span class="keyword">val</span> pp : <span><a href="index.html#type-t">t</a> CCFormat.printer</span></code></dt><dt class="spec value" id="val-eval"><a href="#val-eval" class="anchor"></a><code><span class="keyword">val</span> eval : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="../Base_types/Term/index.html#type-t">Base_types.Term.t</a> <span>&#45;&gt;</span> <span><a href="../Base_types/Value/index.html#type-t">Base_types.Value.t</a> option</span></code></dt><dd><p><code>eval m t</code> tries to evaluate term <code>t</code> in the model. If it succeeds, the value is returned, otherwise <code>None</code> is.</p></dd></dl></div></body></html>