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

add size_set_seq

parent cd1d6048
No related branches found
No related tags found
No related merge requests found
...@@ -523,3 +523,11 @@ Section infinite. ...@@ -523,3 +523,11 @@ Section infinite.
Qed. Qed.
End infinite. End infinite.
End fin_set. End fin_set.
Lemma size_set_seq `{FinSet nat C} start len :
size (set_seq (C:=C) start len) = len.
Proof.
rewrite <-list_to_set_seq, size_list_to_set.
2:{ apply NoDup_seq. }
rewrite seq_length. done.
Qed.
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