-
Notifications
You must be signed in to change notification settings - Fork 12
/
check.html
392 lines (338 loc) · 24.8 KB
/
check.html
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module check</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>check</strong></big></big> (version Id: check.py,v 1.59 2007/06/26 02:36:15 syosi Exp )</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/yosi/CVSROOT/WWW/2000/10/swap/check.py">/Users/yosi/CVSROOT/WWW/2000/10/swap/check.py</a></font></td></tr></table>
<p><tt>Check a proof<br>
<br>
This is a simple proof checker. It hasn't itself been proved,<br>
and there are probably lots of ways to fool it especially as a deliberate<br>
malicious attack. That is because there are simple things I may have forgotten<br>
to check.<br>
<br>
Command line options for debug:<br>
-v50 Set verbosity to 50 (range is 0 -100)<br>
-c50 Set verbosity for inference done by cwm code to 50<br>
-p50 Set verobsity when parsing top 50 <br>
<br>
@@for more command line options, see <a href="#-main">main</a>() in source</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="swap.diag.html">swap.diag</a><br>
</td><td width="25%" valign=top><a href="swap.html">swap</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="check.html#FormulaCache">FormulaCache</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="check.html#Checker">Checker</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="check.html#Policy">Policy</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="check.html#AllPremises">AllPremises</a>
</font></dt><dt><font face="helvetica, arial"><a href="check.html#Assumption">Assumption</a>
</font></dt><dt><font face="helvetica, arial"><a href="check.html#ParsingOK">ParsingOK</a>
</font></dt></dl>
</dd>
</dl>
</dd>
<dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="check.html#InvalidProof">InvalidProof</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="check.html#LogicalFallacy">LogicalFallacy</a>
</font></dt><dt><font face="helvetica, arial"><a href="check.html#PolicyViolation">PolicyViolation</a>
</font></dt></dl>
</dd>
</dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="AllPremises">class <strong>AllPremises</strong></a>(<a href="check.html#Policy">Policy</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>A useful testing policy is to accept all premises and no sources.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="check.html#AllPremises">AllPremises</a></dd>
<dd><a href="check.html#Policy">Policy</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="AllPremises-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="AllPremises-assumes"><strong>assumes</strong></a>(self, f)</dt></dl>
<dl><dt><a name="AllPremises-documentOK"><strong>documentOK</strong></a>(self, f)</dt></dl>
<hr>
Data and other attributes inherited from <a href="check.html#Policy">Policy</a>:<br>
<dl><dt><strong>__dict__</strong> = <dictproxy object><dd><tt>dictionary for instance variables (if defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'Policy' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="Assumption">class <strong>Assumption</strong></a>(<a href="check.html#Policy">Policy</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="check.html#Assumption">Assumption</a></dd>
<dd><a href="check.html#Policy">Policy</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="Assumption-__init__"><strong>__init__</strong></a>(self, premise)</dt></dl>
<dl><dt><a name="Assumption-assumes"><strong>assumes</strong></a>(self, f)</dt></dl>
<dl><dt><a name="Assumption-documentOK"><strong>documentOK</strong></a>(self, u)</dt></dl>
<hr>
Data and other attributes inherited from <a href="check.html#Policy">Policy</a>:<br>
<dl><dt><strong>__dict__</strong> = <dictproxy object><dd><tt>dictionary for instance variables (if defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'Policy' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="Checker">class <strong>Checker</strong></a>(<a href="check.html#FormulaCache">FormulaCache</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="check.html#Checker">Checker</a></dd>
<dd><a href="check.html#FormulaCache">FormulaCache</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="Checker-__init__"><strong>__init__</strong></a>(self, proof)</dt><dd><tt>proof is the formula which contains the proof</tt></dd></dl>
<dl><dt><a name="Checker-checkParsing"><strong>checkParsing</strong></a>(self, r, f, policy, level)</dt></dl>
<dl><dt><a name="Checker-conjecture"><strong>conjecture</strong></a>(self)</dt><dd><tt>return the formula that is claimed to be proved and<br>
the main justification step.</tt></dd></dl>
<dl><dt><a name="Checker-report"><strong>report</strong></a>(self, out, f<font color="#909090">=None</font>, step<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="Checker-result"><strong>result</strong></a>(self, r, policy, level<font color="#909090">=0</font>)</dt><dd><tt>Get the result of a proof step.<br>
<br>
r is the step to be checked; in the case of the root reason,<br>
proof.the(pred=rdf.type, obj=reason.Proof),<br>
as from `proofStep()`<br>
<br>
level is just the nesting level for diagnostic output<br>
<br>
Returns the formula proved<br>
raises <a href="#InvalidProof">InvalidProof</a> (perhaps IOError, others)</tt></dd></dl>
<hr>
Methods inherited from <a href="check.html#FormulaCache">FormulaCache</a>:<br>
<dl><dt><a name="Checker-get"><strong>get</strong></a>(self, uri)</dt></dl>
<hr>
Data and other attributes inherited from <a href="check.html#FormulaCache">FormulaCache</a>:<br>
<dl><dt><strong>__dict__</strong> = <dictproxy object><dd><tt>dictionary for instance variables (if defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'FormulaCache' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="FormulaCache">class <strong>FormulaCache</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="FormulaCache-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="FormulaCache-get"><strong>get</strong></a>(self, uri)</dt></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__dict__</strong> = <dictproxy object><dd><tt>dictionary for instance variables (if defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'FormulaCache' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="InvalidProof">class <strong>InvalidProof</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="InvalidProof-__init__"><strong>__init__</strong></a>(self, s, level<font color="#909090">=0</font>)</dt></dl>
<dl><dt><a name="InvalidProof-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<hr>
Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="InvalidProof-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="LogicalFallacy">class <strong>LogicalFallacy</strong></a>(<a href="check.html#InvalidProof">InvalidProof</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="check.html#LogicalFallacy">LogicalFallacy</a></dd>
<dd><a href="check.html#InvalidProof">InvalidProof</a></dd>
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
</dl>
<hr>
Methods inherited from <a href="check.html#InvalidProof">InvalidProof</a>:<br>
<dl><dt><a name="LogicalFallacy-__init__"><strong>__init__</strong></a>(self, s, level<font color="#909090">=0</font>)</dt></dl>
<dl><dt><a name="LogicalFallacy-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<hr>
Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="LogicalFallacy-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="ParsingOK">class <strong>ParsingOK</strong></a>(<a href="check.html#Policy">Policy</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>When run from the command-line, the policy is that<br>
all Parsing's are OK.<br>
<br>
Hmm... shouldn't it be only those that are mentioned<br>
in the CommandLine step?<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="check.html#ParsingOK">ParsingOK</a></dd>
<dd><a href="check.html#Policy">Policy</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="ParsingOK-assumes"><strong>assumes</strong></a>(self, f)</dt></dl>
<dl><dt><a name="ParsingOK-documentOK"><strong>documentOK</strong></a>(self, u)</dt></dl>
<hr>
Data and other attributes inherited from <a href="check.html#Policy">Policy</a>:<br>
<dl><dt><strong>__dict__</strong> = <dictproxy object><dd><tt>dictionary for instance variables (if defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'Policy' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="Policy">class <strong>Policy</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>a proof-checking policy<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Policy-assumes"><strong>assumes</strong></a>(self, f)</dt><dd><tt>Check whether a formula is an axiom.<br>
<br>
Hmm... move checkBuiltin here?</tt></dd></dl>
<dl><dt><a name="Policy-documentOK"><strong>documentOK</strong></a>(self, u)</dt></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__dict__</strong> = <dictproxy object><dd><tt>dictionary for instance variables (if defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'Policy' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="PolicyViolation">class <strong>PolicyViolation</strong></a>(<a href="check.html#InvalidProof">InvalidProof</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="check.html#PolicyViolation">PolicyViolation</a></dd>
<dd><a href="check.html#InvalidProof">InvalidProof</a></dd>
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
</dl>
<hr>
Methods inherited from <a href="check.html#InvalidProof">InvalidProof</a>:<br>
<dl><dt><a name="PolicyViolation-__init__"><strong>__init__</strong></a>(self, s, level<font color="#909090">=0</font>)</dt></dl>
<dl><dt><a name="PolicyViolation-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<hr>
Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="PolicyViolation-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-atomicFormulaTerms"><strong>atomicFormulaTerms</strong></a>(f)</dt><dd><tt>Check that a formula is atomic and return the p, s, o terms.<br>
<br>
>>> <a href="#-atomicFormulaTerms">atomicFormulaTerms</a>(_s2f("<#sky> <#color> <#blue>.",<br>
... "<a href="http://example/stuff">http://example/stuff</a>"))<br>
(color, sky, blue)</tt></dd></dl>
<dl><dt><a name="-checkBuiltin"><strong>checkBuiltin</strong></a>(r, f, checker, policy, level<font color="#909090">=0</font>)</dt><dd><tt>Check a built-in step.<br>
@@hmm... integrate with <a href="#Policy">Policy</a> more?<br>
<br>
>>> soc = Namespace("<a href="http://example/socrates">http://example/socrates</a>#")<br>
>>> pf = _s2f(_TestBuiltinStep % '"a" list:in ("b" "a" "c")',<br>
... "<a href="http://example/socrates">http://example/socrates</a>")<br>
>>> f = <a href="#-checkBuiltin">checkBuiltin</a>(soc.step1,<br>
... pf.the(subj=soc.step1, pred=reason.gives),<br>
... <a href="#Checker">Checker</a>(pf), <a href="#AllPremises">AllPremises</a>())<br>
>>> len(f)<br>
1<br>
<br>
>>> pf = _s2f(_TestBuiltinStep % '"abc" str:startsWith "a"',<br>
... "<a href="http://example/socrates">http://example/socrates</a>")<br>
>>> f = <a href="#-checkBuiltin">checkBuiltin</a>(soc.step1,<br>
... pf.the(subj=soc.step1, pred=reason.gives),<br>
... <a href="#Checker">Checker</a>(pf), <a href="#AllPremises">AllPremises</a>())<br>
>>> len(f)<br>
1<br>
<br>
<br>
>>> pf = _s2f(_TestBuiltinStep % '"abc" str:startsWith "b"',<br>
... "<a href="http://example/socrates">http://example/socrates</a>")<br>
>>> f = <a href="#-checkBuiltin">checkBuiltin</a>(soc.step1,<br>
... pf.the(subj=soc.step1, pred=reason.gives),<br>
... <a href="#Checker">Checker</a>(pf), <a href="#AllPremises">AllPremises</a>())<br>
Traceback (most recent call last):<br>
...<br>
<a href="#LogicalFallacy">LogicalFallacy</a>: Built-in fact does not give correct results: predicate: abc subject: str:startsWith <a href="__builtin__.html#object">object</a>: b result: None</tt></dd></dl>
<dl><dt><a name="-checkConjunction"><strong>checkConjunction</strong></a>(r, f, checker, policy, level)</dt></dl>
<dl><dt><a name="-checkExtraction"><strong>checkExtraction</strong></a>(r, f, checker, policy, level<font color="#909090">=0</font>)</dt><dd><tt>check an Extraction step.<br>
<br>
>>> soc = Namespace("<a href="http://example/socrates">http://example/socrates</a>#")<br>
>>> pf = _s2f(_TestCEstep, "<a href="http://example/socrates">http://example/socrates</a>")<br>
>>> <a href="#-checkExtraction">checkExtraction</a>(soc.step1,<br>
... pf.the(subj=soc.step1, pred=reason.gives),<br>
... <a href="#Checker">Checker</a>(pf), <a href="#AllPremises">AllPremises</a>())<br>
{soc:socrates type soc:Man}</tt></dd></dl>
<dl><dt><a name="-checkGMP"><strong>checkGMP</strong></a>(r, f, checker, policy, level<font color="#909090">=0</font>)</dt><dd><tt>check a generalized modus ponens step.<br>
<br>
>>> soc = Namespace("<a href="http://example/socrates">http://example/socrates</a>#")<br>
>>> pf = _s2f(_TestGMPStep, "<a href="http://example/socrates">http://example/socrates</a>")<br>
>>> f = <a href="#-checkGMP">checkGMP</a>(soc.step1, None, <a href="#Checker">Checker</a>(pf), <a href="#AllPremises">AllPremises</a>())<br>
>>> f.n3String().strip()<br>
u'@prefix : <<a href="http://example/socrates">http://example/socrates</a>#> .\n \n :socrates a :Mortal .'</tt></dd></dl>
<dl><dt><a name="-checkSupports"><strong>checkSupports</strong></a>(r, f, checker, policy, level)</dt></dl>
<dl><dt><a name="-fyi"><strong>fyi</strong></a>(str, level<font color="#909090">=0</font>, thresh<font color="#909090">=50</font>)</dt></dl>
<dl><dt><a name="-getSymbol"><strong>getSymbol</strong></a>(proof, x)</dt><dd><tt>De-reify a symbol: get the informatuion identifying it from the proof</tt></dd></dl>
<dl><dt><a name="-getTerm"><strong>getTerm</strong></a>(proof, x)</dt><dd><tt>De-reify a term: get the informatuion about it from the proof</tt></dd></dl>
<dl><dt><a name="-main"><strong>main</strong></a>(argv)</dt></dl>
<dl><dt><a name="-n3Entails"><strong>n3Entails</strong></a>(f, g, skipIncludes<font color="#909090">=0</font>, level<font color="#909090">=0</font>)</dt><dd><tt>Does f N3-entail g?<br>
<br>
First try indexed graph match algorithm, and if that fails,<br>
unification.</tt></dd></dl>
<dl><dt><a name="-topLevelLoad"><strong>topLevelLoad</strong></a>(uri<font color="#909090">=None</font>, flags<font color="#909090">=''</font>)</dt></dl>
<dl><dt><a name="-usage"><strong>usage</strong></a>()</dt></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>OBJ</strong> = 3<br>
<strong>PRED</strong> = 1<br>
<strong>SUBJ</strong> = 2<br>
<strong>__version__</strong> = 'Id: check.py,v 1.59 2007/06/26 02:36:15 syosi Exp '<br>
<strong>chatty</strong> = 0<br>
<strong>debugLevelForInference</strong> = 0<br>
<strong>debugLevelForParsing</strong> = 0<br>
<strong>knownReasons</strong> = set([Premise, Parsing, Inference, Conjunction, Fact, Extraction, ...])<br>
<strong>log</strong> = <swap.myStore.Namespace object><br>
<strong>nameBlankNodes</strong> = 0<br>
<strong>proofSteps</strong> = 0<br>
<strong>rdf</strong> = <swap.myStore.Namespace object><br>
<strong>reason</strong> = <swap.myStore.Namespace object><br>
<strong>rei</strong> = <swap.myStore.Namespace object></td></tr></table>
</body></html>