Manuscript Offprint
arXiv:2610.32844On Latency-Optimal Implementations of the Timestamp Object
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Timestamps are widely used in distributed algorithms to order operations. In this paper, we study the timestamp object (TS), which provides a single operation that returns strictly increasing integers. We ask two questions: What is the maximum resilience and the minimum latency of TS implementations in asynchronous message-passing systems, where latency is measured by worst-case message delay? We answer these questions under various types of failure: crash failures, and Byzantine failures with and without digital signatures. To do so, we give lower bounds and algorithms that determine (1) the optimal resilience of TS implementations under each type of failure, and (2) the optimal latency in all cases but one. Along the way, we introduce a new lower-bound proof technique called a cyclic chain argument, which constructs a cycle of indistinguishable schedules along which the returned timestamps must strictly increase, yielding a contradiction.
Contents
1 Introduction 3
2 System Model and Latency under Crash Failures 3
2.1 System Model 4
2.2 Worst-Case Message Delay 4
3 The Timestamp Object 5
4 Results for Crash Failures 7
4.1 Maximum Resilience 7
4.2 Latency Upper Bounds 7
4.2.1 Two-Delay Algorithm for 7
4.2.2 Three-Delay Algorithm for General 10
4.3 Latency Lower Bounds 12
4.3.1 Auxiliary Lemmas 12
4.3.2 The Bounds 13
4.4 Summary 18
5 Adapting to Byzantine Failures 18
5.1 System Model and Latency 18
5.2 Implementations of the Timestamp Object 19
*New York University. Email: apanda@cs.nyu.edu.
†UC Berkeley and ICSI. Email: shenker@icsi.berkeley.edu.
‡University of Toronto. Email: sam@cs.toronto.edu.
§Google. Email: wnz@google.com.
6 Results for Byzantine Failures with Digital Signatures 20
6.1 Maximum Resilience 20
6.2 Latency Upper Bounds 20
6.3 Latency Lower Bounds 30
6.4 Summary 30
7 Results for Byzantine Failures without Digital Signatures 30
7.1 Maximum Resilience 30
7.2 Latency Upper Bound 30
7.3 Latency Lower Bounds 34
7.3.1 Auxiliary Lemmas 34
7.3.2 The Bounds 34
7.4 Summary and Open Question 36
8 Related Work 37
9 Conclusion 38
10 AI Methodology 38
A Auxiliary Notations 40
B Properties of Finite Worst-Case Message Delay 40
B.1 Finite Worst-Case Message Delay Implies Liveness 41
B.2 A Finite Worst-Case Message Delay Is an Integer 41
C Auxiliary Results for Latency Lower Bounds 43
C.1 Proofs of the Loquacious-Transformation Lemmas 43
C.1.1 Crash Failures 43
C.1.2 Byzantine Failures 45
C.2 Weaker Timeliness Requirements 46
C.3 Proofs of the Completion Lemmas 52
C.3.1 Crash Failures 52
C.3.2 Byzantine Failures 54
D Proof of the Two-Delay Lower Bound for Crash Failures 54
We ask two questions: What is the maximum resilience and the minimum latency of TS implementations? We focus on systems in which network communication, rather than local computation, dominates the time an operation takes. Accordingly, we measure latency in terms of worst-case message delay: intuitively, the longest time an operation can take when local computation is instantaneous and every message sent during the operation is received within one time unit (we define this precisely in Section 2.2).
We answer these questions under various types of failure: crash failures, and Byzantine failures with and without digital signatures. To do so, we develop lower bounds and algorithms that determine (1) the optimal resilience of TS implementations under each type of failure, and (2) the optimal latency in all cases but one.
Our results are summarized in Table 1, where is the number of processes in the system and is the maximum number of faulty processes. As the table shows, the optimal latency depends on whether more than one process may fail and, under Byzantine failures, on whether digital signatures are available. Only one case remains open: Byzantine failures without digital signatures when and . There, we narrow the optimal latency down to either two or three message delays.
We also introduce a new lower-bound technique, which we call a cyclic chain argument. The argument constructs a cycle of indistinguishable schedules along which the returned timestamps must strictly increase, yielding a contradiction.
We defer the proofs of several auxiliary results to the appendices.
Table 1: Summary of results on implementing the timestamp object (TS), where is the number of processes in the system and is the maximum number of faulty processes. When TS is implementable, we report a lower bound and an upper bound on the optimal latency of implementing TS, i.e., the smallest worst-case message delay of any implementation of TS. A check mark indicates that the lower and upper bounds match. References set in gray point to observations, which follow immediately from results elsewhere in the table.
| Failure type | TS implementable iff | # of failures | Optimal latency (in message delay units) | ||
|---|---|---|---|---|---|
| Lower bound | Upper bound | Tight? | |||
| Crash | (only if: Prop. 4.1) | 3 (Thm. 4.23) | 3 (Alg. 2) | ✓ | |
| 2 (Prop. 4.22) | 2 (Alg. 1) | ✓ | |||
| Byzantine with signatures | (only if: Prop. 6.1) | 3 (Obs. 6.42) | 3 (Obs. 6.2) | ✓ | |
| 2 (Obs. 6.41) | 2 (Alg. 3) | ✓ | |||
| Byzantine | (only if: Obs. 7.1) | 3 (Obs. 7.14) | 3 (Alg. 4) | ✓ | |
| 3 (Thm. 7.15) | ✓ | ||||
| 2 (Obs. 7.13) | |||||
2 System Model and Latency under Crash Failures
We first define the system model and latency measure for crash failures; Section 5 adapts these definitions to systems with Byzantine processes.
2.1 System Model
The system consists of processes connected pairwise by reliable asynchronous channels. At most processes may crash, where . Processes take steps asynchronously. In each step, a process may invoke an operation, receive and send finitely many messages, and return from an operation by producing a response. A process may invoke an operation in any step, provided its earlier operations have returned.
An algorithm A assigns to each process p a deterministic automaton . Each transition of maps process p's current state, an optional operation invocation, and the received messages to a new state, outgoing messages, and any response to p's pending operation.
A schedule S of A is an infinite sequence of steps, each taken according to A, in which at least n - f processes take infinitely many steps. The processes that take infinitely many steps are correct in S; all other processes are faulty. In a schedule, every message is received at most once and only if it was sent to its recipient in an earlier step, and every message sent to a process that takes infinitely many steps is eventually received. A schedule prefix of A is a finite prefix of a schedule of A. An operation consists of an invocation step and its corresponding return step, if any. An operation is complete if it returns and incomplete otherwise.
2.2 Worst-Case Message Delay
With the system model in place, we now turn to measuring the latency of algorithms. Defining such a measure can be subtle in asynchronous systems, where an algorithm's running time is at the mercy of message and computation delays beyond its control. (See, for example, recent work by Bezerra et al. [BFKR25, Section 6] for a discussion of the subtleties involved.)
Following convention, we measure an algorithm's latency in units of message delay, an approach well suited to environments in which latency is dominated by communication rather than by local computation. Specifically, we study an algorithm's worst-case message delay: intuitively, the longest duration an operation can take when local computation is instantaneous and every message sent during the operation is received within one unit of time. (A similar measure appears as early as Awerbuch [Awe85, Section 2.1]; see Attiya and Welch [AW04, Section 2.1.2] for a more detailed exposition.)
A schedule records the order of steps but not the times at which they occur. To measure the latency of messages and operations, we assign a real time to each step. These times are used only for analysis and are not accessible to the processes.
Definition 2.1 (Run). A run of A consists of a schedule S of A and a non-decreasing, unbounded sequence T of real numbers, where is the time of step , such that:
(1) if a message sent in step is received in step , then ; and
(2) if steps and with are taken by the same process, then .
A process is correct in R if it is correct in S, and faulty otherwise.
A run assigns a single time to each step, treating it as instantaneous even though it may perform an arbitrary finite amount of local computation. This choice reflects the intuitive notion of worst-case message delay described in Section 1, in which local computation takes no time.
We now define the latency of a message and of an operation in a run R.
Definition 2.2 (Message latency). In a run , if a message is sent in step and received in step , then its latency in is .
Definition 2.3 (Timely message). In a run, a message is timely if its latency is at most one unit of time.
Definition 2.4. In a run , let O be an operation invoked in step .
• The time interval of O is
• The latency of O, denoted , is the length of . In particular, if O is incomplete.
• A message is sent during O if its send time lies in .
Definition 2.5. In a run , let L be the set of processes that take infinitely many steps in S, and let O be an operation. We say that messages are timely during O if every message sent during O to a process in L is timely.
All these notions are relative to a run, which we specify explicitly when needed. When the run R is clear from context, we omit it from the notation, writing , , and .
Definition 2.6 (Worst-case message delay). The worst-case message delay of an algorithm A is
If is finite, two simple but useful consequences follow:
Proposition 2.7. If , then satisfies liveness: In every schedule of , every operation invoked by a correct process eventually returns.
Proposition 2.8. If , then for some nonnegative integer .
Accordingly, whenever we refer to a worst-case message delay of k, we take k to be a nonnegative integer. Both propositions are intuitively clear, but their proofs require some technical care; we defer them to Appendix B.
3 The Timestamp Object
We now define the timestamp object and the requirements for implementing it.
Definition 3.1 (Timestamp object). The timestamp object, denoted TS, has a single operation next() and the following (nondeterministic) sequential specification:
State: last , initially 0.
next():
choose any
last last +
return last
Thus, the sequential specification of TS requires each next() operation to return a positive integer strictly larger than every value returned by an earlier operation.
We require implementations of TS to satisfy linearizability with respect to this specification. Following Herlihy and Wing [HW90], a history is the sequence of operation invocations and responses in a schedule. In a history, an operation precedes another if its response occurs before the other's invocation. Intuitively, a history H is (crash) linearizable with respect to TS if, after discarding some incomplete operations and appending responses to the remaining incomplete operations, the resulting operations can be arranged into a sequential history that (1) satisfies the sequential specification of TS and (2) preserves the precedence of operations in H.
Definition 3.2 (TS implementation). Let A be an algorithm whose next() operation returns positive integers. We say that A implements TS in a system with crash failures if every schedule S of A, with corresponding history H, satisfies the following conditions:
(CT1) Safety: H is linearizable with respect to TS.
(CT2) Liveness: Every operation invoked by a correct process in S eventually returns.
We call such an algorithm A an implementation of TS.
The following equivalent characterization of TS implementations replaces the linearizability condition with two conditions on the values returned by complete operations.
Proposition 3.3 (Characterization of TS implementations). Let A be an algorithm whose next() operation returns positive integers. Then A implements TS in a system with crash failures if and only if every schedule S of A, with corresponding history H, satisfies the following conditions:
(CT1a) Ordering: If a complete operation precedes a complete operation in H, then returns a smaller value than .
(CT1b) Uniqueness: No two distinct complete operations in H return the same value.
(CT2) Liveness: Every operation invoked by a correct process in S eventually returns.
Proof. The liveness condition (CT2) is the same in Definition 3.2 and the proposition. It therefore suffices to show that, for the history of every schedule of , . We prove the two directions separately, in a form that we will reuse for the Byzantine analogue (Proposition 5.3).
Claim 3.4. For every history , .
Proof. Suppose that satisfies (CT1). Since is linearizable with respect to TS, we can discard some incomplete operations from , append responses to the remaining incomplete operations, and arrange the resulting operations into a sequential history that (1) satisfies the sequential specification of TS and (2) preserves the precedence of operations in . Every complete operation in therefore appears in with the same return value. By the sequential specification of TS, each next() operation increases last by some and returns the new value of last. Hence, the values returned by successive operations in are strictly increasing.
For (CT1a), suppose that a complete operation precedes a complete operation in . Since preserves the precedence of operations in , appears before in and therefore returns a smaller value. For (CT1b), let and be distinct complete operations in . Both appear in with the same return values as in . Since is sequential, one appears before the other; because return values strictly increase in , they return distinct values.
Claim 3.4
Claim 3.5. For every history H whose complete operations return positive integers, .
Proof. Suppose that H satisfies (CT1a) and (CT1b). Discard all incomplete operations from H, and arrange the complete operations into a sequential history in increasing order of their return values. To show that H is linearizable with respect to TS, it remains to show that satisfies the sequential specification of TS and preserves the precedence of operations in H.
The return values in are positive integers and, by construction and (CT1b), strictly increasing. Thus, satisfies the sequential specification of TS.
The history is well defined even if H contains infinitely many complete operations: The complete operations in H return positive integers and, by (CT1b), have distinct return values. Thus, an operation returning v has at most v - 1 complete operations with smaller return values, so the complete operations can be listed in increasing order of return value.
Next, suppose that a complete operation precedes a complete operation in . By (CT1a), returns a smaller value than . Since orders operations by increasing return value, appears before in . Hence, preserves the precedence of operations in .
Therefore, H is linearizable with respect to TS.
Claim 3.5
Since the next() operation of A returns positive integers, Claims 3.4 and 3.5 prove the proposition.
Proposition 3.3
4 Results for Crash Failures
In this section, we consider implementations of TS in systems with crash failures. Recall that we assume there are processes in the system, of which at most may crash.
4.1 Maximum Resilience
Proposition 4.1. In a system with crash failures, there exists an implementation of TS only if n > 2f.
Proof. By a standard partitioning argument.
Proposition 4.1
4.2 Latency Upper Bounds
We now give two upper bounds on the worst-case message delay of implementing TS under crash failures, first for f = 1 and then for general f.
4.2.1 Two-Delay Algorithm for f = 1
When , TS can be implemented in two message delays.
Theorem 4.2. In a system with crash failures, if and , then there exists an implementation of TS (Algorithm 1) whose worst-case message delay is two.
Proof. We first establish some supporting properties of the algorithm. We then show that the algorithm implements TS by proving that it returns positive integers and satisfies ordering (CT1a), uniqueness (CT1b), and liveness (CT2). Finally, we show that its worst-case message delay is two.
Claim 4.3. For every process , its local clock is non-decreasing.
Proof. After initialization, only lines 13 and 20 assign to , and neither decreases it.
Claim 4.3
Claim 4.4. If an invocation of next() computes base timestamp t on line 19, then at the time of return, at least two distinct processes satisfy .
Proof. Let be the process performing the invocation. Write when computes on line 19. By line 18, ; by line 11, each sender contributes at most one element to , so . Moreover, sends no request to itself (line 9) and therefore receives no reply from itself, so .
For each , let be the unique value such that when computes (line 19). Since , choose such that . By lines 13 and 14, process has when it sends its reply. By Claim 4.3, still holds when returns.
For the invoking process , line 20 sets before line 23 returns. Hence, at the time of return. Since and , the processes and are distinct, and the claim follows. Claim 4.4
In our pseudocode, upon blocks are uninterruptible: Each runs to completion before another begins.
Algorithm 1 A worst-case two-delay implementation of TS in a system with crash failures where and .
Code for process (): 1: 2: 3: for each 4: 5: 6: upon invocation of next() do 7: 8: 9: to every process except 10: upon receive from do 11: if then 12: 13: 14: to 15: upon receive from do 16: if and then 17: 18: if then 19: 20: 21: 22: 23: ▷ 's local clock. ▷ Sequence number of 's ongoing invocation, or of its next invocation when idle. ▷ Largest in a received from . ▷ Whether is idle or has an ongoing invocation. ▷ Set of received for 's ongoing invocation.
▷ Base timestamp.
Claim 4.5. Let be an integer, and suppose that when a process invokes next(), there are distinct processes and such that and . Then, if the invocation completes, its base timestamp satisfies .
Proof. Let be the value of included in the REQ message that sends for this invocation on line 9. When computes on line 19, write . As argued in the proof of Claim 4.4, and .
If , then by assumption and monotonicity (Claim 4.3). For each , line 13 makes 's reply value at least . Since is the maximum of these reply values (line 19), we have .
Otherwise, . Because and , the set omits only one of the indices other than ; hence or . Without loss of generality, assume . By Claim 4.3, when receives the REQ message from . Line 13 therefore makes 's reply value greater than . This value is among those whose maximum is (line 19), so .
Claim 4.5
Claim 4.6 (Ordering for base timestamps). Suppose two next() operations compute base timestamps and on line 19, respectively. If the first returns before the second is invoked, then .
Proof. By Claim 4.4, when the first operation returns, there exist distinct processes and such that and . By Claim 4.3, both inequalities still hold when the second operation is invoked. Applying Claim 4.5 with therefore shows that the second operation has base timestamp . Claim 4.6
Claim 4.7 (Return values). Algorithm 1 returns positive integers from next() and satisfies ordering (CT1a) and uniqueness (CT1b).
Proof. Local clocks start at 0 and never decrease (Claim 4.3), so by line 13, every value sent in a REPLY message is a positive integer. Hence, every base timestamp is a positive integer, and so is .
For (CT1a), suppose a complete operation at with base timestamp precedes one at with base timestamp . By Claim 4.6, , so .
For (CT1b), timestamps returned by different processes differ modulo n, and those returned by the same process are distinct by (CT1a) since its operations are sequential. Claim 4.7
Claim 4.8 (Liveness). In Algorithm 1, every invocation by a correct process eventually returns.
Proof. Let be a correct process that invokes next(). Line 9 sends a REQ message to each of the other processes, at least of which are correct. Each correct recipient eventually receives this fresh request, passes the check on line 11, and sends a REPLY on line 14, which eventually receives. Thus line 17 eventually makes , causing to pass the check on line 18 and return on line 23. Claim 4.8
Claim 4.9 (Latency). The worst-case message delay of Algorithm 1 is two.
Proof sketch. An invocation follows one REQ delay and one REPLY delay, as illustrated below:

Claim 4.9
By Claims 4.7 and 4.8, Algorithm 1 satisfies the conditions of Proposition 3.3 and hence implements TS. By Claim 4.9, its worst-case message delay is two. Theorem 4.2
4.2.2 Three-Delay Algorithm for General f
In the general case, TS can be implemented in three message delays.
Theorem 4.10. In a system with crash failures, if , then there exists an implementation of TS (Algorithm 2) whose worst-case message delay is three.
Proof. The algorithm adopts the “max-min technique” [DGLC04, Section 1.1] previously used to achieve worst-case three-delay reads for SWMR and MWMR atomic registers in message-passing systems [HNS17]. We first establish some supporting properties of the algorithm. We then show that the algorithm implements TS by proving that it returns positive integers and satisfies ordering (CT1a), uniqueness (CT1b), and liveness (CT2). Finally, we show that its worst-case message delay is three.
Claim 4.11. For every process , its local clock is non-decreasing.
Proof. After initialization, the only assignment to is on line 24, which cannot decrease . Claim 4.11
Claim 4.12. For all processes and and every sequence number , process sends at most one message to each process and at most one message to .
Proof. Process sends on line 15 only upon receiving from with , and it sets on line 14 before sending. As line 14 is the only assignment to and never decreases it, the test fails thereafter, so sends no further PROP message for .
Process sends to on line 25 only when an insertion on line 21 brings to while . Thereafter, the test on line 20 fails for every later message received, so no further insertion—and hence no further reply—occurs while . Moreover, any later assignment to occurs on line 18, where it can only increase the value past , so never equals again.
Claim 4.12
Claim 4.13. If an invocation of next() computes base timestamp t on line 30, then at the time of return, at least processes satisfy .
Proof. Let be the process performing the invocation, and consider the time when executes line 30 before returning. Write . Line 30 is reached only when (line 29). Every pair in comes from a REPLY message with sequence number , and by Claim 4.12 each process sends at most one such message to , so we have .
Fix an index , and let be the value with . By line 30, . Process had when it sent this reply on line 25, so by Claim 4.11, still holds when returns. As was arbitrary and , the claim follows.
Claim 4.14. Let be an integer, and suppose that when a process invokes next(), at least processes have . Then, if the invocation completes, its base timestamp satisfies .
Proof. Let be a set of indices such that for every when the invocation begins. When executes line 30, write . Fix an index , and let be the value with . Before sends this reply on line 25, (line 22); by Claim 4.12, the pairs in carry distinct indices, so received PROP messages for this invocation from a set of process indices. Since and , we have .
Fix some . As , we have when invoked next(). Process sent its PROP message on line 15 upon receiving 's REQ message from line 11, hence after the invocation began, so Claim 4.11 implies that its proposal value satisfies . As , we have , so when executes line 24. After that line, we have , and sends this value of as on line 25, so .
Since was arbitrary, line 30 yields .
Claim 4.14
Algorithm 2 A worst-case three-delay implementation of TS in a system with crash failures where .
Code for process (): 1: 2: 3: for each 4: for each 5: for each ▷ Set of received for sequence number of .
6: 7: ▷ Whether is idle or has an ongoing invocation. ▷ Set of received for 's ongoing invocation.
8: upon invocation of next() do 9: 10: 11: to every process
12: upon receive from do 13: if then 14: 15: to every process
16: upon receive from do 17: if then 18: 19: 20: if and then 21: 22: if then 23: 24: 25: to
26: upon receive from do 27: if and then 28: 29: if then 30: 31: 32: 33: ▷ Base timestamp. ▷ Completes the next() invocation.
Claim 4.15 (Ordering for base timestamps). Suppose two next() operations compute base timestamps t and on line 30, respectively. If the first returns before the second is invoked, then .
Proof. By Claim 4.13, when the first operation returns, at least processes satisfy . By Claim 4.11, these inequalities still hold when the second operation is invoked. Applying Claim 4.14 with therefore shows that the second operation has base timestamp .
Claim 4.15
Claim 4.16 (Return values). Algorithm 2 returns positive integers from next() and satisfies ordering (CT1a) and uniqueness (CT1b).
Proof. Local clocks start at 0 and never decrease (Claim 4.11), so by line 24, every value sent in a REPLY message is a positive integer. Hence, every base timestamp is a positive integer, and so is .
For (CT1a), suppose a complete operation at with base timestamp precedes one at with base timestamp . By Claim 4.15, , so .
For (CT1b), timestamps returned by different processes differ modulo n, and those returned by the same process are distinct by (CT1a) since its operations are sequential.
Claim 4.16
Claim 4.17 (Liveness). In Algorithm 2, every invocation by a correct process eventually returns.
Proof. Let be a correct process that invokes next(), and let be the value of seq during this invocation. Line 11 sends to every process, at least of which are correct. Each correct recipient eventually receives this fresh request, passes the check on line 13, and sends to every process on line 15. Since sends no request with a higher sequence number before this invocation returns, each correct process eventually receives these PROP messages from at least distinct processes while propSeq. Thus line 21 eventually makes , causing to pass the check on line 22 and send a REPLY to on line 25, which eventually receives. Hence, line 28 eventually makes , causing to pass the check on line 29 and return on line 33.
Claim 4.17
Claim 4.18 (Latency). The worst-case message delay of Algorithm 2 is three.
Proof sketch. An invocation follows one REQ delay, one PROP delay, and one REPLY delay, as illustrated below:

Claim 4.18
By Claims 4.16 and 4.17, Algorithm 2 satisfies the conditions of Proposition 3.3 and hence implements TS. By Claim 4.18, its worst-case message delay is three.
Theorem 4.10
4.3 Latency Lower Bounds
We now turn to lower bounds on the worst-case message delay of implementing TS under crash failures.
4.3.1 Auxiliary Lemmas
Definition 4.19 (Loquacious algorithm). An algorithm is loquacious if every step sends the same message to every process in the system (including the sender itself). We say that such a step broadcasts that message.
The lower-bound proofs will use two auxiliary lemmas. The first provides a transformation from arbitrary implementations of TS to loquacious ones.
Lemma 4.20. In a system with crash failures, let be an implementation of TS. Then there exists a loquacious implementation of TS such that .
Since this transformation does not increase worst-case message delay, any latency lower bound for loquacious implementations of TS also holds for arbitrary implementations of TS in the same system. We defer the proof of this lemma to Appendix C.1.1.
The second auxiliary lemma concerns completion in two-delay algorithms. Intuitively, an algorithm with worst-case message delay at most two must return from an operation once its invoker completes a round trip with processes. The invoker cannot wait for the remaining processes, which may have crashed, or for another communication step, which would require a third message delay. The following lemma makes this intuition precise.
Lemma 4.21. In a system with crash failures, let be a loquacious algorithm with . Let be a process, and let be a set of processes such that and .
Suppose that is a schedule prefix of A in which the following hold:
-
Process p invokes an operation and broadcasts a message m in step .
-
For each , process receives message and broadcasts a message in step .
-
Process p receives the set of messages in step .
-
Between steps and , inclusive, the only steps are those specified above.
Then the operation invoked by p in step returns no later than step .
We defer the proof of this lemma to Appendix C.3.1.
4.3.2 The Bounds
The first lower bound is intuitively clear: A process invoking next() cannot safely return before completing at least one round trip with another process, which requires at least two message delays.
Proposition 4.22. In a system with crash failures, any implementation of TS has worst-case message delay at least two.
Making this intuition precise requires some technical care; we defer the proof to Appendix D.
We now show that implementing TS requires at least three message delays when two or more processes may crash. Our proof uses a novel cyclic chain argument: a chain of indistinguishable schedules that closes on itself, forcing the returned timestamps to increase strictly around a cycle.
Theorem 4.23. In a system with crash failures, if , then any implementation of TS has worst-case message delay at least three.
Proof. Consider a system with processes, of which at most may crash. Suppose, toward a contradiction, that there is an implementation of TS whose worst-case message delay is less than three. By Lemma 4.20, there is a loquacious implementation of TS with . Since finite worst-case message delays are integers (Proposition 2.8), . By Proposition 3.3, satisfies ordering (CT1a). Finally, by Proposition 4.1, .
We name the processes , with process indices taken from the cyclic group . So arithmetic on process indices is modulo . For , we write for the inclusive cyclic range obtained by starting at and repeatedly adding one until is first reached (in particular, when , this range is simply ).

Schedule prefix

Schedule prefix

Schedule prefix
Figure 1: Proof of Theorem 4.23. In a system with crash failures where , suppose toward a contradiction that some loquacious implementation of TS has . For and , the figure shows , , and . Each dot marks a step and is colored by the invocation it serves, while each arrow shows a message received within the prefix. A horizontal segment tracks a next() operation: marks its invocation step, and labeled indicates that it has returned by that step. Without a return marker, the figure makes no claim about whether the operation returns within the prefix. Condition (CT1a) gives . Furthermore, and are indistinguishable to through the return of its operation, so . Together, these relations yield the contradiction .
Roadmap. For each , we will construct a schedule prefix of as follows (Figure 1 illustrates the construction for , ):
• For , process invokes next(); the message broadcast by its invocation step is then received by the processes in some receiver set .
• Process invokes next(), completes a round trip of communication with itself and some set of helper processes, and returns value .
• Process invokes next(), completes a round trip with itself and the helper processes in , and returns value .
Each can be extended to a schedule of A in which returns before invokes, so condition (CT1a) implies
The key to the argument will be to choose the sets and such that and are indistinguishable to process for each . Consequently, returns the same value from its operation in and , and so
Thus for every . Chaining these inequalities around the cycle yields , a contradiction.
We now give the full proof following this roadmap, starting by defining the sets and .
Helper and receiver sets. For each , define the helper set
By construction, . Moreover, since and ,
For and , define the receiver set
For each fixed , these sets are nested as their indices advance toward in cyclic order:
Unwinding the definitions, for every and ,
Constructing the schedule prefixes. Fix . We construct in three phases, listing the steps taken in each phase. For each step, we specify the process that takes it, the operation it invokes, if any, and the messages it receives; the algorithm then determines the message the step broadcasts, whether the step returns from an operation, and, if so, the return value.
Any message whose receipt we do not specify is not received during . Since A is loquacious, every step broadcasts a message, but we name only those messages relevant to the proof. If we do not state whether a step returns from an operation, then it is irrelevant to the proof whether it does.
The three phases of are as follows.
Phase 1: background invocations. For , in that cyclic order:
(a) process takes a step that receives no messages and invokes next(), broadcasting a message ; and then
(b) the processes in (in any order) each take a step that receives .
Phase 2: a complete operation by .
(a) process takes a step that receives no messages and invokes next(), broadcasting a message ;
(b) each process (in any order) takes a step that receives , broadcasting a message ; and then
(c) process takes a step that receives the set of messages broadcast above.
By Lemma 4.21 (with and ), the operation invoked by in step 2a has returned by this point; denote its return value by .
Phase 3: a complete operation by , repeating phase 2 with in place of and in place of :
(a) process takes a step that receives no messages and invokes next(), broadcasting a message ;
(b) each process (in any order) takes a step that receives , broadcasting a message ; and then
(c) process takes a step that receives the set of messages broadcast above.
By Lemma 4.21 (with and ), the operation invoked by in step 3a has returned by this point; denote its return value by .
By construction, each process invokes only one operation, receives only messages broadcast in an earlier step, and receives each message at most once. Thus, is a schedule prefix of . We call the steps specified in 1a, 2a, and 3a invocation steps, and all other steps of receive steps.
Return-value order within each prefix. As previewed in the roadmap, we first use condition (CT1a) to order the return values of the two complete operations in each prefix.
Claim 4.24. For every , .
Proof. Fix . Extend to a schedule of . Both operations are complete and 's operation returns before 's operation is invoked. The claim follows from condition (CT1a). Claim 4.24
Return-value equality across consecutive prefixes. Next, we establish several auxiliary claims about the steps taken by processes in the schedule prefixes. We then use these claims to show that two complete operations by the same process in consecutive prefixes return the same value.
Claim 4.25. For every , process 's invocation step is its first step in . Consequently,
Proof. Fix . In , the invocation steps occur in the cyclic order
Suppose first that . Before invokes, every step in is either an invocation step by a process preceding in the order above, or a receive step taken by a process in for such an . Since precedes in the invocation order, (2) gives . Since by (1), none of these steps is taken by .
Now suppose that . Every invocation step preceding 's invocation is taken by some with . Every preceding receive step is taken either by a process in during phase 1, where the inclusion follows from (3), or by a process in during phase 2. Since by (1) and , none of these steps is taken by .
Thus, 's invocation step is taken from its initial state in every prefix. These steps invoke the same operation and receive no messages, so they must broadcast the same message. Therefore, for all .
For each , denote by the message , which is the same for every .
Claim 4.26. For every and , in the steps taken by through its receipt of consist of 's invocation step followed, in order, by one receive step for each message in the sequence
Proof. Fix and , and consider the prefix . By (1), , so invokes during phase 1. We distinguish two cases according to whether :
• If , then (4) and the construction of phase 2 imply that, after invoking, receives in that order during phases 1 and 2. It then receives during phase 3, completing the sequence in (5).
• If , then , which implies . Thus the sequence in (5) consists only of . By (3), no receiver set used in phase 1 contains , so it receives no messages in that phase. Moreover, , so it does not receive in phase 2 either. Hence takes no receive step before receiving in phase 3, as claimed.
Claim 4.26
Claim 4.27. For every and , in the steps taken by through its receipt of consist of 's invocation step followed, in order, by one receive step for each message in the sequence (5).
Proof. Fix and , and consider the prefix . By (1), , so takes its invocation step during phase 1. In , (4) implies that during phase 1 process receives, in order, exactly those messages in (5) that precede , each in a separate receive step. During phase 2, it receives in one more receive step because . These are precisely the steps stated in the claim.
Claim 4.27
Claim 4.28. For every and ,
Proof. Fix and . By (1), , so exactly one of the following cases holds:
• If , then by Claims 4.26 and 4.27, takes the same sequence of steps in and through its receive step for . This step broadcasts in and in , so .
• If , then Claim 4.25 implies that its first step in both and is its invocation step, which broadcasts in each. By construction, its next step in each prefix is a receive step for . These receive steps are therefore identical, so .
For each and , we denote by the message .
Claim 4.29. For every , .
Proof. Fix , and compare the steps of in and , which belong to phase 3 of the former and phase 2 of the latter. In both prefixes, takes exactly three steps up to and including the last step of its round trip:
-
invokes next() and broadcasts ;
-
receives and broadcasts ; and
-
receives all messages for .
By Claim 4.25, 's invocation is its first step in both prefixes and broadcasts the same message . By construction, its next step in each prefix receives , so steps 1 and 2 agree in the two prefixes. By Claim 4.28, receives the same set of messages in step 3, so this step agrees as well. By Lemma 4.21, 's operation returns by this step in each prefix. It therefore returns at the same step and with the same value in both prefixes. This value is in and in , so .
Claim 4.29
Contradiction. By Claims 4.24 and 4.29, for every . Chaining these inequalities around the cycle gives
a contradiction. Thus every implementation of TS has worst-case message delay at least three. Theorem 4.23
4.4 Summary
Proposition 4.1 and Theorem 4.10 together give the following necessary and sufficient condition for implementing TS under crash failures.
Corollary 4.30. In a system with crash failures, there exists an implementation of TS if and only if n > 2f.
We next state the optimal latency for implementations of TS under crash failures. When and , the latency upper bound in Theorem 4.10 matches the lower bound in Theorem 4.23, yielding the following.
Corollary 4.31. In a system with crash failures, if and , then the optimal latency of implementing TS is three message delays.
When and , the latency upper bound in Theorem 4.2 matches the lower bound in Proposition 4.22, yielding the following.
Corollary 4.32. In a system with crash failures, if and , then the optimal latency of implementing TS is two message delays.
Thus, the optimal latency of implementing TS under crash failures is settled in all cases where an implementation exists.
5 Adapting to Byzantine Failures
We now adapt the system model and latency measure (Section 2) and the implementation requirements for TS (Section 3) to systems with Byzantine processes. These adaptations apply in both settings we consider: with digital signatures (Section 6) and without them (Section 7).
5.1 System Model and Latency
We continue to assume processes and . The definitions of processes, the message-passing model, and algorithms are unchanged; only the definition of a schedule changes. In a system with Byzantine processes, a schedule S of algorithm A is an infinite sequence of steps in which at least processes take infinitely many steps, all according to A; these processes are correct in S. Every other process is faulty—it may crash, deviate arbitrarily from A, or both. The message-delivery requirements on a schedule are unchanged.
Under these revised notions of schedules and correct processes, the remaining definitions in Section 2.1 and the latency definitions in Section 2.2 carry over verbatim. The two consequences of finite worst-case message delay, Propositions 2.7 and 2.8, also carry over. (Their proofs in Appendix B apply equally under crash and Byzantine failures.)
In the setting with digital signatures (Section 6), no process can forge the signature of a correct process, and any process can relay a signed message and verify its signature.
Remark 5.1. The eventual-delivery requirement in Section 2.1 and the definition of message timeliness in Definition 2.5 cover messages sent to any process that “takes infinitely many steps,” even if that process is Byzantine. This is natural because both constrain network behavior, not process behavior: The network does not deliver a message any less reliably or promptly merely because its recipient deviates from A. In particular, if a Byzantine process q takes infinitely many steps, every message m sent to q is eventually delivered. However, q may handle the delivered message arbitrarily: It may act as if it had not received m or as if it had received a different message .
5.2 Implementations of the Timestamp Object
To adapt Definition 3.2 (implementation of TS) to Byzantine failures, we replace crash linearizability with Byzantine linearizability [CK21, Section 4]. Intuitively, the history H of a schedule S is Byzantine linearizable with respect to TS if there exists a history such that (1) the projection of onto the correct processes in S is the same as that of H, and (2) is crash linearizable with respect to TS. In other words, H can be made crash linearizable with respect to TS by adding, omitting, or modifying operations of processes that are faulty in S. Below, we underline the changes for Byzantine failures.
Definition 5.2 (TS implementation under Byzantine failures). Let A be an algorithm whose next() operation returns positive integers. We say that A implements TS in a system with Byzantine processes if every schedule S of A, with corresponding history H, satisfies the following conditions:
(BT1) Safety: H is Byzantine linearizable with respect to TS.
(BT2) Liveness: Every operation invoked by a correct process in S eventually returns.
The following analogue of Proposition 3.3 characterizes TS implementations under Byzantine failures in terms of ordering and uniqueness for operations invoked by correct processes.
Proposition 5.3 (Characterization of TS implementations under Byzantine failures). Let A be an algorithm whose next() operation returns positive integers. Then A implements TS in a system with Byzantine processes if and only if every schedule S of A, with corresponding history H, satisfies the following conditions:
(BT1a) Ordering: If a complete operation precedes a complete operation in H, , then returns a smaller value than .
(BT1b) Uniqueness: No two distinct complete operations in H invoked by correct processes in S return the same value.
(BT2) Liveness: Every operation invoked by a correct process in S eventually returns.
Proof. The liveness condition (BT2) is the same in Definition 5.2 and the proposition. It therefore suffices to show that, for every schedule S of A with corresponding history H, (BT1) (BT1a) (BT1b). Each direction reuses the corresponding claim from the proof for systems with crash failures (Proposition 3.3).
( ) Suppose that H is Byzantine linearizable with respect to TS (BT1). Then there exists a history that is crash linearizable with respect to TS (CT1) and whose projection onto the correct processes in S is the same as that of H. By Claim 3.4, satisfies (CT1a) and (CT1b). Since H and have the same projection onto the correct processes in S, complete operations invoked by correct processes have the same return values and precedence in the two histories. Hence, H satisfies (BT1a) and (BT1b).
( ) Suppose that satisfies (BT1a) and (BT1b). Let denote the projection of onto the correct processes in . Then satisfies (CT1a) and (CT1b). Moreover, because correct processes follow , every complete operation in returns a positive integer. Hence, by Claim 3.5, is crash linearizable with respect to TS (CT1), which makes Byzantine linearizable with respect to TS (BT1). Proposition 5.3
6 Results for Byzantine Failures with Digital Signatures
In this section, we consider implementations of TS in systems with Byzantine processes and digital signatures. Recall that we assume there are processes, of which at most may be Byzantine.
6.1 Maximum Resilience
Proposition 6.1. In a system with Byzantine processes and digital signatures, there exists an implementation of TS only if .
Proof. Suppose, toward a contradiction, that an implementation of TS exists in such a system. By Proposition 5.3, satisfies ordering (BT1a). Because , we can choose pairwise disjoint sets whose union is the set of processes, such that and . Fix processes and .
Consider a schedule of in which the processes in crash before taking any steps (where ), the processes in are correct, and invokes next(). By liveness, this operation eventually returns some value . Let be the schedule prefix of ending at its return; thus, contains no steps by processes in . Symmetrically, let be a schedule prefix of in which invokes next() and returns and processes in take no steps (where ). Without loss of generality, assume .
Now consider the concatenation . It extends to a schedule of in which the processes in are Byzantine (where ) and those in are correct. The processes in first reproduce their steps in , and then “roll back” to their initial states and reproduce their steps in ; digital signatures do not prevent a Byzantine process from resetting its own state. The messages sent to during and to during are delayed until after both operations return, so that the processes in follow throughout. Since are correct and ’s operation returns before ’s operation is invoked, condition (BT1a) implies , a contradiction.
Proposition 6.1
6.2 Latency Upper Bounds
When , TS can be implemented with a worst-case message delay of three. In fact, Theorem 7.2, proved in Section 7.2, gives such an implementation without digital signatures. Since it also works in systems with digital signatures, we immediately obtain the following.
Observation 6.2. In a system with Byzantine processes and digital signatures, if , then there exists an implementation of TS whose worst-case message delay is three.
For the special case , TS can be implemented with only two message delays using digital signatures.
Theorem 6.3. In a system with Byzantine processes and digital signatures, if and , then there exists an implementation of TS (Algorithm 3) whose worst-case message delay is two.
Proof. We prove the theorem in five parts. Parts 1 and 2 introduce the necessary definitions and present the algorithm. Part 3 establishes preliminary properties, which we use in Part 4 to prove that next() returns positive integers and satisfies ordering and uniqueness (Proposition 6.38). Finally, Part 5 proves liveness (Proposition 6.39) and shows that the worst-case message delay is two (Proposition 6.40).
Part 1. Definitions. We start by defining some concepts used in the algorithm. We name the processes . The notation denotes statement carrying a digital signature by process .
Definition 6.4. A label by process has the form
We write
• origin( ) i for the origin of ,
• seq( ) k for its sequence number,
• rank( ) r for its rank.
Successive invocations by a correct process are identified by labels of origin i with consecutive sequence numbers.
Definition 6.5. An acknowledgment of label by process is .
Definition 6.6. A quorum certificate for label is a set of acknowledgments
where and .
A quorum certificate for contains acknowledgments from distinct processes. Since at most one process is Byzantine, it proves that at least correct processes have handled a request carrying label .
Definition 6.7. A certified label is either or a pair
where is a label and
• if , then ;
- if , then is a quorum certificate for some label such that and .
We say that contains label .
For a non- certified label , define
Set and .
Definition 6.8 (Frontier). Let be a sequence of certified labels. We call a frontier if the following conditions hold for every :
• origin( ) = i whenever ;
• , where
The empty frontier is .
Definition 6.9 (Merge). For frontiers F and G, the merge of G into F, denoted , is the sequence of n certified labels defined by
This definition directly implies
Proposition 6.10. If F and G are frontiers, then is a frontier.
Proof. Write . For each , the certified label is either or , hence is or has origin . Furthermore,
(F, G are frontiers)
(by the definition of )
Hence, H is a frontier.
□Proposition 6.10
Definition 6.11. For frontiers F and G, we write if
Proposition 6.12. Let F and G be frontiers.
(a) The relation is a preorder on frontiers.
(b) and .
(c) If , then .
Definition 6.13 (Messages). There are two kinds of valid messages:
• A valid request from process has the form , where is a frontier with .
• A valid reply from process has the form , where is a label and is a frontier.
Part 2. Algorithm and timestamp encoding. Algorithm 3 gives the implementation. It computes base timestamps using the two functions and from lines 1 and 2; we explain the idea behind them here.
For each operation, the algorithm computes a base-timestamp triple of integers by applying (line 25). The function is defined so that the lexicographic order on triples respects the precedence of operations (proved in Part 4). Because next() must return a single positive integer, the algorithm then maps to a positive integer (line 26) using the encoding , which preserves the lexicographic order (Lemma 6.17). This integer is the operation's base timestamp; the invoker then returns (line 28), using its index to break ties between operations with the same base timestamp.
The relation is not a partial order because it is not antisymmetric. For example, two frontiers can differ in the ranks of corresponding labels while having the same sequence number at every coordinate. They are distinct, but each is the other.
Algorithm 3 A worst-case two-delay implementation of TS in a system with Byzantine processes and digital signatures where and . Each gray tag in the right margin records how the values immediately after its line correspond to the notation in Part 3.
1: where
2:
▷ See Definition 6.14.
▷ See Definition 6.15.
Code for process ():
3: frontier
4: label
▷ Label for ongoing invocation, while idle.
5: acks
▷ Acknowledgments for ongoing invocation; latest label's quorum certificate while idle.
6: upon invocation of next() do
frontier
7:
8:
9:
10: label
11: frontier
frontier
12: acks
13: send to every process
14: upon receive valid from do
15: frontier
16:
17: send to
18: upon receive valid from do
19: if and then
20: acks
21: frontier
22: if then
frontier
23:
24: the unique index in
25:
26:
▷ Base timestamp.
27: label
28: return
▷ Completes the next() invocation.
Definition 6.14 (Base-timestamp triple). For a frontier and process indices , the base-timestamp triple is the triple of integers defined by
where and , and where denotes the indicator of a condition , equal to 1 if holds and to 0 otherwise.
We compare these triples lexicographically, writing for the resulting strict total order.
Definition 6.15 (Encoding). The encoding of a base-timestamp triple is the integer
Intuitively, a triple’s first component confines its encoding to the interval . These intervals are disjoint and increasing, so the first component dominates. The remaining two components break ties within an interval.
Proposition 6.16. Every base-timestamp triple satisfies
Proof. Let and , so that with , , and . Because ranks are nonnegative and is a frontier, , and so .
If , then . If , then . Thus in both cases, and therefore
which proves the claim.
□Proposition 6.16
Lemma 6.17 (Encoding order). For any base-timestamp triples and ,
Proof. Since is a strict total order, it suffices to prove the forward implication. Suppose . If , then and Proposition 6.16 gives
Otherwise and , so (as are integers and ), and adding gives .
Part 3. Preliminary properties. The following are some simple invariants used throughout the safety proof.
Proposition 6.18. The following hold at every correct process :
(a) frontier is a frontier and is non-decreasing under .
(b) The sequence numbers and ranks of labels created by strictly increase with creation order.
(c) Messages sent by on lines 13 and 17 are valid requests and valid replies, respectively.
Proposition 6.18(b) immediately implies the following.
Corollary 6.19. Let and be labels created by the same correct process. If , then .
Next, we state some properties of a complete operation invoked by a correct process. Throughout, we denote by such an operation and its invoker, and use the following notation (which also appears as right-margin tags in Algorithm 3):
• is the label created for on line 9.
• is the invoker's frontier at the start of (line 6).
• is the frontier carried by 's request, namely the value of frontier after line 11.
• is the value of Q on line 23.
• is the value of from line 24. (So .)
- For , is the frontier in the unique reply from that receives during and that passes the check on line 19.
• is the value of frontier when the check on line 22 succeeds.
• is the base-timestamp triple computed on line 25.
• is the base timestamp computed on line 26.
Proposition 6.20. Let be a correct process such that , and let be a frontier. If holds at some point before is invoked, then .
Proof. Because is correct, is the value of frontier when replies to 's request on line 17, after is invoked; frontier monotonicity (Proposition 6.18(a)) therefore gives . Since , process receives 's reply before completes, merging into frontier on line 21, after which . Frontier monotonicity preserves this until the check on line 22 succeeds, at which point frontier, so . By the transitivity of (Proposition 6.12(a)), we have .
□Proposition 6.20
Corollary 6.21. Let be a correct process with . For any and , suppose that at some point before is invoked. Then .
Proposition 6.22. After executes line 11 in invocation , label( ) = holds until returns.
Proof. Line 11 sets frontier_i[i] to the certified label ( , acks_i), so and label( ) = immediately after. Fix a point between then and 's return, and let be the value of frontier_i at that point. Frontier monotonicity (Proposition 6.18(a)) gives , so
In particular , and origin( ) = i because is a frontier. So label( ) carries correct process 's (unforgeable) signature and was therefore created by . Since labels are created only on line 9 and has at most one outstanding invocation, creates no label after before returns. Every label that created before has a smaller sequence number by Proposition 6.18(b), so label( ) = . Proposition 6.22
Proposition 6.23. The following equalities hold:
(a)
(b)
(c)
(d)
Proof. During the invocation of , line 11 sets to a certified label containing . Hence, . Moreover, is the value of when the check on line 22 succeeds, which precedes 's return, so Proposition 6.22 gives . We have thus proved part (a).
Applying seq and rank to part (a) immediately yields parts (b) and (c).
Finally, lines 7 and 11 give
Therefore, by line 8, , proving part (d).
□Proposition 6.23
Part 4. Safety. Fix complete operations and , invoked by correct processes and , respectively, such that returns before is invoked. We first establish several relations between the two operations' frontiers and ranks, then use them to prove that Algorithm 3 satisfies ordering (BT1a) and uniqueness (BT1b).
Proposition 6.24. .
Proof. Since , we have . Since at most one process is Byzantine, contains a correct process .
Because , process merges into frontier on line 15, before returns. Thus at some point before is invoked. Since , Proposition 6.20 gives . Proposition 6.24
Proposition 6.25. and .
Proof. By Propositions 6.23 and 6.24,
which is the first inequality. It also implies that , which means they contain labels that carry correct process 's (unforgeable) signature, and so were created by . The second inequality then follows from Corollary 6.19.
□Proposition 6.25
Proposition 6.26. If , then .
Proof. When the check on line 22 succeeds during , ; this point precedes 's invocation. Since is correct and , Proposition 6.20 gives . Proposition 6.26
Lemma 6.27. For any , if , then process is Byzantine and .
Proof. Fix and suppose
This implies ; in particular, . We proceed by proving four claims.
Claim 6.28. .
Proof. By (6), . The contrapositive of Proposition 6.26 therefore gives . By line 24, omits exactly , so and . Claim 6.28
Claim 6.29. .
Proof. If , then Proposition 6.25 gives , contradicting (6). Hence , and Claim 6.28 gives .
Claim 6.30. Process is Byzantine.
Proof. Suppose for contradiction that is correct. Let . Since , the label carries correct process 's (unforgeable) signature; hence created on line 9. Line 11 then assigns to a certified label containing . Because appears in , this assignment precedes 's return, and so it precedes 's invocation.
Immediately after the assignment,
Since by Claim 6.29, Corollary 6.21 gives
contradicting (6). Hence is Byzantine.
Claim 6.30
Claim 6.31.
Proof. The claim is immediate if . Assume henceforth that . The certified label carries a quorum certificate for a label satisfying
The certificate contains acknowledgments of (of the form ) from processes, at least of which are correct. Since omits only one process, at least of these correct processes belong to . Fix one such process .
The quorum certificate in contains an acknowledgment carrying correct process 's (unforgeable) signature, so sent that acknowledgment on line 17 before returns. Before sending the acknowledgment, on line 15 merges into frontier a frontier with label . Immediately after,
This holds at some point before is invoked.
Since , Corollary 6.21 now gives
Claim 6.31
Claims 6.30 and 6.31 establish the two conclusions.
Lemma 6.27
Proposition 6.32. and .
Proof. If , the claim is immediate. Otherwise, label carries correct process 's (unforgeable) signature, so created it before returned, whereas it created after was invoked. Thus, comes after label in 's label-creation order and therefore has a larger sequence number and rank by Proposition 6.18(b).
Proposition 6.32
Proposition 6.33. If , then .
Proof. By Proposition 6.23, . Because , process merges into frontier on line 15 upon receiving a request for —so before returns. Since returns before is invoked, frontier monotonicity (Proposition 6.18(a)) gives . Thus, by line 8 during and Proposition 6.12(c),
Proposition 6.33
Proposition 6.34 (Ordering for base timestamps). In Algorithm 3, if and are complete operations invoked by correct processes and returns before is invoked, then their base timestamps satisfy .
Proof. Write
so that
Since respects the lexicographic order of these triples (Lemma 6.17), it suffices to prove that . We prove this via three claims, each comparing one component of and under the assumption that the preceding components are equal.
Claim 6.35.
Proof. First, by Propositions 6.23 and 6.32,
Next, since at most one process is Byzantine and is correct, Lemma 6.27 ensures that there exists at most one index such that , and that if such exists, then . Summing over therefore gives
Putting together (7) and (8), we get
as claimed.
Claim 6.35
Claim 6.36. If , then
Consequently,
Proof. Assume that . We first show that . Suppose instead that . Then Proposition 6.26 gives , so for every . But by (7). Summing over all then yields , contradicting our assumption.
Since omits only one index, we conclude that , so . Proposition 6.25 immediately gives , proving (9).
For (10), if , then Proposition 6.33 gives ; otherwise, , so and Proposition 6.32 gives . So in both cases, .
Inequalities (9) and (10) together imply that .
Claim 6.36
Claim 6.37. If and , then
Proof. Suppose and . By Claim 6.36, inequalities (9) and (10) hold. By (10), , so . Combined with (9), this gives . Therefore,
This proves .
Claim 6.37
Claims 6.35 to 6.37 together show that . Therefore, . Proposition 6.34
Proposition 6.38 (Return values). Algorithm 3 returns positive integers from next() and satisfies ordering (BT1a) and uniqueness (BT1b).
Proof. Consider a complete operation at a correct process . By Proposition 6.23(b), . Thus, Proposition 6.16 gives , so both and are positive integers.
For (BT1a), suppose a complete operation at a correct process precedes a complete operation at a correct process . By Proposition 6.34, , so .
For (BT1b), timestamps returned by different correct processes differ modulo n, and those returned by the same correct process are distinct by (BT1a) since its operations are sequential. Proposition 6.38
Part 5. Liveness and latency
Proposition 6.39 (Liveness). In Algorithm 3, every invocation of next() by a correct process eventually returns.
Proof. On line 13, a correct invoker sends every process a request that is valid by Proposition 6.18(c); hence every correct process eventually receives it. By line 11, the request frontier contains the invoker's current label at the invoker's coordinate, so each correct recipient sends a valid reply acknowledging that label on line 17. These replies have distinct signers and therefore pass the check on line 19. At least n - 1 processes, including the invoker itself, are correct, so eventually the invoker accepts n - 1 replies, the check on line 22 succeeds, and the invoker returns on line 28.
Proposition 6.39
Proposition 6.40 (Latency). The worst-case message delay of Algorithm 3 is two.
Proof sketch. An invocation follows one REQ delay and one REPLY delay, as illustrated below:

Proposition 6.40
By Propositions 6.38 and 6.39, Algorithm 3 satisfies the conditions of Proposition 5.3 and hence implements TS. By Proposition 6.40, its worst-case message delay is two. Theorem 6.3
6.3 Latency Lower Bounds
The latency lower bounds for systems with crash failures (Section 4.3) also apply to systems with Byzantine processes and digital signatures. Thus, Proposition 4.22 immediately implies the following.
Observation 6.41. In a system with Byzantine processes and digital signatures, any implementation of TS has worst-case message delay at least two.
And Theorem 4.23 similarly implies the following.
Observation 6.42. In a system with Byzantine processes and digital signatures, if , then any implementation of TS has worst-case message delay at least three.
6.4 Summary
Proposition 6.1 and Observation 6.2 together give the following necessary and sufficient condition for implementing TS under Byzantine failures with digital signatures.
Corollary 6.43. In a system with Byzantine processes and digital signatures, there exists an implementation of TS if and only if .
We next state the optimal latency for implementations of TS in systems with Byzantine processes and digital signatures. When and , the latency upper bound in Observation 6.2 matches the latency lower bound in Observation 6.42, yielding the following.
Corollary 6.44. In a system with Byzantine processes and digital signatures, if and , then the optimal latency of implementing TS is three message delays.
When and , the latency upper bound in Theorem 6.3 matches the latency lower bound in Observation 6.41, yielding the following.
Corollary 6.45. In a system with Byzantine processes and digital signatures, if and , then the optimal latency of implementing TS is two message delays.
Thus, the optimal latency of implementing TS under Byzantine failures with digital signatures is settled in all cases where an implementation exists.
7 Results for Byzantine Failures without Digital Signatures
In this section, we consider implementations of TS in systems with Byzantine processes, but without digital signatures. Again, we assume there are processes, of which at most may be Byzantine.
7.1 Maximum Resilience
The resilience lower bound for systems with Byzantine processes and digital signatures, given by Proposition 6.1, holds also for systems without digital signatures:
Observation 7.1. In a system with Byzantine processes, there exists an implementation of TS only if .
7.2 Latency Upper Bound
Theorem 7.2. In a system with Byzantine processes, if , then there exists an implementation of TS (Algorithm 4) whose worst-case message delay is three.
Proof. The algorithm uses three types of messages. We call a message valid if it has one of the following forms:
• a request , where is an integer;
• a proposal , where and and are integers;
• an echo , where and and are integers.
We first establish some supporting properties of the algorithm. We then show that the algorithm implements TS by proving that it returns positive integers and satisfies ordering (BT1a), uniqueness (BT1b), and liveness (BT2). Finally, we show that its worst-case message delay is three.
Claim 7.3. For every correct process , its local clock is non-decreasing.
Proof. After initialization, the only assignments to are on lines 14 and 19, neither of which decreases .
Claim 7.3
Claim 7.4. If the set certified computed by a correct process on line 25 contains , then at that time, at least correct processes satisfy .
Proof. Let when executes line 25. Then , so at least indices in belong to correct processes. For each such correct index , process sent its ECHO message only after line 19 made . By Claim 7.3, still holds when executes line 25. Claim 7.4
Claim 7.5. If an invocation of next() by a correct process computes base timestamp t on line 29, then at the time of return, at least correct processes satisfy .
Proof. By line 29, for some . By Claim 7.4, for at least correct processes when certified is computed, and Claim 7.3 implies that these inequalities still hold when the invocation returns.
Claim 7.6. If the set certified computed by a correct process on line 25 contains both and , then .
Proof. Let when executes line 25. Suppose . Since both pairs belong to certified, we have . Since each entry records at most one non- value, . But , a contradiction. Claim 7.6
Claim 7.7 (Ordering for base timestamps). Suppose two next() operations invoked by correct processes compute base timestamps t and on line 29, respectively. If the first returns before the second is invoked, then .
Proof. By Claim 7.5, when the first operation returns, there is a set of process indices such that and for every , is correct and . By Claim 7.3, these inequalities still hold when the second operation is invoked and thereafter.
Let be the process performing the second operation, let be the value of when it is invoked, let be 's certified set when it returns on line 30, and let . The check on line 26 ensures that . By Claim 7.6, distinct pairs in have distinct first components, so . Hence,
so we may fix some ; process is correct.
Since , there is a value such that . By line 25, process received an message from at least distinct processes; at least of them are correct, so fix one such correct process . By line 20, sent that ECHO only after receiving from the message
Algorithm 4 A worst-case three-delay implementation of TS in a system with Byzantine processes where .
Code for process (): 1: 2: 3: for each 4: for each 5: 6: for each 7: upon invocation of next() do 8: 9: for each 10: to every process
11: upon receive valid from do 12: if then 13: 14: 15: to every process
16: upon receive valid from do 17: if then 18: 19: 20: to 21: says to : “ proposed for your invocation .”
22: upon receive valid from do 23: if and then 24: if then 25: 26: certified 27: The proposal by of value is certified once it is echoed by distinct processes . 28: if then 29: 30: 31: 32: 33: Base timestamp. 34: Completes the next() invocation.
. As is correct, it sent that PROP to every process on line 15 immediately after executing on line 14, upon receiving the REQ message that sent at the start of the second operation.
Because , immediately before this assignment, so . Since line 29 computes the base timestamp as the maximum value in certified', we have . Claim 7.7
Claim 7.8 (Return values). Algorithm 4 returns positive integers from next() and satisfies ordering (BT1a) and uniqueness (BT1b).
Proof. Consider a complete operation at a correct process with base timestamp , and let certified be the set from which is computed. By the check on line 26, this set contains at least pairs, whose first components are distinct by Claim 7.6. Since , certified contains a pair such that is correct. Some correct process echoed after receiving it in a PROP message from , which sent that message right after incrementing on line 14; hence . Moreover, every value in certified is an integer, since it comes from a valid ECHO message. Thus, , the maximum of these values, is a positive integer, and so is .
For (BT1a), suppose a complete operation at a correct process with base timestamp precedes one at a correct process with base timestamp . By Claim 7.7, , so .
For (BT1b), timestamps returned by different correct processes differ modulo n, and those returned by the same correct process are distinct by (BT1a) since its operations are sequential. Claim 7.8
Claim 7.9 (Liveness). In Algorithm 4, every invocation of next() by a correct process eventually returns.
Proof. Every message sent by a correct process is valid, since and always hold integers and every other field is either a process index or copied from a valid message. Let be a correct process that invokes , and let be the value of at that invocation. By initialization (lines 2 and 3) and the increment of after each return (line 28), the REQ message for is fresh at every correct process. Hence every correct process eventually receives it, passes the check on line 12, and sends a corresponding PROP message to every process.
Until the invocation returns, remains in phase ongoing with and sends no request with a higher sequence number. Likewise, by initialization (lines 2 and 4) and the increment of after each return (line 28), every PROP message for from a correct proposer is fresh at every correct process, which eventually passes the check on line 17 and sends the corresponding ECHO to . Thus, for each of at least correct proposers, eventually receives matching ECHO messages.
Since the corresponding echoVal entries were reset to when the invocation began, records all echoes on line 24; together, the resulting entries certify the proposal. Consequently, the condition eventually holds, and returns on line 30. Claim 7.9
Claim 7.10 (Latency). The worst-case message delay of Algorithm 4 is three.
Proof sketch. An invocation follows one REQ delay, one PROP delay, and one ECHO delay, as illustrated below (where a thin arrow denotes a single message and a thick arrow denotes multiple messages):

Claim 7.10
By Claims 7.8 and 7.9, Algorithm 4 satisfies the conditions of Proposition 5.3 and hence implements TS. By Claim 7.10, its worst-case message delay is three. Theorem 7.2
7.3 Latency Lower Bounds
7.3.1 Auxiliary Lemmas
We begin with two lemmas used in the proofs below.
First, the notion of a loquacious algorithm (Definition 4.19) carries over unchanged. A Byzantine process that deviates from A need not behave loquaciously. The loquacious-transformation lemma has the following Byzantine analogue.
Lemma 7.11 (Byzantine version of Lemma 4.20). In a system with Byzantine processes, let A be an implementation of TS. Then there exists a loquacious implementation of TS such that .
We defer its proof to Appendix C.1.2.
Our second auxiliary lemma adapts the completion lemma (Lemma 4.21) to the Byzantine setting by adding one hypothesis: Every process in must follow throughout the prefix. Without this requirement, may deviate from the algorithm and fail to return; alternatively, another process may send a reply that recognizes as invalid, in which case may, without violating the two-delay bound, disregard it and wait for a reply from a process outside before returning. We state the resulting Byzantine variant below, with the differences from Lemma 4.21 underlined. (We index sequences from 0. For a sequence , we write for the contiguous subsequence )
Lemma 7.12 (Byzantine version of Lemma 4.21). In a system with Byzantine processes, let A be a loquacious algorithm with . Let p be a process, and let Q be a set of processes such that and . Suppose that is a schedule prefix of A in which the following hold:
-
Process p invokes an operation and broadcasts a message m in step .
-
For each , process receives and broadcasts a message in step .
-
Process p receives the set of messages in step .
-
Between steps and , inclusive, the only steps are those specified above.
-
Processes in Q follow the algorithm A throughout .
Then the operation invoked by p in step returns no later than step .
Its proof is very close to that of Lemma 4.21; we defer it to Appendix C.3.2.
7.3.2 The Bounds
The latency lower bounds for systems with crash failures (Section 4.3) also apply to systems with Byzantine processes, since any implementation that tolerates Byzantine processes also tolerates crashes. Thus, Proposition 4.22 immediately implies the following.
Observation 7.13. In a system with Byzantine processes, any implementation of TS has worst-case message delay at least two.
Similarly, Theorem 4.23 immediately implies the following.
Observation 7.14. In a system with Byzantine processes, if , then any implementation of TS has worst-case message delay at least three.
When , the best lower bound we obtain for is two delays (from Observation 7.13). However, in the boundary case , we prove a stronger lower bound of three delays.
Theorem 7.15. In a system with Byzantine processes, if and , then any implementation of TS has worst-case message delay at least three.

Auxiliary prefix

Auxiliary prefix
(a) Auxiliary schedule prefixes, in which all processes follow algorithm A.

Principal prefix :

Principal prefix :
(b) Principal schedule prefixes, in which the process marked Byz deviates from algorithm A.
Figure 2: Proof of Theorem 7.15. In a system with processes, at most of which may be Byzantine, suppose toward a contradiction that some loquacious implementation of TS has . Each dot marks a step and is colored by the invocation it serves, while each arrow shows a message received within the prefix. A horizontal segment tracks a next() operation: marks its invocation step, and labeled indicates that it has returned by that step; without a return marker, the figure makes no claim about whether the operation returns within the prefix. A solid arrow shows a message sent according to ; a wavy arrow in a principal prefix shows a Byzantine message with the same content as the corresponding message in an auxiliary prefix. By Lemma 7.12, the operations of in and in return by the final depicted steps; let and denote their respective return values. Process cannot distinguish either principal prefix from , and cannot distinguish either from . Thus, in both principal prefixes, returns and returns . Condition (BT1a) then gives in and in , a contradiction.
Proof. Consider a system with processes named , at most of which may be Byzantine. Suppose, toward a contradiction, that in this system there exists an implementation of TS with worst-case message delay less than three. By Lemma 7.11, there is a loquacious implementation of TS with . Since finite worst-case message delays are integers (Proposition 2.8), . By Proposition 5.3, satisfies ordering (BT1a).
We construct four schedule prefixes of : two auxiliary prefixes and as shown in Figure 2a, and two principal prefixes and as shown in Figure 2b.
First consider the auxiliary prefixes and , shown in Figure 2a. Schedule prefix begins with process invoking an operation and receiving its broadcast. Next, invokes an operation and broadcasts a message. Processes , , each receive this message and broadcast a reply, in three separate steps, after which receives all three replies in a single step. All processes follow , so by Lemma 7.12 (with and ), 's operation has returned by the final step; let be the value returned. Similarly, in , process invokes an operation and receives its broadcast before invokes an operation and completes an analogous round trip with , , . Again, by Lemma 7.12 (with and ), 's operation has returned by the final step; let be the value returned.
Next, construct as shown in Figure 2b: Process completes a round trip with , followed by with . Processes follow , whereas deviates from by sending its reply from to and its reply from to . Process receives 's invocation message and then 's, so its state at each reply is the one it has in and in ; it therefore sends those replies to and , respectively. All remaining messages are delayed until after . These steps form a schedule prefix of , which extends to a schedule in which is the only Byzantine process. Prefix is indistinguishable from to and from to , so their operations return and , respectively. The former returns before the latter is invoked, so applying condition (BT1a) to the extended schedule yields .
Symmetrically, construct as shown in Figure 2b, with 's operation first and 's second. Here, processes follow , whereas deviates from by sending its reply from to and its reply from to . As above, extends to a schedule of in which is the only Byzantine process. It is indistinguishable from to and from to , so the operations return and , respectively. Applying condition (BT1a) to the extended schedule yields , contradicting .
7.4 Summary and Open Question
Observation 7.1 and Theorem 7.2 together give the following necessary and sufficient condition for implementing TS in a system with Byzantine processes.
Corollary 7.16. In a system with Byzantine processes, there exists an implementation of TS if and only if .
We now turn to the optimal latency. When and , the latency upper bound in Theorem 7.2 matches the latency lower bound in Observation 7.14, yielding the following.
Corollary 7.17. In a system with Byzantine processes, if and , then the optimal latency of implementing TS is three message delays.
When n = 4 and f = 1, the latency upper bound in Theorem 7.2 matches the latency lower bound in Theorem 7.15, yielding the following.
Corollary 7.18. In a system with Byzantine processes, if n = 4 and f = 1, then the optimal latency of implementing TS is three message delays.
One case remains open: and . Here the upper bound is three delays (Theorem 7.2), whereas the lower bound is two delays (Observation 7.13).
Note that may not be able to do this if A used digital signatures. In that case, 's reply to in may include data signed by , received in 's invocation broadcast. Process could not reproduce that reply in : When must send it, has not yet invoked, so the signature does not exist and cannot forge it. The same applies to in .
Question 7.19. In a system with Byzantine processes, if n > 4 and f = 1, what is the optimal latency of implementing TS?
8 Related Work
Applications of timestamps. Timestamps have long been used in concurrent and distributed algorithms to order requests and distinguish versions of shared data. For example, in Lamport's mutual-exclusion algorithm [Lam78, p. 561], processes order requests for a shared resource by their timestamps; once a request is granted, any subsequently issued request receives a larger timestamp. In optimistic concurrency control for databases, Kung and Robinson [KR81, Section 3.2] assign transaction numbers from a global counter so that a transaction that completes before another starts receives a smaller number. In an early shared-memory construction of MWMR atomic registers, Vitányi and Awerbuch [VA86, Section 3] attach ordered tags to written values to determine which values reads return. Motivated by such uses, we study the resilience and latency of TS implementations in the presence of crash and Byzantine failures.
Message-passing register algorithms. Many register implementations in message-passing systems generate timestamps internally, and we can extract this logic to obtain an implementation of TS. For example, in the MWMR atomic register of Lynch and Shvartsman [LS97, Section 4.1], a writer queries a read quorum for tags and forms a new tag by incrementing the largest sequence number received and pairing it with its own identifier; the writer then propagates the tagged value to a write quorum and waits for acknowledgments. If we instantiate this algorithm with majority quorums, omit register values, and have each writer return its new tag as a positive integer preserving tag order, we can obtain an implementation of TS in systems with crash failures when . However, the resulting implementation takes two round trips per operation, for a worst-case message delay of four. In contrast, our algorithms achieve the optimal latency: two message delays when (Algorithm 1) and three when (Algorithm 2).
As mentioned in Section 4.2.2, Algorithm 2 adopts the max-min technique [DGLC04, Section 1.1], previously used to obtain three-delay reads for MWMR atomic registers [HNS17, Section 4].
Some storage protocols that tolerate Byzantine servers [MR98, Section 3.2; MAD02, Section 3, Figure 1] use the same general write pattern as Lynch and Shvartsman's register algorithm. A writer queries a quorum for timestamps, chooses a fresh timestamp larger than those received, and propagates the timestamped value, waiting for acknowledgments from a quorum. To extract their timestamping logic, we can omit the stored data, wait for responses in each phase, and have each write return its new timestamp. This yields an implementation of TS that does not rely on digital signatures in systems with Byzantine processes when . However, its worst-case message delay is four, whereas Algorithm 4 achieves three.
Timestamp services in distributed databases. Some distributed databases use a dedicated timestamp service for transaction processing. Percolator's timestamp oracle [PD10, Section 2.3] runs on a single server with stable storage and supplies strictly increasing timestamps. It can serve requests from memory in one round trip (two message delays). To preserve timestamp monotonicity across restarts, the oracle periodically records an upper bound on its allocated timestamps in stable storage and resumes above that bound after a restart. The oracle cannot serve requests while it is down, whereas our model requires operations invoked by correct processes to complete despite up to f (permanent) crashes.
Timestamp abstractions in shared memory. Aspnes et al. [AACE15, Algorithm 4] give a limited-use, wait-free implementation of TS from a max register. Other work implements slightly weaker objects from read/write registers: the weak counter of Guerraoui and Ruppert [GR05, Section 4], designed for anonymous systems, and fetch-and-increment with multiplicity of Castañeda, Rajsbaum, and Raynal [CRR23, Section 4.2]. For both objects, an operation returns an integer larger than those returned by preceding operations, but concurrent operations may return the same integer. Breaking such ties by process identifiers yields wait-free implementations of TS, although for the weak counter this sacrifices anonymity. All of these shared-memory constructions can be run in message-passing systems via register emulation [ABD95; LS97], but the resulting implementations do not achieve the optimal latency of implementing TS. Ellen, Fatourou, and Ruppert [EFR07] and Helmi et al. [HHPW11] study how many read/write registers are needed to implement variants of TS, whereas we study latency in message-passing systems.
9 Conclusion
We have determined the maximum resilience of TS implementations in asynchronous message-passing systems with crash or Byzantine failures, as well as the optimal latency of implementing TS in all but one case. The open case concerns systems with Byzantine processes and no digital signatures when n > 4 and f = 1: Do two message delays suffice, or are three necessary? When n = 4 and f = 1, we have shown that digital signatures reduce the optimal latency from three message delays to two, so resolving this question would show whether digital signatures offer the same advantage for n > 4.
10 AI Methodology
The ideas behind Algorithm 3 emerged from a multi-agent search using GPT-5.6 Sol in Codex. We then put considerable effort into simplifying the construction (with help from GPT and Claude), developing our own notation, and writing our own presentation of the algorithm and its proof to make them easier to follow.
The ideas behind Algorithm 4 emerged from a conversation with GPT-5.5 Pro that began with two of our own three-delay TS implementations in systems with Byzantine processes: one with signatures for , and one without signatures for . GPT proposed an implementation without signatures for and , and then generalized it to all . We simplified the algorithm in discussion with GPT, then wrote our own presentation of the algorithm and its proof to make them easier to follow.
GPT also contributed to proving two auxiliary results. GPT-5.4 Pro proposed a retiming argument for Lemma B.1 after we found an error in its first attempt, and GPT-5.5 developed the proof of Proposition 2.7 under our guidance. We simplified the time mapping in the former and wrote the exposition of both proofs.
We also used GPT, Claude, and Gemini for literature search, writing code to generate figures, and copy-editing. We checked all technical content, including every algorithm and proof, and take full responsibility for this paper.
References
[AACE15] James Aspnes, Hagit Attiya, Keren Censor-Hillel, and Faith Ellen. "Limited-Use Atomic Snapshots with Polylogarithmic Step Complexity". In: J. ACM 62.1 (2015), 3:1–3:22. DOI: 10.1145/2732263. URL: https://doi.org/10.1145/2732263.
[ABD95] Hagit Attiya, Amotz Bar-Noy, and Danny Dolev. "Sharing Memory Robustly in Message-Passing Systems". In: J. ACM 42.1 (1995), pp. 124–142. DOI: 10.1145/200836.200869. URL: https://doi.org/10.1145/200836.200869.
[AW04] Hagit Attiya and Jennifer Welch. Distributed Computing: Fundamentals, Simulations, and Advanced Topics. 2nd ed. Wiley series on parallel and distributed computing. Wiley, 2004. ISBN: 978-0-471-45324-6. DOI: 10.1002/0471478210. URL: https://doi.org/10.1002/0471478210.
[Awe85] Baruch Awerbuch. "Complexity of Network Synchronization". In: J. ACM 32.4 (1985), pp. 804–823. DOI: 10.1145/4221.4227. URL: https://doi.org/10.1145/4221.4227.
[BFKR25] João Paulo Bezerra, Luciano Freitas, Petr Kuznetsov, and Matthieu Rambaud. "Asynchronous Latency and Fast Atomic Snapshot". In: 39th International Symposium on Distributed Computing, DISC 2025, Berlin, Germany, October 27–31, 2025. Ed. by Dariusz R. Kowalski. Vol. 356. LIPIcs. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025, 15:1–15:22. DOI: 10.4230/LIPIcs.DISC.2025.15. URL: https://doi.org/10.4230/LIPIcs.DISC.2025.15.
[CK21] Shir Cohen and Idit Keidar. “Tame the Wild with Byzantine Linearizability: Reliable Broadcast, Snapshots, and Asset Transfer”. In: 35th International Symposium on Distributed Computing, DISC 2021, Freiburg, Germany (Virtual Conference), October 4–8, 2021. Ed. by Seth Gilbert. Vol. 209. LIPIcs. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021, 18:1–18:18. DOI: 10.4230/LIPIcs.DISC.2021.18. URL: https://doi.org/10.4230/LIPIcs.DISC.2021.18.
[CRR23] Armando Castañeda, Sergio Rajsbaum, and Michel Raynal. “Set-Linearizable Implementations from Read/Write Operations: Sets, Fetch&Increment, Stacks and Queues with Multiplicity”. In: Distributed Comput. 36.2 (2023), pp. 89–106. DOI: 10.1007/s00446-022-00440-y. URL: https://doi.org/10.1007/s00446-022-00440-y.
[DGLC04] Partha Dutta, Rachid Guerraoui, Ron R. Levy, and Arindam Chakraborty. "How fast can a distributed atomic read be?" In: Proceedings of the Twenty-Third Annual ACM Symposium on Principles of Distributed Computing, PODC 2004, St. John's, Newfoundland, Canada, July 25–28, 2004. ACM, 2004, pp. 236–245. DOI: 10.1145/1011767.1011802. URL: https://doi.org/10.1145/1011767.1011802.
[EFR07] Faith Ellen, Panagiota Fatourou, and Eric Ruppert. “The Space Complexity of Unbounded Timestamps”. In: Distributed Computing, 21st International Symposium, DISC 2007, Lemesos, Cyprus, September 24–26, 2007, Proceedings. Ed. by Andrzej Pelc. Vol. 4731. Lecture Notes in Computer Science. Springer, 2007, pp. 223–237. DOI: 10.1007/978-3-540-75142-7_19. URL: https://doi.org/10.1007/978-3-540-75142-7_19.
[GR05] Rachid Guerraoui and Eric Ruppert. “What Can Be Implemented Anonymously?” In: Distributed Computing, 19th International Conference, DISC 2005, Cracow, Poland, September 26–29, 2005, Proceedings. Ed. by Pierre Fraigniaud. Vol. 3724. Lecture Notes in Computer Science. Springer, 2005, pp. 244–259. DOI: 10.1007/11561927_19. URL: https://doi.org/10.1007/11561927_19.
[HHPW11] Maryam Helmi, Lisa Higham, Eduardo Pacheco, and Philipp Woelfel. “The space complexity of long-lived and one-shot timestamp implementations”. In: Proceedings of the 30th Annual ACM Symposium on Principles of Distributed Computing, PODC 2011, San Jose, CA, USA, June 6–8, 2011. Ed. by Cyril Gavoille and Pierre Fraigniaud. ACM, 2011, pp. 139–148. DOI: 10.1145/1993806.1993826. URL: https://doi.org/10.1145/1993806.1993826.
[HNS17] Theophanis Hadjistasi, Nicolas Nicolaou, and Alexander A. Schwarzmann. "Oh-RAM! One and a Half Round Atomic Memory". In: Networked Systems - 5th International Conference, NETYS 2017, Marrakech, Morocco, May 17–19, 2017, Proceedings. Ed. by Amr El Abbadi and Benoît Garbinato. Vol. 10299. Lecture Notes in Computer Science. Springer, 2017, pp. 117–132. DOI: 10.1007/978-3-319-59647-1_10. URL: https://doi.org/10.1007/978-3-319-59647-1_10.
[HW90] Maurice P. Herlihy and Jeannette M. Wing. "Linearizability: A Correctness Condition for Concurrent Objects". In: ACM Trans. Program. Lang. Syst. 12.3 (1990), pp. 463–492. DOI: 10.1145/78969.78972. URL: https://doi.org/10.1145/78969.78972.
[KR81] H. T. Kung and John T. Robinson. "On Optimistic Methods for Concurrency Control". In: ACM Trans. Database Syst. 6.2 (1981), pp. 213–226. DOI: 10.1145/319566.319567. URL: https://doi.org/10.1145/319566.319567.
[Lam78] Leslie Lamport. “Time, Clocks, and the Ordering of Events in a Distributed System”. In: Commun. ACM 21.7 (1978), pp. 558–565. DOI: 10.1145/359545.359563. URL: https://doi.org/10.1145/359545.359563.
[LS97] N. A. Lynch and A. A. Shvartsman. “Robust Emulation of Shared Memory Using Dynamic Quorum-Acknowledged Broadcasts”. In: Digest of Papers: FTCS-27, The Twenty-Seventh Annual International Symposium on Fault-Tolerant Computing, Seattle, Washington, USA, June 24–27, 1997. IEEE Computer Society, 1997, pp. 272–281. DOI: 10.1109/FTCS.1997.614100. URL: https://doi.org/10.1109/FTCS.1997.614100.
[MAD02] Jean-Philippe Martin, Lorenzo Alvisi, and Michael Dahlin. "Minimal Byzantine Storage". In: Distributed Computing, 16th International Conference, DISC 2002, Toulouse, France, October 28–30, 2002 Proceedings. Ed. by Dahlia Malkhi. Vol. 2508. Lecture Notes in Computer Science. Springer, 2002, pp. 311–325. DOI: 10.1007/3-540-36108-1_21. URL: https://doi.org/10.1007/3-540-36108-1_21.
[MR98] Dahlia Malkhi and Michael K. Reiter. "Byzantine Quorum Systems". In: Distributed Comput. 11.4 (1998), pp. 203–213. DOI: 10.1007/s004460050050. URL: https://doi.org/10.1007/s004460050050.
[PD10] Daniel Peng and Frank Dabek. "Large-scale Incremental Processing Using Distributed Transactions and Notifications". In: 9th USENIX Symposium on Operating Systems Design and Implementation, OSDI 2010, October 4–6, 2010, Vancouver, BC, Canada, Proceedings. Ed. by Remzi H. Arpaci-Dusseau and Brad Chen. USENIX Association, 2010, pp. 251–264. URL: http://www.usenix.org/events/osdi10/tech/full_papers/Peng.pdf.
[VA86] Paul M.B. Vitányi and Baruch Awerbuch. "Atomic Shared Register Access by Asynchronous Hardware (Detailed Abstract)". In: 27th Annual Symposium on Foundations of Computer Science, Toronto, Canada, 27–29 October 1986. IEEE Computer Society, 1986, pp. 233–243. DOI: 10.1109/SFCS.1986.11. URL: https://doi.org/10.1109/SFCS.1986.11.
A Auxiliary Notations
We use the following notation for finite sequences of steps:
• is the number of steps in a schedule prefix ; and
• is the finite sequence consisting of the steps , in that order.
We also introduce notation for the affine maps used below to retime runs. In interval notation, an overstruck bracket denotes an endpoint that may be open or closed.
Definition A.1 (Affine map). Let and be bounded real intervals with the same endpoint types, where and . We write
for the map defined by
We use the same notation for half-infinite intervals bounded on the same side and having the same finite-endpoint type:
Proposition A.2. Affine is a strictly increasing bijection from I to J.
B Properties of Finite Worst-Case Message Delay
In this section, we prove the two consequences of finite worst-case message delay stated in Section 2.2. Although originally stated for crash failures, these results—along with their proofs—hold under Byzantine failures as well, with “correct” interpreted in the respective sense.

Figure 3: Proof of Lemma B.1: retiming the run (top) into the run (bottom) when . For each integer , the unit interval in is compressed into in , where . In , “o” marks open interval endpoints, “•” marks closed interval endpoints, and dashed segments mark times at which no step is taken. Every message sent during in with still satisfies (as illustrated by cases ①, ②, and ③). The operation satisfies , but this choice of ensures that .
B.1 Finite Worst-Case Message Delay Implies Liveness
We first prove Proposition 2.7, restated below.
Proposition 2.7. If , then satisfies liveness: In every schedule of , every operation invoked by a correct process eventually returns.
Proof. Let A be an algorithm with finite worst-case message delay . Let S be an (infinite) schedule of A, and let O be an operation in S invoked by a correct process in step . We show that O returns in S.
We assign times to the steps of , obtaining a run in which every received message has latency at most one. For each , let be the largest index such that step receives a message sent in step ; if no such message is received, set .
Partition the step indices into consecutive finite blocks , for , as follows. Set , and choose each large enough that for every . By construction, if a message sent in block is later received, then its receive step lies in either block or .
Assign times T to the steps in S so that the steps in each block get strictly increasing times in the interval . These intervals are disjoint, ordered by k, and unbounded, so T is strictly increasing and unbounded, and therefore is a run of A.
Now consider any message sent in block and later received. By the preceding paragraph, its receive step lies in or . Its send time is at least , and its receive time is less than , so its latency is less than 1. Hence every message that is received has latency at most one in .
Every message sent to a process that takes infinitely many steps is received, and so messages are timely during O in R. Since A has worst-case message delay , we have . Hence O is complete in R, and thus returns in schedule S.
B.2 A Finite Worst-Case Message Delay Is an Integer
Next, we prove Proposition 2.8: that a finite worst-case message delay is always a nonnegative integer. The key step is the following rounding lemma.
Lemma B.1. Let A be an algorithm. If for some nonnegative real number , then .
Proof. Let . If , the claim is immediate, so assume .
Suppose, for the sake of contradiction, that . Then there exist a run of , and an operation invoked by a correct process, such that messages are timely during in and . By the definition of worst-case message delay, ; hence is complete. Let be invoked in step and return in step , so . Putting the inequalities together, we have
By subtracting from every entry of , we may assume without loss of generality that . Then .
We will now retime R to obtain another run with schedule S such that ; see Figure 3. Set
Since , we have . We construct a time mapping that leaves times at or before 0 unchanged and, for each integer , compresses the unit interval affinely onto the shorter interval :
Then is strictly increasing and unbounded.
Define the infinite sequence by , and let . Since is strictly increasing and unbounded, is a run of ; moreover, it has the same correct processes as . By construction,
Claim B.2. Messages are timely during O in .
Proof. Fix an arbitrary message sent during in to a process that takes infinitely many steps. Let denote, respectively, the send and receive times of in . Since , its send and receive times in are and , respectively.
Thus, . Because is strictly increasing, this implies , so is sent during in . Since messages are timely during in , .
It remains to show that . Given that , there are three cases for the positions of and , exemplified by messages labeled ①, ②, and ③ in Figure 3:
-
If , then , and we get .
-
If for some , then since is affine on with slope ,
- Otherwise, and for some . Then
Thus, in every case. Since was arbitrary, messages are timely during in . Claim B.2
Claim B.3. .
Proof. By (11), . Since maps onto , it follows that
Therefore,
Claim B.3
By the first claim and the definition of worst-case message delay, , contradicting the second claim. Hence, .
Proposition 2.8, which we restate below, immediately follows from this lemma.
Proposition 2.8. If , then for some nonnegative integer .
Proof. Let the algorithm’s worst-case message delay be . Since operation latencies are nonnegative, we have . By Lemma B.1, the algorithm’s worst-case message delay is at most , so . Since always , it follows that . Thus is a nonnegative integer. Proposition 2.8
C Auxiliary Results for Latency Lower Bounds
C.1 Proofs of the Loquacious-Transformation Lemmas
We prove the two loquacious-transformation lemmas in turn, beginning with crash failures and then adapting the argument to Byzantine failures.
C.1.1 Crash Failures
We first prove Lemma 4.20 from Section 4, restated below for convenience.
Lemma 4.20. In a system with crash failures, let A be an implementation of TS. Then there exists a loquacious implementation of TS such that .
Proof. We construct an algorithm in which each process simulates its counterpart in A but broadcasts one packed message in every step. A packed message encodes a finite, possibly empty set of pairs , where m is an original message of A and q is its destination.
For each process , we define the automaton that assigns to in terms of the automaton that assigns to . The local states and initial state of are those of . From every state , set of received messages, and operation invocation (if any), has a unique transition, which:
• extracts from the packed messages in the set M of original messages paired with destination p;
• follows the unique transition t of from state s on M and the same operation invocation, if any, moving to the state that t moves to;
• broadcasts the packed message containing the pair for every original message m that t sends to a process q; and
• returns the same value as t, if t returns from an operation.
By construction, is loquacious.
Given a schedule of , define an infinite sequence step by step. For each , let be the process that takes step . Step is taken by and is defined as follows:
• invokes an operation iff does;
• for every process , step receives from precisely those original messages for which appears in a packed message received from in ;
• for every process , step sends to precisely those original messages for which appears in the packed message broadcast in ; and
• returns from an operation with value iff does with the same value.
We now isolate the properties of S that we will later need.
Claim C.1. Let S be defined as above from . Then:
(a) For every i, steps and are taken by the same process and have the same invocation and return.
(b) The same processes take infinitely many steps in S as in .
(c) Every process correct in is correct in .
(d) If a message sent in is received in , then some message sent in is received in .
(e) S is a schedule of A.
Proof. An induction on shows that every step follows : It performs precisely the transition of that simulates, from the same local state. Moreover, corresponding steps of and are taken by the same process and have the same invocation and return. Thus (a) and (b) hold. Since every step of follows , (b) implies (c).
For every original message sent to in , let be the copy of the packed message broadcast in that is sent to . By construction, contains the pair , and is received in iff is received in , proving (d). Together with (b) and the fact that is a schedule, this correspondence implies that in , every received message was sent earlier, no message is received more than once, and every message sent to a process that takes infinitely many steps is eventually received. Moreover, (b) implies that at least processes take infinitely many steps in , since they do in . By (a), each process's operations remain sequential. Thus is a schedule of , proving (e).
Claim C.1
Claim C.2. is an implementation of TS.
Proof. Let be any schedule of and let be as defined above. By Claim C.1(e), is a schedule of .
By Claim C.1(a), S and have the same history. Since A satisfies the safety condition (CT1), this history is linearizable with respect to TS, so satisfies (CT1) as well.
To show that satisfies the liveness condition (CT2), let be any operation in invoked by a correct process . By Claim C.1(a), has a corresponding operation invoked by the same process . By Claim C.1(c), is correct in as well. Since is a schedule of , which implements TS, eventually returns. By Claim C.1(a), the corresponding return occurs in , so eventually returns as well. Claim C.2
Claim C.3.
Proof. Let be any run of , and let , where is as defined above. We first verify that is a run of :
• By Claim C.1(e), S is a schedule of A.
• Since is a run, is non-decreasing and unbounded.
• If a message is sent in and received in , then Claim C.1(d) gives a message sent in and received in ; hence .
- Likewise, if and , with , are taken by the same process, then Claim C.1(a) implies that and are taken by the same process; hence again .
Thus all conditions of the definition of a run are satisfied.
Let be any operation in invoked by a correct process such that messages are timely during . By Claim C.1(a), has a corresponding operation invoked by , with the same invocation- and return-step indices. Since and share the time sequence ,
Of course, in the crash-failure model, a process is correct exactly when it takes infinitely many steps. We nevertheless state this separately from the preceding property so that both remain true in the Byzantine model, where a process may take infinitely many steps yet be faulty.
By Claim C.1(c), p is correct in R as well.
We now show that messages are timely during O in R. Let m be any message sent during O to a process q that takes infinitely many steps in S, so m is eventually received. Suppose it is sent in step and received in step . By Claim C.1(d), some message is sent in and received in , and so
By Claim C.1(a), step is taken by , so is sent to . By Claim C.1(b), takes infinitely many steps in . Moreover, because and are sent at the same time and , message is sent during . Because messages are timely during in , we have
Thus every message sent during O to a process that takes infinitely many steps has latency at most one, so messages are timely during O in R.
Since O is invoked by a correct process, the definition of yields
Taking the supremum over all such and yields .
□Claim C.3
The construction and the latter two claims establish the result.
□Lemma 4.20
C.1.2 Byzantine Failures
We next restate Lemma 7.11 from Section 7.3.1 and sketch its proof.
Lemma 7.11 (Byzantine version of Lemma 4.20). In a system with Byzantine processes, let A be an implementation of TS. Then there exists a loquacious implementation of TS such that .
Proof sketch. We reuse the construction of and the transformation of into S from the proof of the crash-failure counterpart, Lemma 4.20, modifying only how the messages sent in are defined:
For every process q, step sends to q precisely those original messages m for which appears in a packed message sent to q in .
This modification is necessary because the crash-failure transformation refers to the packed message broadcast in , whereas a Byzantine process may send different messages to different recipients or send no message at all.
Because the construction of is unchanged, the algorithm is loquacious as before. Moreover, under the modified transformation, Claim C.1 continues to hold under Byzantine failures. We omit the details of the argument, but two points merit mention:
-
Malformed messages in are simply ignored, as desired. This is because both the construction of and the transformation of into consider only (valid) packed messages.
-
A process that is faulty in and takes infinitely many steps may nevertheless be correct in S, if all of its transformed steps happen to conform to A. This is harmless: Claim C.1 requires only that every process correct in also be correct in S. The subsequent arguments use this implication only in that direction.
Let be any schedule of , and let be the sequence obtained by the modified transformation. Since satisfies the safety condition (BT1), there is a history that is linearizable with respect to TS and agrees with the history of on the processes correct in . By Claim C.1, and have the same history, and every process correct in is correct in . Hence agrees with the history of on the processes correct in , so satisfies the safety condition (BT1). The liveness and latency arguments carry over unchanged, using (BT2) for the liveness condition.
□Lemma 7.11

Figure 4: Proof of Lemma C.5: retiming the run (top) into the run (bottom). Both runs share the same schedule S, which contains an invocation at step and a corresponding response at step . Each horizontal line is a “unified” timeline depicting steps taken by all processes. Dots are steps, arcs are messages (red: latency exceeding 1; black: at most 1), and dashed portions of a timeline indicate no step is taken. Observe that in R, messages are ultimately timely, but not timely, during the operation (denoted O). The shaded band is the ultimate interval . Time is the earliest sending time of a message in ; time is the latest receiving time of such a message. is constructed from T by compressing the time interval into , pulling late message receptions to within 1 time unit of the send times. The operation O has the same latency in as in R, but messages are timely during O in .
C.2 Weaker Timeliness Requirements
The definitions and results in this subsection apply in both the crash-failure and Byzantine settings, with “correct” interpreted in the respective sense.
Recall from Definition 2.6 that an algorithm’s worst-case message delay bounds the latency of an operation if messages are timely (i.e., have latency at most one) throughout the operation. This bound should continue to hold under a weaker requirement that exempts messages sent within one unit of time before the operation returns. Indeed, if such a message is untimely, it arrives only after the operation has returned and cannot affect the timing of the return step.
To state this requirement more conveniently, we extend timeliness from operations to arbitrary time intervals: Given a run and an interval , we say that messages are timely during in if for every message sent at a time in to a process that takes infinitely many steps in . Timeliness during an operation (Definition 2.5) is the special case .
Definition C.4 formalizes the weaker requirement described above, called ultimate timeliness; Lemma C.5 shows that the message-delay bound still applies.
Definition C.4 (Ultimate timeliness). Let be a run, and let O be an operation in R. We say that messages are ultimately timely during O in R if either of the following applies:
(1) O is incomplete, and messages are timely during O in R; or
(2) O is complete, having been invoked in step and returned in step , and messages are timely during in R.
Note that if , then messages are vacuously ultimately timely during O.
Lemma C.5. Let A be an algorithm, let R be a run of A, and let O be an operation in R invoked by a correct process. If messages are ultimately timely during O in R, then .
Proof. Write . If messages are timely during in , the claim follows directly from the definition of worst-case message delay, so assume otherwise. Since ultimate timeliness coincides with timeliness for an incomplete operation (Definition C.4(1)), must be complete. Let be invoked in step and return in step . We will construct a run such that and messages are timely during in ; see Figure 4.
Let denote the set of messages sent during in to a process that takes infinitely many steps. Since is a schedule, every message in is eventually received. Let consist of the messages sent during the ultimate interval . Since is non-decreasing and unbounded, only finitely many steps occur during this interval, hence is finite. Because messages are ultimately timely but not timely during in , some message in has latency exceeding 1, so .
Let and be, respectively, the earliest send time and latest receive time of a message in . These times are well-defined because is finite, nonempty, and consists of messages that are received. By definition, . Moreover, if some message with is sent at time and received at time , then
Thus, .
We “retime” by compressing the interval into and leaving other times unchanged. Define by
Since , the map is strictly increasing and unbounded.
Define . Because is non-decreasing and unbounded, so is . Moreover, since is strictly increasing, iff for all indices and . Thus, is a run of with the same schedule as . Since , we have and , so .
It remains to show that messages are timely during O in . Because is strictly increasing and fixes and , for any time t we have
Fix any message sent during in to a process that takes infinitely many steps. Let be its send step and set . Its send time in is , so (12) implies , i.e., is also sent during in . Hence . Let be its receive step and set . Since , we have , and therefore
There are two cases, depending on whether m was sent before or during the ultimate interval:
- If , ultimate timeliness during in implies , and hence . Thus , so
- If , then , so and . Therefore,
In both cases, . So every message sent during in to a process that takes infinitely many steps has latency at most one, meaning messages are timely during in .
By the definition of worst-case message delay, . Since , the claim follows.
Lemma C.5
We can weaken the timeliness requirement once more. Write t for the time a complete operation returns. The idea is to additionally exempt messages sent during the time interval to processes other than the invoker p. Any run that meets this weaker requirement can be transformed into one in which messages are ultimately timely during the operation: We move the receipt of each exempted message that arrived late to just after time . Since p is not the recipient of any such message, this transformation leaves p's steps—and hence the operation's return time and latency—unchanged, so Lemma C.5 bounds the latency.
Definition C.6 states this weaker requirement precisely and names it penultimate timeliness; Lemma C.7 then shows that the message-delay bound still applies under it.
Definition C.6 (Penultimate timeliness). Let be a run, and let O be an operation in R. We say that messages are penultimately timely during O in R if either of the following applies:
(1) O is incomplete and messages are timely during O in R; or
(2) O is complete, having been invoked by a process p in step S[a] and returned in step S[b]; writing
both of the following conditions apply:
(a) messages are timely during in R; and
(b) if p takes infinitely many steps in S, then every message sent to p during has latency at most one in R.
Note that condition (2)(a) holds vacuously when , and condition (2)(b) holds vacuously when p crashes or when . In particular, if , then messages are penultimately timely during O.
Lemma C.7. Let A be an algorithm, let R be a run of A, and let O be an operation in R invoked by a correct process. If messages are penultimately timely during O in R, then .
Proof. Write . If messages are timely during O in R, the claim follows directly from the definition of worst-case message delay, so assume otherwise. Since penultimate timeliness coincides with timeliness for an incomplete operation (Definition C.6(1)), O must be complete. Let O be invoked by a correct process p in step and return in step .
If messages are ultimately timely during O in R, the claim follows from Lemma C.5, so assume messages are not ultimately timely during O in R. This means , and hence .
Proof plan. The remainder of the proof is devoted to constructing a run of in which is invoked by a correct process, messages are ultimately timely during , and ; see Figure 5. Given such a run, Lemma C.5 would give , completing the proof.
Since messages are already timely during in R, only messages sent during to processes that take infinitely many steps can prevent ultimate timeliness. Let denote the set of such messages; we must ensure that each message in has latency at most one in .
A message in received in is received by p. Because p is correct and hence takes infinitely many steps, condition (2)(b) already bounds the message's latency by one; we will leave such a message alone. We will deal with the remaining messages in in two stages of construction:
-
First, we will retime into an intermediate run in which every step preceding occurs early enough to make those messages received before timely. This retiming also clears a stretch of time that precedes and yet lies less than one time unit after every message in is sent.
-
Then, we will insert into that stretch receive steps for the messages received after . Such steps may be placed before because they are taken by processes other than p and so commute with . This yields the desired run .
We now give the full proof following the plan.

Figure 5: Proof of Lemma C.7: transforming the run (top) into the run (bottom), by way of the intermediate run (middle). Each horizontal line is a “unified” timeline depicting steps taken by all processes. Dots are steps, arcs are messages (red: latency exceeding 1; black: at most 1), and dashed portions indicate no step is taken. Top: A correct process invokes the operation in step and returns in step . Messages are penultimately timely, but not ultimately timely, during in . is the earliest sending time of a message in , and . Penultimate timeliness forbids a red arc from the shaded band into step , which is taken by ; hence the “▲” step is taken by a process other than . Middle: keeps the schedule and compresses the time interval into for the steps before the return, leaving the return step at time . . Bottom: keeps the steps in at their times in , inserts receive steps “■” in the time interval for the messages in , keeps the return step at time , and continues with a new infinite suffix (the wavy portion). In , the operation is invoked in step and returns in step . Messages are ultimately timely during in . Thus Lemma C.5 gives ; since the construction preserves the latency of , we have , as desired.
Setup. Let and be as in Definition C.6(2) for ; recall that they partition . Let denote the (finite) set of messages in sent during to a process that takes infinitely many steps, and let consist of those sent during . Recall that by condition (2)(a), messages are timely during in . Since messages are not ultimately timely during , must contain a message whose latency exceeds one, hence .
Let be the earliest send time of a message in , so that and . Since , we may fix an arbitrary time , obtaining
An intermediate run. We now retime so that every step preceding the response step occurs at time at most : For such steps we will compress the interval into , while and every later step keeps its time.
To do so, define by
By (13), the map is strictly increasing; for all ; and the range of is contained in . Define the infinite sequence by
The sequence is non-decreasing and unbounded. Furthermore, it can be verified that only if . Thus, is a run of with the same schedule, and hence the same correct processes, as . Since and , we have ; also, . Hence .
Since and , and since agrees with at every step whose time is at most in either run, is also the set of messages in sent during that timeliness constrains, and each has the same send time in both runs. Let consist of the (finitely many) messages received in a step with .
Claim C.8. Fix a message with send time , and let and be its send and receive steps. Then:
(a) and .
(b) If , then and .
(c) If , then , so and .
Proof. We prove each part in turn.
(a) The monotonicity of , with , yields . The definitions of and then give .
(b) Since , condition (2)(a) of penultimate timeliness gives , and hence . The monotonicity of therefore implies .
(c) Since and , we have and hence . By the definition of , it follows that .
Claim C.9. In , the following hold:
(a) Every satisfies , while
(b) Every message is sent to a process other than , in a step with and .
(c) Every message in is received in a step with and has latency at most one.
Proof. (a) For every , we have because the range of is contained in . Moreover, since , the displayed inequalities are a restatement of (13).
(b) Fix a message , let and be its send and receive steps, and write . The definition of gives . Claim C.8(a) gives .
Claim C.8(b) then rules out , so Claim C.8(c) applies and gives and . Finally, if were sent to , then and would both be steps of , implying . But takes infinitely many steps and , so condition (2)(b) of penultimate timeliness would yield , a contradiction.
(c) Fix a message with send time , and let and be its send and receive steps. Claim C.8 applies to , and the definition of gives . We bound in three cases.
If , then Claim C.8(b) gives and . Thus , and .
Now suppose . By Claim C.8(c), and . If , then by part (a), so . If instead , then is received by , which takes infinitely many steps, so condition (2)(b) of penultimate timeliness gives . Hence .
Inserting receive steps. Let , a schedule prefix of . By Claim C.9(b), every message in is sent in to a process other than . Moreover, its receive step in has index greater than , so it has not yet been received by the end of .
We may therefore extend by a finite sequence of steps, all taken by processes other than , in which every message in is received: A recipient that is correct in takes a step according to , and a recipient that is faulty in —possible only under Byzantine failures, since these recipients take infinitely many steps—takes an arbitrary step receiving the message. Write . Because contains no step of and step is a step of ,
is a schedule prefix of A by commutativity. Extend to a schedule of A such that exactly the processes that take infinitely many steps in S do so in , and every correct process in S is correct in . In particular, p is correct in . By construction,
Assigning times. To construct , we keep the steps in at their times in , place the inserted steps in the interval , and keep the return step at time . Specifically, define
By Claim C.9(a), every step in has time at most . The inserted steps have strictly increasing times in , the return step has time , and all subsequent steps have strictly increasing times exceeding . Thus is non-decreasing and unbounded. Moreover, all required strict inequalities are either inherited from or follow from these strict separations. Thus is a run of .
In , the operation is invoked in step and returns in step ; it is invoked by , which is correct in . Since and , we have .
Claim C.10. Messages are ultimately timely during O in .
Proof. Fix a message sent at a time in to a process that takes infinitely many steps in , and let be its send step. By the definition of and Claim C.9(a), every satisfies . Hence , so and ; in particular, is also sent in , with the same send time, and by the choice of its recipient is the same in both schedules and takes infinitely many steps in each. Thus .
-
If , then by Claim C.9(c), is received in a step with and . Its receive step in is if , and if ; in either case, its receive time is the same in as in . Therefore .
-
If , then Claim C.9(b) gives . By construction, is received in an inserted step with ; the definition of therefore gives . Hence .
Since m was arbitrary, messages are ultimately timely during O in .
□Claim C.10
By Lemma C.5, . Since , the claim follows.
□Lemma C.7
C.3 Proofs of the Completion Lemmas
We prove the crash- and Byzantine-failure completion lemmas in turn.
C.3.1 Crash Failures
We first prove the crash-failure completion lemma using penultimate timeliness; its statement is restated below.
Lemma 4.21. In a system with crash failures, let be a loquacious algorithm with . Let be a process, and let be a set of processes such that and .
Suppose that is a schedule prefix of A in which the following hold:
-
Process p invokes an operation and broadcasts a message m in step .
-
For each , process receives message and broadcasts a message in step .
-
Process p receives the set of messages in step .
-
Between steps and , inclusive, the only steps are those specified above.
Then the operation invoked by p in step returns no later than step .
Proof. In a system with crash failures, let be a loquacious algorithm with , and let be a schedule prefix of that satisfies the assumptions in the lemma statement.
Suppose, for the sake of contradiction, that process has not returned from the operation by step . Extend the prefix to a schedule of in which every process in takes infinitely many further steps and receives every message sent to it, while every remaining process takes no further steps. Since is correct in and , Proposition 2.7 implies that the operation invoked in step eventually returns, in some step with .

Figure 6: Proof of Lemma 4.21. Let be a loquacious algorithm with , and suppose toward a contradiction that the operation , invoked by in step , has not returned by step . Extend the schedule prefix so that exactly the processes in are correct; then returns in some step , and the times give . The figure depicts the instance , , and , in which , , and are correct and crashes; in general . The shaded bands show the two intervals from Definition C.6(2) of penultimate timeliness: (a) ; and (b) . The figure shows only the messages to which these conditions apply; each has latency less than 1. So messages are penultimately timely during , and Lemma C.7 gives , contradicting .
Now, define the time sequence T as follows (see Figure 6):
It can be verified that is strictly increasing and unbounded, so is a run of . Let denote the operation in invoked in step and returning in step . It follows that .
Claim. Messages are penultimately timely during in .
Proof. Since O is complete, we must verify conditions (2)(a) and (2)(b) of Definition C.6.
• For condition (2)(a), consider the interval
The only step in this interval is , so the messages sent during this interval to a process that takes infinitely many steps are precisely the copies of sent in step to processes in . By assumption 2, each such message is received in some step with , and hence before time 1. Since these messages are sent at time 0, each has latency less than 1.
• For condition (2)(b), we have
Since takes infinitely many steps, we must examine the messages sent in this interval to . Let be such a message, sent in step . Since
and is strictly increasing, we have . So by assumptions 2 and 4, we have for some . By assumption 3, message is received in step . Furthermore, implies by the definition of . Therefore,
Claim
By Lemma C.7, the claim implies . This contradicts .
Lemma 4.21
C.3.2 Byzantine Failures
We next derive the Byzantine variant from the same argument; its statement is also restated below (with the differences from the crash version underlined).
Lemma 7.12 (Byzantine version of Lemma 4.21). In a system with Byzantine processes, let A be a loquacious algorithm with . Let p be a process, and let Q be a set of processes such that and . Suppose that is a schedule prefix of A in which the following hold:
-
Process p invokes an operation and broadcasts a message m in step .
-
For each , process receives and broadcasts a message in step .
-
Process p receives the set of messages in step .
-
Between steps and , inclusive, the only steps are those specified above.
-
Processes in Q follow the algorithm A throughout .
Then the operation invoked by p in step returns no later than step .
Proof. The proof of Lemma 4.21 applies with only one change: We must justify its initial extension of to a schedule of . Since every process in follows throughout , we can extend this prefix to a schedule of by letting these processes take infinitely many further steps according to (and ensuring that every message sent to them is eventually received), and letting the remaining processes take no further steps. In the resulting schedule, the processes in are exactly the ones that take infinitely many steps and exactly the correct ones, and so there are faulty processes. Because is correct in the schedule, its operation eventually returns. The remainder of the proof—the time assignment and the verification of penultimate timeliness—applies verbatim and yields the same contradiction.
D Proof of the Two-Delay Lower Bound for Crash Failures
In this section, we prove the two-delay latency lower bound in systems with crash failures from Section 4.3. The proof relies on the following lemma.
Lemma D.1. In a system with crash failures, let A be a loquacious algorithm with . Suppose that is a schedule prefix of A in which some process p:
• invokes an operation and broadcasts a message m in step , and
• receives its own message m in step .
Then the operation invoked by p in step returns no later than step .
Proof. Let the worst-case message delay of be . Suppose, for the sake of contradiction, that the operation invoked by in step does not return by step . By assumption, .
Extend to an (infinite) schedule of in which takes infinitely many steps. Then is correct in , and since has finite worst-case message delay, Proposition 2.7 implies that the operation invoked in step eventually returns. Let be its return step, where , and call the complete operation .
Assign times T to the steps in S by setting
This sequence is strictly increasing and unbounded. Let be the resulting run.
Since is complete, we show that messages are penultimately timely during in by verifying the two conditions of Definition C.6(2). Condition (2)(a) holds vacuously because . Since takes infinitely many steps, condition (2)(b) requires us to consider the messages sent to during the relevant time interval ; the only step taken in this interval is . Since is loquacious, the only message sent to in step is ; by assumption, receives in step , with latency .
Therefore, by Lemma C.7, , contradicting the fact that .
Lemma D.1
We now restate and prove the two-delay latency lower bound.
Proposition 4.22. In a system with crash failures, any implementation of TS has worst-case message delay at least two.
Proof. Suppose, toward a contradiction, that there is an implementation A of TS whose worst-case message delay is at most one. By Lemma 4.20, we may assume without loss of generality that A is loquacious. By Proposition 3.3, A satisfies ordering (CT1a). Since , let p and q be distinct processes in the system.
Construct a schedule prefix of consisting of two steps, both taken by process : In the first step, invokes an operation and broadcasts a message ; in the second step, receives . By Lemma D.1, this operation returns by the end of —let its return value be . Construct symmetrically for process , with return value .
Note that contains only steps of and contains only steps of , so their concatenation is also a schedule prefix of . Extend to a schedule of ; in this schedule, condition (CT1a) implies . Similarly, we can extend to a schedule of , yielding , a contradiction. Proposition 4.22