Showing changes from revision #7 to #8:
Added | Removed | Changed
The concept definition if offunctor in homotopy type theory is a straightforward translation of the evident ordinary concept one. However, the notion ofhomomorphismsunivalent category? between allows us to construct some such functors that in classical mathematics would require either the categories axiom of choice or the use of anafunctors.
Let and be precategories. Informally, a functor consists of
In Formally, terms the type of formal functors fromCoq -code this to reads as follows (e.g.Ahrens-Kapulkin-Shulman 13 , isfunctors_transformations.v):
Definition functor_data (C C' : precategory_ob_mor) := total2 (
fun F : ob C -> ob C' =>
forall a b : ob C, a --> b -> F a --> F b).
Definition functor_on_objects {C C' : precategory_ob_mor}
(F : functor_data C C') : ob C -> ob C' := pr1 F.
Coercion functor_on_objects : functor_data >-> Funclass.
Definition functor_on_morphisms {C C' : precategory_ob_mor} (F : functor_data C C')
{ a b : ob C} : a --> b -> F a --> F b := pr2 F a b.
Local Notation "# F" := (functor_on_morphisms F)(at level 3).
Definition is_functor {C C' : precategory_data} (F : functor_data C C') :=
dirprod (forall a : ob C, #F (identity a) == identity (F a))
(forall a b c : ob C, forall f : a --> b, forall g : b --> c,
#F (f ;; g) == #F f ;; #F g).
Lemma isaprop_is_functor (C C' : precategory_data)
(F : functor_data C C'): isaprop (is_functor F).
Proof.
apply isofhleveldirprod.
apply impred; intro a.
apply (pr2 (_ --> _)).
repeat (apply impred; intro).
apply (pr2 (_ --> _)).
Qed.
Definition functor (C C' : precategory) := total2 (
fun F : functor_data C C' => is_functor F).
A formal definition in Coq? can be found in Ahrens-Kapulkin-Shulman 13.
By induction on identity, a functor also preserves (See precategory).
For functors and , their composite is given by
Composition of functors is associative .
Proof: Since composition of functions is associative, this follows immediately for the actions on objects and on homs. And since hom-sets are sets, the rest of the data is automatic.
Lemma 9.2.9 is coherent, i.e. the following pentagon of equalities commutes:
Category theory natural transformation full functor faithful functor
Benedikt Ahrens, Chris Kapulkin, Michael Shulman, section 4 of Univalent categories and the Rezk completion, Mathematical Structures in Computer Science 25.5 (2015): 1010-1039 (arXiv:1303.0584)
Univalent Foundations Project, section 9.2 of Homotopy Type Theory – Univalent Foundations of Mathematics, IAS 2013
CoqCoq? code formalizing the concept of functors includes the following:
Revision on September 7, 2018 at 18:03:31 by Mike Shulman. See the history of this page for a list of all contributions to it.