-r--r--r-- 7503 holtrace-20250703/doc/html/test.html raw
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style type="text/css"> html{overflow-y:scroll;background-color:#505050} body{font-family:"Noto Sans","Droid Sans","DejaVu Sans","Arial",sans-serif;line-height:1.5} tt,code{background-color:#f0f0f0;font-family:"Noto Sans Mono","Droid Sans Mono","DejaVu Sans Mono","Courier New",monospace,sans-serif;font-size:1em;} pre{margin-left:3em} p,ul,ol,blockquote,pre{font-size:1.0em;line-height:1.6} li p{font-size:1.0em} blockquote p{font-size:1.0em} h1{font-size:1.5em} h2{font-size:1.3em} h3{font-size:1.0em} h1 a{text-decoration:none} table{border-collapse:collapse} th,td{border:1px solid black} table a{text-decoration:none} table tr{font-size:1.0em;line-height:1.6em} table tr{font-size:1.0em;line-height:1.5} tbody tr:nth-child(12n+1){background-color:#f0ffff} tbody tr:nth-child(12n+2){background-color:#f0ffff} tbody tr:nth-child(12n+3){background-color:#f0ffff} tbody tr:nth-child(12n+4){background-color:#f0ffff} tbody tr:nth-child(12n+5){background-color:#f0ffff} tbody tr:nth-child(12n+6){background-color:#f0ffff} tbody tr:nth-child(12n+7){background-color:#fffff0} tbody tr:nth-child(12n+8){background-color:#fffff0} tbody tr:nth-child(12n+9){background-color:#fffff0} tbody tr:nth-child(12n+10){background-color:#fffff0} tbody tr:nth-child(12n+11){background-color:#fffff0} tbody tr:nth-child(12n+12){background-color:#fffff0} #headline{display:block;margin:0;padding:0;color:#ffffff;background-color:#505050} #headline .text{font-weight:bold;font-size:1.0em} #headline input{display:none} #nav ul{margin:0;padding:0} #nav li{list-style-type:none;margin:0;padding:0} .navtop{padding-bottom:0.5em;font-weight:bold;font-size:1.0em} .navtop{background-color:#505050;color:#ffffff} #nav .here{background-color:#505050;color:#ffffff} #nav .away{background-color:#505050;color:#ffffff} #nav .away a{text-decoration:none;display:block;color:#ffffff} #nav .away a:hover,.away a:active{text-decoration:underline} #hidemenu{visibility:hidden;display:none;overflow:hidden;position:fixed;top:0;left:0;height:100%;width:100%} .main{padding:5px} .main{background-color:#ffffff} .pagetitle{font-size:1.4em;font-weight:bold} @media only screen and (min-width:512px) { .navtop{padding-top:5px} #headline{top:0;margin:0;width:160px;height:100%;position:fixed;overflow:auto} #headline .noselect{display:none} #headline #nav{visibility:visible;display:block;width:auto;height:auto} .main{margin-left:170px} #headline #hidemenu{visibility:hidden} } @media not screen and (min-width:512px) { #headline .noselect{-webkit-user-select:none;-ms-user-select:none;user-select:none;} #headline #nav #navbot{visibility:hidden;position:fixed;top:0;left:-70%;z-index:2;transition:0.2s;margin:0;padding:0} #headline input:checked ~ #nav #navbot{height:100%;position:fixed;top:0;left:0;visibility:visible;display:block;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;vertical-align:center;font-size:1.0em;width:70%;overflow:auto} #headline input:checked ~ #hidemenu{visibility:visible;display:block;background:black;opacity:0.3;z-index:1} } </style> <title> HOLTrace: Test</title> </head> <body> <label id=headline> <input type=checkbox /> <nav id=nav> <div class=navtop> <span class=noselect>≡</span> HOLTrace</div> <ul id=navbot> <li class=away><a href=index.html>Intro</a> </li><li class=away><a href=download.html>Download</a> </li><li class=away><a href=install.html>Install</a> </li><li class=here>Test </li><li class=away><a href=save.html>Save</a> </li><li class=away><a href=prune.html>Prune</a> </li><li class=away><a href=verify.html>Verify</a> </li><li class=away><a href=tex.html>TeX</a> </li><li class=away><a href=ml.html>ML REPL</a> </li><li class=away><a href=prooftrace.html>ProofTrace</a> </li><li class=away><a href=opentheory.html>OpenTheory</a> </li><li class=away><a href=format.html>Format</a> </li><li class=away><a href=license.html>License</a> </li><li class=away><a href=bib.html>Literature</a> </li></ul></nav> <div id=hidemenu></div> </label> <div class=main> <div class=pagetitle>HOLTrace: Test</div> <p>Download and uncompress a trace:</p> <pre><code>wget https://holtrace.cr.yp.to/prime.50.gz gunzip prime.50 </code></pre> <p>Start a HOL Light session (not reusing a pre-HOLTrace session):</p> <pre><code>hol.sh </code></pre> <p>In that session, verify the trace:</p> <pre><code>holtrace_restore !theorems "prime.50";; </code></pre> <p>The expected outputs are many lines that start <code>matching</code> and then the following, with more lines in place of <code>...</code>:</p> <pre><code>types: 597 terms: 176388 theorems: 91115 inferences: 91115 axioms: 3 = matching 3 + creating 0 typedefs: 6 = matching 6 + creating 0 constants: 82 = matching 82 + creating 0 named thms: 327 = matching 327 + creating 0 tag / 0.000000 seconds 327 occurrences ... tag t 0.000000 seconds 91115 occurrences total 0.000000 seconds val it : unit = () </code></pre> <p>You can also try <code>holtrace_restore_time</code> instead of <code>holtrace_restore</code>; then there will be actual timings instead of <code>0.000000 seconds</code>.</p> <p>Inspect the restored <code>ONE_OR_PRIME</code> theorem:</p> <pre><code>holtrace_restore_name2thm "ONE_OR_PRIME";; </code></pre> <p>The expected output is the following:</p> <pre><code>val it : thm = |- forall p. p = 1 \/ prime p &lt;=&gt; (forall n. n divides p ==&gt; n = 1 \/ n = p) </code></pre> <p>Check that the restored theorem matches the theorem from the HOL Light standard library:</p> <pre><code>equals_thm it ONE_OR_PRIME;; </code></pre> <p>The expected output is <code>val it : bool = true</code>.</p> <p>Outside the HOL Light session, verify the same trace from the command line:</p> <pre><code>./holtrace-verify-simple &lt; prime.50 ./holtrace-verify &lt; prime.50 </code></pre> <p>The expected output is</p> <pre><code>verified 2399423 bytes, 359543 lines, 597 types, 176388 terms, 91115 infs, 91115 thms, 6 typedefs </code></pre> <p>from <code>holtrace-verify-simple</code>, and the same from <code>holtrace-verify</code>.</p> <p>Check that the trace is already pruned down to what is needed for the <code>ONE_OR_PRIME</code> theorem:</p> <pre><code>./holtrace-prune ONE_OR_PRIME &lt; prime.50 | cmp - prime.50 </code></pre> <p>The expected output is nothing.</p> <p>Convert the trace to a TeX file:</p> <pre><code>./holtrace2tex &lt; prime.50 &gt; prime.tex xelatex prime </code></pre> <p>The last theorem on the last page of the resulting <code>prime.pdf</code> is expected to say the following: "Theorem (ONE_OR_PRIME). Fix <em>p</em> ∈ ℕ. Then <em>p</em> = 1 or <em>p</em> is prime if and only if we have <em>n</em> = 1 or <em>n</em> = <em>p</em> for each <em>n</em> ∈ ℕ such that <em>n</em> divides <em>p</em>."</p> <p>Test some libraries used by the Python scripts:</p> <pre><code>./type.py ./term.py ./ptparse.py </code></pre> <p>The expected outputs are <code>test type</code> and <code>test term</code> and <code>test ptparse</code>.</p> <p>Try the built-in suite of test traces:</p> <pre><code>./testtraces &lt; testtraces.in | cmp - testtraces.exp </code></pre> <p>This takes 23 seconds on <a href="install.html"><code>rome1</code></a>. The expected output is nothing.</p><hr><font size=1><b>Version:</b> This is version 2025.07.03 of the "Test" web page. </font> </div> </body> </html>