|
| 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 2 | +<html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | + |
| 4 | +<head> |
| 5 | +<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
| 6 | +<link href="coqdoc.css" rel="stylesheet" type="text/css" /> |
| 7 | +<link href="coqdocjs.css" rel="stylesheet" type="text/css"/> |
| 8 | +</head> |
| 9 | + |
| 10 | +<body onload="document.getElementById('content').focus()"> |
| 11 | + <div id="header"> |
| 12 | + <span class="left"> |
| 13 | + <span class="modulename"> <script> document.write(document.title) </script> </span> |
| 14 | + </span> |
| 15 | + |
| 16 | + <span class="button" id="toggle-proofs"></span> |
| 17 | + |
| 18 | + <span class="right"> |
| 19 | + <a href="../">Project Page</a> |
| 20 | + <a href="./indexpage.html"> Index </a> |
| 21 | + <a href="./toc.html"> Table of Contents </a> |
| 22 | + </span> |
| 23 | +</div> |
| 24 | + <div id="content" tabindex="-1" onblur="document.getElementById('content').focus()"> |
| 25 | + <div id="main"> |
| 26 | +<h1 class="libtitle">D.Dot.examples.hoas_ex_utils</h1> |
| 27 | + |
| 28 | +<div class="code"> |
| 29 | +</div> |
| 30 | + |
| 31 | +<div class="doc"> |
| 32 | +<a name="lab107"></a><h1 class="section">Infrastructure for examples of DOT programs that uses HOAS.</h1> |
| 33 | + |
| 34 | +</div> |
| 35 | +<div class="code"> |
| 36 | +<span class="comment">(*<br/> |
| 37 | +This infrastructure cannot be placed in <span class="inlinecode"><span class="id" title="var">ex_utils.v</span></span> because <span class="inlinecode"><span class="id" title="var">hoas.v</span></span> imports<br/> |
| 38 | +<span class="inlinecode"><span class="id" title="var">hoas.v</span></span>.<br/> |
| 39 | +*)</span><br/> |
| 40 | +<span class="id" title="keyword">From</span> <span class="id" title="var">stdpp</span> <span class="id" title="keyword">Require</span> <span class="id" title="keyword">Import</span> <a class="idref" href="https://plv.mpi-sws.org/coqdoc/stdpp//stdpp.strings.html#"><span class="id" title="library">strings</span></a>.<br/> |
| 41 | +<span class="id" title="keyword">From</span> <span class="id" title="var">D</span> <span class="id" title="keyword">Require</span> <span class="id" title="keyword">Import</span> <a class="idref" href="D.tactics.html#"><span class="id" title="library">tactics</span></a>.<br/> |
| 42 | +<span class="id" title="keyword">From</span> <span class="id" title="var">D.Dot</span> <span class="id" title="keyword">Require</span> <span class="id" title="keyword">Import</span> <a class="idref" href="D.Dot.syn.syn.html#"><span class="id" title="library">syn</span></a> <a class="idref" href="D.Dot.examples.ex_utils.html#"><span class="id" title="library">ex_utils</span></a>.<br/> |
| 43 | +<span class="id" title="keyword">From</span> <span class="id" title="var">D.Dot</span> <span class="id" title="keyword">Require</span> <span class="id" title="keyword">Export</span> <a class="idref" href="D.Dot.examples.hoas.html#"><span class="id" title="library">hoas</span></a>.<br/> |
| 44 | + |
| 45 | +<br/> |
| 46 | +</div> |
| 47 | + |
| 48 | +<div class="doc"> |
| 49 | +<a name="lab108"></a><h1 class="section">Infinite loops</h1> |
| 50 | + |
| 51 | +</div> |
| 52 | +<div class="code"> |
| 53 | +<span class="id" title="keyword">Module</span> <a name="loopTms"><span class="id" title="module">loopTms</span></a>.<br/> |
| 54 | +<span class="id" title="keyword">Import</span> <span class="id" title="var">hoasNotation</span>.<br/> |
| 55 | + |
| 56 | +<br/> |
| 57 | +<span class="id" title="keyword">Definition</span> <a name="loopTms.hloopDefV"><span class="id" title="definition">hloopDefV</span></a> : <a class="idref" href="D.Dot.examples.hoas.html#hvl"><span class="id" title="definition">hvl</span></a> := <a class="idref" href="D.Dot.examples.hoas.html#b765f911d00e667273c5726a29666d70"><span class="id" title="notation">ν</span></a><a class="idref" href="D.Dot.examples.hoas.html#b765f911d00e667273c5726a29666d70"><span class="id" title="notation">:</span></a> <span class="id" title="var">self</span><a class="idref" href="D.Dot.examples.hoas.html#b765f911d00e667273c5726a29666d70"><span class="id" title="notation">,</span></a> <a class="idref" href="D.Dot.examples.hoas.html#86c47766ea066839c638765619259531"><span class="id" title="notation">{@</span></a><br/> |
| 58 | + <a class="idref" href="D.Dot.examples.hoas.html#7a2ccd3039e0d6e79be6ed27d574ba71"><span class="id" title="notation">val</span></a> "loop" <a class="idref" href="D.Dot.examples.hoas.html#7a2ccd3039e0d6e79be6ed27d574ba71"><span class="id" title="notation">=</span></a> <a class="idref" href="D.Dot.examples.hoas.html#77e880f8e16415230d458d3dd9dd7d47"><span class="id" title="notation">λ</span></a><a class="idref" href="D.Dot.examples.hoas.html#77e880f8e16415230d458d3dd9dd7d47"><span class="id" title="notation">:</span></a> <span class="id" title="var">w</span><a class="idref" href="D.Dot.examples.hoas.html#77e880f8e16415230d458d3dd9dd7d47"><span class="id" title="notation">,</span></a> <a class="idref" href="D.Dot.examples.hoas_ex_utils.html#self"><span class="id" title="variable">self</span></a> <a class="idref" href="D.Dot.examples.hoas.html#c85e36e9b233cbdeb3214538b1e4a566"><span class="id" title="notation">@:</span></a> "loop" <a class="idref" href="D.Dot.examples.hoas.html#5dc6e48cac7b4e60846f98b2731a8cef"><span class="id" title="notation">$:</span></a> <a class="idref" href="D.Dot.examples.hoas_ex_utils.html#w"><span class="id" title="variable">w</span></a><br/> |
| 59 | + <span class="comment">(* λ w, self.loop w. *)</span><br/> |
| 60 | +<a class="idref" href="D.Dot.examples.hoas.html#86c47766ea066839c638765619259531"><span class="id" title="notation">}</span></a>.<br/> |
| 61 | +<span class="id" title="keyword">Definition</span> <a name="loopTms.hloopDefT"><span class="id" title="definition">hloopDefT</span></a> : <a class="idref" href="D.Dot.examples.hoas.html#hty"><span class="id" title="definition">hty</span></a> := <a class="idref" href="D.Dot.examples.hoas.html#dac71af5b2f1b5b356d8450427b7ece1"><span class="id" title="notation">val</span></a> "loop" <a class="idref" href="D.Dot.examples.hoas.html#dac71af5b2f1b5b356d8450427b7ece1"><span class="id" title="notation">:</span></a> <a class="idref" href="https://plv.mpi-sws.org/coqdoc/stdpp//stdpp.base.html#6c0a583aa94fbbce6fcf0f655cf1cbb7"><span class="id" title="notation">⊤</span></a> <a class="idref" href="D.Dot.examples.hoas.html#d71d9a5ce88ae18071782d76f145573c"><span class="id" title="notation">→:</span></a> <a class="idref" href="https://plv.mpi-sws.org/coqdoc/stdpp//stdpp.base.html#49af51f22ba6081c5259453e85aa12b3"><span class="id" title="notation">⊥</span></a>.<br/> |
| 62 | +<span class="id" title="keyword">Definition</span> <a name="loopTms.hloopDefTConcr"><span class="id" title="definition">hloopDefTConcr</span></a> : <a class="idref" href="D.Dot.examples.hoas.html#hty"><span class="id" title="definition">hty</span></a> := <a class="idref" href="D.Dot.examples.hoas.html#eebc01a27482beba2e49b11948bab893"><span class="id" title="notation">μ</span></a><a class="idref" href="D.Dot.examples.hoas.html#eebc01a27482beba2e49b11948bab893"><span class="id" title="notation">:</span></a> <span class="id" title="var">_</span><a class="idref" href="D.Dot.examples.hoas.html#eebc01a27482beba2e49b11948bab893"><span class="id" title="notation">,</span></a> <a class="idref" href="D.Dot.examples.hoas.html#38f74ce8ac90b11a758c53061ae545f8"><span class="id" title="notation">{@</span></a> <a class="idref" href="D.Dot.examples.hoas_ex_utils.html#loopTms.hloopDefT"><span class="id" title="definition">hloopDefT</span></a> <a class="idref" href="D.Dot.examples.hoas.html#38f74ce8ac90b11a758c53061ae545f8"><span class="id" title="notation">}</span></a>.<br/> |
| 63 | + |
| 64 | +<br/> |
| 65 | +<span class="id" title="keyword">Definition</span> <a name="loopTms.hloopFunTm"><span class="id" title="definition">hloopFunTm</span></a> : <a class="idref" href="D.Dot.examples.hoas.html#htm"><span class="id" title="definition">htm</span></a> := <a class="idref" href="D.Dot.examples.hoas_ex_utils.html#loopTms.hloopDefV"><span class="id" title="definition">hloopDefV</span></a> <a class="idref" href="D.Dot.examples.hoas.html#c85e36e9b233cbdeb3214538b1e4a566"><span class="id" title="notation">@:</span></a> "loop".<br/> |
| 66 | +<span class="id" title="keyword">Definition</span> <a name="loopTms.hloopTm"><span class="id" title="definition">hloopTm</span></a> : <a class="idref" href="D.Dot.examples.hoas.html#htm"><span class="id" title="definition">htm</span></a> := <a class="idref" href="D.Dot.examples.hoas_ex_utils.html#loopTms.hloopFunTm"><span class="id" title="definition">hloopFunTm</span></a> <a class="idref" href="D.Dot.examples.hoas.html#5dc6e48cac7b4e60846f98b2731a8cef"><span class="id" title="notation">$:</span></a> <a class="idref" href="D.Dot.examples.hoas.html#syn.hvint"><span class="id" title="abbreviation">hvint</span></a> 0.<br/> |
| 67 | + |
| 68 | +<br/> |
| 69 | +<span class="id" title="keyword">End</span> <a class="idref" href="D.Dot.examples.hoas_ex_utils.html#loopTms"><span class="id" title="module">loopTms</span></a>.<br/> |
| 70 | +</div> |
| 71 | +</div> |
| 72 | +<div id="footer"> |
| 73 | + Generated by <a href="http://coq.inria.fr/">coqdoc</a> and improved with <a href="https://github.com/tebbi/coqdocjs">CoqdocJS</a> |
| 74 | +</div> |
| 75 | +</div> |
| 76 | +</body> |
| 77 | + |
| 78 | +</html> |
0 commit comments