<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Dom (libabsolute.Libabsolute.Dom)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../odoc.support/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">libabsolute</a> &#x00BB; <a href="../index.html">Libabsolute</a> &#x00BB; Dom</nav><header class="odoc-preamble"><h1>Module <code><span>Libabsolute.Dom</span></code></h1><p>This module defines the different kinds of definition domains of variables</p></header><nav class="odoc-toc"><ul><li><a href="#constructors">Constructors</a></li><li><a href="#predicates">Predicates</a></li><li><a href="#operations">Operations</a></li><li><a href="#printing">Printing</a></li></ul></nav><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> t</span><span> = </span></code><ol><li id="type-t.Finite" class="def variant constructor anchored"><a href="#type-t.Finite" class="anchor"></a><code><span>| </span><span><span class="constructor">Finite</span> <span class="keyword">of</span> <a href="../Q/index.html#type-t">Q.t</a> * <a href="../Q/index.html#type-t">Q.t</a></span></code><div class="def-doc"><span class="comment-delim">(*</span><p>[a;b]</p><span class="comment-delim">*)</span></div></li><li id="type-t.Minf" class="def variant constructor anchored"><a href="#type-t.Minf" class="anchor"></a><code><span>| </span><span><span class="constructor">Minf</span> <span class="keyword">of</span> <a href="../Q/index.html#type-t">Q.t</a></span></code><div class="def-doc"><span class="comment-delim">(*</span><p>]-oo; a]</p><span class="comment-delim">*)</span></div></li><li id="type-t.Inf" class="def variant constructor anchored"><a href="#type-t.Inf" class="anchor"></a><code><span>| </span><span><span class="constructor">Inf</span> <span class="keyword">of</span> <a href="../Q/index.html#type-t">Q.t</a></span></code><div class="def-doc"><span class="comment-delim">(*</span><p>[a; +oo[</p><span class="comment-delim">*)</span></div></li><li id="type-t.Set" class="def variant constructor anchored"><a href="#type-t.Set" class="anchor"></a><code><span>| </span><span><span class="constructor">Set</span> <span class="keyword">of</span> <span><a href="../Q/index.html#type-t">Q.t</a> list</span></span></code><div class="def-doc"><span class="comment-delim">(*</span><p>{x1; x2; ...; xn}</p><span class="comment-delim">*)</span></div></li><li id="type-t.Top" class="def variant constructor anchored"><a href="#type-t.Top" class="anchor"></a><code><span>| </span><span><span class="constructor">Top</span></span></code><div class="def-doc"><span class="comment-delim">(*</span><p>]-oo; +oo[</p><span class="comment-delim">*)</span></div></li></ol></div><div class="spec-doc"><p>main type</p></div></div><h2 id="constructors"><a href="#constructors" class="anchor"></a>Constructors</h2><div class="odoc-spec"><div class="spec value anchored" id="val-interval"><a href="#val-interval" class="anchor"></a><code><span><span class="keyword">val</span> interval : <span><a href="../Q/index.html#type-t">Q.t</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="../Q/index.html#type-t">Q.t</a> <span class="arrow">&#45;&gt;</span></span> <a href="#type-t">t</a></span></code></div><div class="spec-doc"><p>[a;b]</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_ints"><a href="#val-of_ints" class="anchor"></a><code><span><span class="keyword">val</span> of_ints : <span>int <span class="arrow">&#45;&gt;</span></span> <span>int <span class="arrow">&#45;&gt;</span></span> <a href="#type-t">t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_floats"><a href="#val-of_floats" class="anchor"></a><code><span><span class="keyword">val</span> of_floats : <span>float <span class="arrow">&#45;&gt;</span></span> <span>float <span class="arrow">&#45;&gt;</span></span> <a href="#type-t">t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-inf"><a href="#val-inf" class="anchor"></a><code><span><span class="keyword">val</span> inf : <span><a href="../Q/index.html#type-t">Q.t</a> <span class="arrow">&#45;&gt;</span></span> <a href="#type-t">t</a></span></code></div><div class="spec-doc"><p>semi-open interval : [x;+oo[</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-set"><a href="#val-set" class="anchor"></a><code><span><span class="keyword">val</span> set : <span><span><a href="../Q/index.html#type-t">Q.t</a> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="#type-t">t</a></span></code></div><div class="spec-doc"><p>finite sets of values {x1; x2; ...; xn}</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-minf"><a href="#val-minf" class="anchor"></a><code><span><span class="keyword">val</span> minf : <span><a href="../Q/index.html#type-t">Q.t</a> <span class="arrow">&#45;&gt;</span></span> <a href="#type-t">t</a></span></code></div><div class="spec-doc"><p>semi-open interval : ]-oo;x]</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-top"><a href="#val-top" class="anchor"></a><code><span><span class="keyword">val</span> top : <a href="#type-t">t</a></span></code></div><div class="spec-doc"><p>]-oo;+oo[</p></div></div><h2 id="predicates"><a href="#predicates" class="anchor"></a>Predicates</h2><div class="odoc-spec"><div class="spec value anchored" id="val-belong"><a href="#val-belong" class="anchor"></a><code><span><span class="keyword">val</span> belong : <span><a href="../Q/index.html#type-t">Q.t</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="#type-t">t</a> <span class="arrow">&#45;&gt;</span></span> bool</span></code></div><div class="spec-doc"><p>checks if a given rational belongs to a domain</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-is_bounded"><a href="#val-is_bounded" class="anchor"></a><code><span><span class="keyword">val</span> is_bounded : <span><a href="#type-t">t</a> <span class="arrow">&#45;&gt;</span></span> bool</span></code></div></div><h2 id="operations"><a href="#operations" class="anchor"></a>Operations</h2><p>Given a variable name <code>v</code> and a domain <code>d</code>, builds the weakest constraint that <code>v</code> should respect to be in <code>d</code>.</p><div class="odoc-spec"><div class="spec value anchored" id="val-to_constraint"><a href="#val-to_constraint" class="anchor"></a><code><span><span class="keyword">val</span> to_constraint : <span>string <span class="arrow">&#45;&gt;</span></span> <span><a href="#type-t">t</a> <span class="arrow">&#45;&gt;</span></span> <a href="../Constraint/index.html#type-t">Constraint.t</a></span></code></div><div class="spec-doc"><p>Given a variable name <code>v</code> and a domain <code>d</code>, builds the weakest constraint that <code>v</code> should respect to be in <code>d</code>.</p></div></div><h2 id="printing"><a href="#printing" class="anchor"></a>Printing</h2><div class="odoc-spec"><div class="spec value anchored" id="val-print"><a href="#val-print" class="anchor"></a><code><span><span class="keyword">val</span> print : <span><span class="xref-unresolved">Stdlib</span>.Format.formatter <span class="arrow">&#45;&gt;</span></span> <span><a href="#type-t">t</a> <span class="arrow">&#45;&gt;</span></span> unit</span></code></div><div class="spec-doc"><p>printer</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-to_string"><a href="#val-to_string" class="anchor"></a><code><span><span class="keyword">val</span> to_string : <span><a href="#type-t">t</a> <span class="arrow">&#45;&gt;</span></span> string</span></code></div><div class="spec-doc"><p>Conversion to a string</p></div></div></div></body></html>
