English
If α is a subsingleton, then length is injective; conversely, if length is injective, α is a subsingleton.
Русский
Если α — подсинглтон, то длина инъективна; наоборот, если длина инъективна, α — подсинглтон.
LaTeX
$$length_injective_iff.mpr inferInstance$$
Lean4
@[simp default + 1] -- Raise priority above `length_injective_iff`.
theorem length_injective [Subsingleton α] : Injective (length : List α → ℕ) :=
length_injective_iff.mpr inferInstance