Refine README introduction
This commit is contained in:
1 parent
273ad72f0c
commit
4e26f3710b
1 file changed
+15
-6
@@ -1,12 +1,21 @@
|
|||||||
# conflict-range
|
# conflict-range
|
||||||
|
|
||||||
A formalised **closed form** for the minimal conflict range of a read/result
|
A closed-form algorithm that computes the minimal conflict range for an observed
|
||||||
pair, together with a C++20 translation and its test harness.
|
range read and result, based on the semantics used by FoundationDB.
|
||||||
|
|
||||||
Given a database, a range read (two selectors plus offsets, either traversal
|
See `Statement.lean` for definitions and the headline claim that the algorithm's
|
||||||
direction), and the keys a transaction observed, `Statement.closedForm` computes
|
output is minimal. Intuitively, the minimal range is the smallest range that
|
||||||
a minimal sound conflict range: a set of keys that is sufficient to detect every
|
preserves serializability (i.e. pinning this range pins the validity of any
|
||||||
conflicting write, and none of whose proper subranges is sufficient.
|
inference you can make from the observed range read and result), and the key set
|
||||||
|
is unique: any two minimal ranges denote the same set of keys, though their
|
||||||
|
endpoints may differ.
|
||||||
|
|
||||||
|
See `cpp/README.md` for a C++20 translation of the algorithm
|
||||||
|
(`cpp/src/literal.cpp`) and an equivalent optimized implementation for readable
|
||||||
|
inputs (`cpp/src/fast.cpp`).
|
||||||
|
|
||||||
|
The rest of this README documents the Lean proof and the C++/test support for
|
||||||
|
these claims.
|
||||||
|
|
||||||
## Layout
|
## Layout
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user