Uses merely decidable equality, added length.

This commit is contained in:
Niels van der Weide committed 2017-09-21 14:12:51 +02:00
1 parent 0def5869cd
commit 39e2ce1c05
15 files changed
+193 -106

No files matched your search

+1 -3
View File
@@ -254,15 +254,13 @@ Section fset_dec_enumerated.
forall (X : FSet A),
hexists (fun (ls : list A) => forall a, a ∈ X = listExt ls a).
Proof.
simple refine (FSet_cons_ind _ _ _ _ _ _); simpl.
simple refine (FSet_cons_ind _ _ _ _ _ _) ; try (intros ; apply path_ishprop).
- apply tr. exists nil. simpl. done.
- intros a X Hls.
strip_truncations. apply tr.
destruct Hls as [ls Hls].
exists (cons a ls). intros b. cbn.
apply (ap (fun z => _ ∨ z) (Hls b)).
- intros. apply path_ishprop.
- intros. apply path_ishprop.
Defined.
Definition Kf_enumerated : Kf A -> enumerated A.