Hypergraphs , metagraph for aware AI

From Triple to Metagraph: a minibook on hypergraphs and statement graphs

Draw your own graph and watch it climb the ladder: triple, property graph, hypergraph, statement graph, metagraph. Interactive canvas, eight pages, N-Triples throughout.

November 24, 2026

1
Open page
1 · The triple, and where it stops
1 · The triple, and where it stops
A binary edge is the best tool for most facts. This page finds the facts it cannot hold.
The triple

1 · The triple, and where it stops

A binary edge is the best tool for most facts. This page finds the facts it cannot hold.

The triple

A graph has vertices and edges, and each edge joins exactly two vertices. In RDF the edge is a triple: subject, predicate, object. Written as N-Triples, one fact per line, with full IRIs:

This is a good model: three columns, easy to index, easy to query. Most facts in an agent's memory are binary, and they should stay binary. From here on, the prefix : stands for http://example.org/.

A meeting of three

Now the agent learns two things: on 2026-11-20 Alice met Bob about pricing, and on 2026-11-21 Alice met Carol about hiring. Each meeting has four parts: who called it, who attended, the topic, the day. As binary edges:

Every edge is true. Ask "what did Alice and Bob talk about?" and the graph gives two answers, one wrong. What is lost is the grouping: which facts belong to one event. Try it below, then switch to the version where the meeting is a thing.

The fix: make the meeting a thing

Give the meeting an identity and hang each part off it as a role. That is a hyperedge, encoded as a node with role edges (page 3 treats it properly):

The hypergraph wall

A hypergraph lets one edge join any number of vertices, but an edge is a set of vertices, not a vertex: it cannot appear inside another edge. You have hit that wall when you need any of these four things:

  1. 1.

    A statement about a relationship: ":alice :worksAt :acme has confidence 0.9 and came from :chat12."

  2. 2.

    A relationship between relationships: "Meeting e1 led to the decision to change prices."

  3. 3.

    Rich properties on a relationship as a thing: "e1 has minutes, a room and an outcome, and the outcome has an author."

  4. 4.

    Nested meta-relationships: "The agent believes that :chat12 reported that Alice works at Acme."

Agent memory has all four. Confidence, provenance and belief are statements about statements, and episodes are groups of facts that are themselves talked about. Two moves get past the wall: give every relationship an identity, and let a vertex stand for a group. The rest of this minibook is about those two moves.

Takeaways

  • Keep binary facts binary. Most facts are.

  • Splitting a k-part relation into binary edges keeps the parts and loses the grouping.

  • A relationship you need to talk about, link, describe or nest must be a thing with an identity.

Adapted from chapter 1 of the graphlava mini book.

2 · Property graphs (LPG)
2 · Property graphs (LPG)
Edges with properties
In a property graph, nodes carry labels, edges carry a type, and both can carry key-value properties. The confidence of Alice's employment sits on the edge itself:

2 · Property graphs (LPG)

Edges with properties

In a property graph, nodes carry labels, edges carry a type, and both can carry key-value properties. The confidence of Alice's employment sits on the edge itself:

That already answers "how sure are we?" without extra nodes. In the statement-graph model of page 4, a property graph is a restricted image: edge statements between nodes, label statements, and property statements on nodes or edges. The restriction is that label and property statements cannot be referenced.

What a property holds

A property holds a value, not a node. That is the limit, and the running example hits it three times:

  • source: 'chat12' is a string. The conversation :chat12 is not a node, so nothing can say who checked it or when it happened.

  • The topic :pricing of a meeting becomes the string "pricing". A third attendee still needs a second edge.

  • Nothing can point at the edge. "Meeting e1 led to this decision" has no target.

Step through it below: try to attach a node to the edge, then give the edge an identity.

Three common patches, three costs

  • Edge properties (property graphs): put topic and day on the :met edge. A property holds a value, not a node.

  • Compound predicates such as :metAboutPricing: one predicate per combination, and nothing can be queried by topic.

  • Application glue: keep a meeting table outside the graph. Two sources of truth that drift, and graph queries cannot see the table.

Is a property graph enough?

Many projects reach for a metagraph too early. A property graph is enough when all of these hold:

  • Relations are binary, or have a small fixed set of extra values.

  • Edge properties are values, never links to other nodes or edges.

  • Nobody asks "who said so?" or "how sure are we?" about an edge.

  • The data has one perspective: no episodes, sources or agents that disagree.

Agent memory usually breaks the second and third conditions on day one, because every remembered fact has a source and a confidence. The way out is the move from page 1: give the relationship an identity.

Takeaways

  • Edge properties fix qualifiers that are plain values.

  • They cannot link to nodes or other edges, so they cannot hold provenance as a thing.

  • Stay with a property graph while nobody needs to talk about an edge.

Adapted from chapters 1, 4 and 11 of the graphlava mini book.

3 · Hypergraphs
3 · Hypergraphs
A hyperedge joins any number of vertices. This page defines it, adds direction and roles, and compares the encodings that keep the grouping with the one that throws it away./embed html
Definition

3 · Hypergraphs

A hyperedge joins any number of vertices. This page defines it, adds direction and roles, and compares the encodings that keep the grouping with the one that throws it away./embed html

Definition

A hypergraph is a pair H = (V, E). V is a set of vertices. E is a set of hyperedges, and each hyperedge is a non-empty subset of V.

Two numbers describe it. The cardinality of a hyperedge is how many vertices it joins (both have 3). The degree of a vertex is how many hyperedges contain it (Alice has 2, Bob has 1). A graph is the special case where every hyperedge has cardinality 2. The two meetings from page 1 no longer mix: pricing is in e1 with Bob, hiring is in e2 with Carol.

Direction and roles

A plain hyperedge is a set, so it cannot say who called the meeting. A directed hyperedge is a pair of sets, a tail and a head: e = (T, H). A chemical reaction is the textbook case: ({H2, O2}, {H2O}). Most data needs more than two sides, so a role-labelled hyperedge maps role names to vertices:

Databases want this form: TypeDB's relations, the n-ary relation pattern in RDF and graphlava's hyperedge types are all role-labelled hyperedges. Explore the encodings below, and hover a vertex to see its degree.

Encodings in a binary graph

Graph databases store binary edges, so a hyperedge has to be encoded.

  • Star expansion (the bipartite, or Levi, graph): one node per hyperedge and one edge from it to each member. With role names on the edges it is lossless, and it is what every graph store ends up using. A k-role hyperedge becomes k binary edges plus a node.

  • Clique expansion: join every pair of members, so k members become k(k-1)/2 edges and the hyperedge is gone. One meeting of three and three separate meetings of two give the same triangle. Use it for co-occurrence analysis, never as storage.

  • Line graph: the dual view, where hyperedges become vertices joined when they share a member. It is computed, not stored.

  • Incidence matrix: one row per vertex, one column per hyperedge. Useful for spectral analysis, but mostly zeros and with nowhere to put role names.

The star expansion as statements (prefix : abbreviated):

Two ways to store a meeting

As role statements in a statement graph: portable, works in any RDF store, and each role statement can be annotated, but nothing stops a meeting with two agents unless a shape checks it. Or as a native hyperedge record, as the graphlava spec designs it: one record of a declared type with an incidence entry per role filler, roles checked against the type, and the literal date kept as a property of the hyperedge, not a role. In the book's cost count, the first takes 17 base-table writes for the meeting and the second takes 5. Fixed roles and many instances favor the record. Roles that vary a lot per instance favor plain role statements.

What a hyperedge still cannot do

In H = (V, E) a hyperedge is a subset of V. It is not in V. So no hyperedge can contain e1, and nothing can say "e1 led to a decision". The star expansion quietly gets past it: the hub e1 is a node in the binary graph, so another edge can point at it. That is reification, and the next pages make it the rule instead of a trick.

Takeaways

  • A hyperedge is a set of vertices; a role-labelled hyperedge is a map from roles to vertices. Databases want the second.

  • Star expansion is lossless. Clique expansion loses the grouping.

  • A hyperedge is not a vertex, so a hypergraph alone cannot talk about its own edges.

Adapted from chapters 2 and 5 of the graphlava mini book.

4 · Statement graphs and N-Triples
4 · Statement graphs and N-Triples
Give every statement an identifier and let that identifier stand where a node can. That one rule is enough to hold RDF, RDF-star, property graphs and the metagraph kinds of the next pages.
The unit: an identified statement

4 · Statement graphs and N-Triples

Give every statement an identifier and let that identifier stand where a node can. That one rule is enough to hold RDF, RDF-star, property graphs and the metagraph kinds of the next pages.

The unit: an identified statement

A statement is a subject, a predicate and an object, plus an identifier:

The identifier s1 is a term. It can be the subject or the object of another statement. The predicate cannot be a statement: it is always a plain name. That asymmetry keeps queries tractable, because every pattern still has a known relation in the middle.

The same idea in N-Triples

Classic RDF reification spends four triples on a handle for one fact, before the annotation itself. In N-Triples, with full IRIs:

In a statement graph the handle comes with the fact. RDF 1.2 writes the same thing as an annotation, and the statement ID is the reifier:

Annotations can be annotated to any depth: s4 says Carol checked the source.

The model, formally

Gelling, Fletcher and Schmidt define a statement graph as a directed acyclic graph with two kinds of vertices (arXiv:2304.13097, 2023; DASFAA 2024). Leaves hold values: IRIs, blank nodes, literals, property-graph labels and keys, each value once. Internal vertices are statement identifiers, each with exactly three outgoing edges labelled subject, predicate and object. The subject and object may lead to another statement; the predicate may not. Build it up step by step below.

Images: one model, many data models

The model gives no meaning by itself. Meaning comes from images, restricted forms that encode each familiar data model:

  • RDF: triple statements plus membership statements (t, in, g) for named graphs. No two statements with the same three targets.

  • RDF-star: as RDF, but a triple may have another triple as subject or object.

  • Property graph: edge statements between nodes, label statements, and property statements on nodes or edges. Label and property statements cannot be referenced.

  • OneGraph: a mix of the RDF-star and property-graph images in one graph, with duplicate statements allowed. It comes from Amazon's 1G vision, the model behind Neptune Analytics.

Why the identifier is the minimum

Each need of a metagraph becomes an ordinary statement once statements have identifiers:

  • An edge as a vertex: (s1, :confidence, 0.9), where the subject is a statement.

  • A vertex as a container: (s1, :in, :session7), a membership statement.

  • Nesting containers: (:session7, :in, :aliceMemory).

  • A hyperedge: a node e1 with role statements (e1, :agent, :alice).

  • A relationship between relationships: (e1, :ledTo, s9).

  • The model as data: (:Meeting, :hasRole, :agent).

Without identifiers, each of these needs its own mechanism: reification triples, quads, an n-ary node convention, a schema file. With identifiers they are one mechanism.

graphlava's one ID space

In graphlava every term is one 64-bit ID, with the top bits as a kind tag, so the kind of any ID is known without a lookup: IRI (0x1), blank node (0x2), dictionary literal (0x3), statement (0x4), graph (0x5), hyperedge (0x6), and inline literals with the high bit set and the value inside the ID. The spec's rule is the statement-graph rule: a predicate is always an IRI, a literal is never a subject, and any other kind can be a subject or an object. Logically, everything is a statement. Physically, graphlava pays for an ID only where one is used. graphlava is at the design stage, so this is a specification, not a shipping engine.

Takeaways

  • A statement graph is (s, p, o) with an identifier, where s and o may be statements and p may not.

  • RDF, RDF-star and property graphs are all restricted statement graphs.

  • An identifier per statement is the one feature every metagraph power needs.

Adapted from chapter 4 of the graphlava mini book.

6 · Metagraphs and containers
6 · Metagraphs and containers
The second metagraph power is a vertex that holds a subgraph and is still a vertex. In a statement graph that vertex is a named graph. First, what "metagraph" means, then membership, nesting and scope.
Three definitions, one idea

6 · Metagraphs and containers

The second metagraph power is a vertex that holds a subgraph and is still a vertex. In a statement graph that vertex is a named graph. First, what "metagraph" means, then membership, nesting and scope.

Three definitions, one idea

The word "metagraph" has been used for several related structures. Three are worth knowing.

  • Basu and Blanning define a metagraph over a generating set X. A metaedge connects a set of elements to a set of elements, e = ⟨V, W⟩ with V and W subsets of X, so it is already a directed hyperedge. They add set-to-set edges and metapaths: a path is a set of edges that together connect a source set to a target set. In their definition an edge is not itself an element of X.

  • Gapanyuk adds metavertices: a vertex that contains vertices, edges and other metavertices. Metavertices and metaedges carry annotations, and an annotation may itself be a metagraph.

  • Goertzel's paper Folding and Unfolding on Metagraphs treats fold and unfold as recursion schemes over metagraphs. Page 7 uses the words in the simpler sense of Metagraph for AI Agents.

The two powers

Strip the definitions down and a metagraph has two powers that a hypergraph lacks:

  • Edges are vertices. A relationship can be the subject or object of another relationship: the fact :alice :worksAt :acme has a confidence of 0.9 and a source, :chat12.

  • Vertices are containers. A vertex can hold a subgraph and still be a vertex: :session7 holds what the agent learned in one conversation, and is itself in :aliceMemory.

Two more follow from combining them. Edges are containers: the meeting e1 can contain its minutes. And the model is data: ":Meeting has roles :agent, :target and :topic" is a statement like any other, so a system whose schema, rules and data share one representation can query and change its own schema with the same tools. Apply the powers to their own results and you get a recursive metagraph:

The same structure repeats at every scale: a fact inside an episode, an episode inside a person's memory, that memory inside the agent's.

A graph is a node

A named graph groups statements. In RDF the name is an IRI and membership is the fourth column of a quad. In a statement graph, membership is one more statement, so the graph can be described like anything else:

Nesting is a DAG: graphs nest through (child, :in, parent), several parents are allowed and cycles are forbidden. The scope of a graph is the graph and every graph nested under it. In graphlava, GRAPH matches the scope by default, GRAPH! matches direct members only, and GRAPH ?g binds the direct graph of each match. Pick a query below to see what it sees.

One statement, many graphs

A fact keeps one ID however many graphs hold it. Inserting an existing triple into another graph adds a membership. Deleting a triple inside GRAPH g removes only that membership, and the statement is deleted, with its cascade, when its last membership goes. Two episodes can assert the same fact and each keep their own metadata, which goes on the promoted membership rather than on the fact:

Membership that costs nothing

Most statements live in exactly one graph, and the graphlava spec makes that case free. IDs are allocated in chunks of 2^20 consecutive IDs, each leased to one graph and one kind of item, so the home graph of a statement is a function of its ID and no membership row is stored. An extra graph costs two keys. A query over one small episode costs in proportion to the episode, not the database.

Edges as containers

Combine both powers and an edge can hold a subgraph: the meeting e1 holds its minutes. In graphlava, graph IDs and hyperedge IDs are different kinds, so the pattern is a graph linked to the edge, with the two lifetimes managed together:

Takeaways

  • A container is a named graph whose name is also a node.

  • Nesting as a DAG lets an episode belong to a person's memory and a project at once.

  • A fact in several graphs is one statement with several memberships; put per-episode metadata on the membership.

  • Transitive scope makes "everything under this memory" one clause instead of a union.

Adapted from chapters 3 and 7 of the graphlava mini book.

5 · Statements about statements
5 · Statements about statements
The first metagraph power, edges as vertices, is what agent memory uses most: how sure, where from, who checked. This page covers annotations, reifiers, promotion of virtual statements and what happens on delete.
An annotation is a statement

5 · Statements about statements

The first metagraph power, edges as vertices, is what agent memory uses most: how sure, where from, who checked. This page covers annotations, reifiers, promotion of virtual statements and what happens on delete.

An annotation is a statement

An annotation is a statement whose subject is a statement ID. Nothing else about it is special.

RDF 1.2 and SPARQL 1.2 have an annotation syntax. To read, bind the reifier with ~. In graphlava the reifier is the statement ID, so binding it is free:

Annotations of annotations nest the same way: {| :source :chat12 {| :checkedBy :carol |} |}. Depth is unlimited; each level is one more statement and one more join in a query. Build the layers below, then delete s1 and watch the cascade.

Update keeps the ID

graphlava stores current state, not history. Updating a statement's object keeps its ID, so annotations stay attached. That is right for annotations that describe the slot, and wrong for annotations that describe the old value ("0.9 sure it is Acme"), so the application decides which to reset in the same transaction. A predicate declared functional (at most one object per subject) makes set update in place too. If you need the old value and its layers kept, that is tiramemsu's job: its supersede writes a new statement and replays the layers onto it.

Virtual statements and promotion

Logically, everything in graphlava is a statement. Physically, four kinds are virtual: they answer queries but have no statement ID until something annotates them. That step is promotion, and it is one-way.

  • an inline property, such as (:alice, :age, 34)

  • a hyperedge role, such as (e1, :agent, :alice)

  • a graph membership, such as (s1, :in, :session7)

  • a derived fact from a rule

Most values are overwritten often and never annotated: a status, a last-seen time, a counter. Keeping them in one property record makes an overwrite one write instead of seven. The few that need a handle pay for one when they need it.

One reifier per triple

By default a predicate allows at most one statement per (s, p, o), so a triple has exactly one reifier: its ID. When you need several occurrences of one triple, declare the predicate multi. Alice met Bob twice, each meeting with its own date:

The epistemic layer

An agent needs to know what it knows, and how. In statement terms that layer is three patterns. Confidence, (s1, :confidence, 0.9), is an inline property of s1 and goes with it on delete. Source, (s1, :source, :chat12), is a statement that goes with it. A belief that rests on a fact, (:belief7, :supportedBy, s1), has s1 in object position: that is not a cascade, and the recommended option blocks the delete unless DETACH. Point dependencies the way deletes flow. If a belief should fall with its evidence, make the link an annotation of the evidence, (s1, :supports, :belief7), or let a Datalog rule derive the belief so it is recomputed when its premises change.

Takeaways

  • Statements about statements need nothing but an ID in subject position.

  • graphlava gives IDs lazily: virtual statements are promoted on first annotation and stay promoted.

  • Delete cascades in the subject direction only. An object-position reference is expected to block it.

Adapted from chapter 6 of the graphlava mini book. Syntax follows the specs; where the book marks it as a sketch, it is not final.

7 · Fold, unfold and rules
7 · Fold, unfold and rules
A metagraph is useful when you can move between levels: see a meeting as one thing, then open it; see an episode as one node, then read what is in it; derive a new fact from several. This page does both with reads, writes and Datalog rules, and shows where the schema itself lives.
Fold and unfold

7 · Fold, unfold and rules

A metagraph is useful when you can move between levels: see a meeting as one thing, then open it; see an episode as one node, then read what is in it; derive a new fact from several. This page does both with reads, writes and Datalog rules, and shows where the schema itself lives.

Fold and unfold

Fold collapses a subgraph into one vertex; unfold opens a vertex into its subgraph. A query can work at the folded level ("Alice had a meeting") and unfold only where it needs detail. In a statement graph three things fold, and each already has an unfold:

  • A hyperedge e1 stands for its role triples and literal attributes. Unfold it with ?e a :Meeting ; :agent ?a ; :target ?t ; :when ?w.

  • A graph :session7 stands for its statements. Unfold it with GRAPH! :session7 { ?s ?p ?o }.

  • A graph :aliceMemory stands for its statements and nested graphs. Unfold it with GRAPH :aliceMemory { ?s ?p ?o }.

The difference between GRAPH! and GRAPH is the difference between unfolding one level and unfolding all the way down.

Folding is a write that copies nothing

The cleanest fold works on whole graphs. To get one view of everything about pricing, nest the episodes under a new graph:

Nothing is copied. Every statement in both sessions is now in the scope of :pricingProject, the fold has its own description, and undoing the fold deletes two nesting statements. To fold single statements out of a larger graph, give each an extra membership in the new graph: one entry per statement, no copy, and the statement keeps its ID and annotations. Try both folds and the rule below.

Datalog sees the metagraph

graphlava's Datalog uses Nemo's syntax and sees the same relations SPARQL sees: triple(?s, ?p, ?o, ?id), prop(?n, ?p, ?v, ?id) for inline properties, role(?e, ?r, ?n) for hyperedge roles, in(?x, ?g) for direct membership and in_star(?x, ?g) for membership in the scope. The running example's rule:

With :alice bound, the magic-sets rewrite starts the evaluation from Alice's employers only, instead of computing every colleague pair and filtering. A single rule can mix every layer:

Rules run on demand by default; materialized rules are designed for v1 and limited to stable predicates, under a per-transaction budget. A derived fact such as colleague(:alice, :bob) is visible as a statement but not stored in the base orderings. Like the other virtual statements, it gets an ID only when something annotates it: "Bob is a colleague, and I told Carol so".

The meta-model: the schema is data

A system is homoiconic when data, schema and rules share one representation. In graphlava's spec, predicate declarations, hyperedge types, shapes, rules and index declarations are all statements in the system graph, with three practical effects: schema and data can change in one transaction, one query language reads both, and one set of tools exports and inspects both. The price is validation. A write to the system graph is checked against the data before commit: making a predicate functional fails if any subject already has two objects for it, and shrinking a hyperedge type's arity fails if records of that type exist. Declarations are not decoration, since the planner uses them to read fewer sources and pick cheaper plans. The sketch below shows the content of the schema, not final syntax:

Takeaways

  • Fold by nesting or by extra membership: no copies, no new IDs for the parts.

  • GRAPH! unfolds one level; GRAPH unfolds the whole scope.

  • One rule can read annotations, roles and containers together.

  • Storing the schema as statements gives one transaction, one language and one toolset, at the cost of validating schema writes against data.

Adapted from chapters 8 and 9 of the graphlava mini book.

8 · Worked example and choosing
8 · Worked example and choosing
The whole running example in one place: one agent's memory, written step by step and queried across its layers. Then the cheat sheet that says which rung of the ladder a problem needs.
The agent memory, step by step

8 · Worked example and choosing

The whole running example in one place: one agent's memory, written step by step and queried across its layers. Then the cheat sheet that says which rung of the ladder a problem needs.

The agent memory, step by step

The prefix : is http://example.org/ throughout, and :in is the spec's shorthand for the membership predicate. Steps marked sketch use syntax the spec has not fixed yet.

  1. 1.

    The schema: :met is multi, :worksAt is functional, and :Meeting is a hyperedge type with roles :agent, :target, :topic and a literal attribute :when.

  2. 2.

    The containers: :session7 in :aliceMemory in :agentMemory.

  3. 3.

    Facts with layers: Alice works at Acme with confidence 0.9 and source :chat12, checked by :carol; Bob works at Acme with confidence 0.7.

  4. 4.

    The meeting (sketch): create a :Meeting with agent alice, target bob, topic pricing, dated 2026-11-20, then a statement that it :ledTo :priceChange and a promoted role carrying a confidence.

  5. 5.

    An annotated membership: the summarizer filed s1 under the session.

  6. 6.

    A rule: colleague(?x, ?y) from two :worksAt facts, stored in the meta-model and run on demand.

Querying across the layers

Deleting

Alice left Acme, and the agent deletes the fact. s1 goes, and so do its confidence (an inline property), s3 and then s4 (the subject cascade) and the promoted membership. The meeting e1 is unchanged, because it refers to :alice, not to s1, and colleague(:alice, :bob) is simply no longer derived. Deleting :bob outright would fail, because he fills the target role of e1; with DETACH the meeting goes too. graphlava keeps no history, so if the agent must ask what it used to believe, the memory belongs in tiramemsu, or the change should be modelled as data, for instance an :until annotation instead of a delete.

Which rung do you need?

Tick the symptoms that apply to your problem. The dashboard climbs the ladder only as far as they require, and shows the structure, the cost and the store the book would suggest.

Five rules of thumb

  1. 1.

    Climb only as far as the problem needs. A binary fact that is never annotated costs the least, and graphlava is designed so that it pays for nothing else.

  2. 2.

    Give a relation a type when its roles are fixed. The store can then check it and read it as one record.

  3. 3.

    Annotate instead of encoding. A confidence belongs on the statement, not in a compound predicate or a side table.

  4. 4.

    Point dependencies the way deletes flow. Annotations follow their subject into deletion; a reference from the object position does not cascade.

  5. 5.

    Group with graphs, not with properties. A :context value on every fact cannot be nested, scoped or described. A graph can.

graphlava or tiramemsu

Both are statement stores from the same idea, and the choice is about time. Choose graphlava for current state only, many value overwrites, small fast transactions, native hyperedge records with typed roles, and nested graphs with transitive scope. Choose tiramemsu when you need "what did I believe last Tuesday?", corrections that keep the old version, nothing ever deleted, valid time as well as transaction time, or something you can install today, since graphlava is at the design stage.

Closing

This minibook started with a meeting that binary edges could not hold, and ended with a memory where a fact, its source, the source's checker, the meeting, its outcome, the episode and the rule that reads them are all statements in one ID space. Nothing in between needed a second data model. Give every statement an identity, let identities stand where nodes stand, and the higher rungs of the ladder become ordinary writes.

Adapted from chapters 10 and 11 of the graphlava mini book. The theory is told at length in Metagraph for AI Agents; for the sibling store that keeps every change with two clocks, see tiramemsu.

Adapted from the graphlava mini book: Hypergraphs and Metagraphs in Statement Graphs. More at graphlava.org. Each page notes its source chapters.

Metagraphs for Regulated Domains: Statement Graphs, Elpi, lean-elpi and tiramemsu

1

Hypergraphs , metagraph for aware AI

Metagraph, hypergraphs, fractal and holonic structures for AI agents and memory