$F$-distance space