Discrete mathematics algebraic system