WIP: feat: mechanization of "Interval Tree Clocks" - #13
Closed
alexkeizer wants to merge 7 commits into
Closed
Conversation
This PR introduces a simplified version of "Interval Tree Clocks", described by Almeida et al. in their similarly named paper. Note: we just introduce the tree-based definitions, and prove they have the desired properties directly, without defining the denotation of such trees into actual intervals/sets. We also simplify the model a lot, by removing arbitrary events, and instead saying that a merge also counts as an event. By doing so, we can replace the event-tree by a single natural number, making it much simpler to reason about. We do use the id-tree exactly as defined in the paper, but since we eliminated the tree structure from the event component, we had to come up with a novel definition of the happens-before relation. This gives us a clock with a fork and join operations. This PR also proves that the arguments to these operations always happen before their results. Desired properties around independence are stated, but not yet proven. WIP because I had to last-minute tweak the happens-before relation, and should still check that the new definition (a) actually is the correct one, and (b) is consistent with the documentation.
Collaborator
Author
|
Unfortunately, the simplifications made the happens-before relation non-transitive, which disqualifies it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a simplified version of "Interval Tree Clocks", described by Almeida et al. in their similarly named paper.
Note: we just introduce the tree-based definitions, and prove they have the desired properties directly, without defining the denotation of such trees into actual intervals/sets.
We also simplify the model a lot, by removing arbitrary events, and instead saying that a merge also counts as an event. By doing so, we can replace the event-tree by a single natural number, making it much simpler to reason about. We do use the id-tree exactly as defined in the paper, but since we eliminated the tree structure from the event component, we had to come up with a novel definition of the happens-before relation.
This gives us a clock with a fork and join operations. This PR also proves that the arguments to these operations always happen before their results. Desired properties around independence are stated, but not yet proven.
WIP because I had to last-minute tweak the happens-before relation, and should still check that the new definition (a) actually is the correct one, and (b) is consistent with the documentation.