diff options
| author | Xavier Clerc | 2014-09-26 13:30:19 +0200 |
|---|---|---|
| committer | Xavier Clerc | 2014-09-26 13:30:19 +0200 |
| commit | 9b1b8aba9cd40cc91fd9d52af4e6c075311ba4db (patch) | |
| tree | 200b94e827381cda5102b518291eb1962adb8311 /test-suite/bugs/opened/3209.v | |
| parent | 158398435d1727e59f933f3eff6b58c5a635ffb8 (diff) | |
Add a bunch of reproduction files for bugs.
Diffstat (limited to 'test-suite/bugs/opened/3209.v')
| -rw-r--r-- | test-suite/bugs/opened/3209.v | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test-suite/bugs/opened/3209.v b/test-suite/bugs/opened/3209.v new file mode 100644 index 0000000000..3203afa139 --- /dev/null +++ b/test-suite/bugs/opened/3209.v @@ -0,0 +1,17 @@ +Inductive eqT {A} (x : A) : A -> Type := + reflT : eqT x x. +Definition Bi_inv (A B : Type) (f : (A -> B)) := + sigT (fun (g : B -> A) => + sigT (fun (h : B -> A) => + sigT (fun (α : forall b : B, eqT (f (g b)) b) => + forall a : A, eqT (h (f a)) a))). +Definition TEquiv (A B : Type) := sigT (fun (f : A -> B) => Bi_inv _ _ f). + +Axiom UA : forall (A B : Type), TEquiv (TEquiv A B) (eqT A B). +Definition idtoeqv {A B} (e : eqT A B) : TEquiv A B := + sigT_rect (fun _ => TEquiv A B) + (fun (f : TEquiv A B -> eqT A B) H => + sigT_rect (fun _ => TEquiv A B) + (fun g _ => g e) + H) + (UA A B). |
