File: LOGIC.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 (39 lines) | stat: -rw-r--r-- 2,008 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
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!&gt;:logic
ACL2 !&gt;
</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>