|
1 #!/usr/bin/python |
|
2 |
|
3 import string |
|
4 import sys |
|
5 |
|
6 f = open ("/tmp/args", "w") |
|
7 for x in sys.argv: |
|
8 f.write("%s " % x) |
|
9 f.write("\n") |
|
10 f.close() |
|
11 |
|
12 #f = open ("/home/clq20/scratch/13354/dfg/spassprooflist", "r") |
|
13 #f = open ("/home/clq20/testoutput.py", "r") |
|
14 |
|
15 mode = 0 |
|
16 try: |
|
17 while 1: |
|
18 line = sys.stdin.readline() |
|
19 words = line.split() |
|
20 if len(words) > 0: |
|
21 if words[0] == "SPASS": |
|
22 mode = 1 |
|
23 if line == '': |
|
24 break |
|
25 line = line[:-1] |
|
26 if mode == 1: |
|
27 print line |
|
28 except: |
|
29 pass |
|
30 #f.close() |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 sys.exit() |
|
36 |
|
37 for i in range(0, 50): |
|
38 print "blah gibberish nonsense" |
|
39 |
|
40 print """Here is a proof with depth 1, length 9 : |
|
41 2[0:Inp] || v_P(tconst_fun(typ__Ha,tconst_bool),v_x)* -> v_P(tconst_fun(typ__Ha,tconst_bool),U)*. |
|
42 3[0:Inp] || v_P(tconst_fun(typ__Ha,tconst_bool),U)*+ -> v_P(tconst_fun(typ__Ha,tconst_bool),v_x)*. |
|
43 4[0:Inp] || -> v_P(tconst_fun(typ__Ha,tconst_bool),U)* v_P(tconst_fun(typ__Ha,tconst_bool),v_xa)*. |
|
44 5[0:Inp] || v_P(tconst_fun(typ__Ha,tconst_bool),v_xb)* v_P(tconst_fun(typ__Ha,tconst_bool),U)* -> . |
|
45 6[0:Con:4.0] || -> v_P(tconst_fun(typ__Ha,tconst_bool),v_xa)*. |
|
46 7[0:Con:5.1] || v_P(tconst_fun(typ__Ha,tconst_bool),v_xb)* -> . |
|
47 8[0:Res:6.0,3.0] || -> v_P(tconst_fun(typ__Ha,tconst_bool),v_x)*. |
|
48 9[0:MRR:2.0,8.0] || -> v_P(tconst_fun(typ__Ha,tconst_bool),U)*. |
|
49 10[0:UnC:9.0,7.0] || -> . |
|
50 Formulae used in the proof : |
|
51 |
|
52 --------------------------SPASS-STOP------------------------------ |
|
53 """ |