Rev 5763 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2071 | zjchen | 1 | !set methtit=删除无用的假设 |
2 | !set methparmtype=special |
||
3 | !set methparmrelax=1 |
||
4 | !set stepnocount=yes |
||
7210 | bpr | 5 | !set methhelp=<p>你可以用这个方法删除无用的假设,\ |
2071 | zjchen | 6 | 以净化环境. 不过, <b>请注意</b>! 如果你删除了必要的假设,\ |
7 | 你将无法完成证明!\ |
||
7210 | bpr | 8 | </p>\ |
2071 | zjchen | 9 | 任何时候你都可以使用这个方法而不用担心被扣分,\ |
10 | 因为这不会增加推导的步数. |
||
11 | !set N_=!linecnt $m_context |
||
12 | |||
13 | !if $wims_read_parm iswordof form check |
||
14 | !goto $wims_read_parm |
||
15 | !endif |
||
16 | |||
17 | !if $N_<1 |
||
18 | !set error1=目前情况下已经没有任何假设! |
||
19 | !endif |
||
20 | |||
21 | !exit |
||
22 | :form |
||
23 | $methhelp |
||
24 | <p> |
||
7210 | bpr | 25 | 这里是当前的假设. 标记你想删除的假设. |
26 | </p><ul> |
||
2071 | zjchen | 27 | !for i=1 to $N_ |
28 | !set l=!line $i of $m_context |
||
7210 | bpr | 29 | <li> <input type="checkbox" name="methparm1" value="$i" /> \($l)</li> |
2071 | zjchen | 30 | !next i |
31 | </ul> |
||
32 | !exit |
||
33 | :check |
||
34 | !reset newobject,oldobject |
||
35 | n_=!itemcnt $methparm1 |
||
36 | !if $n_=0 |
||
37 | methexp=空的步骤 |
||
38 | !exit |
||
39 | !endif |
||
40 | nc= |
||
41 | !for i=1 to $N_ |
||
42 | !if $i notitemof $methparm1 |
||
43 | l=!line $i of $m_context |
||
44 | nc=!append line $l to $nc |
||
45 | !endif |
||
46 | !next i |
||
47 | m_context=$nc |
||
48 | !read deduc/objects.combine |
||
49 | methexp=删除 $n_ hypotheses |
||
50 | |||
51 | !exit |
||
52 |