First-occurrence indices under injective maps on a list #
List.idxOf_map_injOn preserves the first occurrence of a member when the map is
injective only on the elements that occur. Repeated elements are allowed, and the map
may behave arbitrarily outside the list. Membership of the searched value is required.
The proof is relocated unchanged from CNF compaction's relabeling API.