(the bug is actually in permsymb_single_X()). Note that function f() is not invertible, although I don't think this matters. The two calls to permsymb() should both return a length-two vector, and the first one does so. But the second one is incorrect: it should return something like c(as.free("a"),as.free("b")) (which is length two) but actually returns as.free("ab"), which is length one.
Look:
(the bug is actually in
permsymb_single_X()
). Note that functionf()
is not invertible, although I don't think this matters. The two calls topermsymb()
should both return a length-two vector, and the first one does so. But the second one is incorrect: it should return something likec(as.free("a"),as.free("b"))
(which is length two) but actually returnsas.free("ab")
, which is length one.