Von Neumann dimension, Hodge index theorem and geometric applications