English
For a fixed n and a, the map t ↦ replicate(n, a) is injective in its right argument.
Русский
Для фиксированного n и a отображение t ↦ replicate(n, a) инъективно по правому аргументу.
LaTeX
$$$$\\forall a:\\\\alpha,\\\\forall n:\\\\mathbb{N},\\\\forall t_1,t_2:\\\\mathrm{List}\\\\alpha,\\\\ replicate(n, a) = replicate(n, a) \\\\Rightarrow t_1 = t_2.$$$$
Lean4
theorem replicate_right_injective {n : ℕ} (hn : n ≠ 0) : Injective (@replicate α n) := fun _ _ h =>
(eq_replicate_iff.1 h).2 _ <| mem_replicate.2 ⟨hn, rfl⟩