2017-11-23 1 views

答えて

1

isABBの定義に括弧がないことが問題です。

読み込みする必要があります。

predicate isABB (t:Tree<int>) 
{ 
match t 
    case Empty => true 
    case Node(l,d,r) => isABB(l) && isABB(r) 
         && (forall x :: x in multisetOfTree(l) ==> x <= t.root) 
         && (forall x :: x in multisetOfTree(r) ==> t.root <= x) 
} 
+0

UPS、おかげで、Paqui –

関連する問題