← All papers
First page of First-Class Relationships as a Representation Threshold: Identity, Time, Confidence, and Causation

First-Class Relationships as a Representation Threshold: Identity, Time, Confidence, and Causation

Matthew Alford

cs.DB Mar 13, 2026 · v2 cs.AI
A Lean 4 development, using only the core library and published on GitHub, formalizes the composition part of the threshold theorem for relationship constructs.
Operational records – who may access what, what changed, what caused an incident – consist of relationships that involve several parties, hold for a period, are believed with some confidence, and cause one another. We ask what a representation must provide to store such records directly. We state four storage requirements: n-ary relationships with attributes, temporal validity, confidence with an evidential basis, and causal links between relationships. Under our definitions, each requires relationships to have identity: every relationship is stored, fetched and queried as an object with its own key. Confidence with an evidential basis and causal links also require composition: any relationship can take part in another. With n-ary relationships, either one therefore requires first-class relationships, which are identified, carry attributes, and compose at every arity. Conversely, first-class relationships suffice for all four. They are thus a threshold, and it belongs to the relationship construct, not to the data model around it: where a model's own construct falls short, every representation meeting n-ary relationships together with evidence-backed confidence or causal links builds a first-class construct from other parts, as our SQL implementation does. We place SQL, property graphs, RDF 1.2 and TypeDB relative to the threshold, and present the Attributed Temporal Causal Hypergraph (ATCH), which meets all four requirements with query operators for each.

Operational records such as access rights, changes, and incident causes consist of n-ary relationships that have temporal validity, confidence with an evidential basis, and causal links between them. The question is what a data representation must provide to store such records directly.

Four storage requirements are defined, along with the operations of identity and composition. A threshold theorem shows that each requirement forces relationship identity, and that evidence-backed confidence or causal links, combined with n-ary relationships, force first-class relationships, which in turn suffice for all four. A Lean 4 development models the compose part of the result. SQL, property graphs, RDF 1.2 and TypeDB are compared against the threshold, and the Attributed Temporal Causal Hypergraph (ATCH) model is proposed.

First-class relationships are a threshold that belongs to the relationship construct, not to the host data model. Models whose native construct falls short, such as SQL, property graphs and RDF 1.2, must build such a construct from other parts. ATCH meets all four requirements, and the investigators' queries fall in polynomial-time classes.

Host modelIDFCP1P2P3P4
SQLyesnonativerepresentablebuiltbuilt
Property graphsbinary onlynobuiltrepresentablebuiltbuilt
RDF 1.2binary onlynobuiltrepresentablebuiltbuilt
TypeDB 3yesyesnativerepresentablerepresentablerepresentable
ATCHyesyesnativenativenativenative
Support for the four requirements (built = only via a built construct, representable = stored natively without query semantics, native = stored with query semantics)