| 1 |
========================================== |
| 2 |
reduce in META-LEVEL : metaReduce(fmod 'FOO is |
| 3 |
including 'STRING . |
| 4 |
sorts 'Value . |
| 5 |
none |
| 6 |
(op 'eq : 'Universal 'Universal -> 'Value [poly(1 2) special( |
| 7 |
id-hook('EqualitySymbol, nil) |
| 8 |
term-hook('equalTerm, 'tt.Value) |
| 9 |
term-hook('notEqualTerm, 'ff.Value))] . |
| 10 |
op 'ff : nil -> 'Value [none] .) |
| 11 |
op 'tt : nil -> 'Value [none] . |
| 12 |
none |
| 13 |
none |
| 14 |
endfm, 'eq['"a".String, '"a".String]) . |
| 15 |
rewrites: 2 |
| 16 |
result ResultPair: {'tt.Value, 'Value} |
| 17 |
========================================== |
| 18 |
reduce in META-LEVEL : metaReduce(fmod 'FOO is |
| 19 |
including 'STRING . |
| 20 |
sorts 'Value . |
| 21 |
none |
| 22 |
(op 'eq : 'Universal 'Universal -> 'Value [poly(1 2) special( |
| 23 |
id-hook('EqualitySymbol, nil) |
| 24 |
term-hook('equalTerm, 'tt.Value) |
| 25 |
term-hook('notEqualTerm, 'ff.Value))] . |
| 26 |
op 'ff : nil -> 'Value [none] .) |
| 27 |
op 'tt : nil -> 'Value [none] . |
| 28 |
none |
| 29 |
none |
| 30 |
endfm, 'eq['"a".String, '"b".String]) . |
| 31 |
rewrites: 2 |
| 32 |
result ResultPair: {'ff.Value, 'Value} |
| 33 |
========================================== |
| 34 |
reduce in META-LEVEL : metaReduce(fmod 'FOO is |
| 35 |
including 'STRING . |
| 36 |
sorts 'Value . |
| 37 |
none |
| 38 |
(op '? : 'Value 'Universal 'Universal -> 'Universal [poly(2 3 0) special( |
| 39 |
id-hook('BranchSymbol, nil) |
| 40 |
term-hook('1, 'tt.Value) |
| 41 |
term-hook('2, 'ff.Value))] . |
| 42 |
op 'ff : nil -> 'Value [none] .) |
| 43 |
op 'tt : nil -> 'Value [none] . |
| 44 |
none |
| 45 |
none |
| 46 |
endfm, '?['tt.Value, '"a".String, '"b".String]) . |
| 47 |
rewrites: 2 |
| 48 |
result ResultPair: {'"a".Char, 'Char} |
| 49 |
========================================== |
| 50 |
reduce in META-LEVEL : metaReduce(fmod 'FOO is |
| 51 |
including 'STRING . |
| 52 |
sorts 'Value . |
| 53 |
none |
| 54 |
(op '? : 'Value 'Universal 'Universal -> 'Universal [poly(2 3 0) special( |
| 55 |
id-hook('BranchSymbol, nil) |
| 56 |
term-hook('1, 'tt.Value) |
| 57 |
term-hook('2, 'ff.Value))] . |
| 58 |
op 'ff : nil -> 'Value [none] .) |
| 59 |
op 'tt : nil -> 'Value [none] . |
| 60 |
none |
| 61 |
none |
| 62 |
endfm, '?['ff.Value, '"a".String, '"b".String]) . |
| 63 |
rewrites: 2 |
| 64 |
result ResultPair: {'"b".Char, 'Char} |
| 65 |
========================================== |
| 66 |
reduce in META-LEVEL : metaReduce(fmod 'FOO is |
| 67 |
including 'STRING . |
| 68 |
including 'META-LEVEL . |
| 69 |
sorts none . |
| 70 |
none |
| 71 |
op '^ : 'Universal -> 'Term [poly(1) special( |
| 72 |
id-hook('MetaLevelOpSymbol, 'metaUpTerm) |
| 73 |
op-hook('shareWith, 'metaReduce, 'Module 'Term, 'ResultPair))] . |
| 74 |
none |
| 75 |
none |
| 76 |
endfm, '^['"a".String]) . |
| 77 |
rewrites: 2 |
| 78 |
result ResultPair: {''"a".Char.Constant, 'Constant} |
| 79 |
========================================== |
| 80 |
reduce in META-LEVEL : metaReduce(fmod 'FOO is |
| 81 |
including 'STRING . |
| 82 |
including 'META-LEVEL . |
| 83 |
sorts none . |
| 84 |
none |
| 85 |
op '! : 'Term 'Universal -> 'Universal [poly(2 0) special( |
| 86 |
id-hook('MetaLevelOpSymbol, 'metaDownTerm) |
| 87 |
op-hook('shareWith, 'metaReduce, 'Module 'Term, 'ResultPair))] . |
| 88 |
none |
| 89 |
none |
| 90 |
endfm, '![''"a".String.Constant, '"b".String]) . |
| 91 |
rewrites: 2 |
| 92 |
result ResultPair: {'"a".Char, 'Char} |
| 93 |
========================================== |
| 94 |
reduce in META-LEVEL : metaReduce(fmod 'POLY-ID3 is |
| 95 |
including 'BOOL . |
| 96 |
sorts 'Foo . |
| 97 |
none |
| 98 |
op '1 : nil -> 'Foo [none] . |
| 99 |
op 'f : 'Universal 'Foo -> 'Universal [right-id('1.Foo) poly(1 0)] . |
| 100 |
none |
| 101 |
none |
| 102 |
endfm, 'f['true.Bool, '1.Foo]) . |
| 103 |
rewrites: 1 |
| 104 |
result ResultPair: {'true.Bool, 'Bool} |
| 105 |
========================================== |
| 106 |
reduce in META-LEVEL : metaReduce(fmod 'POLY-ID3 is |
| 107 |
including 'BOOL . |
| 108 |
sorts 'Foo . |
| 109 |
none |
| 110 |
(op 'f : 'Universal 'Foo -> 'Universal [right-id('1.Foo) poly(1 0)] . |
| 111 |
op 'g : 'Univeral -> 'Universal [poly(1 0)] .) |
| 112 |
op '1 : nil -> 'Foo [none] . |
| 113 |
none |
| 114 |
eq 'g['f['true.Bool, 'X:Foo]] = 'false.Bool [none] . |
| 115 |
endfm, 'g['true.Bool]) . |
| 116 |
rewrites: 2 |
| 117 |
result ResultPair: {'false.Bool, 'Bool} |
| 118 |
========================================== |
| 119 |
reduce in META-LEVEL : metaReduce(fmod 'POLY-ID3 is |
| 120 |
including 'BOOL . |
| 121 |
sorts 'Foo . |
| 122 |
none |
| 123 |
op '1 : nil -> 'Universal [poly(0)] . |
| 124 |
none |
| 125 |
none |
| 126 |
endfm, '1.Bool) . |
| 127 |
rewrites: 1 |
| 128 |
result ResultPair: {'1.`[Bool`], '`[Bool`]} |
| 129 |
========================================== |
| 130 |
reduce in META-LEVEL : metaReduce(fmod 'POLY-ID3 is |
| 131 |
including 'BOOL . |
| 132 |
sorts 'Foo . |
| 133 |
none |
| 134 |
op '1 : nil -> 'Universal [poly(0)] . |
| 135 |
none |
| 136 |
none |
| 137 |
endfm, '1.Foo) . |
| 138 |
rewrites: 1 |
| 139 |
result ResultPair: {'1.`[Foo`], '`[Foo`]} |
| 140 |
Bye. |