How does category theory address products of objects?
-
For example, how would I express a map from multiple objects to another object, analogous to a function of multiple parameters?
-
Answer:
When talking about a "map with multiple parameters", say from objects a and b the correct thing to do is to look at a map from the product [math]a \times b[/math]. For example, if [math]a = \{1,2\}[/math] and [math]b = \{3,4\}[/math], we'd get the product [math]a \times b = \{(1,3), (1,4), (2,3), (2,4)\}[/math]. But the question here is how to define the product in the abstract category theory sense, without reference to pairs or even to viewing the objects as sets. So, what's the key property that [math]a \times b[/math] needs to have? Motivated by the set view, [math]a \times b[/math] needs to have the property that we can get out an element of [math]a[/math] and an element of [math]b[/math]. So there should be two maps (or morphisms) [math]a \times b \to a[/math] and [math]a \times b \to b[/math]. These are called projection maps, and a mathematician might write them as [math]\pi_a[/math] or [math]\pi_b[/math]. A Haskell programmer might write them as fst or snd. Of course, there are a lot of objects with maps to [math]a[/math] and [math]b[/math], so how do we hone in on the right one? Well, somehow we want to say that the maps [math]\pi_a[/math] and [math]\pi_b[/math] are "independent" in some sense. With sets, we needed that [math](x, y) \in a \times b[/math] for every [math]x \in a[/math] and [math]y \in b[/math]. To phrase that in terms of maps: for any object [math]c[/math] with maps [math]f : c \to a[/math] and [math]g : c \to b[/math], we should be able to find a map [math]h : c \to a \times b[/math] such that [math]\pi_a \circ h = f[/math] and [math]\pi_b \circ h = g[/math]. An example might clear this up... back to the sets example. Suppose [math]c = \{0\}[/math], and that [math]f(0) = x[/math] and [math]g(0) = y[/math]. Then [math]h(0) = (x, y)[/math], [math]\pi_a((x,y)) = x[/math] and [math]\pi_b((x,y)) = y[/math]. So this property is basically asserting that [math](x, y) \in a \times b[/math]. We also want to require that [math]c[/math] be unique; otherwise, [math]a \times b[/math] might have two elements that act like [math](x, y)[/math]. So with that motivation, we can generally define: The product [math]a \times b[/math] is the object with maps [math]\pi_a : a \times b \to a[/math] and [math]\pi_b : a \times b \to b[/math] such that for any object [math]c[/math] with maps [math]f : c \to a[/math] and [math]g : c \to b[/math], there is a unique map [math]h : c \to a \times b[/math] such that [math]\pi_a \circ h = f[/math] and [math]\pi_b \circ h = g[/math]. If the product exists, it is unique up to isomorphism. This kind of construction is common in category theory; it is know as a http://en.wikipedia.org/wiki/Universal_property.
Travis Hance at Quora Visit the source
Other answers
Not enough room here, but I tried to answer these questions in two blog posts -- one about products, and one about functions of multiple parameters and currying. http://bartoszmilewski.com/2014/05/05/understanding-products-and-universal-constructions/ http://bartoszmilewski.com/2014/06/17/exponentials-currying-and-universal-constructions/
Bartosz Milewski
Related Q & A:
- How To Buy Wholesale Baby Products?Best solution by Yahoo! Answers
- How to post an array of complex objects (that has an array of complex objects) with jQuery?Best solution by Stack Overflow
- How can I sell beauty products?Best solution by Yahoo! Answers
- How does Apple market their products?Best solution by Quora
- How do companies market their products?Best solution by ehow.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.