File: metaModExp.maude

package info (click to toggle)
maude 3.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,480 kB
  • sloc: cpp: 133,192; makefile: 2,180; yacc: 1,984; sh: 1,373; lex: 886
file content (110 lines) | stat: -rw-r--r-- 1,780 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
set show timing off .
set show advisories off .

red in META-LEVEL : (
fmod 'FOO is
  including ('NAT + 'INT) *
(sort 'Nat to 'Nat2,
 op 'foo to 'bar [none],
 op 'baz : 'Quux 'Quux -> 'Quux to 'quux [prec(10)],
 label 'foo to 'bar) .
  sorts 'Foo .
  none
  none
  none
  none
endfm

) .

select META-LEVEL .

red metaReduce(
fmod 'FOO is
  including 'NAT + 'INT .
  sorts 'Foo .
  none
  none
  none
  none
endfm, '0.Nat) .

red metaReduce(
fmod 'FOO is
  including 'NAT * (sort 'Zero to 'ZZ) .
  sorts 'Foo .
  none
  none
  none
  none
endfm, '0.Nat) .

red in META-LEVEL : metaReduce(
fmod 'FOO is
  including ('NAT + 'FLOAT) * (sort 'Zero to 'ZZ, op '_+_ to 'plus [none]) .
  sorts 'Foo .
  none
  none
  none
  none
endfm, 'plus['s_^2['0.Nat],'s_^2['0.Nat]]) .

red in META-LEVEL : metaReduce(
fmod 'FOO is
  including 'NAT * (op '_+_ to 'plus [none]) .
  sorts 'Foo .
  none
  none
  none
  none
endfm, 'plus['s_^2['0.Nat],'s_^2['0.Nat]]) .

red in META-LEVEL : metaReduce(
fmod 'FOO is
  including 'NAT .
  sorts 'Foo .
  none
  none
  none
  none
endfm, '_+_['s_^2['0.Nat],'s_^2['0.Nat]]) .

red in META-LEVEL : metaReduce(
fmod 'FOO is
  including 'NAT * (op '_+_ to 'plus [none]) .
  sorts 'Foo .
  none
  none
  none
  none
endfm, '_*_['s_^2['0.Nat],'s_^2['0.Nat]]) .

red in META-LEVEL : metaReduce(
fmod 'FOO is
  including 'NAT * (sort 'Zero to 'ZZ) .
  sorts 'Foo .
  none
  none
  none
  none
endfm, '_*_['s_^2['0.Nat],'s_^2['0.Nat]]) .

red in META-LEVEL : metaReduce(
fmod 'FOO is
  including 'NAT * (sort 'Zero to 'ZZ) .
  sorts 'Foo .
  none
  none
  none
  none
endfm, 'sd['s_^3['0.Nat],'s_^2['0.Nat]]) .

red in META-LEVEL : metaReduce(
fmod 'FOO is
  including 'NAT * (op '_+_ to 'plus [none]) .
  sorts 'Foo .
  none
  none
  none
  none
endfm, '0.Nat) .