Skip to content

Commit c14cb98

Browse files
committed
Deploying to gh-pages from @ 5450acf 🚀
1 parent db3535b commit c14cb98

File tree

3 files changed

+99
-127
lines changed

3 files changed

+99
-127
lines changed

next/API/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<div class="by-name">
1212
<h2>OCaml package documentation</h2>
1313
<ol>
14-
<li><a href="alt-ergo/index.html">alt-ergo</a> <span class="version">d7bac42</span></li>
15-
<li><a href="alt-ergo-lib/index.html">alt-ergo-lib</a> <span class="version">d7bac42</span></li>
14+
<li><a href="alt-ergo/index.html">alt-ergo</a> <span class="version">5450acf</span></li>
15+
<li><a href="alt-ergo-lib/index.html">alt-ergo-lib</a> <span class="version">5450acf</span></li>
1616
</ol>
1717
</div>
1818
</main>

next/Alt_ergo_native/02_types/02_01_builtin.html

Lines changed: 96 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -180,44 +180,37 @@ <h2>Polymorphic functional arrays<a class="headerlink" href="#polymorphic-functi
180180
<h1>Built-in operators<a class="headerlink" href="#built-in-operators" title="Permalink to this heading"></a></h1>
181181
<section id="logical-operators">
182182
<h2>Logical operators<a class="headerlink" href="#logical-operators" title="Permalink to this heading"></a></h2>
183-
<table border="1" class="docutils">
183+
<table class="docutils align-default">
184184
<thead>
185-
<tr>
186-
<th>Operation</th>
187-
<th>Notation</th>
188-
<th>Type(s)</th>
185+
<tr class="row-odd"><th class="head"><p>Operation</p></th>
186+
<th class="head"><p>Notation</p></th>
187+
<th class="head"><p>Type(s)</p></th>
189188
</tr>
190189
</thead>
191190
<tbody>
192-
<tr>
193-
<td>Negation</td>
194-
<td><code>not p</code></td>
195-
<td><code>bool -&gt; bool</code></td>
191+
<tr class="row-even"><td><p>Negation</p></td>
192+
<td><p><code class="docutils literal notranslate"><span class="pre">not</span> <span class="pre">p</span></code></p></td>
193+
<td><p><code class="docutils literal notranslate"><span class="pre">bool</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code></p></td>
196194
</tr>
197-
<tr>
198-
<td>Conjonction</td>
199-
<td><code>p and q</code></td>
200-
<td><code>bool, bool -&gt; bool</code></td>
195+
<tr class="row-odd"><td><p>Conjonction</p></td>
196+
<td><p><code class="docutils literal notranslate"><span class="pre">p</span> <span class="pre">and</span> <span class="pre">q</span></code></p></td>
197+
<td><p><code class="docutils literal notranslate"><span class="pre">bool,</span> <span class="pre">bool</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code></p></td>
201198
</tr>
202-
<tr>
203-
<td>Disjonction</td>
204-
<td><code>p or q</code></td>
205-
<td><code>bool, bool -&gt; bool</code></td>
199+
<tr class="row-even"><td><p>Disjonction</p></td>
200+
<td><p><code class="docutils literal notranslate"><span class="pre">p</span> <span class="pre">or</span> <span class="pre">q</span></code></p></td>
201+
<td><p><code class="docutils literal notranslate"><span class="pre">bool,</span> <span class="pre">bool</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code></p></td>
206202
</tr>
207-
<tr>
208-
<td>Implication</td>
209-
<td><code>p -&gt; q</code></td>
210-
<td><code>bool, bool -&gt; bool</code></td>
203+
<tr class="row-odd"><td><p>Implication</p></td>
204+
<td><p><code class="docutils literal notranslate"><span class="pre">p</span> <span class="pre">-&gt;</span> <span class="pre">q</span></code></p></td>
205+
<td><p><code class="docutils literal notranslate"><span class="pre">bool,</span> <span class="pre">bool</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code></p></td>
211206
</tr>
212-
<tr>
213-
<td>Equivalence</td>
214-
<td><code>p &lt;-&gt; q</code></td>
215-
<td><code>bool, bool -&gt; bool</code></td>
207+
<tr class="row-even"><td><p>Equivalence</p></td>
208+
<td><p><code class="docutils literal notranslate"><span class="pre">p</span> <span class="pre">&lt;-&gt;</span> <span class="pre">q</span></code></p></td>
209+
<td><p><code class="docutils literal notranslate"><span class="pre">bool,</span> <span class="pre">bool</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code></p></td>
216210
</tr>
217-
<tr>
218-
<td>Exclusive or</td>
219-
<td><code>p xor q</code></td>
220-
<td><code>bool, bool -&gt; bool</code></td>
211+
<tr class="row-odd"><td><p>Exclusive or</p></td>
212+
<td><p><code class="docutils literal notranslate"><span class="pre">p</span> <span class="pre">xor</span> <span class="pre">q</span></code></p></td>
213+
<td><p><code class="docutils literal notranslate"><span class="pre">bool,</span> <span class="pre">bool</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code></p></td>
221214
</tr>
222215
</tbody>
223216
</table>
@@ -260,111 +253,94 @@ <h3>Examples<a class="headerlink" href="#examples" title="Permalink to this head
260253
</section>
261254
<section id="numeric-operators">
262255
<h2>Numeric operators<a class="headerlink" href="#numeric-operators" title="Permalink to this heading"></a></h2>
263-
<table border="1" class="docutils">
256+
<table class="docutils align-default">
264257
<thead>
265-
<tr>
266-
<th>Operation</th>
267-
<th>Notation</th>
268-
<th>Type(s)</th>
258+
<tr class="row-odd"><th class="head"><p>Operation</p></th>
259+
<th class="head"><p>Notation</p></th>
260+
<th class="head"><p>Type(s)</p></th>
269261
</tr>
270262
</thead>
271263
<tbody>
272-
<tr>
273-
<td>Unary negative</td>
274-
<td><code>-x</code></td>
275-
<td><code>int -&gt; int</code>, <br><code>real -&gt; real</code></td>
264+
<tr class="row-even"><td><p>Unary negative</p></td>
265+
<td><p><code class="docutils literal notranslate"><span class="pre">-x</span></code></p></td>
266+
<td><p><code class="docutils literal notranslate"><span class="pre">int</span> <span class="pre">-&gt;</span> <span class="pre">int</span></code>, <br><code class="docutils literal notranslate"><span class="pre">real</span> <span class="pre">-&gt;</span> <span class="pre">real</span></code></p></td>
276267
</tr>
277-
<tr>
278-
<td>Addition</td>
279-
<td><code>x + y</code></td>
280-
<td><code>int, int -&gt; int</code>, <br><code>real, real -&gt; real</code></td>
268+
<tr class="row-odd"><td><p>Addition</p></td>
269+
<td><p><code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">+</span> <span class="pre">y</span></code></p></td>
270+
<td><p><code class="docutils literal notranslate"><span class="pre">int,</span> <span class="pre">int</span> <span class="pre">-&gt;</span> <span class="pre">int</span></code>, <br><code class="docutils literal notranslate"><span class="pre">real,</span> <span class="pre">real</span> <span class="pre">-&gt;</span> <span class="pre">real</span></code></p></td>
281271
</tr>
282-
<tr>
283-
<td>Subtraction</td>
284-
<td><code>x - y</code></td>
285-
<td><code>int, int -&gt; int</code>, <br><code>real, real -&gt; real</code></td>
272+
<tr class="row-even"><td><p>Subtraction</p></td>
273+
<td><p><code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">-</span> <span class="pre">y</span></code></p></td>
274+
<td><p><code class="docutils literal notranslate"><span class="pre">int,</span> <span class="pre">int</span> <span class="pre">-&gt;</span> <span class="pre">int</span></code>, <br><code class="docutils literal notranslate"><span class="pre">real,</span> <span class="pre">real</span> <span class="pre">-&gt;</span> <span class="pre">real</span></code></p></td>
286275
</tr>
287-
<tr>
288-
<td>Multiplication</td>
289-
<td><code>x * y</code></td>
290-
<td><code>int, int -&gt; int</code>, <br><code>real, real -&gt; real</code></td>
276+
<tr class="row-odd"><td><p>Multiplication</p></td>
277+
<td><p><code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">*</span> <span class="pre">y</span></code></p></td>
278+
<td><p><code class="docutils literal notranslate"><span class="pre">int,</span> <span class="pre">int</span> <span class="pre">-&gt;</span> <span class="pre">int</span></code>, <br><code class="docutils literal notranslate"><span class="pre">real,</span> <span class="pre">real</span> <span class="pre">-&gt;</span> <span class="pre">real</span></code></p></td>
291279
</tr>
292-
<tr>
293-
<td>Division</td>
294-
<td><code>x / y</code></td>
295-
<td><code>int, int -&gt; int</code>, <br><code>real, real -&gt; real</code></td>
280+
<tr class="row-even"><td><p>Division</p></td>
281+
<td><p><code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">/</span> <span class="pre">y</span></code></p></td>
282+
<td><p><code class="docutils literal notranslate"><span class="pre">int,</span> <span class="pre">int</span> <span class="pre">-&gt;</span> <span class="pre">int</span></code>, <br><code class="docutils literal notranslate"><span class="pre">real,</span> <span class="pre">real</span> <span class="pre">-&gt;</span> <span class="pre">real</span></code></p></td>
296283
</tr>
297-
<tr>
298-
<td>Remainder</td>
299-
<td><code>x % y</code></td>
300-
<td><code>int, int -&gt; int</code></td>
284+
<tr class="row-odd"><td><p>Remainder</p></td>
285+
<td><p><code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">%</span> <span class="pre">y</span></code></p></td>
286+
<td><p><code class="docutils literal notranslate"><span class="pre">int,</span> <span class="pre">int</span> <span class="pre">-&gt;</span> <span class="pre">int</span></code></p></td>
301287
</tr>
302-
<tr>
303-
<td>Exponentiation (<code>int</code>)</td>
304-
<td><code>x ** y</code></td>
305-
<td><code>int, int -&gt; int</code></td>
288+
<tr class="row-even"><td><p>Exponentiation (<code class="docutils literal notranslate"><span class="pre">int</span></code>)</p></td>
289+
<td><p><code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">**</span> <span class="pre">y</span></code></p></td>
290+
<td><p><code class="docutils literal notranslate"><span class="pre">int,</span> <span class="pre">int</span> <span class="pre">-&gt;</span> <span class="pre">int</span></code></p></td>
306291
</tr>
307-
<tr>
308-
<td>Exponentiation (<code>real</code>)</td>
309-
<td><code>x **. y</code></td>
310-
<td><code>real, real -&gt; real</code>, <br><code>real, int -&gt; real</code>, <br><code>int, real -&gt; real</code>, <br><code>int, int -&gt; real</code></td>
292+
<tr class="row-odd"><td><p>Exponentiation (<code class="docutils literal notranslate"><span class="pre">real</span></code>)</p></td>
293+
<td><p><code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">**.</span> <span class="pre">y</span></code></p></td>
294+
<td><p><code class="docutils literal notranslate"><span class="pre">real,</span> <span class="pre">real</span> <span class="pre">-&gt;</span> <span class="pre">real</span></code>, <br><code class="docutils literal notranslate"><span class="pre">real,</span> <span class="pre">int</span> <span class="pre">-&gt;</span> <span class="pre">real</span></code>, <br><code class="docutils literal notranslate"><span class="pre">int,</span> <span class="pre">real</span> <span class="pre">-&gt;</span> <span class="pre">real</span></code>, <br><code class="docutils literal notranslate"><span class="pre">int,</span> <span class="pre">int</span> <span class="pre">-&gt;</span> <span class="pre">real</span></code></p></td>
311295
</tr>
312296
</tbody>
313297
</table>
314298
</section>
315299
<section id="comparisons">
316300
<h2>Comparisons<a class="headerlink" href="#comparisons" title="Permalink to this heading"></a></h2>
317-
<table border="1" class="docutils">
301+
<table class="docutils align-default">
318302
<thead>
319-
<tr>
320-
<th>Operation</th>
321-
<th>Notation</th>
322-
<th>Type(s)</th>
323-
<th>Notes</th>
303+
<tr class="row-odd"><th class="head"><p>Operation</p></th>
304+
<th class="head"><p>Notation</p></th>
305+
<th class="head"><p>Type(s)</p></th>
306+
<th class="head"><p>Notes</p></th>
324307
</tr>
325308
</thead>
326309
<tbody>
327-
<tr>
328-
<td>Equality</td>
329-
<td><code>x = y</code></td>
330-
<td><code>'a, 'a -&gt; bool</code></td>
331-
<td><code>'a</code> can be any type</td>
310+
<tr class="row-even"><td><p>Equality</p></td>
311+
<td><p><code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">=</span> <span class="pre">y</span></code></p></td>
312+
<td><p><code class="docutils literal notranslate"><span class="pre">'a,</span> <span class="pre">'a</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code></p></td>
313+
<td><p><code class="docutils literal notranslate"><span class="pre">'a</span></code> can be any type</p></td>
332314
</tr>
333-
<tr>
334-
<td>Inequality</td>
335-
<td><code>x &lt;&gt; y</code></td>
336-
<td><code>'a, 'a -&gt; bool</code></td>
337-
<td>Syntactic sugar for <code>not(x = y)</code></td>
315+
<tr class="row-odd"><td><p>Inequality</p></td>
316+
<td><p><code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">&lt;&gt;</span> <span class="pre">y</span></code></p></td>
317+
<td><p><code class="docutils literal notranslate"><span class="pre">'a,</span> <span class="pre">'a</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code></p></td>
318+
<td><p>Syntactic sugar for <code class="docutils literal notranslate"><span class="pre">not(x</span> <span class="pre">=</span> <span class="pre">y)</span></code></p></td>
338319
</tr>
339-
<tr>
340-
<td>All distinct</td>
341-
<td><code>distinct(x1,x2,x3, ..., xn)</code></td>
342-
<td><code>'a, 'a, ..., 'a -&gt; bool</code></td>
343-
<td>Can be used on any number of operands. <br> Syntactic sugar for <code>(x1&lt;&gt;x2) and ... and (x1&lt;&gt;xn) and (x2&lt;&gt;x3) and ...</code></td>
320+
<tr class="row-even"><td><p>All distinct</p></td>
321+
<td><p><code class="docutils literal notranslate"><span class="pre">distinct(x1,x2,x3,</span> <span class="pre">...,</span> <span class="pre">xn)</span></code></p></td>
322+
<td><p><code class="docutils literal notranslate"><span class="pre">'a,</span> <span class="pre">'a,</span> <span class="pre">...,</span> <span class="pre">'a</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code></p></td>
323+
<td><p>Can be used on any number of operands. <br> Syntactic sugar for <code class="docutils literal notranslate"><span class="pre">(x1&lt;&gt;x2)</span> <span class="pre">and</span> <span class="pre">...</span> <span class="pre">and</span> <span class="pre">(x1&lt;&gt;xn)</span> <span class="pre">and</span> <span class="pre">(x2&lt;&gt;x3)</span> <span class="pre">and</span> <span class="pre">...</span></code></p></td>
344324
</tr>
345-
<tr>
346-
<td>Strictly less than</td>
347-
<td><code>x &lt; y</code></td>
348-
<td><code>int, int -&gt; bool</code>, <br><code>real, real -&gt; bool</code></td>
349-
<td></td>
325+
<tr class="row-odd"><td><p>Strictly less than</p></td>
326+
<td><p><code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">&lt;</span> <span class="pre">y</span></code></p></td>
327+
<td><p><code class="docutils literal notranslate"><span class="pre">int,</span> <span class="pre">int</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code>, <br><code class="docutils literal notranslate"><span class="pre">real,</span> <span class="pre">real</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code></p></td>
328+
<td><p></p></td>
350329
</tr>
351-
<tr>
352-
<td>Lesser than or equal to</td>
353-
<td><code>x &lt;= y</code></td>
354-
<td><code>int, int -&gt; bool</code>, <br><code>real, real -&gt; bool</code></td>
355-
<td></td>
330+
<tr class="row-even"><td><p>Lesser than or equal to</p></td>
331+
<td><p><code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">&lt;=</span> <span class="pre">y</span></code></p></td>
332+
<td><p><code class="docutils literal notranslate"><span class="pre">int,</span> <span class="pre">int</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code>, <br><code class="docutils literal notranslate"><span class="pre">real,</span> <span class="pre">real</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code></p></td>
333+
<td><p></p></td>
356334
</tr>
357-
<tr>
358-
<td>Strictly greater than</td>
359-
<td><code>x &gt; y</code></td>
360-
<td><code>int, int -&gt; bool</code>, <br><code>real, real -&gt; bool</code></td>
361-
<td></td>
335+
<tr class="row-odd"><td><p>Strictly greater than</p></td>
336+
<td><p><code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">&gt;</span> <span class="pre">y</span></code></p></td>
337+
<td><p><code class="docutils literal notranslate"><span class="pre">int,</span> <span class="pre">int</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code>, <br><code class="docutils literal notranslate"><span class="pre">real,</span> <span class="pre">real</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code></p></td>
338+
<td><p></p></td>
362339
</tr>
363-
<tr>
364-
<td>Greater than or equal to</td>
365-
<td><code>x &gt;= y</code></td>
366-
<td><code>int, int -&gt; bool</code>, <br><code>real, real -&gt; bool</code></td>
367-
<td></td>
340+
<tr class="row-even"><td><p>Greater than or equal to</p></td>
341+
<td><p><code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">&gt;=</span> <span class="pre">y</span></code></p></td>
342+
<td><p><code class="docutils literal notranslate"><span class="pre">int,</span> <span class="pre">int</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code>, <br><code class="docutils literal notranslate"><span class="pre">real,</span> <span class="pre">real</span> <span class="pre">-&gt;</span> <span class="pre">bool</span></code></p></td>
343+
<td><p></p></td>
368344
</tr>
369345
</tbody>
370346
</table>
@@ -441,29 +417,25 @@ <h2>Bitvectors<a class="headerlink" href="#id2" title="Permalink to this heading
441417
<p>Remember that bitvectors are fixed-size binary words: vectors of <code class="docutils literal notranslate"><span class="pre">0</span></code> and <code class="docutils literal notranslate"><span class="pre">1</span></code>.</p>
442418
<p>There exists a bitvector type <code class="docutils literal notranslate"><span class="pre">bitv[n]</span></code> for each fixed non-zero positive integer <code class="docutils literal notranslate"><span class="pre">n</span></code>. For example, <code class="docutils literal notranslate"><span class="pre">bitv[8]</span></code> is a bitvector.</p>
443419
<p>Note that bitvectors are indexed from right to left.</p>
444-
<table border="1" class="docutils">
420+
<table class="docutils align-default">
445421
<thead>
446-
<tr>
447-
<th>Operation</th>
448-
<th>Notation</th>
449-
<th>Type</th>
422+
<tr class="row-odd"><th class="head"><p>Operation</p></th>
423+
<th class="head"><p>Notation</p></th>
424+
<th class="head"><p>Type</p></th>
450425
</tr>
451426
</thead>
452427
<tbody>
453-
<tr>
454-
<td>Explicit declaration</td>
455-
<td><code>[|&lt;x&gt;|]</code> <br> where <code>&lt;x&gt;</code> is a string of <code>0</code> and <code>1</code> without spaces</td>
456-
<td><code>bitv[&lt;len(x)&gt;]</code></td>
428+
<tr class="row-even"><td><p>Explicit declaration</p></td>
429+
<td><p>`[</p></td>
430+
<td><p><x></p></td>
457431
</tr>
458-
<tr>
459-
<td>Concatenation</td>
460-
<td><code>x @ y</code></td>
461-
<td>bitv[n], bitv[m] -&gt; bitv[n+m]</td>
432+
<tr class="row-odd"><td><p>Concatenation</p></td>
433+
<td><p><code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">&#64;</span> <span class="pre">y</span></code></p></td>
434+
<td><p>bitv[n], bitv[m] -&gt; bitv[n+m]</p></td>
462435
</tr>
463-
<tr>
464-
<td>Extraction of contiguous bits</td>
465-
<td><code>x^{p,q}</code> <br> where 0&lt;=p&lt;=q&lt;len(x)</td>
466-
<td><code>bitv[q-p+1]</code></td>
436+
<tr class="row-even"><td><p>Extraction of contiguous bits</p></td>
437+
<td><p><code class="docutils literal notranslate"><span class="pre">x^{p,q}</span></code> <br> where 0&lt;=p&lt;=q&lt;len(x)</p></td>
438+
<td><p><code class="docutils literal notranslate"><span class="pre">bitv[q-p+1]</span></code></p></td>
467439
</tr>
468440
</tbody>
469441
</table>

next/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)