theorem characterising equality of wf sptrees