Debian Codegraph @

test-suite/bugs/bug_3439.v

raw
1 Require Import TestSuite.admit.
2 (* File reduced by coq-bug-finder from original input, then from 3154 lines to 149 lines, then from 89 lines to 55 lines, then from 44 lines to 20 lines *)
3 Set Primitive Projections.
4 Generalizable All Variables.
5 Axiom IsHSet : Type -> Type.
6 Existing Class IsHSet.
7 Record PreCategory := { object :> Type }.
8 Notation IsStrictCategory C := (IsHSet (object C)).
9 #[export] Instance trunc_prod `{IsHSet A} `{IsHSet B} : IsHSet (A * B) | 100.
10 admit.
11 Defined.
12 Typeclasses Transparent object.
13 Definition prod (C D : PreCategory) : PreCategory := Build_PreCategory (Datatypes.prod C D).
14 Global Instance isstrict_category_product `{IsStrictCategory C, IsStrictCategory D} : IsStrictCategory (prod C D).
15 Proof.
16 typeclasses eauto.
17 Defined.
18
19
20 Set Typeclasses Debug.
21 (* File reduced by coq-bug-finder from original input, then from 7425 lines to 154 lines, then from 116 lines to 20 lines *)
22 Class Contr (A : Type) := { center : A }.
23 #[export] Instance contr_unit : Contr unit | 0 := {| center := tt |}.
24 Module non_prim.
25 Unset Primitive Projections.
26 Record PreCategory := { object :> Type }.
27 Lemma foo : Contr (object (@Build_PreCategory unit)).
28 Proof.
29 solve [ simpl; typeclasses eauto ] || fail "goal not solved".
30 Undo.
31 solve [ typeclasses eauto ].
32 Defined.
33 End non_prim.
34
35 Module prim.
36 Set Primitive Projections.
37 Record PreCategory := { object :> Type }.
38 Lemma foo : Contr (object (@Build_PreCategory unit)).
39 Proof.
40 solve [ simpl; typeclasses eauto ] || fail "goal not solved".
41 Undo.
42 solve [ typeclasses eauto ]. (* Error: No applicable tactic. *)
43 Defined.
44 End prim.