Dialectics: the algebra of revolution