More functions and lemmas for hseq.