In the Learners and Poly-post we’ve seen that learners from to correspond to set-valued representations of a directed graph and therefore form a presheaf topos.
Any topos comes with its Mitchell-Benabou language, allowing us to speak of formulas, propositions and their truth values. Two objects play a special role in this: the terminal object , and the subobject classifier . It is a fun exercise to determine these special learners.
is the free rooted tree with branches sprouting from every node for each element in . will be our set of colours, one for each element of .

For every map we get a coloured rooted tree , and for each branch from the root we get another rooted sub-tree which is again of the form for a certain map .
The directed graph has a vertex for each coloured rooted tree and a directed edge if is the isomorphism class of coloured rooted trees of the subtree for some .
There are exactly directed edges leaving every vertex in , but there may be (many) more incoming edges. We can colour each vertex with the colour of the root of .

The coloured directed graph depicts the learning process in a neural network, being trained to find a suitable map . The colour of a vertex gives a map (and a request function). If the network now gives as output for a given input , we can move on to the end-vertex of the directed edge labeled out of . The colour of gives us a new (hopefully improved) map (and a new request function). A new training data brings us to a new vertex and map, and so on.
Clearly, some parts of are more efficient to find the desired map than others, and the aim of the game is to distinguish efficient from inefficient learners. A first hint that Grothendieck topologies and their corresponding sheafifications will turn out to be important.
We’ve seen that a learner, that is a morphism in , assigns a set to every vertex (this set may be empty) and a map to every directed edge in .
The terminal object in this setting assigns to each vertex a singleton , and the obvious maps for each directed edge. In -speak, the terminal object is the morphism
which sends each vertex to its colour , and where the backtrack map maps to if this is the end-vertex of the edge labelled out of . That is, contains all information about the coloured directed graph .
The subobject classifier assigns to each vertex the set of all subsets of directed paths in , starting at , such that if then also all prolongated paths belong to . Note that the emptyset satisfies this requirement, so is an element of this vertex set. Another special element in is the set of all oriented paths starting at .
is an Heyting algebra with , , partially ordered via inclusion, and logical operations (intersection), (union), (with the largest disjoint from ) and defined by is the union of all such that .

is not always equal to . Here, the union misses the left edge from the root. So, we will not be able to prove things by contradiction.
If is the directed edge labeled , then the corresponding map takes an , drops all paths which do not pass through and removes from those who do the initial edge . If no paths in pass through then is mapped to .
If then the subobject classifier is the morphism in
sending a path starting in to the colour of and the backtrack map of the image of the path under the map .
Ok, let’s define the Learner’s Mitchell-Benabou language.
We’ll view a learner as a set-valued representation of the directed graph with vertex set placed at vertex .
A formula of the language with a free variable is a morphism (of representations of ) from a learner to the subobject classifier
Such a morphism determines a sub-representation of which we can denote with vertex sets
On formulas we can apply logical connectives to get more formulas. For example, the formula is the composition
By quantifying all free variables we get a formula without free variables, and those correspond to morphisms , that is, to sub-representations of the terminal object .
For example, if is the formula with free variable corresponding to the morphism , then we have
and
Sub-representations of again form a Heyting-algebra in the obvious way, so we can assign a “truth-value” to a formula without free variables as that sub-object of .
There’s a lot more to say, so perhaps this will be continued.
Comments are closed.