Spaces
Explore
Communities
Statistics
Reports
Cluster
Status
Help
Higher_Order_Rewriting_Union_Beta 2019-03-28 22.10 pair #432270575
details
property
value
status
complete
benchmark
Applicative_05__Ex5Sorting.xml
ran by
Akihisa Yamada
cpu timeout
1200 seconds
wallclock timeout
300 seconds
memory limit
137438953472 bytes
execution host
n170.star.cs.uiowa.edu
space
Uncurried_Applicative_11
run statistics
property
value
solver
Wanda 2.1c
configuration
default
runtime (wallclock)
5.21621 seconds
cpu usage
5.21751
user time
4.91325
system time
0.304253
max virtual memory
254576.0
max residence set size
138112.0
stage attributes
key
value
starexec-result
YES
output
4.85/4.90 YES 5.18/5.20 We consider the system theBenchmark. 5.18/5.20 5.18/5.20 Alphabet: 5.18/5.20 5.18/5.20 0 : [] --> a 5.18/5.20 ascending!fac6220sort : [b] --> b 5.18/5.20 cons : [a * b] --> b 5.18/5.20 descending!fac6220sort : [b] --> b 5.18/5.20 insert : [a -> a -> a * a -> a -> a * b * a] --> b 5.18/5.20 max : [] --> a -> a -> a 5.18/5.20 min : [] --> a -> a -> a 5.18/5.20 nil : [] --> b 5.18/5.20 s : [a] --> a 5.18/5.20 sort : [a -> a -> a * a -> a -> a * b] --> b 5.18/5.20 5.18/5.20 Rules: 5.18/5.20 5.18/5.20 max 0 x => x 5.18/5.20 max x 0 => x 5.18/5.20 max s(x) s(y) => max x y 5.18/5.20 min 0 x => 0 5.18/5.20 min x 0 => 0 5.18/5.20 min s(x) s(y) => min x y 5.18/5.20 insert(f, g, nil, x) => cons(x, nil) 5.18/5.20 insert(f, g, cons(x, y), z) => cons(f z x, insert(f, g, y, g z x)) 5.18/5.20 sort(f, g, nil) => nil 5.18/5.20 sort(f, g, cons(x, y)) => insert(f, g, sort(f, g, y), x) 5.18/5.20 ascending!fac6220sort(x) => sort(min, max, x) 5.18/5.20 descending!fac6220sort(x) => sort(max, min, x) 5.18/5.20 5.18/5.20 This AFS is converted to an AFSM simply by replacing all free variables by meta-variables (with arity 0). 5.18/5.20 5.18/5.20 We use rule removal, following [Kop12, Theorem 2.23]. 5.18/5.20 5.18/5.20 This gives the following requirements (possibly using Theorems 2.25 and 2.26 in [Kop12]): 5.18/5.21 5.18/5.21 max 0 X >? X 5.18/5.21 max X 0 >? X 5.18/5.21 max s(X) s(Y) >? max X Y 5.18/5.21 min 0 X >? 0 5.18/5.21 min X 0 >? 0 5.18/5.21 min s(X) s(Y) >? min X Y 5.18/5.21 insert(F, G, nil, X) >? cons(X, nil) 5.18/5.21 insert(F, G, cons(X, Y), Z) >? cons(F Z X, insert(F, G, Y, G Z X)) 5.18/5.21 sort(F, G, nil) >? nil 5.18/5.21 sort(F, G, cons(X, Y)) >? insert(F, G, sort(F, G, Y), X) 5.18/5.21 ascending!fac6220sort(X) >? sort(min, max, X) 5.18/5.21 descending!fac6220sort(X) >? sort(max, min, X) 5.18/5.21 5.18/5.21 We use a recursive path ordering as defined in [Kop12, Chapter 5]. 5.18/5.21 5.18/5.21 Argument functions: 5.18/5.21 5.18/5.21 [[0]] = _|_ 5.18/5.21 [[insert(x_1, x_2, x_3, x_4)]] = insert(x_3, x_2, x_4, x_1) 5.18/5.21 [[nil]] = _|_ 5.18/5.21 5.18/5.21 We choose Lex = {insert} and Mul = {@_{o -> o -> o}, @_{o -> o}, ascending!fac6220sort, cons, descending!fac6220sort, max, min, s, sort}, and the following precedence: descending!fac6220sort > ascending!fac6220sort = max > min > s > sort > insert > @_{o -> o} > cons > @_{o -> o -> o} 5.18/5.21 5.18/5.21 Taking the argument function into account, and fixing the greater / greater equal choices, the constraints can be denoted as follows: 5.18/5.21 5.18/5.21 @_{o -> o}(@_{o -> o -> o}(max, _|_), X) >= X 5.18/5.21 @_{o -> o}(@_{o -> o -> o}(max, X), _|_) >= X 5.18/5.21 @_{o -> o}(@_{o -> o -> o}(max, s(X)), s(Y)) >= @_{o -> o}(@_{o -> o -> o}(max, X), Y) 5.18/5.21 @_{o -> o}(@_{o -> o -> o}(min, _|_), X) >= _|_ 5.18/5.21 @_{o -> o}(@_{o -> o -> o}(min, X), _|_) >= _|_ 5.18/5.21 @_{o -> o}(@_{o -> o -> o}(min, s(X)), s(Y)) >= @_{o -> o}(@_{o -> o -> o}(min, X), Y) 5.18/5.21 insert(F, G, _|_, X) > cons(X, _|_) 5.18/5.21 insert(F, G, cons(X, Y), Z) >= cons(@_{o -> o}(@_{o -> o -> o}(F, Z), X), insert(F, G, Y, @_{o -> o}(@_{o -> o -> o}(G, Z), X))) 5.18/5.21 sort(F, G, _|_) >= _|_ 5.18/5.21 sort(F, G, cons(X, Y)) > insert(F, G, sort(F, G, Y), X) 5.18/5.21 ascending!fac6220sort(X) >= sort(min, max, X) 5.18/5.21 descending!fac6220sort(X) >= sort(max, min, X) 5.18/5.21 5.18/5.21 With these choices, we have: 5.18/5.21 5.18/5.21 1] @_{o -> o}(@_{o -> o -> o}(max, _|_), X) >= X because [2], by (Star) 5.18/5.21 2] @_{o -> o}*(@_{o -> o -> o}(max, _|_), X) >= X because [3], by (Select) 5.18/5.21 3] X >= X by (Meta) 5.18/5.21 5.18/5.21 4] @_{o -> o}(@_{o -> o -> o}(max, X), _|_) >= X because [5], by (Star) 5.18/5.21 5] @_{o -> o}*(@_{o -> o -> o}(max, X), _|_) >= X because [6], by (Select) 5.18/5.21 6] @_{o -> o -> o}(max, X) @_{o -> o}*(@_{o -> o -> o}(max, X), _|_) >= X because [7] 5.18/5.21 7] @_{o -> o -> o}*(max, X, @_{o -> o}*(@_{o -> o -> o}(max, X), _|_)) >= X because [8], by (Select) 5.18/5.21 8] X >= X by (Meta) 5.18/5.21 5.18/5.21 9] @_{o -> o}(@_{o -> o -> o}(max, s(X)), s(Y)) >= @_{o -> o}(@_{o -> o -> o}(max, X), Y) because @_{o -> o} in Mul, [10] and [16], by (Fun) 5.18/5.21 10] @_{o -> o -> o}(max, s(X)) >= @_{o -> o -> o}(max, X) because [11], by (Star) 5.18/5.21 11] @_{o -> o -> o}*(max, s(X)) >= @_{o -> o -> o}(max, X) because @_{o -> o -> o} in Mul, [12] and [13], by (Stat) 5.18/5.21 12] max >= max by (Fun) 5.18/5.21 13] s(X) > X because [14], by definition 5.18/5.21 14] s*(X) >= X because [15], by (Select) 5.18/5.21 15] X >= X by (Meta) 5.18/5.21 16] s(Y) >= Y because [17], by (Star) 5.18/5.21 17] s*(Y) >= Y because [18], by (Select) 5.18/5.21 18] Y >= Y by (Meta) 5.18/5.21 5.18/5.21 19] @_{o -> o}(@_{o -> o -> o}(min, _|_), X) >= _|_ by (Bot) 5.18/5.21
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