The green function method in the theory of antiferromagnetism