algebraic topology and distributed computingcs.brown.edu/courses/cs2951s/ch09.pdfsimplicial complex...

112
Manifold Protocols Companion slides for Distributed Computing Through Combinatorial Topology Maurice Herlihy & Dmitry Kozlov & Sergio Rajsbaum

Upload: others

Post on 06-Jun-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Manifold Protocols

Companion slides for Distributed Computing

Through Combinatorial Topology Maurice Herlihy & Dmitry Kozlov & Sergio Rajsbaum

Page 2: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Kinds of Results

2

Impossibility

Separation

Task T cannot be solved in model M

Task T can be solved by a protocol for T’, but not vice-versa

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
In this lecture, we a simple impossibility result, showing that one cannot construct a protocol for the \emph{set agreement} in the \emph{round-by-round immediate snapshot} model of computation. We also show that set agreement is strictly stronger than the \emph{weak symmetry-breaking} task: we can construct a protocol for weak symmetry-breaking from a ``black box'' that solves set agreement, but not vice-versa.
Page 3: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Road Map

3

Manifolds

Sperner’s Lemma and k-Set Agreement

Immediate Snapshot Model

Weak Symmetry-Breaking

Separation results

Distributed Computing Through Combinatorial Topology

Page 4: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Road Map

4

Manifolds

Sperner’s Lemma and k-Set Agreement

Immediate Snapshot Model

Weak Symmetry-Breaking

Separation results

Distributed Computing Through Combinatorial Topology

Page 5: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Simplicial Complex

5 Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
A simplicial complex (or complex) is a set of simplexes closed under inclusion: if S and T are both in a complex then their intersection is either empty or a simplex in the complex. Like simplexes, complexes can also be viewed both as combinatorial objects or as geometric objects. The complex shown here is a kind of torus constructed by joining triangles together. Most of the complexes we will consider will not have such a nice geometric structure (though some will).
Page 6: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

6

Manifolds Every (n-1)-simplex a

face of two n-simplexes

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
A n-dimensional complex is a manifold (sometimes called a pseudo-manifold )if each (n-1)-simplex is contained in precisely two n-simplexes. This kind of manifold is also a manifold in the other sense, of looking locally like Euclidean space, but it is obviously not continuous.
Page 7: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

7

Manifolds Every (n-1)-simplex a

face of two n-simplexes

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
A n-dimensional complex is a manifold (sometimes called a pseudo-manifold )if each (n-1)-simplex is contained in precisely two n-simplexes. This kind of manifold is also a manifold in the other sense, of looking locally like Euclidean space, but it is obviously not continuous.
Page 8: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Distributed Computing Through Combinatorial Topology

8

Manifold with Boundary Internal (n-1)-simplex a face of two n-simplexes

Boundary (n-1)-simplex a face of one n-simplex

Boundary ∂ C

Presenter
Presentation Notes
A complex is a manifold with boundary if each (n-1)-simplex is contained in precisely one or two n-simplexes. An (n-1)-simplex is internal if it a face of two n-simplexes, and exernal otherwise. The subcomplex generated by the external (n-1)-simplexes is called the boundary of the manifold. Sometimes we just say “Manifold” when we mean “manifold with boundary”.
Page 9: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Why Manifolds?

9

Nice combinatorial properties

Many useful theorems

Easy to prove certain claims

True, most complexes are not manifolds ….

Still a good place to start. Distributed Computing Through

Combinatorial Topology

Presenter
Presentation Notes
Few of the complexes that arise naturally in the study of distributed computing are manifolds. We study them anyway because they provide an excellent way to approach more complicated models. Manifolds have nice combinatorial properties not shared with more general classes of complexes. Later, we will see how to generalize the techniques developed here to other, more natural models of computation.
Page 10: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Road Map

10

Manifolds

Sperner’s Lemma and k-Set Agreement

Immediate Snapshot Model

Weak Symmetry-Breaking

Separation results

Distributed Computing Through Combinatorial Topology

Page 11: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Immediate Snapshot Executions

11

Restricted form of Read-Write memory

Protocol complexes are manifolds

(Equivalent to regular R-W memory) But we will not prove it yet.

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
The \emph{immediate snapshot} model is a simplified model of computation whose protocol complexes are manifolds. These executions are constrained, in the sense that they encompass only a subset of the interleavings possible in an asynchronous model. Nevertheless, any \emph{impossibility} results that we prove for a restricted set of interleavings are valid for the less restricted model. It is easy to see why: solving a task in a distributed system means that the outputs should be valid in \emph{every} execution. So if we can show a subset of executions where no valid decision is possible, then no valid decision is possible in general. Another way to formulate this observation is to imagine that executions are chosen by an ``adversary'' who always chooses the worst set of executions.
Page 12: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Distributed Computing Through Combinatorial Topology

0 0 0 1

Write

Single-writer, multi-reader variables 12

Presenter
Presentation Notes
Consider an asynchronous system where $n+1$ processes share an $(n+1)$-element array $m$. When process $P_i$ is scheduled to run, it writes its state to $m[i]$,
Page 13: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Distributed Computing Through Combinatorial Topology

1 0 0

100 Snapshot

Single-writer, multi-reader variables 13

Presenter
Presentation Notes
When process $P_i$ is scheduled to run, it writes its state to $m[i]$, and then atomically reads the entire array. (We call such an atomic read a \emph{snapshot}, and its result a \emph{view}.)
Page 14: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Immediate Snapshot Executions

14

Pick a set of processes

write together

snapshot together

Repeat with another set

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
For simplicity, we restrict how these steps can be interleaved. Each execution is divided into a sequence of \emph{phases}. In each phase, select a set of processes that have not yet taken a step. All processes in that set simultaneously write, and then they simultaneously take a memory snapshot. Phases proceed until every process has been scheduled exactly once. Because each snapshot is scheduled immediately after the preceding write, we call this the \emph{immediate snapshot} model.
Page 15: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Example Executions

P Q R write snap

write snap

write snap

P?? PQ? PQR

15

Each process writes, then takes snapshot

Each process has a view

time

Distributed Computing Through Combinatorial Topology

Page 16: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Example Executions

P Q R write snap

write write snap snap

write snap

P?? PQR PQR

16

Moving last process one round earlier,

Changes this view from PQ? to PQR

P Q R write snap

write snap

write snap

P?? PQ? PQR

Distributed Computing Through Combinatorial Topology

Page 17: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

P Q R write write write snap snap snap

write write snap snap

PQR PQR PQR

P Q R write write write snap snap snap

write write snap snap

PQR PQR PQR

P Q R write snap

write write snap snap

write snap

P?? PQR PQR

Example Executions

17

Moving last processes one round earlier,

Changes this view from P?? to PQR Distributed Computing Through

Combinatorial Topology

Page 18: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Protocol Complex Process (color)

& view

18 Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
This slide shows the full immediate snapshot complex for three processes. Informally, we can see that this complex is a manifold, although such a claim requires proof.
Page 19: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Protocol Complex P Q R

write snap

write snap

write snap

P Q R write write write snap snap snap

P Q R write snap

write write snap snap

19 Distributed Computing Through Combinatorial Topology

Page 20: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Standard Chromatic Subdivision

20 Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
We will call this simplex the standard chromatic subdivision, even though we haven’t proved it’s a subdivision, or even defined what a subdivision is. We will discuss subdivisions later, so for now it’s just a complex given by the combinatorial definition that follows.
Page 21: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Vertex (Pi, ¾i)

Combinatorial Definition (I)

21

Process name view ¾i µ ¾

Input simplex ¾

Protocol complex IS(¾)

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
Let us examine this complex from a purely combinatorial perspective.
Page 22: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Distributed Computing Through Combinatorial Topology

Combinatorial Definition (II)

22

Each process's write appears in its own view Pi 2 names(¾i).

Snapshots are ordered ¾i µ ¾j or vice-versa

Each snapshot ordered immediately after write if Pi 2 ids(¾j), then ¾i µ ¾j.

If Pj saw Pi write … then Pj‘s snapshot not later than Pj‘s.

Page 23: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Manifold Theorem

23

If the input complex I is a manifold …

Distributed Computing Through Combinatorial Topology

Page 24: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Manifold Theorem

24

… so is the immediate snapshot protocol complex IS(I).

Distributed Computing Through Combinatorial Topology

Page 25: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Proof of Manifold Theorem

25

Let ¿n-1 be an (n-1)-simplex of IS(I).

Must prove that ¿n-1 is a face of exactly one or two n-simplexes of IS(I).

Distributed Computing Through Combinatorial Topology

Page 26: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Without Loss of Generality …

26

¿n¡1 = fhP0; ¾0i; : : : ; hPn¡1; ¾n¡1ig

Simplex of I seen by last process

Where ¾i µ ¾i+1 for 0 · i < n

Re-index processes in execution order (ignoring ties)

Distributed Computing Through Combinatorial Topology

Page 27: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Proof Strategy

27

Count the ways we can extend…

Where ¾n is an n-simplex of IS(¾)

¿n-1 = {(P0, ¾0), …, (Pn-1, ¾n-1)}

¿n = {(P0, ¾0), …, (Pn-1, ¾n-1i, (Pn, ¾n)}

Distributed Computing Through Combinatorial Topology

Page 28: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Cases

28

¿n¡1 = fhP0; ¾0i; : : : ; hPn¡1; ¾n¡1ig

dim n-1 or dim n

Boundary or internal

3 cases

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
There are three casses: \sigma_{n-1} has dimension at least n-1, and possibly n. If the dimension is n-1, then it could be an internal simplex or a boundary simplex
Page 29: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

29

¿ n-1

¾n-1

¿n¡1 = fhP0; ¾0i; : : : ; hPn¡1; ¾n¡1ig Boundary (n-1)-simplex

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
Suppose \sigma_{n-1} is a boundary simplex of \cI. This picture shows the situation for three processes where the blue edge is \sigma_{n-1}, the largest simplex seen, and the red edge is \tau^{n-1}, the simplex we are analyzing. Note that \tau^{n_1} could be any of these three edges --- we picked this one for the sake of the example.
Page 30: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

30

Exactly one n-simplex ¾ of I contains ¾n-1

¾

¾n-1

¿n-1

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
By hypothesis, there is exactly one n-simplex of \cI that contains \sigma_{n-1}.
Page 31: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

31

Exactly one n-simplex ¿n of IS(I) contains ¿n-1

¿n = ¿n-1 [ hPn, ¾i

¾

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
This implies that there is exactly one way to extend \tau^{n-1} to an n-simplex: the remaining process P_n could only have seen \sigma. That’s the first case.
Page 32: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

32

¿n-1

¾n-1

¿n¡1 = fhP0; ¾0i; : : : ; hPn¡1; ¾n¡1ig Internal (n-1)-simplex

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
For the next case, assume \sigma_{n-1}, the last simplex seen, is an internal (n-1)-simplex, like the blue simplex shown here. Then the simplex we are analyzing is one of these --- we pick the middle one for this example.
Page 33: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

33

Exactly two n-simplexes ¾0 & ¾1 of I contain ¾n-1

¾0

¾1

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
There are two n-simplexes of \cI that contains \sigma_{n-1}
Page 34: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

34

Exactly 2 n-simplexes ¿0n & ¿1

n of IS(I) contain ¿n-1

¿n0 = ¿n-1 [ hPn, ¾0i

¿n1 = ¿n-1 [ hPn, ¾1i

¾0

¾1

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
That means there are two ways to “fill in” \tau^{n-1} to an n-simplex: eitehr P_n say \sigma_0 or it saw \sigma_1
Page 35: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

35

¿n-1

¾n-1

¿n¡1 = fhP0; ¾0i; : : : ; hPn¡1; ¾n¡1ig n-simplex

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
For the final case, suppose \sigma_{n-1} is an n-simplex of \cI. We want to show that \tau^{n-1} is an internal simplex of the protocol complex.
Page 36: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Suppose

36

Pn 2 ids(¾k) (Pk saw Pn’s write)

Pn ∉ ids(¾k-1) (Pk-1 did not see Pn’s write)

Special case: k=0, ¾-1 = ;

¾n µ ¾k )

¾k-1 ½ ¾n )

Either ¾k-1 ½ ¾n ½ ¾k or ¾k-1 ½ ¾n = ¾k

Presenter
Presentation Notes
Operationally, because P_k saw P_n’s write, P_n must either be scheduled before P_k or with P_k. Because P_{k-1} did not see P_n’s write, P_n must be scheduled after P_{k-1}.
Page 37: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

37

Pk-1 did not see Pn

Pk did see Pn

Pn between Pk-1 & Pk

Pn with Pk

This completes the proof.

Distributed Computing Through Combinatorial Topology

Page 38: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Manifold Protocols

38

A protocol M(I) is a manifold protocol if

If I is a manifold, so is M(I)

M(∂I) = ∂M(I).

Example: immediate snapshot

Important: closed under composition Distributed Computing Through

Combinatorial Topology

Page 39: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Road Map

39

Manifolds

Sperner’s Lemma and k-Set Agreement

Immediate Snapshot Model

Weak Symmetry-Breaking

Separation results

Page 40: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Distributed Computing Through Combinatorial Topology

k-set Agreement: before 32 19

21

40 40

Page 41: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

19 19

21

41

k-set Agreement: after

k = 2 Distributed Computing Through

Combinatorial Topology

Page 42: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Theorem

42

No Manifold Protocol can solve n-set agreement

Including Immediate Snapshot Including read-write memory

Distributed Computing Through Combinatorial Topology

Page 43: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Sperner Coloring

43 Distributed Computing Through Combinatorial Topology

Page 44: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Sperner Coloring

44 Distributed Computing Through Combinatorial Topology

“Corners” have distinct colors

Page 45: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Sperner Coloring

45 Distributed Computing Through Combinatorial Topology

Edge vertexes have corner colors

“Corners” have distinct colors

Page 46: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Sperner Coloring

46 Distributed Computing Through Combinatorial Topology

Edge vertexes have corner colors

“Corners” have distinct colors

Every vertex has face boundary colors

Page 47: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Sperner’s Lemma

47 Distributed Computing Through Combinatorial Topology

In any Sperner coloring, at least one n-simplex has all n+1 colors

Page 48: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Sperner Coloring for Manifolds with Boundary (base)

48

One color here Other color here

Only those colors in interior

Distributed Computing Through Combinatorial Topology

Page 49: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Sperner Coloring for Manifolds with Boundary (inductive)

49

M is n-manifold colored with ¦

∂ M = [i Mi

Where Mi is non-empty (n-1)-manifold Sperner-colored with ¦ n {i }

Distributed Computing Through Combinatorial Topology

Page 50: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Sperner’s Lemma for Manifolds

50 Distributed Computing Through Combinatorial Topology

∂M

Odd number of n-simplexes have all

n+1 colors

Sperner Coloring on Manifold

M

Page 51: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Proof of Sperner’s Lemma

51

Induction on n Base

One color here Other color here

Odd number of changes Distributed Computing Through

Combinatorial Topology

Page 52: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Induction Step

52 Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
We will call this simplex the standard chromatic subdivision, even though we haven’t proved it’s a subdivision, or even defined what a subdivision is. We will discuss subdivisions later, so for now it’s just a complex given by the combinatorial definition that follows.
Page 53: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Dual Graph

One vertex per n-simplex … 53 Distributed Computing Through

Combinatorial Topology

Presenter
Presentation Notes
We will call this simplex the standard chromatic subdivision, even though we haven’t proved it’s a subdivision, or even defined what a subdivision is. We will discuss subdivisions later, so for now it’s just a complex given by the combinatorial definition that follows.
Page 54: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Dual Graph

One vertex per n-simplex …

One “external” vertex

54 Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
We will call this simplex the standard chromatic subdivision, even though we haven’t proved it’s a subdivision, or even defined what a subdivision is. We will discuss subdivisions later, so for now it’s just a complex given by the combinatorial definition that follows.
Page 55: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Discard One Color

55

n+1 colors

“restricted”n colors

Distributed Computing Through Combinatorial Topology

Page 56: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Edges

56

If two n-simplexes share an (n-1)-face … with restricted n colors …

add an edge.

Distributed Computing Through Combinatorial Topology

Page 57: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Edges

57

Same for external vertex

Distributed Computing Through Combinatorial Topology

Page 58: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Some Vertexes have Degree Zero

58

Even degree Distributed Computing Through

Combinatorial Topology

Page 59: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Some Vertexes have Degree Two

59

Even degree

Only n restricted colors

Distributed Computing Through Combinatorial Topology

Page 60: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

All n+1 Colors ) Degree 1

60

Odd degree Distributed Computing Through

Combinatorial Topology

Page 61: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Induction Hypothesis

Odd number of n-colored simplexes

61 Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
We will call this simplex the standard chromatic subdivision, even though we haven’t proved it’s a subdivision, or even defined what a subdivision is. We will discuss subdivisions later, so for now it’s just a complex given by the combinatorial definition that follows.
Page 62: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Induction Hypothesis

External vertex has odd degree

62 Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
We will call this simplex the standard chromatic subdivision, even though we haven’t proved it’s a subdivision, or even defined what a subdivision is. We will discuss subdivisions later, so for now it’s just a complex given by the combinatorial definition that follows.
Page 63: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Odd Degrees

63

One external vertex

Even

n-simplexes with n+1 colors?

All the rest

Distributed Computing Through Combinatorial Topology

Page 64: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Odd Degrees

64

One external vertex

Even

n-simplexes with n+1 colors?

All the rest

Every graph

Even number of odd degree vertexes

sum of degrees is even… each edge contributes 2

Distributed Computing Through Combinatorial Topology

Page 65: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Odd Degrees

65

One external vertex

Even

n-simplexes with n+1 colors?

All the rest

Even number of odd degree vertexes

Distributed Computing Through Combinatorial Topology

Page 66: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Parity

66

One external vertex

Even number of odd degree vertexes

n-simplexes with n+1 colors? Even

Odd

Odd

Distributed Computing Through Combinatorial Topology

Page 67: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Parity

67

One external vertex

Even number of odd degree vertexes

n-simplexes with n+1 colors? Even

Odd

Odd

QED Distributed Computing Through

Combinatorial Topology

Page 68: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

No Manifold Task can solve n-Set Agreement

68

Assume protocol exists: Run manifold task protocol

Choose value based on vertex

Idea: Color vertex with “winning”

process name …

Distributed Computing Through Combinatorial Topology

Page 69: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Distributed Computing Through Combinatorial Topology

69

Manifold Task for n-Set Agreement

manifold

Only P wins

Only Q and R win

Sperner coloring

Page 70: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

70

Manifold Task for n-Set Agreement

manifold

Sperner coloring

Distributed Computing Through Combinatorial Topology

Page 71: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

71

Manifold Task for n-Set Agreement

manifold

Sperner coloring

n+1 colors

Contradiction: at most n can win

Execution with n+1 winners

Distributed Computing Through Combinatorial Topology

Page 72: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Road Map

72

Manifolds

Sperner’s Lemma and k-Set Agreement

Immediate Snapshot Model

Weak Symmetry-Breaking

Separation results

Distributed Computing Through Combinatorial Topology

Page 73: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Weak Symmetry-Breaking

73 Group 0 Group 1

If all processes participate …

At least one process in each group

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
Weak symmetry-breaking requires breaking processes into two groups.
Page 74: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Weak Symmetry-Breaking

74 Group 0 Group 1

If fewer participate …

we don’t care.

Distributed Computing Through Combinatorial Topology

Presenter
Presentation Notes
Weak symmetry-breaking requires breaking processes into two groups.
Page 75: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Anonymous Protocols

75

Trivial solution: choose name parity

WSB protocol should be anonymous

Output depends on … Input … Interleaving …

But not name

Restriction on protocol, not task!

Page 76: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Road Map

76

Manifolds

Sperner’s Lemma and k-Set Agreement

Immediate Snapshot Model

Weak Symmetry-Breaking

Separation results

Page 77: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Next Step

77

Construct manifold task that solves weak-symmetry-breaking

Because it is a manifold, it cannot solve n-set agreement

Separation: n-set agreement is harder than WSB

Distributed Computing Through Combinatorial Topology

Page 78: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

A Simplex

78 Distributed Computing Through Combinatorial Topology

Page 79: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Standard Chromatic Subdivision

79 Distributed Computing Through Combinatorial Topology

Page 80: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Glue Three Copies Together

80 Distributed Computing Through Combinatorial Topology

Page 81: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Glue Opposite Edges

81 Distributed Computing Through Combinatorial Topology

Page 82: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

The Moebius Task

82 Distributed Computing Through Combinatorial Topology

Page 83: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Defines a Manifold Task

83 Distributed Computing Through Combinatorial Topology

boundary boundary

boundary

Page 84: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Manifold Task

84 Distributed Computing Through Combinatorial Topology

Note Sperner coloring on boundary

boundary boundary

boundary

Page 85: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Terminology

85 Distributed Computing Through Combinatorial Topology

Each face has a central simplex

1-dim

2-dim

Page 86: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Subdivided Faces

86 Distributed Computing Through Combinatorial Topology

external

internal internal

Page 87: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Black-and-White Coloring (I)

87 Distributed Computing Through Combinatorial Topology

Central 2-simplex:

White near external face

Black elsewhere

Page 88: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Black-and-White Coloring (II)

88 Distributed Computing Through Combinatorial Topology

Black

Central simplex of external face:

Page 89: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Black-and-White Coloring (III)

89 Distributed Computing Through Combinatorial Topology

All others

White

Page 90: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Moebius Solves WSB

90 Distributed Computing Through Combinatorial Topology

Page 91: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Moebius Solves WSB

91 Distributed Computing Through Combinatorial Topology

Page 92: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Moebius Solves WSB

92 Distributed Computing Through Combinatorial Topology

Every n-simplex has both black & white colors.

Boundary coloring is symmetric!

Page 93: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

General Construction

93

n+1 “copies” »0, … »n of IS(¾)

»0 »n …

»1

(picture not exact!)

n = 2N

Distributed Computing Through Combinatorial Topology

Page 94: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

General Construction

94

»0 »i-1 …

n = 2N »i

»i+1

Face i is external

»k … …

»n

Distributed Computing Through Combinatorial Topology

Page 95: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Distributed Computing Through Combinatorial Topology

General Construction

95

»0 »i-1 …

n = 2N »i

»i+1

Face i is external

»k … …

»n

2N others

Page 96: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Distributed Computing Through Combinatorial Topology

General Construction

96

»0 »i-1 …

n = 2N »i

»i+1 »k … …

»n

Identify Faces j

Rank j+N out of 2N

Face i is external

Page 97: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Distributed Computing Through Combinatorial Topology

General Construction

97

»0 »i-1 …

n = 2N »i

»i+1 »k … …

»n

Symmetric!

Rank j+N out of 2N

Face i is external

Why it’s a (non-orientable)

manifold Why it works only for even dimensions

Page 98: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Open Problem

98

Generalize to odd dimensions …

or find counterexample.

Distributed Computing Through Combinatorial Topology

Page 99: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Black-and-White Coloring (I)

99 Distributed Computing Through Combinatorial Topology

Central n-simplex:

White near external face

Black elsewhere

Page 100: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Black-and-White Coloring (II)

100 Distributed Computing Through Combinatorial Topology

Black

Central m-simplexes of external face for

m > 0

Page 101: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Black-and-White Coloring (III)

101 Distributed Computing Through Combinatorial Topology

All others

White

Page 102: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

No Monochromatic n-simplexes

102 Distributed Computing Through Combinatorial Topology

Central n-simplex By construction

Page 103: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

No Monochromatic n-simplexes

103 Distributed Computing Through Combinatorial Topology

Intersects internal face Black at n-center

White at edge

Page 104: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

No Monochromatic n-simplexes

104 Distributed Computing Through Combinatorial Topology

Intersects external face White at n-center

Black at m-center, 0 < m < n

Page 105: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Progress

105 Distributed Computing Through Combinatorial Topology

Weak Symmetry-Breaking

Moebius Task no

yes

Set Agreement

Page 106: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Next Step

106 Distributed Computing Through Combinatorial Topology

Weak Symmetry-Breaking

Moebius Task no

yes

Anonymous Set Agreement

Page 107: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

107

Group 1

Choose name with anonymous

n-Set agreement

My name written? Group 0

no

· n+1

Write name

Read names

yes

Set Agreement ⇒ WSB

Distributed Computing Through Combinatorial Topology

Page 108: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Choose name with anonymous

n-Set agreement Proof

108

Group 1

My name written? Group 0

no

· n+1

Write name

Read names

yes

Set Agreement ⇒ WSB

If all n+1 participate … First name written

joins Group 0 Some name not chosen, it joins

Group 1 Distributed Computing Through

Combinatorial Topology

Page 109: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Choose name with anonymous

n-Set agreement Proof

109

Group 1

My name written? Group 0

no

· n+1

Write name

Read names

yes

Set Agreement ⇒ WSB

Protocol is anonymous … Because we use anonymous

set agreement “black box” (Any set agreement protocol can be

made anonymous)

Distributed Computing Through Combinatorial Topology

Page 110: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Conclusions

110

Some tasks harder than others …

n-set agreement solves weak-symmetry breaking

But not vice-versa

Distributed Computing Through Combinatorial Topology

Page 111: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

Remarks

111

Combinatorial and algorithmic arguments complement one

another Combinatorial: what we can’t do

Algorithmic: what we can do

Distributed Computing Through Combinatorial Topology

Page 112: Algebraic Topology and Distributed Computingcs.brown.edu/courses/cs2951s/Ch09.pdfSimplicial Complex . Distributed Computing Through 5 Combinatorial Topology . A simplicial complex

112

This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.

• You are free: – to Share — to copy, distribute and transmit the work – to Remix — to adapt the work

• Under the following conditions: – Attribution. You must attribute the work to “Distributed Computing through

Combinatorial Topology” (but not in any way that suggests that the authors endorse you or your use of the work).

– Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license.

• For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to

– http://creativecommons.org/licenses/by-sa/3.0/. • Any of the above conditions can be waived if you get permission from

the copyright holder. • Nothing in this license impairs or restricts the author's moral rights.

Distributed Computing through Combinatorial Topology