draft of [Congruence.add_neq], some fixes to invariant