On an algebraic generalization of the quantum mechanical formalism. I. И. фон Нейман Matematiceskij sbornik