Skip to content
Snippets Groups Projects
Commit 3c4993d2 authored by Ralf Jung's avatar Ralf Jung
Browse files

prove take_0

parent 3ae73218
No related branches found
No related tags found
1 merge request!209prove take_0
......@@ -1067,6 +1067,8 @@ Lemma take_drop_middle l i x :
Proof.
revert i x. induction l; intros [|?] ??; simplify_eq/=; f_equal; auto.
Qed.
Lemma take_0 l : take 0 l = [].
Proof. reflexivity. Qed.
Lemma take_nil n : take n [] =@{list A} [].
Proof. by destruct n. Qed.
Lemma take_S_r l n x : l !! n = Some x take (S n) l = take n l ++ [x].
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment