diamond-property-le.le · output · proof · check · playground
The question
When two steps leave one node, can their targets reach a common node in one further step each? How do the answers change when each node gets a self-step?
Historical background
Marc Bezem formalized preservation of the diamond property under reflexive closure as an example of coherent reasoning. The general argument reduces to cases according to which steps are self-steps. Bezem’s formalization in Isabelle
What we tell eyemind
A fork includes two steps to the same target. In each finite relation the program searches for a fork with no common successor. Reflexive closure keeps the original steps and adds a self-step at each node.
For the general argument, if both branches use original steps, use the join supplied by the original diamond property. If a branch stays put, the target of the other branch is a join. It can reach itself by its new self-step. This also covers two branches that both stay put.
What eyemind concludes
| Relation | Original | Reflexive closure |
|---|---|---|
| Joined fork | Holds | Holds |
| Lone edge | Fails | Holds |
| Open fork | Fails | Fails |
The joined fork’s two distinct branches meet at tip.
struct('le:answer', 'joins', 'joined fork', 'tip')
struct('le:answer', 'diamonds', 'lone edge', 'reflexive closure', 'holds')
What the proof establishes
The proof is checked for all forks in the three finite fixtures. The general preservation argument above applies to arbitrary relations.
Try it
node bin/eyemind.js examples/diamond-property-le.le
node bin/eyemind.js --check-proof examples/proof/diamond-property-le.js examples/diamond-property-le.le
Add left has an edge to right. to the open fork. In the reflexive
closure, the fork can then join at right.
