Use of semi-invariants for an algebraic version of the internal model principle