diff options
| author | Matthieu Sozeau | 2014-06-21 16:14:59 +0200 |
|---|---|---|
| committer | Matthieu Sozeau | 2014-06-21 16:14:59 +0200 |
| commit | 14ae5f4534ee5e632d82990e7db76305b9ca9b75 (patch) | |
| tree | 7ba63a0f2de145d04dddf01e17e25beeebbc72f6 /test-suite | |
| parent | 9b3a234e4cf002292ca4a67e1b72daac463b4c46 (diff) | |
- Add an option to refresh only algebraic universes, for e_type_of. The goal
there is not the same as in Evd.define.
- Fixed bugs #3330 and #3331.
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/3330.v (renamed from test-suite/bugs/opened/3330.v) | 66 | ||||
| -rw-r--r-- | test-suite/bugs/closed/3331.v (renamed from test-suite/bugs/opened/3331.v) | 15 |
2 files changed, 49 insertions, 32 deletions
diff --git a/test-suite/bugs/opened/3330.v b/test-suite/bugs/closed/3330.v index face3b2d54..0bd3033acb 100644 --- a/test-suite/bugs/opened/3330.v +++ b/test-suite/bugs/closed/3330.v @@ -1,4 +1,29 @@ (* File reduced by coq-bug-finder from original input, then from 12106 lines to 1070 lines *) +Set Universe Polymorphism. +Definition setleq (A : Type@{i}) (B : Type@{j}) := A : Type@{j}. + +Inductive foo : Type@{l} := bar : foo . +Section MakeEq. + Variables (a : foo@{i}) (b : foo@{j}). + + Let t := $(let ty := type of b in exact ty)$. + Definition make_eq (x:=b) := a : t. +End MakeEq. + +Definition same (x : foo@{i}) (y : foo@{i}) := x. + +Section foo. + + Variables x : foo@{i}. + Variables y : foo@{j}. + + Let AleqB := let foo := make_eq x y in (Type * Type)%type. + + Definition baz := same x y. +End foo. + +Definition baz' := Eval unfold baz in baz@{i j k l}. + Module Export HoTT_DOT_Overture. Module Export HoTT. Module Export Overture. @@ -1041,33 +1066,30 @@ Section Adjunction. Variable D : PreCategory. Variable F : Functor C D. Variable G : Functor D C. - Let Adjunction_Type := Eval simpl in hom_functor D o (F^op, 1) <~=~> hom_functor C o (1, G). -End Adjunction. -Undo. + Let Adjunction_Type := + Eval simpl in (hom_functor D) o (F^op, 1) <~=~> (hom_functor C) o (1, G). Record AdjunctionHom := { - mate_of : @NaturalIsomorphism - H - (Category.Prod.prod (Category.Dual.opposite C) D) - (@Core.set_cat H) - (@compose - (Category.Prod.prod (Category.Dual.opposite C) D) - (Category.Prod.prod (Category.Dual.opposite D) D) - (@Core.set_cat H) (@hom_functor H D) - (@pair (Category.Dual.opposite C) - (Category.Dual.opposite D) D D - (@opposite C D F) (identity D))) - (@compose - (Category.Prod.prod (Category.Dual.opposite C) D) - (Category.Prod.prod (Category.Dual.opposite C) C) - (@Core.set_cat H) (@hom_functor H C) - (@pair (Category.Dual.opposite C) - (Category.Dual.opposite C) D C - (identity (Category.Dual.opposite C)) G)) + mate_of : + @NaturalIsomorphism H + (Prod.prod (Category.Dual.opposite C) D) + (@set_cat H) + (@compose (Prod.prod (Category.Dual.opposite C) D) + (Prod.prod (Category.Dual.opposite D) D) + (@set_cat H) (@hom_functor H D) + (@pair (Category.Dual.opposite C) + (Category.Dual.opposite D) D D + (@opposite C D F) (identity D))) + (@compose (Prod.prod (Category.Dual.opposite C) D) + (Prod.prod (Category.Dual.opposite C) C) + (@set_cat H) (@hom_functor H C) + (@pair (Category.Dual.opposite C) + (Category.Dual.opposite C) D C + (identity (Category.Dual.opposite C)) G)) }. -Fail End Adjunction. +End Adjunction. (* Error: Illegal application: The term "NaturalIsomorphism" of type "forall (H : Funext) (C D : PreCategory), diff --git a/test-suite/bugs/opened/3331.v b/test-suite/bugs/closed/3331.v index 07504aed7c..9cd44bd0ca 100644 --- a/test-suite/bugs/opened/3331.v +++ b/test-suite/bugs/closed/3331.v @@ -24,13 +24,8 @@ Section groupoid_category. compute in H. change (forall (x y : X) (p q : x = y) (r s : p = q), Contr (r = s)) in H. assert (H' := H). - pose proof (_ : Contr (idpath = idpath :> (@paths (@paths X d d) idpath idpath))) as X0. (* success *) - clear H' X0. - Fail pose (_ : Contr (idpath = idpath :> (@paths (@paths X d d) idpath idpath))). (* Toplevel input, characters 21-22: -Error: -Cannot infer this placeholder. -Could not find an instance for "Contr (idpath = idpath)" in environment: - -X : Type -H : forall (x y : X) (p q : x = y) (r s : p = q), Contr (r = s) -d : X *) + set (foo:=_ : Contr (idpath = idpath :> (@paths (@paths X d d) idpath idpath))). (* success *) + clear H' foo. + Set Typeclasses Debug. + pose (_ : Contr (idpath = idpath :> (@paths (@paths X d d) idpath idpath))). +Abort.
\ No newline at end of file |
