<p>I am trying to find out if there is any work on applying the Codd's relational model (underlying relational databases) for reasoning about linked data structures.  Any connections with UML models and reasoning about them (other than drawing diagrams) would also be of interest to me.</p>

<p>[There is of course a lot of work - and tool sets - for mapping data structures to relational databases and back.  But my interest is in reasoning about in-memory data structures using relational models.]</p>

<p>[For example, a doubly-linked list can be represented in the relational model as a pair of relations: $successor$ and $predecessor$, tied together by a couple of integrity constraints $successor(x,y) \Rightarrow predecessor(y,x)$ and its converse (modulo boundary cases).  In more interesting examples, we would have tons of relations and constraints.  The question I am wondering about is whether the relational database theory can help us get handle on how to build good data structures, modularise them appropriately and provide some structure to the constraints (or "invariants") so that it is easier to verify them or to ensure correctness by construction.]</p>

CC BY-SA 3.0
2012-05-06T17:47:34.507Z
I assume you're interested in semantics, rather than complexity ?
Suresh Venkat
CC BY-SA 3.0
2012-05-06T20:10:40.827Z
Well, I am primarily interested in program correctness issues, which was in fact the major driving force of Codd's programme.  But, for a start, I would be happy to look at *any* application of relational models in modelling data structures (even if it was done for the purposes of complexity analysis).
Uday Reddy
CC BY-SA 3.0
2012-05-07T09:00:41.220Z
Gavin Bierman at MSRC mentioned to me that he was doing something like this. I don't think he's published anything yet, but it might be worth getting in touch.
Neel Krishnaswami
CC BY-SA 3.0
2012-05-07T12:41:52.983Z
In addition to relational databases, it also occurs to me that knowledge representation systems, in particular things like "truth maintenance systems", might be even more relevant to the data structure problems.  They presumably model dependencies between relations whereas relational databases only model dependencies between attributes.  SAT solvers like Alloy work with relations a lot too.  (Thanks for the tip about Gavin Bierman.)
Uday Reddy
<reference-request><ds.data-structures><db.databases><relational-structures>
Relational model for data structure reasoning
Uday Reddy
# Relational model for data structure reasoning

(Asked by: username_0 on 2012-05-06)

I am trying to find out if there is any work on applying the Codd's relational model (underlying relational databases) for reasoning about linked data structures. Any connections with UML models and reasoning about them (other than drawing diagrams) would also be of interest to me.

[There is of course a lot of work - and tool sets - for mapping data structures to relational databases and back. But my interest is in reasoning about in-memory data structures using relational models.]

[For example, a doubly-linked list can be represented in the relational model as a pair of relations: $successor$ and $predecessor$, tied together by a couple of integrity constraints $successor(x,y) \Rightarrow predecessor(y,x)$ and its converse (modulo boundary cases). In more interesting examples, we would have tons of relations and constraints. The question I am wondering about is whether the relational database theory can help us get handle on how to build good data structures, modularise them appropriately and provide some structure to the constraints (or "invariants") so that it is easier to verify them or to ensure correctness by construction.]

**Tags:** reference-request, ds.data-structures, db.databases, relational-structures
> **Comments:**
> **username_1**: I assume you're interested in semantics, rather than complexity ?  
> **username_0**: Well, I am primarily interested in program correctness issues, which was in fact the major driving force of Codd's programme.  But, for a start, I would be happy to look at *any* application of relational models in modelling data structures (even if it was done for the purposes of complexity analysis).  
> **username_2**: Gavin Bierman at MSRC mentioned to me that he was doing something like this. I don't think he's published anything yet, but it might be worth getting in touch.  
> **username_0**: In addition to relational databases, it also occurs to me that knowledge representation systems, in particular things like "truth maintenance systems", might be even more relevant to the data structure problems.  They presumably model dependencies between relations whereas relational databases only model dependencies between attributes.  SAT solvers like Alloy work with relations a lot too.  (Thanks for the tip about Gavin Bierman.)  

---

## 0 answers

