1
0
mirror of https://github.com/nmvdw/HITs-Examples synced 2025-11-03 15:13:51 +01:00

Additions to set interface

This commit is contained in:
Niels van der Weide
2017-09-29 23:31:06 +02:00
parent 00d4943e2d
commit 81f5dbcbd5
2 changed files with 24 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ Section ListToSet.
Fixpoint reverse (l : list A) : list A :=
match l with
| nil => nil
| cons a l => list_union _ (reverse l) {|a|}
| cons a l => {|a|} (reverse l) {|a|}
end.
Lemma reverse_set (l : list A) :
@@ -98,7 +98,8 @@ Section ListToSet.
- reflexivity.
- rewrite append_union, ?IHl.
simpl.
rewrite nr.
symmetry.
rewrite nr, comm, <- assoc, idem.
apply comm.
Defined.