diff options
author | 2017-03-19 15:11:37 -0400 | |
---|---|---|
committer | 2017-03-19 15:11:37 -0400 | |
commit | ee42b4a8c745c0953bc62bb60c768ff595ca0637 (patch) | |
tree | 9c1ab0600111d5251b36f6670029101f071b2466 /src/Reflection/Named | |
parent | 8675a17166b46001fadbfda32e8851969277ec59 (diff) |
Add mname_list_unique_nil
Diffstat (limited to 'src/Reflection/Named')
-rw-r--r-- | src/Reflection/Named/NameUtilProperties.v | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Reflection/Named/NameUtilProperties.v b/src/Reflection/Named/NameUtilProperties.v index 29529a34a..4fe5d923a 100644 --- a/src/Reflection/Named/NameUtilProperties.v +++ b/src/Reflection/Named/NameUtilProperties.v @@ -81,6 +81,12 @@ Section language. Definition mname_list_unique_skipn n ls : mname_list_unique force ls -> mname_list_unique force (skipn n ls) := fun H => proj2 (@mname_list_unique_firstn_skipn n ls H). + Lemma mname_list_unique_nil + : mname_list_unique force nil. + Proof. + unfold mname_list_unique; simpl; intros ??. + rewrite firstn_nil, skipn_nil; simpl; auto. + Qed. End monad. Lemma split_onames_firstn_skipn @@ -114,6 +120,8 @@ Section language. intros H k n; specialize (H k n). rewrite map_id in H; assumption. Qed. + Definition oname_list_unique_nil : oname_list_unique (@nil (option Name)) + := mname_list_unique_nil _ (fun x => x). Lemma split_names_firstn_skipn @@ -148,4 +156,6 @@ Section language. rewrite firstn_map, skipn_map in H. eauto using in_map. Qed. + Definition name_list_unique_nil : name_list_unique nil + := mname_list_unique_nil _ (@Some Name). End language. |