AndrasKovacs/elaboration-zoo

Unification should check for spine length equality?

atennapel opened this issue · 2 comments

Shouldn't the spines be the same length here:

(VNe h sp, VNe h' sp') | h == h' -> zipWithM_ (go vs) sp sp'

The two sides in unification always have the same type, so if the heads are equal, then the spines cannot be of different length (because then the sides would have different type).

Right, that makes sense.