You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sort Error in Refinement: {vvv : [int] | len vvv == l}
The sort [int] is not numeric
because
Cannot unify int with [int] in expression: len vvv == l
because
Invalid Relation len vvv == l with operand types int and [int]
The problem persists when writing the dependent pair explicitly using an abstract refinement,
{-@ lists:: (Int, [Int], [Int])<\n-> {vv:[Int] | len vv = n}, \n_-> {vvv:[Int] | len vvv = n} > @-}
but goes away when swapping the order of the arguments of the last lambda (n and _):
{-@ lists:: (Int, [Int], [Int])<\n-> {vv:[Int] | len vv = n}, \_n-> {vvv:[Int] | len vvv = n} > @-}
The text was updated successfully, but these errors were encountered:
This program:
results in the following error:
The problem persists when writing the dependent pair explicitly using an abstract refinement,
but goes away when swapping the order of the arguments of the last lambda (
n
and_
):The text was updated successfully, but these errors were encountered: