Evergreen notes in the sciences [tfmt-000W]
- March 5, 2023
- Jon Sterling
Definition Evergreen notes [tfmt-0003]
- December 26, 2022
- Jon Sterling
The phrase evergreen note is due to Andy Matuschak, who has written extensively about it in his public Zettelkasten. Evergreen notes are permanent notes that evolve and accumulate over time, cutting across different projects.
Atomicity of scientific notes [tfmt-0007]
- December 27, 2022
- Jon Sterling
One of the design principles for evergreen notes described by Matuschak is atomicity (Evergreen notes should be atomic): a note should capture just one thing, and if possible, all of that thing. A related point is that it should be possible to understand a note by (1) reading it, and (2) traversing the notes that it links to and recursively understanding those notes.
Traditional mathematical writing does not achieve this kind of atomicity: understanding the meaning of a particular node (e.g. a theorem or definition) usually requires understanding everything that came (textually) before it. In the context of the hierarchical organization of evergreen notes, this would translate to needing to go upward in the hierarchy in order to understand the meaning of a leaf node. I regard this property of traditional notes as a defect: we should prefer explicit context over implicit context.
High-quality scientific notes should make sense with minimal context; hierarchical context is imposed in order to tell a story, but consumers of scientific notes should not be forced into a particular narrative. Indeed, as many different hierarchical structures can be imposed, many different narratives can be explored.
My first exploration of hypertext science was the lecture notes on relative category theory; in hindsight, these lecture notes are very much traditional lecture notes, not written with the atomicity principle in mind. As a result, it is often difficult to understand a given node without ascending upward in the hierarchy.
Achieving atomicity [tfmt-0008]
- December 27, 2022
- Jon Sterling
Atomicity in evergreen notes is enhanced by adhering to the following principles:
- no free variables: do not rely on one-off objects that are defined incidentally upwards in the hierarchy; turn them into atomic nodes that can be linked;
- favor explicit dependency: whenever using a terminology or construction that has been defined elsewhere, link it;
- notation should be decodable: all notations (except the most very basic) should be recalled via a link.
It can be a bit excessive to link every word: but the pertinent links could be added to a “related pages” section.
Hierarchy in evergreen notes [tfmt-0005]
- December 26, 2022
- Jon Sterling
Matuschak describes a number of organizing principles for evergreen notes, which are quite compelling; one design principle (Prefer associative ontologies to hierarchical taxonomies) deserves additional discussion in the context of mathematical thought. In particular, the problem of circular reference must be grappled with immediately rather than incidentally: in ordinary knowledge management, circularity represents the completion of a train of thought, whereas in mathematical thinking it remains very important to distinguish assumptions from consequences.
Hence a purely associative organization of mathematical knowledge is not viable (although it often happens by accident), and so the hierarchical organization of mathematics must be taken seriously from the start. We find that Matuschak has in fact already grappled with the need for hierarchy in his note It’s hard to navigate to unlinked “neighbors” in associative note systems, where he discusses the difficulty of traversing the “neighbor”-relationship between notes that are related by another note’s context, but are not related on their own. Matuschak proposes to solve the problem by grafting hierarchy onto the associative ontology after the fact through “outline notes”:
“Outline notes” can create pseudo-hierarchies with order and structure by linking to many child notes. Then we need the UI to support navigating between neighbors “through” these outline notes.
The viewpoint of outline hierarchy as a structure imposed on the existing associative ontology is a convenient organizing principle for evergreen notes in the sense of Matuschak, but it is a necessary principle for the design of tools for scientific thought.
Hierarchical structure as non-unique narrative [tfmt-0006]
- December 26, 2022
- Jon Sterling
Multiple hierarchical structures can be imposed on the same associative network of nodes; a hierarchical structure amounts to a “narrative” that contextualizes a given subgraph of the network. One example could be the construction of lecture notes; another example could be a homework sheet; a further example could be a book chapter or scientific article. Although these may draw from the same body of definitions, theorems, examples, and exercises, these objects are contextualized within a different narrative, often toward fundamentally different ends.
As a result, any interface for navigating the neighbor-relation in hierarchically organized notes would need to take account of the multiplicity of parent nodes. Most hypertext tools assume that the position of a node in the hierarchy is unique, and therefore have a single “next/previous” navigation interface; we must investigate the design of interfaces that surface all parent/neighbor relations.
The best structure to impose is relatively flat [tfmt-0009]
- December 27, 2022
- Jon Sterling
It is easy to make the mistake of prematurely imposing a complex hierarchical structure on a network of notes, which leads to excessive refactoring. Hierarchy should be used sparingly, and its strength is for the large-scale organization of ideas. The best structure to impose on a network of many small related ideas is a relatively flat one. I believe that this is one of the mistakes made in the writing of the foundations of relative category theory, whose hierarchical nesting was too complex and quite beholden to my experience with pre-hypertext media.
There are many ways to model hierarchy, but there are two salient orthogonal distinctions in the different designs.
Absolute vs. relative hierarchy in document markup languages [tfmt-000B]
- December 29, 2022
- Jon Sterling
Both HTML and LaTeX support a form of hierarchical organization with “absolute” heading levels, i.e. levels that count upward from a single root. In HTML, there is <h1>, <h2>, <h3>..., and in LaTeX there is \part, \chapter, \section, \subsection,\subsubsection, ..., \paragraph depending on the document class. This is in contrast to a relative model of hierarchy, in which there is a single command to introduce a section heading at the “current” level, and there are other commands to introduce hierarchical nesting.
The absolute sectioning model is completely inadequate for the hierarchical organization of ideas, for the simple reason that it is the context of a node that determines what its level in the hierarchy is, not the node itself. When this is mixed up, it makes re-contextualization an extremely painful and time-consuming process: you must recursively increment or decrement all section levels that occur underneath a given node, as anyone who has used LaTeX for any significant writing project can attest.
In traditional texts, re-contextualization occurs when you want to move a section from one place in the hierarchy to another; in the more fluid media I am pursuing, there may be many orthogonal hierarchical structures imposed on the network, so re-contextualization ceases to be a refactoring task and is elevated as a basic unit of scientific activity. In either case, we are drawn to prefer relative hierarchy over absolute hierarchy. See existing implementations of this idea.
This is similar to the relationship between De Bruijn levels (global levels) and De Bruijn indices (local levels) in type theory: conventional section headings are like De Bruijn indices in that they count from the root node, whereas what we would want are section headings that count from the present node.
Implicit vs. explicit hierarchy in document markup languages [tfmt-000D]
- December 29, 2022
- Jon Sterling
Many document markup languages, including LaTeX and HTML, use sectioning commands that evince an implicit hierarchical structure: for instance, consider the following HTML code:
<h1>Foo</h1> <h2>Bar</h2> <h3>Baz</h3> <h3>Qux</h4> <h1>Boo</h1>
The above corresponds to the tree [Foo > [Bar > [Baz, Qux]], Boo]. On the other hand, it is also possible to consider a model in which the hierarchy is made explicit through the syntactical tree structure of the markup language. This style is also supported (but not forced) in HTML:
<section>
<h1>Foo</h1>
<section>
<h2>Bar</h2>
<section>
<h3>Baz</h3>
</section>
<section>
<h3>Qux</h3>
</section>
</section>
</section>
<section>
<h1>Boo</h1>
</section>We greatly prefer the combination of (relative, explicit) hierarchy.
Relative hierarchy in existing tools [tfmt-000C]
- December 29, 2022
- Jon Sterling
There are a few LaTeX packages that implement relative hierarchy for sectioning as an alternative to the backward model of absolute hierarchy.
- The coseoul package implements relative sectioning commands; similar to the existing sectioning commands, an implicit hierarchy model is employed, leading to an imperative feel with commands like
\levelup{<title>}and\leveldown{<title>}. - The modular package builds on coseoul to behave better under the transclusion of LaTeX documents, introducing a
\subimportcommand that is to be used instead of\inputor\include. - On the other hand, the dieudonne package implements a form of relative sectioning with an explicit hierarchical model, i.e. one in which the syntactical nesting of LaTeX environments induces the hierarchy.
There are some attempts to impose a (relative, explicit) hierarchical model in HTML by using <section> and only the <h1> heading command. In the HTML5 spec, this behavior was initially endorsed as part of the “outline” algorithm, but unfortunately almost no vendors of browsers nor assistive technology have correctly implemented this behavior.
Forests of evergreen notes [tfmt-000V]
- March 4, 2023
- Jon Sterling
Definition Forests and trees of evergreen notes [tfmt-000R]
- March 4, 2023
- Jon Sterling
A forest of evergreen notes (or a forest for short) is loosely defined to be a collection of evergreen notes in which multiple hierarchical structures are allowed to emerge and evolve over time. Concretely, one note may contextualize several other notes via transclusion within its textual structure; in the context of a forest, we refer to an individual note as a tree. Of course, a tree can be viewed as a forest that has a root node.
Definition The extent of a tree in a forest [tfmt-000U]
- March 4, 2023
- Jon Sterling
The extent of a tree within a forest is the smallest set of trees closed under the following rules:
- T lies within the extent of T.
- If S is transcluded by T, then any tree in the extent of S lies also in the extent of T.
Authorship and responsibility in forests [tfmt-000Q]
- March 4, 2023
- Jon Sterling
A forest of evergreen notes may in general contain the work of many authors who have contributed in different ways. However, the correct attribution of authorship to a given tree is more subtle than one might at first think.
To understand this subtlety, we first consider that each individual tree may contain both textual content and transcluded subtrees. Thinking inductively, a simple model of tree authorship would be to take the union of the authors of the immediate textual content and the authors of all trees within its extent. This model is incorrect, however, as authorship is usually taken to imply responsibility and endorsement, as can be seen by way of example from the ACM Policy on Authorship, Peer Review, Readership, and Conference Publication:
They agree to be held accountable for any issues relating to the correctness or integrity of the work with the understanding that depending on the circumstances not all authors are necessarily held “equally” accountable. In the case of publications-related misconduct, it may be the case that penalties may vary for co-authors listed on a single publication.
In particular, although one person may be aware of and responsible for the content of a given tree, it would be unreasonable to require them to be responsible for any subsequent (and potentially erroneous!) re-contextualization of that tree in the forest. For this reason, authors must be distinguished from contributors in forests of evergreen notes.
Definition Author of a tree [tfmt-000S]
- March 4, 2023
- Jon Sterling
An author of a tree within a forest is someone who satisfies the following conditions:
- They contributed intellectually to the immediate textual content of the tree, i.e. the non-transcluded content.
- They can be held responsible for all the content within the tree, i.e. both the immediate textual content as well as the content of all the subtrees.
Definition Contributor to a tree [tfmt-000T]
- March 4, 2023
- Jon Sterling
A direct contributor to a tree within a forest is either an author of the tree, or has contributed intellectually to the immediate content of the tree but cannot be held responsible for it.
A contributor to a tree is someone who is a direct contributor to at least one tree lying within its extent.