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
The problem is partial functions. In QS1 we would get e.g. findMin h = head (toList h), but in QS2 since both terms are partial they are not considered equal.
I tried implementing the QS1 behaviour but since that is unsound many laws go missing.
We should probably discover findMin h = head (toList h) but in pruning, treat it as spoon (findMin h) = spoon (head (toList h)) or similar.
The text was updated successfully, but these errors were encountered:
Isn't treating terms as spoon t unsound in general (I seem to remember us having a discussion about this?) Have you got any specific condition in mind which could make it sound?
examples/Heaps.hs
generated nicer laws in QS1.The problem is partial functions. In QS1 we would get e.g.
findMin h = head (toList h)
, but in QS2 since both terms are partial they are not considered equal.I tried implementing the QS1 behaviour but since that is unsound many laws go missing.
We should probably discover
findMin h = head (toList h)
but in pruning, treat it asspoon (findMin h) = spoon (head (toList h))
or similar.The text was updated successfully, but these errors were encountered: