Maintainship of edit-distance and lattices