diff --git a/theories/list.v b/theories/list.v index 994917a015971bf5e132d317202d0044d19092e5..18365ab4e5859647d0662284b67273837158a977 100644 --- a/theories/list.v +++ b/theories/list.v @@ -1155,6 +1155,8 @@ Lemma elem_of_replicate_inv x n y : x ∈ replicate n y → x = y. Proof. induction n; simpl; rewrite ?elem_of_nil, ?elem_of_cons; intuition. Qed. Lemma replicate_S n x : replicate (S n) x = x :: replicate n x. Proof. done. Qed. +Lemma replicate_S_end n x : replicate (S n) x = replicate n x ++ [x]. +Proof. induction n; f_equal/=; auto. Qed. Lemma replicate_plus n m x : replicate (n + m) x = replicate n x ++ replicate m x. Proof. induction n; f_equal/=; auto. Qed.