proving a property about indexes