Skip to content →

The super-vault of missing notes

Last time we’ve constructed a wide variety of Jaccard-like distance functions d(m,n) on the set of all notes in our vault V={k,l,m,n,}. That is, d(m,n)0 and for each triple of notes we have a triangle inequality

d(k,l)+d(l,m)d(k,m)

By construction we had d(m,n)=d(n,m), but we can modify any of these distances by setting d(m,n)= if there is no path of internal links from note m to note n, and d(m,n)=d(m,n) otherwise. This new generalised distance is no longer symmetric, but still satisfies the triangle inequality, and turns V into a Lawvere space.

V becomes an enriched category over the monoidal category [0,]=R+{} (the poset-category for the reverse ordering (ab iff ab) with + as ‘tensor product’ and 0 as unit). The ‘enrichment’ is the map

V×V[0,](m,n)d(m,n)

Writers (just like children) have always loved colimits. They want to morph their notes into a compelling story. Sadly, such colimits do not always exist yet in our vault category. They are among too many notes still missing from it.



(Image credit)

For ordinary categories, the way forward is to ‘upgrade’ your category to the presheaf category. In it, ‘the child can cobble together crazy constructions to his heart’s content’. For our ‘enriched’ vault Vd we should look at the (enriched) category of enriched presheaves Vd^. In it, the writer will find inspiration on how to cobble together her texts.

An enriched presheaf is a map p:V[0,] such that for all notes m,nV we have

d(m,n)+p(n)p(m)

Think of p(n) as the distance (or similarity) of the virtual note p to the existing note n, then this condition is just an extension of the triangle inequality. The lower the value of p(n) the closer p resembles n.

Each note nV determines its Yoneda presheaf yn:V[0,] by md(m,n). By the triangle inequality this is indeed an enriched presheaf in Vd^.

The set of all enriched presheaves Vd^ has a lot of extra structure. It is a poset

pqiffnV:p(n)q(n)

with minimal element 0:nV,0(n)=0, and maximal element 1:nV,1(n)=.

It is even a lattice with pq(n)=max(p(n),q(n)) and pq(n)=min(p(n),q(n)). It is easy to check that pq and pq are again enriched presheaves.

Here’s Vd^ when the vault consists of just two notes V={m,n} of non-zero distance to each other (whether symmetric or not) as a subset of [0,]×[0,].



This vault Vd^ of all missing (and existing) notes is again enriched over [0,] via

d^:Vd^×Vd^[0,]d^(p,q)=max(0,supnV(q(n)p(n)))

The triangle inequality follows because the definition of d^(p,q) is equivalent to mV:d^(p,q)+p(m)q(m). Even if we start from a symmetric distance function d on V, it is clear that this extended distance d^ on Vd^ is far from symmetric. The Yoneda map

y:VdVd^nyn

is an isometry and the enriched version of the Yoneda lemma says that for all pVd^

p(n)=d^(yn,p)

Indeed, taking m=n in d^(yn,f)+yn(m)p(m) gives d^(yn,p)p(n). Conversely,
from the presheaf condition d(m,n)+p(n)p(m) for all m,n follows

p(n)max(0,supmV(p(m)d(m,n))=d^(yn,p)

In his paper Taking categories seriously, Bill Lawvere suggested to consider enriched presheaves pVd^ as ‘refined’ closed set of the vault-space Vd.

For every subset of notes XV we can consider the presheaf (use triangle inequality)

pX:V[0,]minfnX d(m,n)

then its zero set Z(pX)={mV : pX(m)=0} can be thought of as the closure of X, and the collection of all such closed subsets define a topology on V.

In our simple example of the two note vault V={m,n} this is just the discrete topology, but we can get more interesting spaces. If d(n,m)=0 but d(m,n)>0



we get the Sierpinski space: n is the only closed point, and lies in the closure of m. Of course, if your vault contains thousands of notes, you might get more interesting topologies.

In the special case when Vd is a poset-category, as was the case in the shape of languages post, this topology is the down-set (or up-set) topology.

Now, what is this topology when you start with the Lawvere-space Vd^? From the definitions we see that

d^(p,q)=0iffnV : p(n)q(n)iffpq

So, all presheaves in the up-set p lie in the closure of p, and p lies in the closure of all everything in the down-set p of p. So, this time the topology has as its closed sets all down-sets of the poset Vd^.



What’s missing is a good definition for the implication pq between two enriched presheaves p,qVd^. In An enriched category theory of language: from syntax to semantics it is said that this should be, perhaps only to be used in their special poset situation (with adapted notations)

pq:V[0,]where(pq)(n)=d^(ynp,q)

but I can’t even show that this is a presheaf. I may be horribly wrong, but in their proof of this (lemma 5) they seem to use their lemma 4, but with the two factors swapped.

If you have suggestions, please let me know. And if you trow Kelly’s Basic concepts of enriched category theory at me, please add some guidelines on how to use it. I’m just a passer-by.

Probably, I should also read up on Isbell duality, as suggested by Lawvere in his paper Taking categories seriously, and worked out by Simon Willerton in Tight spans, Isbell completions and semi-tropical modules

(tbc)

Previously in this series:

Next

The tropical brain forest

Published in Gbrain geometry Obsidian