File: SET-DIFFERENCE-THEORIES.html

package info (click to toggle)
acl2 3.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 36,712 kB
  • ctags: 38,396
  • sloc: lisp: 464,023; makefile: 5,470; sh: 86; csh: 47; cpp: 25; ansic: 22
file content (33 lines) | stat: -rw-r--r-- 1,606 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html>
<head><title>SET-DIFFERENCE-THEORIES.html  --  ACL2 Version 3.1</title></head>
<body text=#000000 bgcolor="#FFFFFF">
<h2>SET-DIFFERENCE-THEORIES</h2>difference of two <a href="THEORIES.html">theories</a>
<pre>Major Section:  <a href="THEORIES.html">THEORIES</a>
</pre><p>


<pre>
Example:
(set-difference-theories (current-theory :here)
                         '(fact (fact)))
<p>
General Form:
(set-difference-theories th1 th2)
</pre>

where <code>th1</code> and <code>th2</code> are <a href="THEORIES.html">theories</a> (see <a href="THEORIES.html">theories</a>).  To each of
the arguments there corresponds a runic theory.  This function
returns the set-difference of those two runic <a href="THEORIES.html">theories</a>, represented
as a list and ordered chronologically.  That is, a <a href="RUNE.html">rune</a> is in the
result iff it is in the first runic theory but not in the second.<p>

The standard way to ``disable'' a theory, <code>lst</code>, is:
<code>(in-theory (set-difference-theories (current-theory :here) lst))</code>.<p>

This ``function'' is actually a macro that expands to a term
mentioning the single free variable <code><a href="WORLD.html">world</a></code>.  When theory expressions
are evaluated by <code><a href="IN-THEORY.html">in-theory</a></code> or the <code>:</code><code><a href="IN-THEORY.html">in-theory</a></code> hint, <code><a href="WORLD.html">world</a></code> is bound to
the current ACL2 <a href="WORLD.html">world</a>.
<br><br><br><a href="acl2-doc.html"><img src="llogo.gif"></a> <a href="acl2-doc-index.html"><img src="index.gif"></a>
</body>
</html>