Alternating bit protocols #
Every bit protocol can be made alternating by inserting constant messages when the next real speaker is out of turn. The first player can be specified, and the depth increases by at most a factor of two. Both branches of each inserted node are the same continuation, so the construction also alternates on unreachable branches. This structural guarantee supports simulations whose source-density invariant depends on the next speaker.
theorem Cslib.Communication.Protocol.alternates_alternate {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (p : Protocol X Y Z) (turn : Bool) :
Alternates turn (p.alternate turn)
The normalized protocol alternates even along unreachable branches.