Debian Codegraph @

test-suite/bugs/bug_3710.v

raw
1 (* File reduced by coq-bug-finder from original input, then from 13477 lines to 1457 lines, then from 1553 lines to 1586 lines, then \
2 from 1574 lines to 823 lines, then from 837 lines to 802 lines, then from 793 lines to 657 lines, then from 661 lines to 233 lines, t\
3 hen from 142 lines to 65 lines *)
4 (* coqc version trunk (October 2014) compiled on Oct 8 2014 13:38:17 with OCaml 4.01.0
5 coqtop version cagnode16:/afs/csail.mit.edu/u/j/jgross/coq-trunk,trunk (335cf2860bfd9e714d14228d75a52fd2c88db386) *)
6 Set Universe Polymorphism.
7 Set Primitive Projections.
8 Set Implicit Arguments.
9 Record sigT {A} (P : A -> Type) := existT { projT1 : A ; projT2 : P projT1 }.
10 Notation "{ x : A & P }" := (sigT (fun x:A => P)) : type_scope.
11 Definition relation (A : Type) := A -> A -> Type.
12 Class Reflexive {A} (R : relation A) := reflexivity : forall x : A, R x x.
13 Notation "( x ; y )" := (existT _ x y).
14 Notation "x .1" := (projT1 x).
15 Reserved Infix "o" (at level 40, left associativity).
16 Delimit Scope category_scope with category.
17 Record PreCategory :=
18 { object :> Type;
19 morphism : object -> object -> Type;
20 compose : forall s d d', morphism d d' -> morphism s d -> morphism s d' }.
21 Delimit Scope functor_scope with functor.
22 Record Functor (C D : PreCategory) := { object_of :> C -> D }.
23 Local Open Scope category_scope.
24 Class Isomorphic {C : PreCategory} (s d : C) := {}.
25 Axiom composeF : forall C D E (G : Functor D E) (F : Functor C D), Functor C E.
26 Infix "o" := composeF : functor_scope.
27 Local Open Scope functor_scope.
28 Definition sub_pre_cat {P : PreCategory -> Type} : PreCategory.
29 exact (@Build_PreCategory
30 { C : PreCategory & P C }
31 (fun C D => Functor C.1 D.1)
32 (fun _ _ _ F G => F o G)).
33 Defined.
34 Record NaturalTransformation C D (F G : Functor C D) := { components_of :> forall c, morphism D (F c) (G c) }.
35 Axiom composeT : forall C D (F F' F'' : Functor C D) (T' : NaturalTransformation F' F'') (T : NaturalTransformation F F'),
36 NaturalTransformation F F''.
37 Definition functor_category (C D : PreCategory) : PreCategory.
38 exact (@Build_PreCategory (Functor C D)
39 (@NaturalTransformation C D)
40 (@composeT C D)).
41 Defined.
42 Local Notation "C -> D" := (functor_category C D) : category_scope.
43 Definition NaturalIsomorphism (C D : PreCategory) F G : Type := @Isomorphic (C -> D) F G.
44 #[warning="context-outside-section"] Context `{P : PreCategory -> Type}.
45 Local Notation cat := (@sub_pre_cat P).
46 Goal forall (s d d' : cat) (m1 : morphism cat d d') (m2 : morphism cat s d),
47 NaturalIsomorphism (m1 o m2) (m1 o m2)%functor.
48 Fail exact (fun _ _ _ _ _ => reflexivity _).
49 Abort.