Rev 20 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
16321 | bpr | 1 | !set methtit=Contraposición |
20 | reyssat | 2 | !set methparmtype=parm predicate nocomma > |
3 | !set methparmrelax=1 |
||
16321 | bpr | 4 | !set methhelp=Contraponer hipótesis y objetivo:\ |
5 | reescribir A \(=>) B como no(A) \(=>) no(B)).\ |
||
6 | <p>\ |
||
7 | También podemos usar este método para probar\ |
||
8 | por contradicción..</p> |
||
20 | reyssat | 9 | |
10 | !if $wims_read_parm iswordof form check |
||
16321 | bpr | 11 | !goto $wims_read_parm |
20 | reyssat | 12 | !endif |
13 | |||
14 | !if fixedgoal iswordof $m_options |
||
16321 | bpr | 15 | !set error1=fixedgoal |
16 | !exit |
||
20 | reyssat | 17 | !endif |
18 | |||
19 | !set n_=!linecnt $m_goal |
||
20 | !if $n_>1 |
||
16321 | bpr | 21 | !set error1=¡Tienes múltiples objetivos en el estado actual!\ |
22 | La contraposición debe hacerse con un solo propósito. Por favor, \ |
||
23 | separe los objetivos primero. |
||
24 | !exit |
||
20 | reyssat | 25 | !endif |
26 | !if $n_<1 |
||
16321 | bpr | 27 | !set error1=No tienes ningún objeto que contraponer. |
28 | !exit |
||
20 | reyssat | 29 | !endif |
30 | |||
31 | !exit |
||
32 | :form |
||
16321 | bpr | 33 | !set i_=!linecnt $mtobj1 |
34 | !if $i_>0 |
||
35 | Contraponer la hipótesis |
||
20 | reyssat | 36 | !set ch_optional=Aucune |
16321 | bpr | 37 | !read deduc/methparm.phtml 1 |
20 | reyssat | 38 | et le but \($m_goal). |
16321 | bpr | 39 | !set methremark=Escoja "hypothèse=Ninguna" para un razonamiento por\ |
40 | contradicción. |
||
41 | !else |
||
42 | Contraponer el objetivo \($m_goal): razonamiento por contradicción. |
||
43 | !endif |
||
20 | reyssat | 44 | !exit |
45 | :check |
||
16321 | bpr | 46 | !if contradiction notwordof $m_goal |
20 | reyssat | 47 | newobject0=!exec mathexp not\ |
48 | $m_goal |
||
49 | oldobject=0 |
||
16321 | bpr | 50 | !else |
20 | reyssat | 51 | !reset newobject, newobject0 |
16321 | bpr | 52 | !endif |
53 | !if $methparm1=$empty or $methparm1<1 |
||
20 | reyssat | 54 | !if contradiction iswordof $m_goal |
16321 | bpr | 55 | error=¡Contraponer una contradicción sin hipótesis no tiene sentido! |
56 | !exit |
||
20 | reyssat | 57 | !endif |
58 | newgoal=contradiction |
||
16321 | bpr | 59 | methexp=Contraponer |
60 | !else |
||
20 | reyssat | 61 | obj=!line $methparm1 of $mtobj1 |
62 | d=!item 1 of $obj |
||
63 | l=!word 1 of $d |
||
64 | obj=!item 2 to -1 of $obj |
||
65 | m_context=!replace line number $l by $ in $m_context |
||
66 | m_context=!nonempty lines $m_context |
||
67 | newgoal=!exec mathexp not\ |
||
68 | $obj |
||
16321 | bpr | 69 | methexp=Contraponer con \($obj) |
70 | !endif |
||
71 | m_goal=$newgoal |
||
72 | !read deduc/objects.combine |
||
20 | reyssat | 73 | !exit |