Dimension reduction for discrete systems