pub proof fn lemma_injective_implies_injective_on<T, U>(
f: FnSpec<(T,), U>,
dom: Set<T>,
)Expand description
requires
injective(f),ensuresinjective_on(f, dom),A function is injective on the whole type implies that it is injective on any sub-domain.