Spaces
Explore
Communities
Statistics
Reports
Cluster
Status
Help
Higher_Order_Rewriting_Union_Beta 2019-03-28 22.10 pair #432270577
details
property
value
status
complete
benchmark
Applicative_05__Ex6Folding.xml
ran by
Akihisa Yamada
cpu timeout
1200 seconds
wallclock timeout
300 seconds
memory limit
137438953472 bytes
execution host
n094.star.cs.uiowa.edu
space
Uncurried_Applicative_11
run statistics
property
value
solver
Wanda 2.1c
configuration
default
runtime (wallclock)
0.658013 seconds
cpu usage
0.658681
user time
0.595668
system time
0.063013
max virtual memory
133824.0
max residence set size
18568.0
stage attributes
key
value
starexec-result
YES
output
0.59/0.63 YES 0.62/0.65 We consider the system theBenchmark. 0.62/0.65 0.62/0.65 Alphabet: 0.62/0.65 0.62/0.65 0 : [] --> c 0.62/0.65 1 : [] --> c 0.62/0.65 add : [] --> c -> a -> c 0.62/0.65 cons : [a * b] --> b 0.62/0.65 fold : [c -> a -> c * b * c] --> c 0.62/0.65 mul : [] --> c -> a -> c 0.62/0.65 nil : [] --> b 0.62/0.65 prod : [b] --> c 0.62/0.65 sum : [b] --> c 0.62/0.65 0.62/0.65 Rules: 0.62/0.65 0.62/0.65 fold(f, nil, x) => x 0.62/0.65 fold(f, cons(x, y), z) => fold(f, y, f z x) 0.62/0.65 sum(x) => fold(add, x, 0) 0.62/0.65 fold(mul, x, 1) => prod(x) 0.62/0.65 0.62/0.65 This AFS is converted to an AFSM simply by replacing all free variables by meta-variables (with arity 0). 0.62/0.65 0.62/0.65 We use rule removal, following [Kop12, Theorem 2.23]. 0.62/0.65 0.62/0.65 This gives the following requirements (possibly using Theorems 2.25 and 2.26 in [Kop12]): 0.62/0.65 0.62/0.65 fold(F, nil, X) >? X 0.62/0.65 fold(F, cons(X, Y), Z) >? fold(F, Y, F Z X) 0.62/0.65 sum(X) >? fold(add, X, 0) 0.62/0.65 fold(mul, X, 1) >? prod(X) 0.62/0.65 0.62/0.65 We use a recursive path ordering as defined in [Kop12, Chapter 5]. 0.62/0.65 0.62/0.65 Argument functions: 0.62/0.65 0.62/0.65 [[0]] = _|_ 0.62/0.65 [[add]] = _|_ 0.62/0.65 [[fold(x_1, x_2, x_3)]] = fold(x_2, x_1, x_3) 0.62/0.65 0.62/0.65 We choose Lex = {fold, prod} and Mul = {1, @_{o -> o -> o}, @_{o -> o}, cons, mul, nil, sum}, and the following precedence: 1 > cons > mul > nil > sum > fold = prod > @_{o -> o -> o} > @_{o -> o} 0.62/0.65 0.62/0.65 Taking the argument function into account, and fixing the greater / greater equal choices, the constraints can be denoted as follows: 0.62/0.65 0.62/0.65 fold(F, nil, X) >= X 0.62/0.65 fold(F, cons(X, Y), Z) >= fold(F, Y, @_{o -> o}(@_{o -> o -> o}(F, Z), X)) 0.62/0.65 sum(X) >= fold(_|_, X, _|_) 0.62/0.65 fold(mul, X, 1) > prod(X) 0.62/0.65 0.62/0.65 With these choices, we have: 0.62/0.65 0.62/0.65 1] fold(F, nil, X) >= X because [2], by (Star) 0.62/0.65 2] fold*(F, nil, X) >= X because [3], by (Select) 0.62/0.65 3] X >= X by (Meta) 0.62/0.65 0.62/0.65 4] fold(F, cons(X, Y), Z) >= fold(F, Y, @_{o -> o}(@_{o -> o -> o}(F, Z), X)) because [5], by (Star) 0.62/0.65 5] fold*(F, cons(X, Y), Z) >= fold(F, Y, @_{o -> o}(@_{o -> o -> o}(F, Z), X)) because [6], [9], [11] and [13], by (Stat) 0.62/0.65 6] cons(X, Y) > Y because [7], by definition 0.62/0.65 7] cons*(X, Y) >= Y because [8], by (Select) 0.62/0.65 8] Y >= Y by (Meta) 0.62/0.65 9] fold*(F, cons(X, Y), Z) >= F because [10], by (Select) 0.62/0.65 10] F >= F by (Meta) 0.62/0.65 11] fold*(F, cons(X, Y), Z) >= Y because [12], by (Select) 0.62/0.65 12] cons(X, Y) >= Y because [7], by (Star) 0.62/0.65 13] fold*(F, cons(X, Y), Z) >= @_{o -> o}(@_{o -> o -> o}(F, Z), X) because fold > @_{o -> o}, [14] and [17], by (Copy) 0.62/0.65 14] fold*(F, cons(X, Y), Z) >= @_{o -> o -> o}(F, Z) because fold > @_{o -> o -> o}, [9] and [15], by (Copy) 0.62/0.65 15] fold*(F, cons(X, Y), Z) >= Z because [16], by (Select) 0.62/0.65 16] Z >= Z by (Meta) 0.62/0.65 17] fold*(F, cons(X, Y), Z) >= X because [18], by (Select) 0.62/0.65 18] cons(X, Y) >= X because [19], by (Star) 0.62/0.65 19] cons*(X, Y) >= X because [20], by (Select) 0.62/0.65 20] X >= X by (Meta) 0.62/0.65 0.62/0.65 21] sum(X) >= fold(_|_, X, _|_) because [22], by (Star) 0.62/0.65 22] sum*(X) >= fold(_|_, X, _|_) because sum > fold, [23], [24] and [26], by (Copy) 0.62/0.65 23] sum*(X) >= _|_ by (Bot) 0.62/0.65 24] sum*(X) >= X because [25], by (Select) 0.62/0.65 25] X >= X by (Meta) 0.62/0.65 26] sum*(X) >= _|_ by (Bot) 0.62/0.65 0.62/0.65 27] fold(mul, X, 1) > prod(X) because [28], by definition 0.62/0.65 28] fold*(mul, X, 1) >= prod(X) because fold = prod, [29] and [30], by (Stat) 0.62/0.65 29] X >= X by (Meta) 0.62/0.65 30] fold*(mul, X, 1) >= X because [29], by (Select) 0.62/0.65 0.62/0.65 We can thus remove the following rules: 0.62/0.65 0.62/0.65 fold(mul, X, 1) => prod(X) 0.62/0.65 0.62/0.65 We use rule removal, following [Kop12, Theorem 2.23]. 0.62/0.65 0.62/0.65 This gives the following requirements (possibly using Theorems 2.25 and 2.26 in [Kop12]): 0.62/0.65 0.62/0.65 fold(F, nil, X) >? X 0.62/0.65 fold(F, cons(X, Y), Z) >? fold(F, Y, F Z X) 0.62/0.65 sum(X) >? fold(add, X, 0) 0.62/0.65 0.62/0.65 We use a recursive path ordering as defined in [Kop12, Chapter 5]. 0.62/0.65
popout
output may be truncated. 'popout' for the full output.
job log
popout
actions
all output
return to Higher_Order_Rewriting_Union_Beta 2019-03-28 22.10