Dual of the Auslander-Bridger formula and GF-perfectness