sidekick/dev/sidekick-base/Sidekick_base/Model/Fun_interpretation/index.html
2021-12-07 15:22:59 +00:00

2 lines
No EOL
3.3 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>Fun_interpretation (sidekick-base.Sidekick_base.Model.Fun_interpretation)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.0.2"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../../../index.html">sidekick-base</a> &#x00BB; <a href="../../index.html">Sidekick_base</a> &#x00BB; <a href="../index.html">Model</a> &#x00BB; Fun_interpretation</nav><header class="odoc-preamble"><h1>Module <code><span>Model.Fun_interpretation</span></code></h1><p>Model for function symbols.</p><p>Function models are a finite map from argument tuples to values, accompanied with a default value that every other argument tuples map to. In other words, it's of the form:</p><p><code>lambda x y. if (x=vx1,y=vy1) then v1 else if … then … else vdefault</code></p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type" id="type-t" class="anchored"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> t</span><span> = </span><span>{</span></code><table><tr id="type-t.cases" class="anchored"><td class="def record field"><a href="#type-t.cases" class="anchor"></a><code><span>cases : <span><a href="../../Base_types/Value/index.html#type-t">Base_types.Value.t</a> <a href="../Val_map/index.html#type-t">Val_map.t</a></span>;</span></code></td></tr><tr id="type-t.default" class="anchored"><td class="def record field"><a href="#type-t.default" class="anchor"></a><code><span>default : <a href="../../Base_types/Value/index.html#type-t">Base_types.Value.t</a>;</span></code></td></tr></table><code><span>}</span></code></div></div><div class="odoc-spec"><div class="spec value" id="val-default" class="anchored"><a href="#val-default" class="anchor"></a><code><span><span class="keyword">val</span> default : <span><a href="#type-t">t</a> <span class="arrow">&#45;&gt;</span></span> <a href="../../Base_types/Value/index.html#type-t">Base_types.Value.t</a></span></code></div></div><div class="odoc-spec"><div class="spec value" id="val-cases_list" class="anchored"><a href="#val-cases_list" class="anchor"></a><code><span><span class="keyword">val</span> cases_list : <span><a href="#type-t">t</a> <span class="arrow">&#45;&gt;</span></span> <span><span>(<span><a href="../../Base_types/Value/index.html#type-t">Base_types.Value.t</a> list</span> * <a href="../../Base_types/Value/index.html#type-t">Base_types.Value.t</a>)</span> list</span></span></code></div></div><div class="odoc-spec"><div class="spec value" id="val-make" class="anchored"><a href="#val-make" class="anchor"></a><code><span><span class="keyword">val</span> make : <span>default:<a href="../../Base_types/Value/index.html#type-t">Base_types.Value.t</a> <span class="arrow">&#45;&gt;</span></span> <span><span><span>(<span><a href="../../Base_types/Value/index.html#type-t">Base_types.Value.t</a> list</span> * <a href="../../Base_types/Value/index.html#type-t">Base_types.Value.t</a>)</span> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="#type-t">t</a></span></code></div></div></div></body></html>