Olog

From HandWiki
Revision as of 07:57, 27 June 2023 by Gametune (talk | contribs) (fixing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Olog.jpg

The theory of ologs is an attempt to provide a rigorous mathematical framework for knowledge representation, construction of scientific models and data storage using category theory, linguistic and graphical tools. Ologs were introduced in 2012 by David Spivak and Robert Kent.[1]

Etymology

The term "olog" is short for "ontology log". "Ontology" derives from onto-, from the Greek ὤν, ὄντος "being; that which is", present participle of the verb εἰμί "be", and -λογία, -logia: science, study, theory.

Mathematical formalism

An olog [math]\displaystyle{ \mathcal{C} }[/math] for a given domain is a category whose objects are boxes labeled with phrases (more specifically, singular indefinite noun phrases) relevant to the domain, and whose morphisms are directed arrows between the boxes, labeled with verb phrases also relevant to the domain. These noun and verb phrases combine to form sentences that express relationships between objects in the domain.

In every olog, the objects exist within a target category. Unless otherwise specified, the target category is taken to be [math]\displaystyle{ \textbf{Set} }[/math], the category of sets and functions. The boxes in the above diagram represent objects of [math]\displaystyle{ \textbf{Set} }[/math]. For example, the box containing the phrase "an amino acid" represents the set of all amino acids, and the box containing the phrase "a side chain" represents the set of all side chains. The arrow labeled "has" that points from "an amino acid" to "a side chain" represents the function that maps each amino acid to its unique side chain.

Another target category that can be used is the Kleisli category [math]\displaystyle{ \mathcal{C}_{\mathbb{P}} }[/math] of the power set monad. Given an [math]\displaystyle{ A\in Ob(\textbf{Set}) }[/math], [math]\displaystyle{ \mathbb{P}(A) }[/math] is then the power set of A. The natural transformation [math]\displaystyle{ \eta }[/math] maps [math]\displaystyle{ a\in A }[/math] to the singleton [math]\displaystyle{ \{a\} }[/math], and the natural transformation [math]\displaystyle{ \mu }[/math] maps a set of sets to its union. The Kleisli category [math]\displaystyle{ \mathcal{C}_{\mathbb{P}} }[/math] is the category with the objects matching those in [math]\displaystyle{ \mathbb{P} }[/math], and morphisms that establish binary relations. Given a morphism [math]\displaystyle{ f:A\to B }[/math], and given [math]\displaystyle{ a\in A }[/math] and [math]\displaystyle{ b\in B }[/math], we define the morphism [math]\displaystyle{ R }[/math] by saying that [math]\displaystyle{ (a,b)\in R }[/math] whenever [math]\displaystyle{ b\in f(a) }[/math]. The verb phrases used with this target category would need to make sense with objects that are subsets: for example, "is related to" or "is greater than".

Another possible target category is the Kleisli category of probability distributions, called the Giry monad.[2] This provides a generalization of Markov decision processes.

Ologs and databases

An olog [math]\displaystyle{ \mathcal{C} }[/math] can also be viewed as a database schema. Every box (object of [math]\displaystyle{ \mathcal{C} }[/math]) in the olog is a table [math]\displaystyle{ T }[/math] and the arrows (morphisms) emanating from the box are columns in [math]\displaystyle{ \mathcal{C} }[/math]. The assignment of a particular instance to an object of [math]\displaystyle{ \mathcal{C} }[/math] is done through a functor [math]\displaystyle{ I:\mathcal{C}\to \textbf{Set} }[/math]. In the example above, the box "an amino acid" will be represented as a table whose number of rows is equal to the number of types of amino acids and whose number of columns is three, one column for each arrow emanating from that box.

Relations between ologs

"Communication" between different ologs which in practice can be communication between different models or world-views is done using functors. Spivak coins the notions of a 'meaningful' and 'strongly meaningful' functors.[1] Let [math]\displaystyle{ \mathcal{C} }[/math] and [math]\displaystyle{ \mathcal{D} }[/math] be two ologs, [math]\displaystyle{ I:\mathcal{C}\to \textbf{Set} }[/math], [math]\displaystyle{ J:\mathcal{D}\to \textbf{Set} }[/math] functors (see the section on ologs and databases) and [math]\displaystyle{ F:\mathcal{C}\to \mathcal{D} }[/math] a functor. [math]\displaystyle{ F }[/math] is called a schema mapping. We say that a [math]\displaystyle{ F }[/math] is meaningful if there exists a natural transformation [math]\displaystyle{ m:I\to F^{*}J }[/math] (the pullback of J by F).

Taking as an example [math]\displaystyle{ \mathcal{C} }[/math] and [math]\displaystyle{ \mathcal{D} }[/math] as two different scientific models, the functor [math]\displaystyle{ F }[/math] is meaningful if "predictions", which are objects in [math]\displaystyle{ \textbf{Set} }[/math], made by the first model [math]\displaystyle{ \mathcal{C} }[/math] can be translated to the second model [math]\displaystyle{ \mathcal{D} }[/math].

We say that [math]\displaystyle{ F }[/math] is strongly meaningful if given an object [math]\displaystyle{ X\in \mathcal{C} }[/math] we have [math]\displaystyle{ I(X)=J(F(X)) }[/math]. This equality is equivalent to requiring [math]\displaystyle{ m }[/math] to be a natural isomorphism.

Sometimes it will be hard to find a meaningful functor [math]\displaystyle{ F }[/math] from [math]\displaystyle{ \mathcal{C} }[/math] to [math]\displaystyle{ \mathcal{D} }[/math]. In such a case we may try to define a new olog [math]\displaystyle{ \mathcal{B} }[/math] which represents the common ground of [math]\displaystyle{ \mathcal{C} }[/math] and [math]\displaystyle{ \mathcal{D} }[/math] and find meaningful functors [math]\displaystyle{ F_{\mathcal{C}}:\mathcal{B}\to \mathcal{C} }[/math] and [math]\displaystyle{ F_{\mathcal{D}}:\mathcal{B}\to \mathcal{D} }[/math].

If communication between ologs is limited to a two-way communication as described above then we may think of a collection of ologs as nodes of a graph and of the edges as functors connecting the ologs. If a simultaneous communication between more than two ologs is allowed then the graph becomes a symmetric simplicial complex.

Rules of good practice

Spivak provides some rules of good practice for writing an olog whose morphisms have a functional nature (see the first example in the section Mathematical formalism).[1] The text in a box should adhere to the following rules:

  1. begin with the word "a" or "an". (Example: "an amino acid").
  2. refer to a distinction made and recognizable by the olog's author.
  3. refer to a distinction for which there is well defined functor whose range is [math]\displaystyle{ \textbf{Set} }[/math], i.e. an instance can be documented. (Example: there is a set of all amino acids).
  4. declare all variables in a compound structure. (Example: instead of writing in a box "a man and a woman" write "a man [math]\displaystyle{ m }[/math] and a woman [math]\displaystyle{ w }[/math] " or "a pair [math]\displaystyle{ (m,w) }[/math] where [math]\displaystyle{ m }[/math] is a man and [math]\displaystyle{ w }[/math] is a woman").

The first three rules ensure that the objects (the boxes) defined by the olog's author are well-defined sets. The fourth rule improves the labeling of arrows in an olog.

Applications

This concept was used in a paper published in the December 2011 issue of BioNanoScience by David Spivak and others to establish a scientific analogy between spider silk and musical composition.[3]

See also

References

  1. 1.0 1.1 1.2 Spivak, David I.; Kent, Robert E. (31 January 2012). "Ologs: A Categorical Framework for Knowledge Representation". PLOS ONE 7 (1): e24274. doi:10.1371/journal.pone.0024274. PMID 22303434. Bibcode2012PLoSO...724274S. 
  2. Giry monad in nLab
  3. Giesa, Tristan; Spivak, David I.; Buehler, Markus J. (2011). "Reoccurring patterns in hierarchical protein materials and music: The power of analogies". BioNanoScience 1 (4): 153–161. doi:10.1007/s12668-011-0022-5. 

External links