(* File reduced by coq-bug-finder from original input, then from 8808 lines to 424 lines, then from 432 lines to 196 lines, then from\
145 lines to 82 lines *) (* coqc version trunk (September 2014) compiled on Sep 18 2014 21:0:5 with OCaml 4.01.0
coqtop version cagnode16:/afs/csail.mit.edu/u/j/jgross/coq-trunk,trunk (07e4438bd758c2ced8caf09a6961ccd77d84e42b) *)
Reserved Infix"o" (at level 40, left associativity). GlobalSet Primitive Projections.
DelimitScope morphism_scope with morphism. DelimitScope category_scope with category. DelimitScope object_scope with object.
identity : forall x, morphism x x;
compose : forall s d d',
morphism d d'
-> morphism s d
-> morphism s d' where"f 'o' g" := (compose f g)
}. Arguments identity {!C%_category} / x%_object : rename.
Infix"o" := (@compose _ _ _ _) : morphism_scope.
LocalOpenScope morphism_scope. Definition prodC (C D : PreCategory) : PreCategory.
refine (@Build_PreCategory
(C * D)%type
(fun s d => (morphism C (fst s) (fst d)
* morphism D (snd s) (snd d))%type)
(fun x => (identity (fst x), identity (snd x)))
(fun s d d' m2 m1 => (fst m2 o fst m1, snd m2 o snd m1))). Defined.
LocalInfix"*" := prodC : category_scope.
DelimitScope functor_scope with functor.
Record Functor (C D : PreCategory) :=
{
object_of :> C -> D;
morphism_of : forall s d, morphism C s d
-> morphism D (object_of s) (object_of d);
identity_of : forall x, morphism_of _ _ (identity x)
= identity (object_of x)
}. Arguments morphism_of [C%_category] [D%_category] F%_functor [s%_object d%_object] m%_morphism : rename, simpl nomatch. Notation"F '_1' m" := (morphism_of F m) (at level 10, no associativity) : morphism_scope. Axiom cheat : forall {A}, A.
Record NaturalTransformation C D (F G : Functor C D) := { components_of :> forall c, morphism D (F c) (G c) }. Definition functor_category (C D : PreCategory) : PreCategory. exact (@Build_PreCategory (Functor C D)
(@NaturalTransformation C D) cheat cheat). Defined.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.