Separating Conjunction and the Frame Rule
Model the heap as disjoint fragments and prove a local update without restating all the memory it leaves untouched.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Each conjunct receives its own heap fragment
A points-to assertion \(x\mapsto v\) can specify an exact one-cell heap. The formula \((x\mapsto 2)*(y\mapsto 5)\) holds when the heap splits into the two one-cell heaps and they are disjoint. Thus \(x\) and \(y\) must name different locations. Ordinary conjunction would require both assertions of the same heap and would not express this split.
An update can be extended by an independent context
A local proof can express that writing \(3\) at \(x\) changes \(x\mapsto 2\) into \(x\mapsto 3\). Frame with \(y\mapsto 5\) to retain the fact about \(y\), under the logic’s locality and side conditions, including any relevant variables the command can modify. This makes a heap proof compositional. Hoare triples provide the surrounding specification structure. Concurrent separation logic extends resource reasoning to shared invariants and synchronization.[1][2]