Debian Codegraph @

test-suite/bugs/bug_3649.v

raw
1 (* -*- coq-prog-args: ("-nois") -*- *)
2 (* File reduced by coq-bug-finder from original input, then from 9518 lines to 404 lines, then from 410 lines to 208 lines, then from 162 lines to 77 lines *)
3 (* coqc version trunk (September 2014) compiled on Sep 18 2014 21:0:5 with OCaml 4.01.0
4 coqtop version cagnode16:/afs/csail.mit.edu/u/j/jgross/coq-trunk,trunk (07e4438bd758c2ced8caf09a6961ccd77d84e42b) *)
5 Declare ML Module "rocq-runtime.plugins.ltac".
6 Set Default Proof Mode "Classic".
7 Reserved Notation "x -> y" (at level 99, right associativity, y at level 200).
8 Reserved Notation "x = y" (at level 70, no associativity).
9 Delimit Scope type_scope with type.
10 Bind Scope type_scope with Sortclass.
11 Open Scope type_scope.
12 Axiom admit : forall {T}, T.
13 Notation "A -> B" := (forall (_ : A), B) : type_scope.
14 Reserved Infix "o" (at level 40, left associativity).
15 Inductive paths {A : Type} (a : A) : A -> Type := idpath : paths a a where "x = y" := (@paths _ x y) : type_scope.
16 Global Set Primitive Projections.
17 Delimit Scope morphism_scope with morphism.
18 Record PreCategory :=
19 { object :> Type;
20 morphism : object -> object -> Type;
21
22 identity : forall x, morphism x x;
23 compose : forall s d d',
24 morphism d d'
25 -> morphism s d
26 -> morphism s d'
27 where "f 'o' g" := (compose f g) }.
28 Infix "o" := (@compose _ _ _ _) : morphism_scope.
29 Set Implicit Arguments.
30 Local Open Scope morphism_scope.
31 Record Functor (C D : PreCategory) :=
32 { object_of :> C -> D;
33 morphism_of : forall s d, morphism C s d
34 -> morphism D (object_of s) (object_of d) }.
35 Class IsIsomorphism {C : PreCategory} {s d} (m : morphism C s d) :=
36 { morphism_inverse : morphism C d s }.
37 Record NaturalTransformation C D (F G : Functor C D) := { components_of :> forall c, morphism D (F c) (G c) }.
38 Definition composeT C D (F F' F'' : Functor C D) (T' : NaturalTransformation F' F'') (T : NaturalTransformation F F')
39 : NaturalTransformation F F''.
40 exact admit.
41 Defined.
42 Definition functor_category (C D : PreCategory) : PreCategory.
43 exact (@Build_PreCategory (Functor C D)
44 (@NaturalTransformation C D)
45 admit
46 (@composeT C D)).
47 Defined.
48 Goal forall (C D : PreCategory) (G G' : Functor C D)
49 (T : @NaturalTransformation C D G G')
50 (H : @IsIsomorphism (@functor_category C D) G G' T)
51 (x : C),
52 @paths (morphism D (G x) (G x))
53 (@compose D (G x) (G' x) (G x)
54 ((@morphism_inverse (@functor_category C D) G G' T H) x)
55 (T x)) (@identity D (G x)).
56 intros.
57 (** This [change] succeeded, but did not progress, in 07e4438bd758c2ced8caf09a6961ccd77d84e42b, because [T0 x o T1 x] was not found in the goal *)
58 let T0 := match goal with |- context[components_of ?T0 ?x o components_of ?T1 ?x] => constr:(T0) end in
59 let T1 := match goal with |- context[components_of ?T0 ?x o components_of ?T1 ?x] => constr:(T1) end in
60 progress change (T0 x o T1 x) with ((fun y => y) (T0 x o T1 x)).
61 Abort.