Skip to the Main Content

Note:These pages make extensive use of the latest XHTML and CSS Standards. They ought to look great in any standards-compliant modern browser. Unfortunately, they will probably look horrible in older browsers, like Netscape 4.x and IE 4.x. Moreover, many posts use MathML, which is, currently only supported in Mozilla. My best suggestion (and you will thank me when surfing an ever-increasing number of sites on the web which have been crafted to use the new standards) is to upgrade to the latest version of your browser. If that's not possible, consider moving to the Standards-compliant and open-source Mozilla browser.

September 25, 2007

Progic II

Posted by David Corfield

My research time at present largely consists of the time it takes me to travel to Canterbury and back. Here’s what I came up with on the subject of progic on yesterday’s trip down.

A probabilistic predicate, PP, I said back here, is a map from XX to [0,1][0, 1]. But another way to look at it is as a conditional probability distribution on the set 22 given XX. This is a map in the Kleisli category of the probability monad. In fact, our probabilistic predicate is a map P:X2P: X \to 2. Now we can look at the composition of a distribution over XX and this PP.

Let’s take XX a set of dogs, Q(x)Q(x) is a probability distibution over XX, perhaps recording my degree of belief in which dog I saw just now as it dashed past. Then if P(x)P(x) is the predicate recording my belief as to whether xx is a poodle, then xP(x)×Q(x)\sum_x P(x) \times Q(x) is my degree of belief that I just glimpsed a poodle.

This is one of Mumford’s random constants, i.e., probabilistic predicates over {*}, or maps in the Kleisli category 121 \to 2.

Now how much of all that stuff about functions between XX and YY and adjunctions that I mentioned before can we bring with us? First, why not have probabilistic functions, or in other words conditional distributions Own(y|x)Own(y | x), e.g., recording my uncertainty as to the owner of dog xx? Then for every probabilistic predicate on humans, I can pull it back to give a probabilistic predicate on dogs. E.g., if F(y)F(y) records my degree of belief that person yy is French, I have a degree of belief, yF(y)Own(y|x)\sum_y F(y) \cdot Own(y | x) that xx is owned by a Frenchman, and x,yF(y)Own(y|x)Q(x)\sum_{x, y} F(y) \cdot Own(y | x) \cdot Q(x) that the dog I just glimpsed is owned by a Frenchman.

But can we form those adjunctions? An obvious choice of a structure to place on the probabilistic predicates on XX is a partial order where PQP \leq Q if and only if P(x)Q(x)P(x) \leq Q(x), for all xXx \in X. So if ‘Poodle’ \leq ‘owned by a Frenchman’, do we have something like ‘owner of at least one poodle’ \leq ‘French’? It seems to me unlikely that there are mappings from probabilistic predicates over YY to those over XX, adjoint to this ‘multiplication’ by Own(y|x)Own(y | x).

Posted at September 25, 2007 9:34 AM UTC

TrackBack URL for this Entry:   https://golem.ph.utexas.edu/cgi-bin/MT-3.0/dxy-tb.fcgi/1437

17 Comments & 1 Trackback

Re: Progic II

We can see the adjoints at play in the case of predicate logic preserving (co)limits.

Substitution being both a left and right adjoint, we have

Being owned by a French and happy person is equivalent to being owned by a French person and being owned by a happy person.

(There being just one owner.)

Being owned by a French or a happy person is equivalent to being owned by a French person or being owned by a happy person.

So, the product and coproduct are preserved.

Now for the adjoints:

Being an owner of only poodles and an owner of only black dogs is equivalent to being an owner only of black poodles.

But now ‘and’, including the one implicit in ‘black poodles’, cannot be replaced by ‘or’.

Being an owner of a poodle or an owner of a black dog is equivalent to being an owner of a black dog or a poodle.

Now ‘or’ cannot be replaced by ‘and’.

This nice picture is going to fall apart presumably in the probabilistic case.

Posted by: David Corfield on September 25, 2007 2:33 PM | Permalink | Reply to this

Re: Progic II

You might want to look into using the category of probability kernels (where the objects are measurable spaces, and the morphisms are probability kernels between these spaces, which can be thought of either as families of probability measures in the target space indexed by the domain, or as a linear map from probability measures in the domain to that in the target). It seems to be a fairly convenient category for managing concepts such as relative information, relative products, conditional expectation, independence, etc.; they also show up in learning theory. (Strangely, however, they seem to fail to show up much on the internet; I was unable to find a good introduction to them online, but see for instance page 20 of this book.)

[Hmm, weird, I can’t get that URL to show up at all. It was Kallenberg’s “Foundations of modern probability” on Google Books.]

Posted by: Terry Tao on September 25, 2007 3:41 PM | Permalink | Reply to this

Re: Progic II

Thanks. Something to read on the train. Google Books seem to delight in missing out passages where kernels are mentioned.

Posted by: David Corfield on September 25, 2007 6:29 PM | Permalink | Reply to this

Re: Progic II

Terry wrote:

You might want to look into using the category of probability kernels (where the objects are measurable spaces, and the morphisms are probability kernels between these spaces, which can be thought of either as families of probability measures in the target space indexed by the domain, or as a linear map from probability measures in the domain to that in the target).

This sounds exactly like the ‘Kleisli category’ or ‘category of free algebras’ that David and I are talking about!

Indeed there are always two equivalent ways to describe morphisms in such situations. The simpler way is the first one you mention. This is what I called a probabilistic morphism from XX to YY: a map from XX to the space of probability measures on YY:

XfPYX \stackrel{f}{\to} P Y

But the second way makes it a bit more obvious how to compose these morphisms.

I composed my morphisms the hard way, like this:

XfPYPgPPZμ ZPZX \stackrel{f}{\to} P Y \stackrel{P g}{\to} P P Z \stackrel{\mu_Z}{\to} P Z

where in the last step we convert a probability measure on probability measures on ZZ to a probability measure on ZZ. This is standard ‘Kleisli category’ yoga.

Posted by: John Baez on September 25, 2007 9:18 PM | Permalink | Reply to this

Re: Progic II

It’s nice to see progress on the progic project. Do you think it’s philosophically pukka enough to slip through the foundationalist filter into the vats of funding? Certainly both probability and logic still count as ‘philosophical’ — while the territories of geometry and group theory have somehow been lost to philosophers.

What follows is a brief attempt to understand, explain, and popularize what you’ve done so far.

First: when first learning monads, I found the terms ‘Kleisli category’ and ‘Eilenberg–Moore category’ tremendously unevocative and off-putting. Instead of talking about the ‘Eilenberg–Moore category’ of a monad, I wish people would talk about the ‘category of algebras’ of a monad — since that’s what it is. And, instead of talking about the ‘Kleisli category’ of the monad, I wish they’d talk about its ‘category of free algebras’. Let’s call a spade a spade!

Anyway:

You seem to be blending logic as done in the topos SetSet with ‘my’ probability monad P:SetSetP : Set \to Set Or maybe you’re blending logic as done in the topos (?) of Polish spaces with ‘your’ probability monad P:PolPolP : Pol \to Pol I guess when making initial forays into the subject it’s not worth getting too specific about which formalism you’re using. The approach using sets has the advantage of being cheap and low-tech — everyone thinks they know what a set is. But eventually you’ll want to use the high-budget Polish space approach, to get Lebesgue measure on [0,1][0,1] into the game!

One advantage of keeping both options on the table is that it provides an excuse to imagine you’re working very generally, starting from any topos equipped with a ‘probability monad’. I’m not sure what a probability monad actually is at this level of generality. But that doesn’t matter! I’ll just take the formal structure of ‘topos with monad’ and use it to examine what you’ve done so far…

Given objects XX and YY in our topos, a probabilistic morphism from XX to YY is a morphism from XX to probability measures on YY: f:XPY f: X \to P Y

You’ve given two examples:

  • A point in XX is a morphism f:1X f: 1 \to X so a probabilistic point is a morphism f:1PX f: 1 \to P X that is, a probability measure on XX.
  • A predicate on XX is a morphism f:XΩ f: X \to \Omega where Ω\Omega is the subobject classifier. So, a probabilistic predicate of XX is a morphism f:XPΩ f: X \to P\Omega In your examples Ω=2\Omega = 2 and PΩ=[0,1]P\Omega = [0,1], so a probabilistic predicate on XX just assigns a probablity to each point of XX.

As you note, we can compose a probabilistic point and a probabilistic predicate and get a point in PΩP\Omega, that is, a probability. This is just the probability that our probabilistic predicate is true for our probabilistic point.

How can we compose probabilistic morphisms? We can do it thanks to the wonders of the Kleisli category… err, the category of free algebras of PP.

Let me remind the kids how this works:

Given a probabilistic morphism ff from XX to YY: f:XPY f: X \to P Y and a probabilistic morphism gg from YY to ZZ: g:YPZ g: Y \to P Z we can compose ff with Pg:PYPPZ P g: P Y \to P P Z and then use our ability to squash probability measures on a space of probability measures down to mere probability measures: μ Z:PPZPZ \mu_Z : P P Z \to P Z The result is a probabilistic morphism from XX to ZZ: μ ZPgf:XPZ \mu_Z \circ P g \circ f : X \to P Z

So: go ahead and blend everything you know about logic — formulated using topoi — with probability theory — formulated using the probability monad. A bunch of stuff will work just because you’ve got a topos with a monad on it. But at some point, you’re gonna want to know how the monad gets along with the topos structures: products, coproducts, exponentials, etc. What can you say about these:

P(X×Y)P(X \times Y)

P(X+Y)P(X + Y)

P(Y X)P(Y^X)

For example, does the probability monad admit a strength? Is it monoidal? I think so.

Someone who actually knows topos theory, like Todd Trimble, could probably list three dozen ways that a monad can get along with a topos.

Posted by: John Baez on September 25, 2007 4:23 PM | Permalink | Reply to this

Re: Progic II

By the way, I know that in the comment above I sound like one of those pompous jerks who try to embed any new idea in some elaborate formalism just to make it harder to understand.

It’s just that people have put a lot of thought into topoi and monads, so it’s fun if you know about them to see how much of David’s progic project can be phrased in those terms — and doing this raises some new questions, namely, how the operations of logic (built into the topos) and probability theory (built into the monad) interact.

In short, smashing big abstract formalisms against each other can shoot off interesting sparks.

Posted by: John Baez on September 25, 2007 5:28 PM | Permalink | Reply to this

Re: Progic II

I’ve never tried to understand what ‘admitting a strength’ really means. Is there an easy example to get what it’s about?

This ‘getting along’ you mention between monad and topos is the tricky part. In the case of logic over Sets you have Pred(X+Y)(X + Y) = Pred (X)×(X) \times Pred (Y)(Y), where ‘Pred’ gives you the predicates on a set.

And, as I mentioned, substitution from predicates of one set to another by way a function, preserves both join and meet.

But in the case of the probability monad, distributions over (X+Y)(X + Y) don’t neatly match up with distributions over XX and over YY. I suppose you could say they give you a distribution over XX and one over YY and a parameter to tell you the mixture. But even there, if XX or YY is outside the support, then there’s trouble.

Posted by: David Corfield on September 26, 2007 3:36 PM | Permalink | Reply to this

Re: Progic II

I’m not too clear on why people invented strong monads in the first place. But, it seems pretty likely that the probability monad admits a strength, since there’s an obvious map

X×PYP(X×Y) X \times PY \to P(X \times Y)

sending a point xXx \in X and a probability measure μ\mu on YY to the probability measure δ xμ\delta_x \otimes \mu on X×YX \times Y.

I haven’t directly checked that it satisfies all the axioms, but I bet it does… especially since the Wikipedia article defines commutative strong monads on symmetric monoidal categories and says “One interesting fact about commutative strong monads is that they are ‘the same as’ symmetric monoidal monads.”

While I again haven’t bothered to check it, it seems pretty obvious that the probability monad is monoidal, meaning we have a very well-behaved map

PX×PYP(X×Y) P X \times P Y \to P(X \times Y)

sending a probability measure μ\mu on XX and a probability measure ν\nu on YY to the probability measure μν\mu \otimes \nu on X×YX \times Y.

In short, I get the impression that while there are lots of subtly different conditions saying that a monad gets along with tensor products, the probability monad satisfies all of these with respect to the cartesian product.

Posted by: John Baez on September 28, 2007 5:03 PM | Permalink | Reply to this

Re: Progic II

…it seems pretty obvious that the probability monad is monoidal…

So then:

The Kleisli category of a monoidal monad has a canonical monoidal structure, induced by the monoidal structure of the monad. The canonical adjunction between C and the Kleisli category is a monoidal adjunction with respect to this monoidal structure.

Posted by: David Corfield on September 28, 2007 5:19 PM | Permalink | Reply to this

Re: Progic II

Robin wrote:

A symmetric monoidal closed category CC is enriched over itself, and a strong monad is just a monad on CC in the 2-category of CC-enriched categories. It turns out that a monad admits a tensorial strength just when it “is” strong in this sense.

Well heck — then why didn’t they just come out and admit it?

However, I’m not sure I understand. You seem be giving a slick definition of a strong monad on a symmetric closed monoidal category. But they seem to be defining a strong monad on an arbitrary monoidal category.

I don’t see how having a strong monad on a monoidal category is enough to force that category to be symmetric and closed. So, maybe your slick definition of strong monad only applies to symmetric closed monoidal categories, not more general one? But maybe you’re hinting that the extra generality is not worth worrying about?

With all this talk of monoidal monads, and strengths, and the like, we keep bumping into a very elegant idea: taking any doctrine and looking at monads in that doctrine! I’d like to better understand the full power of this idea. For example: I guess in nice cases we get a category of algebras for the monad which again lies in the doctrine?

(Of course, a doctrine can itself be seen as a categorified monad. This is just an example of how, past a certain level of abstraction, every concept interacts with every other in mind-bendingly circular ways.)

Posted by: John Baez on September 29, 2007 3:04 AM | Permalink | Reply to this

Re: Progic II

However, I’m not sure I understand. You seem be giving a slick definition of a strong monad on a symmetric closed monoidal category. But they seem to be defining a strong monad on an arbitrary monoidal category.

I think you understand perfectly, John, though I should have explained myself more carefully. If you think about C-enriched monads on a symmetric monoidal closed C, then (provided you’re clever enough, like Anders Kock) you eventually realise that they can be characterised in a way that only uses the tensor product, via the “tensorial strength”. Then you can turn around and say, let’s use this characterisation as a definition! So you have then generalised the notion to an arbitrary monoidal category.

Of course this is a common trick in mathematics: take some definition, find a characterisation that makes sense in a more general setting, then turn around and use that characterisation as a generalised definition that makes sense in the wider setting.

I’d dearly love to think about your second question; but I have to submit my thesis on Monday, so I’d better get back to it. :-)

Posted by: Robin on September 29, 2007 10:42 AM | Permalink | Reply to this

Re: Progic II

PS. There’s also an ‘abstract nonsense’ way of generalising the notion of self-enriched monad to arbitrary monoidal categories. I don’t know that this gives the same result as the tensorial strength definition, but I’d be surprised if it didn’t. (Perhaps Todd Trimble knows?)

We know fron Brian Day’s thesis work that every monoidal category (every promonoidal category, even) embeds into a monoidal biclosed one: a (pro)monoidal structure on CC induces a monoidal biclosed structure on [C,Set] op[C, Set]^{op}. So that means that a (pro)monoidal category CC is [C,Set] op[C, Set]^{op}-enriched in a canonical way.

What does it mean for a monad on CC to be enriched in [C,Set] op[C, Set]^{op}? I bet it’s equivalent to having a tensorial strength.

Posted by: Robin on September 29, 2007 11:31 AM | Permalink | Reply to this

Re: Progic II

Hi Robin,

No, I’d never thought about that, but since you gave me a shout-out, and have other more important things to do yourself (best wishes for your defense by the way!), sure, let me have a go at it.

I’ll first expand just a little on what Robin said before, about the connection between enrichment and strength. If VV is a closed monoidal category and we start with a strong functor T:VVT: V \to V, then we get a VV-enrichment of TT:

u v(u vTv) TvT(u vv) TvTu Tvu^v \to (u^v \otimes T v)^{T v} \to T(u^v \otimes v)^{T v} \to T u^{T v}

where we have used in turn the unit of the adjunction ()Tv() Tv(-) \otimes T v \dashv (-)^{T v}, the strength on TT, and the evaluation or counit of ()v() v(-) \otimes v \dashv (-)^v. In the other direction, starting with a VV-enriched T:VVT: V \to V, we get a strength:

uTv(uv) vTvT(uv) TvTvT(uv)u \otimes T v \to (u \otimes v)^v \otimes T v \to T(u \otimes v)^{T v} \otimes T v \to T(u \otimes v)

where I’ll leave it to the reader to figure out what’s going on at each step. So, as Robin said, any functor T:SetSetT: Set \to Set, being Set-enriched, carries a canonical strength. (Although my saying ‘canonical’ is overkill – there’s just one strength, period. I think.)

Okay, now let’s tackle Robin’s claim. Suppose given a monoidal category CC. Each functor T:CCT: C \to C induces a functor T !:Set C opSet C opT_!: Set^{C^{op}} \to Set^{C^{op}} by left Kan extension:

T !(F)(c)=C(c,T) CF:= dC(c,Td)FdT_{!}(F)(c) = C(c, T-) \otimes_C F := \int^d C(c, T d) \otimes F d

(here the C\otimes_C is really ‘module composition’) and now we are considering what it would mean if T !T_! were Set C opSet^{C^{op}}-enriched, or equivalently admits a Set C opSet^{C^{op}}-strength,

FT !(G)T !(FG),F \otimes T_!(G) \to T_!(F \otimes G),

where the tensor is Day convolution. Since T !T_! is cocontinuous and \otimes is separately cocontinuous in each of its arguments, and every FF is a colimit of representables, such a strength is (by naturality) uniquely determined by how it behaves on representables F=hom(,c)F = hom(-, c), G=hom(,d)G = hom(-, d). Here

T !(G)(x)=T !(hom(,d))(x)=hom(x,T) Chom(,d)T_!(G)(x) = T_!(hom(-, d))(x) = hom(x, T-) \otimes_C hom(-, d)

which reduces to hom(x,Td)hom(x, T d) by the Yoneda lemma (in the formulation which says that homhom behaves as a unit for module composition). So T !(G)=hom(,Td)T_!(G) = hom(-, T d). Also,

FG=hom(,c)hom(,d)hom(,cd)F \otimes G = hom(-, c) \otimes hom(-, d) \cong hom(-, c \otimes d)

because the Yoneda embedding CSet C opC \to Set^{C^{op}} is a monoidal functor. So in the end, the strength

FT !(G)T !(FG)F \otimes T_!(G) \to T_!(F \otimes G)

boils down to

hom(,c)hom(,Td)T !(hom(,cd))hom(-, c) \otimes hom(-, T d) \to T_!(hom(-, c \otimes d))

or to

hom(,cTd)hom(,T(cd))hom(-, c \otimes T d) \to hom(-, T(c \otimes d))

and now we apply Yoneda one last time to arrive at (hurray!) our strength

cTdT(cd),c \otimes T d \to T(c \otimes d),

just as Robin predicted.

Whew. That calls for another cup of coffee…

Posted by: Todd Trimble on September 29, 2007 2:22 PM | Permalink | Reply to this

Re: Progic II

One day I’d love to see this kind of material worked out in terms of a few examples.

Is anything profound being said if the probability monad is chosen?

Posted by: David Corfield on September 30, 2007 4:52 PM | Permalink | Reply to this

Re: Progic II

Oh, I forgot, Robin said “monad”, not just a functor. It all works out fine, just the same, i.e., Robin spoke the truth: a strong monad TT on a monoidal category CC is tantamount to the left Kan extension T !:Set C opSet C opT_!: Set^{C^{op}} \to Set^{C^{op}} being a Set C opSet^{C^{op}}-enriched monad.

Posted by: Todd Trimble on September 29, 2007 2:44 PM | Permalink | Reply to this

Re: Progic II

All monads on Set are strong: they can’t help it. This is obvious if (and only if?) you know the original motivation for the definition of strength (by Anders Kock).

A symmetric monoidal closed category C is enriched over itself, and a strong monad is just a monad on C in the 2-category of C-enriched categories. It turns out that a monad admits a tensorial strength just when it “is” strong in this sense.

But “Set-enriched” is vacuous: all monads (functors, natural transformations) are Set-enriched! So every Set-monad has a canonical strength.

Posted by: Robin on September 28, 2007 6:36 PM | Permalink | Reply to this

Re: Progic II

Combining probability theory and topos theory is not pompous. It is actually a very old idea invented by Dana Scott (for Boolean valued models) in his proof of the independence of the Continuous Hypothesis.
Scott’s idea is simple: if we add random real numbers, then the continuum does not have cardinality aleph_1. The proof, of course, was a bit more difficult … :-)

Matthew Jackson has recently picked up the topic again:
http://www.lawrence.edu/fast/jacksoma/research.html

For instance, showing that both measures and measurable functions are internal real numbers. This is similar to the fact that the interpretation of the reals in the topos of sheaves over a topological space are precisely the continuous real-valued functions.

Posted by: Bas Spitters on September 26, 2007 10:05 AM | Permalink | Reply to this
Read the post Progic III
Weblog: The n-Category Café
Excerpt: More about reconciling logic and probability theory
Tracked: September 28, 2007 10:48 AM

Post a New Comment