Prove nog_un_invariant, start work on pi_invariant.