Notation

This document formalizes the ontology of [[01-objects]] and [[02-relations]] in three layers of increasing expressiveness: sets, partially ordered sets, and categories. Each layer builds on the…

This document formalizes the ontology of [[01-objects]] and [[02-relations]] in three layers of increasing expressiveness: sets, partially ordered sets, and categories. Each layer builds on the previous. A reader can stop at any layer and have a complete formalization — Layer 1 captures the data model, Layer 2 captures the governance and navigation structure, Layer 3 captures the deep identities (dependent origination, limits, functoriality).

Three running examples are carried throughout: (a) a student sitting an examination, (b) a Filix ledger entry recording that an agent holds the architect role, (c) a tag-partitioned mesh where agents' visibility is determined by tag overlap.


#Layer 1 — Sets

The base formalization. Anyone who knows set theory can read this.

Definition N1 (Entity set). Let E be the set of all entities. Entities include everything the ontology tracks: persons, agents, documents, situations, qualities, policies, methods, domains. No type distinction is drawn at this level — all are elements of E.

Example (a). E contains: the student Maria, the invigilator Dr. Ramos, the examination hall, the exam paper, the silence policy, the examination situation, the quality "actor," the quality "material."

Example (b). E contains: the agent agent:lina, the role entity role:architect, the quality "holds-role," the session situation situation:session-2026-03-16, the ledger entry itself (as a materialization entity).

Definition N2 (Quality subset). Let Q ⊆ E be the subset of entities that are qualities. The inclusion Q ⊆ E IS the reflexive closure of [[02-relations]], Definition R3: qualities are entities, subject to the same relational treatment as everything else. There is no separate universe of labels. The quality "author" is an element of both Q and E.

Definition N3 (Time). Let T be a linearly ordered set of time points. A time interval is a subset τ ⊆ T of the form [t₁, t₂], (t₁, ∞), or similar. T provides temporal bounds for belongings; it is not an axis of the ontology but a universal property of all objects ([[01-objects]], Properties).

Definition N4 (Belonging). A belonging is a tuple

> b = (e, t, q, τ)

where e ∈ E is the dependent, t ∈ E is the context, q ∈ Q is the quality, and τ ⊆ T is a time interval (possibly unbounded). The set of all stored belongings is

> B ⊆ E × E × Q × 𝒫(T)

This is Definition R1 of [[02-relations]] made set-theoretic. The entity_id, target, quality, and temporal fields of the ledger entry ([[33-constitutional-ledger]]) map directly to e, t, q, τ.

Example (a). The student participating in the examination:

(Maria, examination:tuesday, actor, [09:00, 12:00])
(exam-paper, examination:tuesday, material, [09:00, 12:00])
(Dr.Ramos, examination:tuesday, authority, [09:00, 12:00])
(silence-policy, examination:tuesday, governs, [09:00, 12:00])

Example (b). The Filix ledger entry:

(agent:lina, role:architect, holds-role, [2026-03-16, ∞))

One tuple. The ledger entry is a materialization of this belonging — a content-addressed JSON record whose fields (entity_id, target, quality, timestamp) are a serialization of (e, t, q, τ).

Definition N5 (Entity graph). The entity graph is the pair

> G = (E, B)

where E is the entity set and B is the set of stored belongings. G is the complete state of the ontology at rest — what the ledger stores, what agents query.


#Meta-qualities as operations on Q

The meta-qualities of [[02-relations]], Definition R5, are operations on the quality set Q. They define the grammar of how qualities relate to each other and how belongings propagate.

N6.1 (Instance). A partial order ≤inst on Q. If q₁ ≤inst q₂, then q₁ is a specialization of q₂, and any belonging with quality q₁ is implicitly a belonging with quality q₂. "Principal-investigator" ≤inst "member." "Author" ≤inst "creation."

N6.2 (Inverse). A partial involution inv : Q → Q. If (e, t, q, τ) ∈ B and inv(q) is defined, then (t, e, inv(q), τ) is derivable. inv("sender") = "receiver." inv("part-of") = "contains." Partial: not every quality has an inverse.

N6.3 (Implies). A preorder ≤imp on Q. If q₁ ≤imp q₂, then any belonging (e, t, q₁, τ) entails (e, t, q₂, τ). "Principal-investigator" ≤imp "member." "Owner" ≤imp "authority." Implies and instance are distinct: instance is taxonomic classification; implies is inferential entailment.

N6.4 (Transitive). A predicate trans ⊆ Q. If trans(q) and (e₁, e₂, q, τ₁) ∈ B and (e₂, e₃, q, τ₂) ∈ B, then (e₁, e₃, q, τ₁ ∩ τ₂) is derivable. trans("part-of") holds. trans("episode-of") holds. trans("author") does not hold.

N6.5 (Applies-to). A function dom : Q → 𝒫(E) restricting which entities can appear as targets of a belonging with that quality. dom("sender") ⊆ {situations}. dom("track-on") ⊆ {albums}. This prevents nonsensical belongings.

Example (a). The quality "participant" has: "actor" ≤inst "participant" and "authority" ≤inst "participant." So Maria's belonging as actor and Dr. Ramos's belonging as authority are both implicitly participations in the exam. A query for all participants returns both without explicit participant records.


#Derived closure

Definition N7 (Derived closure). The derived closure B* is the smallest set containing B and closed under the four propagation operations:

  1. Instance: if (e, t, q₁, τ) ∈ B and q₁ ≤_inst q₂, then (e, t, q₂, τ) ∈ B.
  2. Inverse: if (e, t, q, τ) ∈ B and inv(q) is defined, then (t, e, inv(q), τ) ∈ B.
  3. Implies: if (e, t, q₁, τ) ∈ B and q₁ ≤_imp q₂, then (e, t, q₂, τ) ∈ B.
  4. Transitive: if (e₁, e₂, q, τ₁) ∈ B and (e₂, e₃, q, τ₂) ∈ B and trans(q), then (e₁, e₃, q, τ₁ ∩ τ₂) ∈ B*.

B is what the ledger stores. B* is what agents query. The difference is the inferential work the system performs.

Properties of the closure.

N8.1. B is computable from B and the quality graph (Q, ≤inst, inv, ≤imp, trans, dom). The quality graph is finite and small — hundreds of quality entities, not millions. The four operations are monotone: adding a belonging to B can only add further belongings, never remove them. The closure terminates because instance and implies chains are bounded by the depth of Q's partial orders, inverse produces at most one new belonging per input, and transitive extends chains only along qualities where trans holds.

N8.2. The closure terminates at depth 1 for meta-qualities. Meta-qualities of meta-qualities are just meta-qualities. The quality "instance" is itself an element of Q; asking "what is the instance of instance?" yields "meta-quality" — a structural role, not a further recursion. This is [[02-relations]], Definition R5's observation that the recursion bottoms out in structural roles, now stated precisely: the quality graph restricted to meta-qualities has no cycles of length greater than 1.

Example (b). The Filix entry (agent:lina, role:architect, holds-role, τ) has: "holds-role" ≤_imp "member." So B* contains (agent:lina, role:architect, member, τ) without explicit storage. If a query asks "who is a member of the architect role?" it finds Lina through the implies closure, even though only "holds-role" was stored.


#Layer 2 — Posets

Layer 1 captures data. Layer 2 captures governance and navigation — how policies inherit, how visibility is determined, and how the Library Theorem's O(log N) bound connects to the mesh. The structures here are partially ordered sets built over the entity graph G = (E, B).


#Tag dimensions

Definition N9 (Tag dimension). A tag dimension is a rooted tree (Dᵢ, ≤ᵢ) where ≤ᵢ is the ancestor relation: x ≤ᵢ y iff y is an ancestor of x (or x = y). The root is the most general element. Leaves are the most specific.

Example (c). Three dimensions in the Filix mesh:

  • Domain: *ai-ontologyinscriptionreview-round-3. Root sees everything in the domain axis; leaves see specific sub-projects.
  • Role: *architect | librarian | steward | reviewer. Root sees all roles; leaves see one.
  • Place: *europelisbonchampalimaud. Geographic hierarchy.

Definition N10 (Tag space). The tag space is the product

> D = D₁ × D₂ × ... × Dₖ

Each dimension is independent. An agent's position is a point in D — one tag per dimension. An entry's visibility is determined by its tag set, also a point (or set of points) in D.

Example (c). Agent Lina has position (inscription, architect, lisbon). An entry tagged (ai-ontology, , ) is visible to Lina because inscription ≤ ai-ontology in the domain dimension — Lina's tag is a descendant of the entry's tag.


#Visibility

Definition N11 (Visibility rule). Agent a can see entry x iff for every dimension i where x has a non-root tag, a's tag in dimension i is comparable to x's tag in dimension i: one is an ancestor of the other in Dᵢ.

Formally: for all i, if x.tagᵢ ≠ root, then either a.tagᵢ ≤ᵢ x.tagᵢ or x.tagᵢ ≤ᵢ a.tagᵢ.

This is the tag-overlap semantics of [[33-constitutional-ledger]], Section "Tags and Topology," given its order-theoretic statement. Comparable means "on the same branch of the tree" — either the agent is more specific than the entry (the agent is deeper) or the entry is more specific than the agent (the agent has broader scope). Incomparable tags — on different branches — produce no visibility.

Example (c). An entry tagged (inscription, reviewer, ) is visible to an agent at (inscription, reviewer, lisbon) — same branch in domain, same node in role. It is NOT visible to an agent at (inscription, architect, lisbon) — incomparable in the role dimension (reviewer and architect are siblings, not ancestors of each other). It IS visible to an agent at (inscription, , lisbon) — agent has root in role dimension, so no comparison needed there.


#Policy inheritance

Definition N12 (Policy lattice). Let P be the set of all policies. Define a partial order on P by strength: p₁ ≤ p₂ if p₂ is at least as constraining as p₁. The join p₁ ∨ p₂ is the policy that enforces both. P with join forms a lattice.

Definition N13 (Policy inheritance). Policies are monotone functions from the tag poset to the policy lattice:

> π : D → P

Monotone means: if d₁ ≤ d₂ (d₁ is deeper, more specific), then π(d₁) ≥ π(d₂). Policies accumulate downward — inner nodes inherit all policies of outer nodes and may add their own. This is Definition 12 of [[01-objects]] ("policies accumulate through domain subsumption") and Definition S5 of [[12-situation-nesting]] ("innermost applicable policy prevails"), unified in a single monotonicity condition.

Non-overridable policies are join-irreducible elements in P — elements that cannot be expressed as the join of strictly weaker policies. The constitution (Definition 14 of [[01-objects]]) is the supremum of P: the policy from which all others descend. Constitutional rules are non-overridable because removing them from any policy point would violate monotonicity — the resulting function would no longer be order-preserving.

Example (a). Domain dimension: universityfaculty-of-scienceexamination-hall-A. Policies: "academic integrity" at university level, "exam-specific format rules" at hall level. The student at (examination-hall-A, student, *) inherits both. The hall-level format rules are local and overridable. Academic integrity is join-irreducible — it cannot be weakened at any inner scope.

Example (c). The Filix mesh. A constitutional rule "all work must be externalized" is tagged scope:universal — it maps from the root of every dimension. By monotonicity, every point in D inherits it. A domain-specific rule "reviewer anonymity in this round" maps from (review-round-3, reviewer, *). Agents not on that branch do not see the rule (visibility, N11) and are not bound by it (monotonicity applies only downward from the rule's position).


#Library Theorem connection

Proposition N14. Navigation through a balanced tag tree of N entries is O(log N). Each dimension Dᵢ has depth at most log₂(Nᵢ) where Nᵢ is the number of leaves. Retrieving all entries visible from a point d ∈ D requires descending each dimension's tree from root to d — a total cost of Σᵢ log₂(Nᵢ). For k dimensions, this is O(k · log N) where N = max(Nᵢ). Since k is small (single digits), the cost is O(log N).

This connects the Library Theorem of Foundation 02 to the mesh of Paper 4a. The Library Theorem proves that organized external memory admits O(log N) retrieval. The tag-dimension structure IS that organization, applied to the ledger. The index hierarchy that [[12-situation-nesting]] identifies as "the materialization of the situation-nesting structure" is the concrete instantiation of this tag tree. Each index.md is a node in the tree; the one-liners in its Contents section are the compressed representations that make descent efficient.


#Layer 3 — Categories (first pass)

Layer 2 captures hierarchy and inheritance. Layer 3 captures composition, identity, and the deeper structural claims — that an entity IS its incoming belongings, that situations are universal constructions, that observation depends on position. This is the first pass: it covers the core categories and the Yoneda identity. Presheaf topoi and productive inconsistency are flagged for Layer 3b.


#The category Ent

Definition N15 (Ent). Define a category Ent as follows:

  • Objects: the elements of E (all entities).
  • Morphisms: the belongings. A belonging (e, t, q, τ) is a morphism e → t labeled by q. We write e →_q t.
  • Identity: for each entity e, the identity morphism id_e is the trivial belonging of e to itself.
  • Composition: partial. Two morphisms e →q₁ t and t →q₂ u compose to e →q₃ u only when q₁ and q₂ are related by transitivity or implication in the quality graph. If trans(q₁) and q₁ = q₂, composition yields e →q₁ u (transitive closure). If q₁ ≤_imp q₂, composition is through the implies chain. Not all pairs of morphisms compose — this is a category enriched over a partial monoid, not a standard category.

The partial composition is not a deficiency; it encodes the ontology's constraint that not all belongings chain. "Maria is actor in the exam" and "the exam is episode-of the academic term" compose (transitivity of episode-of gives Maria a derived connection to the term). "Maria is actor in the exam" and "the exam paper is material in the exam" do not compose — there is no quality that would label a direct morphism from Maria to the exam paper.

Example (a). In Ent:

Maria  →_actor  examination  →_episode-of  academic-term

Composes (trans(episode-of)) to give Maria →participant academic-term (via implies: actor ≤imp participant, and the composite inherits the weaker quality).

Maria  →_actor  examination
exam-paper  →_material  examination

Does not compose. Maria and the exam paper are co-participants in the examination, but this co-participation is a derived view ([[09-situation-graph]]), not a morphism.


#The subcategory Qual

Definition N16 (Qual). Define Qual as the full subcategory of Ent restricted to objects in Q — the quality entities. Morphisms in Qual are belongings between qualities: "author" →instance "creation," "sender" →inverse "receiver."

The inclusion functor I : Qual → Ent sends each quality entity to itself, viewed as an element of E. This functor IS the reflexive closure: qualities are entities. The functor is faithful (it preserves distinctness of morphisms) and injective on objects.


#The quality functor

Definition N17 (Quality functor). Define F : Mor(Ent) → Obj(Qual) as the functor that sends each morphism (belonging) to its quality. F(e →_q t) = q. This functor extracts the "nature of dependence" from every belonging and places it in the quality graph.

F is well-defined because every belonging has exactly one quality (by Definition N4). F is not full — not every quality is realized by a morphism in a given graph state. F is the formal counterpart of the informal claim in [[02-relations]] that "the relation does not carry meaning; the quality does."


#Yoneda and dependent origination

Definition N18 (Representable presheaf). For any entity e ∈ Obj(Ent), define the presheaf

> h_e = Hom(−, e) : Ent^op → Set

This sends each entity x to the set of all morphisms x → e — all belongings whose context is e. The Yoneda lemma states: h_e fully characterizes e up to isomorphism. Two entities with identical incoming belongings are isomorphic.

This is the categorical statement of dependent origination from [[08-relational-ground]]: an entity IS its incoming belongings. There is no hidden essence behind the relational profile. If you know every way anything belongs to e — every quality, every dependent, every time interval — you know everything about e that the ontology can express. The Yoneda lemma does not merely suggest this; it proves it. Completeness is a theorem, not a philosophical position.

Example (a). The examination situation is fully characterized by: Maria →actor exam, Dr. Ramos →authority exam, exam-paper →material exam, silence-policy →governs exam, hall-A →venue exam, academic-term →domain exam. Remove any of these belongings and you have a different situation. Add one and you have a different situation. The examination IS this profile.

Example (b). The ledger entry recording Lina's role is fully characterized by: entry →materialization situation:session, entry →records belonging:(lina, architect, holds-role). The entry IS its incoming belongings — its provenance, its content, its position in the DAG.


#Situations as limits

Definition N19 (Situation as limit). A situation S is a limit (universal cone) in Ent. The participants — entities with belongings targeting S — form a diagram. S is the universal entity through which all participants factor: for any entity x with morphisms to all participants, x factors uniquely through S.

Concretely: the examination is the universal object that "collects" Maria (as actor), the exam paper (as material), Dr. Ramos (as authority), and the silence policy (as governance). Any entity that relates to all of these individually — say, the academic transcript that records Maria's grade, the paper's content, the invigilator's report, and the policy compliance — factors through the examination situation.

This characterization requires care. The partial composition structure of Ent means that not all diagrams have limits. The claim is not that every collection of entities determines a situation, but that every situation, when it exists, satisfies the universal property. Situations are limits when they exist; their existence is contingent on the qualities involved admitting the necessary compositions.

Flagged for careful treatment. The partial composition complicates the standard categorical limit construction. A full treatment requires either enriching Ent to handle the partiality (e.g., via a monoidal category where the monoidal product reflects quality compatibility) or working in a 2-categorical setting where the quality graph provides the enrichment. This is deferred to Layer 3b.


#Layer 3b — Deferred

The following constructions are flagged for future development. Each is stated precisely enough to guide the formalization when it is undertaken.

Observation frames as presheaves on the tag poset. The tag space D of Layer 2 is a poset, hence a category. A presheaf on D assigns to each tag position the set of entries visible from that position. This is a functor D^op → Set. The collection of all such functors forms the presheaf category Psh(D).

Psh(D) as a topos with internal logic. The category Psh(D) is an elementary topos: it has a subobject classifier Ω, exponential objects, and an internal logic. The subobject classifier Ω assigns to each position d ∈ D the set of sieves on d — the "degrees of truth" as seen from that position. This means visibility has a built-in logic: statements about entries can be true, false, or true-at-some-positions-but-not-others. The internal logic of Psh(D) is intuitionistic, not classical — the law of excluded middle fails because an entry might be neither visible nor provably invisible from a given position. Observation is perspectival; truth is local.

Productive inconsistency as the non-existence of a global sections functor. When two agents occupy incompatible positions in D (different branches of a tag tree, no common ancestor below the root), their observation frames are distinct presheaves. A global section would be a natural transformation from the terminal presheaf to the combined observation — a "view from everywhere." Productive inconsistency, in the sense of Paper 4a, is the structural fact that this global section does not exist when the presheaves disagree. The forks in the constitutional ledger ([[33-constitutional-ledger]], Section "The DAG", property 3) are exactly the points where global sections fail: two entries that cannot coexist under the same constitutional scope. The fork is the topos-theoretic obstruction to a global section, made concrete as a DAG bifurcation.

Connection to the Indexed Inconsistency Theorem. The Indexed Inconsistency Theorem (Paper 4a) states that productive inconsistency is not a failure of the system but a resource: forks create new observation frames, and the governance situation (ontology/13, Definition G1) that resolves them is itself a limit in Ent. The merge is the categorical construction that restores a (local) global section across the previously incompatible branches. The full treatment requires the machinery of indexed categories or fibered categories over D, where each fiber is the local topos of one constitutional scope.


#Summary of Layers

LayerStructureWhat it capturesSufficient for
1 — Sets(E, Q, B, B*)Data model, inference, closureImplementing the ledger, querying the entity graph, computing derived belongings
2 — Posets(Dᵢ, ≤ᵢ), π : D → PTag hierarchy, visibility, policy inheritance, O(log N) navigationGovernance, access control, search, connecting Library Theorem to mesh topology
3 — CategoriesEnt, Qual, F, h_e, limitsDependent origination, compositionality, situations as universal constructionsProving completeness (Yoneda), formalizing observation frames, productive inconsistency

Each layer is self-contained. Layer 1 readers get the data model. Layer 2 readers get governance and navigation. Layer 3 readers get the deep structural identities. Nothing in Layer 2 contradicts Layer 1; it adds structure. Nothing in Layer 3 contradicts Layer 2; it reveals why the structure works.


ontology · 03 · notation · 2026-03-16 · zach + claude

Ontology 03 — Notation — 2026 — Zachary F. Mainen / HAAK