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 34 35 36 37 38 39
|
<html>
<head><title>LOGIC.html -- ACL2 Version 3.1</title></head>
<body text=#000000 bgcolor="#FFFFFF">
<h2>LOGIC</h2>to set the default <a href="DEFUN-MODE.html">defun-mode</a> to <code>:logic</code>
<pre>Major Section: <a href="EVENTS.html">EVENTS</a>
</pre><p>
<pre>
Example:
ACL2 p!>:logic
ACL2 !>
</pre>
Typing the keyword <code>:logic</code> sets the default <a href="DEFUN-MODE.html">defun-mode</a> to <code>:logic</code>.<p>
Functions defined in <code>:logic</code> mode are logically defined.
See <a href="DEFUN-MODE.html">defun-mode</a>.<p>
Note: This is an event! It does not print the usual event summary
but nevertheless changes the ACL2 logical <a href="WORLD.html">world</a> and is so
recorded.
<p>
See <a href="DEFUN-MODE.html">defun-mode</a> for a discussion of the <a href="DEFUN-MODE.html">defun-mode</a>s available
and what their effects on the logic are.
See <a href="DEFAULT-DEFUN-MODE.html">default-defun-mode</a> for a discussion of how the default
<a href="DEFUN-MODE.html">defun-mode</a> is used. This event is equivalent to
<code>(table acl2-defaults-table :defun-mode :logic)</code>,
and hence is <code><a href="LOCAL.html">local</a></code> to any <a href="BOOKS.html">books</a> and <code><a href="ENCAPSULATE.html">encapsulate</a></code> <a href="EVENTS.html">events</a>
in which it occurs. See <a href="ACL2-DEFAULTS-TABLE.html">acl2-defaults-table</a>.<p>
Recall that the top-level form <code>:logic</code> is equivalent to <code>(logic)</code>;
see <a href="KEYWORD-COMMANDS.html">keyword-commands</a>. Thus, to change the default <a href="DEFUN-MODE.html">defun-mode</a>
to <code>:logic</code> in a book, use <code>(logic)</code>, which is an embedded event
form, rather than <code>:logic</code>, which is not a legal form for <a href="BOOKS.html">books</a>.
See <a href="EMBEDDED-EVENT-FORM.html">embedded-event-form</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>
|