| 1 |
========================================== |
| 2 |
erewrite in VARIANT-UNIFY-TEST : <> < me : User | problem:('_+_['X:XOR, |
| 3 |
'c1.Elem] =? '_+_['Y:XOR, 'c2.Elem], empty) > createInterpreter( |
| 4 |
interpreterManager, me, none) . |
| 5 |
rewrites: 52 |
| 6 |
result Configuration: <> < me : User | soln: 9, result(gotVariantUnifier(me, |
| 7 |
interpreter(0), 6, |
| 8 |
'X:XOR <- '_+_['c2.Elem, '@1:XOR] ; |
| 9 |
'Y:XOR <- '_+_['c1.Elem, '@1:XOR], '@), gotVariantUnifier(me, interpreter(0), |
| 10 |
0, |
| 11 |
'X:XOR <- 'c2.Elem ; |
| 12 |
'Y:XOR <- 'c1.Elem, '@), gotVariantUnifier(me, interpreter(0), 18, |
| 13 |
'X:XOR <- '_+_['c1.Elem, 'c2.Elem, '%1:XOR] ; |
| 14 |
'Y:XOR <- '%1:XOR, '%), gotVariantUnifier(me, interpreter(0), 0, |
| 15 |
'X:XOR <- '%1:XOR ; |
| 16 |
'Y:XOR <- '_+_['c1.Elem, 'c2.Elem, '%1:XOR], '%), gotVariantUnifier(me, |
| 17 |
interpreter(0), 0, |
| 18 |
'X:XOR <- '0.XOR ; |
| 19 |
'Y:XOR <- '_+_['c1.Elem, 'c2.Elem], '@), gotVariantUnifier(me, interpreter( |
| 20 |
0), 0, |
| 21 |
'X:XOR <- 'c1.Elem ; |
| 22 |
'Y:XOR <- 'c2.Elem, '@), gotVariantUnifier(me, interpreter(0), 0, |
| 23 |
'X:XOR <- '_+_['c1.Elem, 'c2.Elem] ; |
| 24 |
'Y:XOR <- '0.XOR, '@), gotVariantUnifier(me, interpreter(0), 0, |
| 25 |
'X:XOR <- '_+_['c1.Elem, '@1:XOR] ; |
| 26 |
'Y:XOR <- '_+_['c2.Elem, '@1:XOR], '@)), problem:('_+_['X:XOR, 'c1.Elem] =? |
| 27 |
'_+_['Y:XOR, 'c2.Elem], empty) > noSuchResult(me, interpreter(0), 0, true) |
| 28 |
========================================== |
| 29 |
variant unify in XOR : X + c1 =? Y + c2 . |
| 30 |
|
| 31 |
Unifier 1 |
| 32 |
rewrites: 6 |
| 33 |
X --> c2 + %1:XOR |
| 34 |
Y --> c1 + %1:XOR |
| 35 |
|
| 36 |
Unifier 2 |
| 37 |
rewrites: 6 |
| 38 |
X --> c2 |
| 39 |
Y --> c1 |
| 40 |
|
| 41 |
Unifier 3 |
| 42 |
rewrites: 24 |
| 43 |
X --> c1 + c2 + #1:XOR |
| 44 |
Y --> #1:XOR |
| 45 |
|
| 46 |
Unifier 4 |
| 47 |
rewrites: 24 |
| 48 |
X --> #1:XOR |
| 49 |
Y --> c1 + c2 + #1:XOR |
| 50 |
|
| 51 |
Unifier 5 |
| 52 |
rewrites: 24 |
| 53 |
X --> 0 |
| 54 |
Y --> c1 + c2 |
| 55 |
|
| 56 |
Unifier 6 |
| 57 |
rewrites: 24 |
| 58 |
X --> c1 |
| 59 |
Y --> c2 |
| 60 |
|
| 61 |
Unifier 7 |
| 62 |
rewrites: 24 |
| 63 |
X --> c1 + c2 |
| 64 |
Y --> 0 |
| 65 |
|
| 66 |
Unifier 8 |
| 67 |
rewrites: 24 |
| 68 |
X --> c1 + %1:XOR |
| 69 |
Y --> c2 + %1:XOR |
| 70 |
|
| 71 |
No more unifiers. |
| 72 |
rewrites: 24 |
| 73 |
========================================== |
| 74 |
erewrite in VARIANT-UNIFY-TEST : <> < me : User | problem:('_+_['X:XOR, |
| 75 |
'c1.Elem] =? '_+_['Y:XOR, 'c2.Elem], '_+_['X:XOR, 'c1.Elem]) > |
| 76 |
createInterpreter(interpreterManager, me, none) . |
| 77 |
rewrites: 16 |
| 78 |
result Configuration: <> < me : User | soln: 4, result(gotVariantUnifier(me, |
| 79 |
interpreter(0), 3, |
| 80 |
'X:XOR <- '_+_['c2.Elem, '@1:XOR] ; |
| 81 |
'Y:XOR <- '_+_['c1.Elem, '@1:XOR], '@), gotVariantUnifier(me, interpreter(0), |
| 82 |
0, |
| 83 |
'X:XOR <- 'c2.Elem ; |
| 84 |
'Y:XOR <- 'c1.Elem, '@), gotVariantUnifier(me, interpreter(0), 0, |
| 85 |
'X:XOR <- '%1:XOR ; |
| 86 |
'Y:XOR <- '_+_['c1.Elem, 'c2.Elem, '%1:XOR], '%)), problem:('_+_['X:XOR, |
| 87 |
'c1.Elem] =? '_+_['Y:XOR, 'c2.Elem], '_+_['X:XOR, 'c1.Elem]) > |
| 88 |
noSuchResult(me, interpreter(0), 0, true) |
| 89 |
========================================== |
| 90 |
variant unify in XOR : X + c1 =? Y + c2 such that X + c1 irreducible . |
| 91 |
|
| 92 |
Unifier 1 |
| 93 |
rewrites: 3 |
| 94 |
X --> c2 + %1:XOR |
| 95 |
Y --> c1 + %1:XOR |
| 96 |
|
| 97 |
Unifier 2 |
| 98 |
rewrites: 3 |
| 99 |
X --> c2 |
| 100 |
Y --> c1 |
| 101 |
|
| 102 |
Unifier 3 |
| 103 |
rewrites: 3 |
| 104 |
X --> #1:XOR |
| 105 |
Y --> c1 + c2 + #1:XOR |
| 106 |
|
| 107 |
No more unifiers. |
| 108 |
rewrites: 3 |
| 109 |
========================================== |
| 110 |
erewrite in DISJOINT-VARIANT-UNIFY-TEST : <> < me : User | problem:('_+_[ |
| 111 |
'X:XOR, 'c1.Elem] =? '_+_['Y:XOR, 'c2.Elem], empty) > createInterpreter( |
| 112 |
interpreterManager, me, none) . |
| 113 |
rewrites: 52 |
| 114 |
result Configuration: <> < me : User | soln: 9, result( |
| 115 |
gotDisjointVariantUnifier(me, interpreter(0), 6, |
| 116 |
'X:XOR <- '_+_['c2.Elem, '@1:XOR], |
| 117 |
'Y:XOR <- '_+_['c1.Elem, '@1:XOR], '@), gotDisjointVariantUnifier(me, |
| 118 |
interpreter(0), 0, |
| 119 |
'X:XOR <- 'c2.Elem, |
| 120 |
'Y:XOR <- 'c1.Elem, '@), gotDisjointVariantUnifier(me, interpreter(0), 18, |
| 121 |
'X:XOR <- '_+_['c1.Elem, 'c2.Elem, '%1:XOR], |
| 122 |
'Y:XOR <- '%1:XOR, '%), gotDisjointVariantUnifier(me, interpreter(0), 0, |
| 123 |
'X:XOR <- '%1:XOR, |
| 124 |
'Y:XOR <- '_+_['c1.Elem, 'c2.Elem, '%1:XOR], '%), gotDisjointVariantUnifier( |
| 125 |
me, interpreter(0), 0, |
| 126 |
'X:XOR <- '0.XOR, |
| 127 |
'Y:XOR <- '_+_['c1.Elem, 'c2.Elem], '@), gotDisjointVariantUnifier(me, |
| 128 |
interpreter(0), 0, |
| 129 |
'X:XOR <- 'c1.Elem, |
| 130 |
'Y:XOR <- 'c2.Elem, '@), gotDisjointVariantUnifier(me, interpreter(0), 0, |
| 131 |
'X:XOR <- '_+_['c1.Elem, 'c2.Elem], |
| 132 |
'Y:XOR <- '0.XOR, '@), gotDisjointVariantUnifier(me, interpreter(0), 0, |
| 133 |
'X:XOR <- '_+_['c1.Elem, '@1:XOR], |
| 134 |
'Y:XOR <- '_+_['c2.Elem, '@1:XOR], '@)), problem:('_+_['X:XOR, 'c1.Elem] =? |
| 135 |
'_+_['Y:XOR, 'c2.Elem], empty) > noSuchResult(me, interpreter(0), 0, true) |
| 136 |
========================================== |
| 137 |
erewrite in DISJOINT-VARIANT-UNIFY-TEST : <> < me : User | problem:('_+_[ |
| 138 |
'X:XOR, 'c1.Elem] =? '_+_['Y:XOR, 'c2.Elem], '_+_['X:XOR, 'c1.Elem]) > |
| 139 |
createInterpreter(interpreterManager, me, none) . |
| 140 |
rewrites: 16 |
| 141 |
result Configuration: <> < me : User | soln: 4, result( |
| 142 |
gotDisjointVariantUnifier(me, interpreter(0), 3, |
| 143 |
'X:XOR <- '_+_['c2.Elem, '@1:XOR], |
| 144 |
'Y:XOR <- '_+_['c1.Elem, '@1:XOR], '@), gotDisjointVariantUnifier(me, |
| 145 |
interpreter(0), 0, |
| 146 |
'X:XOR <- 'c2.Elem, |
| 147 |
'Y:XOR <- 'c1.Elem, '@), gotDisjointVariantUnifier(me, interpreter(0), 0, |
| 148 |
'X:XOR <- '%1:XOR, |
| 149 |
'Y:XOR <- '_+_['c1.Elem, 'c2.Elem, '%1:XOR], '%)), problem:('_+_['X:XOR, |
| 150 |
'c1.Elem] =? '_+_['Y:XOR, 'c2.Elem], '_+_['X:XOR, 'c1.Elem]) > |
| 151 |
noSuchResult(me, interpreter(0), 0, true) |
| 152 |
Bye. |