中文 →
The Peterman Pod · 2026

A rejection letter that found a bug, and a lifetime of "write it down or you don't know it"

Leslie Lamport × Ryan Peterman · "Turing Award Winner: Thinking Clearly, Paxos vs Raft, Working With Dijkstra"

Show The Peterman Pod · 2026-02-23 · Length 70 min · Guest Leslie Lamport · Host Ryan Peterman · Video YouTube

The moment

In 1972 Leslie Lamport read an article in Communications of the ACM about Dijkstra's mutual exclusion problem: several processes share something like a printer, and you must guarantee that at most one of them is inside its "critical section" at a time. The published solution was fairly complicated. Lamport thought it shouldn't be that hard, dashed off a simple two-process algorithm and submitted it. A few weeks later the reply arrived.

And a couple of weeks later, I received a letter from the editor pointing out the bug in my program.— Leslie Lamport · [00:04:11]

He says the letter had two effects. He realized that concurrent programs are hard to get right and need a proof of correctness. And he decided he was going to solve that damn problem. The second effect became the bakery algorithm. The first one he has held to for more than fifty years.

Who's talking, and when

Lamport won the 2013 Turing Award; logical clocks, the Byzantine Generals and Paxos are his, and he wrote LaTeX on the side. Unlike most of his peers he never held a university post, working instead at SRI, DEC's Systems Research Center (SRC) and Microsoft Research. In the interview he explains that until about the mid-1980s it didn't seem to him that computer science was something you had to go to a university to learn, and later he simply didn't think teaching it would be fun.

Ryan Peterman's show usually has senior engineers talk about promotion, growth and regrets. This time he changes tack. He has clearly read the notes Lamport wrote on his own website for each of his papers, says "I saw in your notes" again and again, and asks for the story behind one paper after another. The episode becomes a spoken version of that annotated bibliography.

It went up in February 2026, when Lamport was 85. He speaks slowly and often pauses for a word, but on any technical judgment he is blunt. Set beside our Stonebraker episode it is the opposite temperament: Stonebraker pulls everything toward the market, Lamport pulls everything toward the proof.

The episode, in depth

Abstraction, not smartness

The bakery algorithm comes from a deli counter. Each customer takes a numbered ticket, and the lowest number is served next. The twist in Dijkstra's problem is that there is no central ticket machine, so each process has to choose its own number. The algorithm is simple. What surprised Lamport was something he found while writing its proof.

People assumed that mutual exclusion required some lower-level mutual exclusion underneath, usually that reads and writes to shared registers are atomic. The bakery algorithm does not need that. Each shared variable is written by only one process, and if another process reads it in the middle of a write it may get any value at all and the algorithm still works. His colleague Anatol Holt could not find a flaw in the proof on the whiteboard, went home convinced there must be one, and never found it.

His only collaboration with Dijkstra went the same way. Dijkstra and his students had written the first concurrent garbage collector, with a special process to manage the free list. Lamport pointed out that the free list could just be part of the ordinary data structure. It seemed obvious to him, yet Dijkstra made him a co-author, and years later remarked on his unusual gift for abstraction. Lamport says it was only around the Turing Award that he understood his success came not from being particularly smart but from that gift.

Near the end, Peterman presses him: you say you never thought of yourself as smart, so how does that square with a Turing Award? Lamport cites what psychologists describe: people who are good at something don't realize how good, because it's easy for them, and the reverse holds too.

Stupid people think they're smart because they're too stupid to realize they're not.— Leslie Lamport · [01:07:48]

One problem, solved three times

Lamport's most cited paper is "Time, Clocks, and the Ordering of Events in a Distributed System" (1978). It began with a distributed database paper whose scheme ordered operations in a way that could differ from the order in which events actually happened. So what does "happened before" mean? He happened to know the space-time view of special relativity: one event precedes another if a signal, travelling no faster than light, could get from the first to the second. Replace light signals with messages actually sent in the system, and you have happens-before for distributed systems.

That is the half everyone remembers. The other half: if you can produce a total order consistent with happens-before, every machine can execute the same commands in the same order, and any distributed system can be described as a state machine. He considers this the paper's most important practical idea, and almost nobody noticed it.

As a matter of fact, twice I talked to people about that paper and they said there was nothing in that paper about state machines.— Leslie Lamport · [00:18:50]

State machines also matter because of how you understand a program. Midway through a run, the original input is ancient history; only the current state decides what happens next. So understanding a program means finding a property of the state that holds at every step and guarantees the answer is right: an invariant.

And understanding the invariant is the way to understand the system.— Leslie Lamport · [00:21:25]

His argument is about complexity. The number of possible executions grows exponentially with the number of processes, so reasoning about them one by one makes it easy to miss cases, while an invariance proof grows only quadratically.

He then solved the same problem twice more. First came the Byzantine Generals. The 1978 paper assumed no failures, but the point of multiple computers is to keep going when one fails. At SRI he found colleagues working on the same problem for SIFT. The oil crisis had made people want smaller control surfaces to save fuel, which made planes aerodynamically unstable, so computers would have to fly them. From Dijkstra's dining philosophers he had learned that a problem spreads if it has a good story, so he invented generals and traitors.

Then came Paxos. At DEC SRC the failures industry cared about were machines that simply stop. His colleagues' distributed system had code to keep its shared storage consistent, and Lamport didn't believe it was possible. He set out to prove it impossible: an algorithm would have to do this, and to do this it would have to do that... until he stopped and realized it was not a proof but an algorithm. His verdict on his colleagues: they had code, not an algorithm.

As a young researcher he looked for "the Turing machine of concurrency", never found it, and for a while felt like a failure. Now he thinks the answer is the state machine: a state plus a next-state relation. It can describe anything, including things that cannot be implemented, such as a variable ranging over all integers. He calls that a feature, since infinity was introduced to make things simpler. Hence his impatience with programmers' attachment to languages: for understanding concurrency, you can't beat math.

Understanding means you can write a proof

The Raft authors once sent him a draft. He told them to send it back when they had an algorithm, or a proof, he no longer remembers which. As he sees it, Paxos has two phases: the first establishes a leader, and as long as the leader stays the same you just repeat the second. Engineers like to explain it the other way round, running the second phase until the leader fails and then going back to the first, and that is how Raft tells it. Lamport thinks only his order shows why the algorithm is correct.

The Raft paper reported a study in which students found Raft easier to understand. Lamport's reply is that a bug was later found in Raft, and that the version the students found more understandable was the one with the bug; the claim check below looks at whether that holds up. From this he draws a distinction.

For me understanding means, you know, you can write a proof of it, but what understanding means for most people is warm fuzzy feeling.— Leslie Lamport · [00:50:37]

Paxos had the same fate. He told it as a parliament on an ancient Greek island and lectured in the persona of an Indiana Jones–style archaeologist, and nobody grasped the algorithm's significance except Butler Lampson, who began urging people to build systems on it. Referees thought the paper not very important, Lamport was in no hurry, and it sat from its 1990 submission until publication in 1998.

His structured proofs were forced on him too. Once his algorithms got complicated, the proofs he wrote the way a math PhD learns to write them could no longer keep track of the details, so he borrowed the programmer's tool for complexity, hierarchy. A proof is a sequence of steps, each with its own proof, which is either a paragraph or another sequence of steps, and each step names the steps it follows from. He found it worked just as well for ordinary theorems and presented it at a seminar to about twenty mathematicians.

They became angry. I really thought they might physically attack me.— Leslie Lamport · [00:00:15]

He reads the reaction as fear: mathematicians worry they'll have to write proofs for a computer program, though he insists it needs no more formality than usual. The real cost is that the structure exposes the steps you thought obvious and never wrote down. LaTeX was improved the same way: while writing its manual, wherever something was hard to explain, he went back and changed LaTeX itself.

If you think you know something but don't write it down, you only think you know it.— Leslie Lamport · [00:59:20]

Claim check

"People thought three computers were enough to tolerate one fault; with arbitrary faults you need four, or three with digital signatures." [00:36:19]

Supported

Lamport's own note on the 1980 paper says it plainly: it was generally assumed that three processors could tolerate one fault; the paper showed Byzantine faults defeat any traditional three-processor algorithm, and in general 3n+1 are needed, or 2n+1 with signatures. The general formula he gives in passing on the show ("4n" and "3n") doesn't match, but his one-fault example is right.

"A bug was discovered in Raft and fixed, but I believe the version they found more understandable was the one with that bug." [00:00:39]

Insufficient evidence

Raft's best-known safety bug, announced by Diego Ongaro in 2015, lies in the single-server membership-change algorithm from his dissertation, and he states it does not affect implementations using joint consensus. The Raft paper's study of 43 students taught the joint-consensus version. Lamport doesn't name the bug, and we found no public record supporting the claim.

Crossovers

Ten takeaways

  1. Leslie Lamport's first mutual exclusion algorithm, submitted to CACM in 1972, had a bug; the editor's letter convinced him concurrent programs need correctness proofs.
  2. The bakery algorithm lets each process pick its own ticket, lowest number enters first, and it does not require atomic reads and writes of shared registers.
  3. Lamport credits his success not to raw intelligence but to a gift for abstraction, which Dijkstra recognized early.
  4. "Time, Clocks" brought relativity's happens-before into distributed systems, but Lamport says its more important state-machine idea went almost unnoticed.
  5. Lamport argues programs are understood through invariants: executions grow exponentially with processes, invariance proofs only quadratically.
  6. The Byzantine Generals problem came from SRI's SIFT flight-control project, and Lamport invented the story so the result would spread.
  7. Paxos was born when Lamport tried to prove his colleagues' fault-tolerant storage impossible and the proof turned into an algorithm.
  8. Lamport separates two kinds of understanding: being able to write a proof, and a warm fuzzy feeling; Raft wins on the second.
  9. Lamport's hierarchical proofs break each step into sub-steps with stated justifications; he reads mathematicians' anger at them as fear.
  10. The illusion-of-explanatory-depth experiment shows people lower their self-rated understanding after writing an explanation, the same structure as Lamport's "write it down" rule.

Sources