Invariant on ts_sequent and some debug