• Ingen resultater fundet

Intro: State space and trace space

N/A
N/A
Info
Hent
Protected

Academic year: 2022

Del "Intro: State space and trace space"

Copied!
29
0
0

Indlæser.... (se fuldtekst nu)

Hele teksten

(1)

Simplicial models for trace spaces

Martin Raussen

Department of Mathematical Sciences Aalborg University

Denmark

Applications of Combinatorial Topology to Computer Science

Schloss Dagstuhl March 2012

(2)

Table of Contents

Examples: State spacesand associatedpath spacesin Higher Dimensional Automata (HDA)

Motivation: Concurrency

Simplest case: State spaces and path spaces related tolinear PV-programs

Tool: Cutting up path spaces intocontractible subspaces

Homotopy type of path space described by amatrix poset categoryand realized by aprodsimplicial complex Algorithmics: Detectingdeadandalivesubcomplexes/matrices

Outlook: How to handlegeneral HDA

(3)

Intro: State space, directed paths and trace space

Problem: How are they related?

Example 1: State space and trace space for a semaphore HDA

State space:

a 3D cube~I3\F

minus 4 box obstructions pairwise connected

Path space modelcontained in torus(∂∆2)2

homotopy equivalent to a wedge of two circles and a point: (S1∨S1)t ∗

Analogy in standard algebraic topology

Relation between spaceX and loop spaceΩX.

(4)

Intro: State space and trace space

Pre-cubical set as state space

Example 2: State space and trace space for a non-looping pre-cubical complex

State space:Boundaries of two cubes glued together at common squareAB0C0

Path spacemodel:

Prodsimplicial complex contained in(∂∆2)2∂∆2– homotopy equivalent to S1∨S1

(5)

Intro: State space and trace space

with loops

Example 3: Torus with a hole

• • • •

• •

X

• •

• N • •

• • • •

State space with holeX: 2D torus∂∆2×∂∆2with a rectangle∆1×1removed

Path spacemodel:

Discrete infinite space of dimension 0 corresponding to{r,u}.

Question: Path space for a torus with hole in higher dimensions?

(6)

Motivation: Concurrency

Semaphores: A simple model for mutual exclusion Mutual exclusion

occurs, whennprocessesPi compete formresourcesRj.

Onlyk processes can be served at any given time.

Semaphores

Semantics: A processor has to lock a resource and to relinquish the lock later on!

Description/abstraction:Pi : . . .PRj. . .VRj. . . (E.W. Dijkstra) P: probeer;V: verhoog

(7)

A geometric model: Schedules in "progress graphs"

Semaphores: The Swiss flag example

00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111

000000000000000000 111111111111111111 00

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0

11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 1

Unsafe Un−

reachable

T1 T2

Pa Pb Vb Va

Pb Pa Va Vb

(0,0)

(1,1)

PV-diagram from P1 :PaPbVbVa

P2 :PbPaVaVb

Executions aredirected paths– since time flow is irreversible – avoiding a forbidden region(shaded).

Dipaths that aredihomotopic (through a 1-parameter deformation consisting of dipaths) correspond to equivalentexecutions.

Deadlocks, unsafeand unreachableregions may occur.

(8)

Simple Higher Dimensional Automata

Semaphore models The state space

Alinear PV-program is modeled as the complement of a forbidden regionFconsisting of a number ofholesin an n-cube:

Hole= isothetic hyperrectangle

Ri =]ai1,bi1[× · · · ×]ain,bin[⊂In,1il:

with minimal vertexai and maximal vertexbi. State spaceX =~In\F, F=Sli=1Ri

X inherits a partial order from~In. d-paths areorder preserving.

More general (PV)-programs:

Replace~Inby a productΓ1× · · · ×Γnofdigraphs.

Holes have then the formpi1((0,1))× · · · ×pni((0,1))with pij :~IΓj a directed injective (d-)path.

Pre-cubical complexes: like pre-simplicial complexes, with (partially ordered) hypercubes instead of simplices as building blocks.

(9)

Spaces of d-paths/traces – up to dihomotopy

Schedules Definition

X ad-space,a,b ∈X.

p:~I →X ad-pathinX (continuous and

“order-preserving”) fromatob.

~P(X)(a,b)={p:~I →X|p(0) =a,p(b) =1,pa d-path}.

Trace space~T(X)(a,b)=~P(X)(a,b)modulo increasing reparametrizations.

In most cases:~P(X)(a,b)'~T(X)(a,b).

Adihomotopyin~P(X)(a,b)is a mapH:~I×I →X such thatHt ∈~P(X)(a,b), t ∈I; ie a path in~P(X)(a,b).

Aim:

Description of thehomotopy typeof~P(X)(a,b)asexplicit finite dimensional prodsimplicial complex.

In particular: itspath components, ie the dihomotopy classes of d-paths (executions).

(10)

Tool: Subspaces of X and of ~ P ( X )( 0, 1 )

X =~In\F,F =Sli=1Ri;Ri = [ai,bi];0,1the two corners inIn.

Definition

1 Xij ={x ∈X|x ≤bi ⇒xj ≤aij}– directionj restricted at holei

2 M a binaryl×n-matrix:XM =Tm

ij=1Xij

Which directions are restricted at which hole?

Examples: 2 holes in 2D/ 1hole in 3D M=

1 0 1 0

1 0 0 1

0 1 1 0

0 1 0 1

M =

[100] [010] [001]

(11)

Covers by contractible (or empty) subspaces

Bookkeeping with binary matrices Binary matrices

Ml,n poset(≤) ofbinaryl×n-matrices Ml,nR, no rowvector is thezerovector Ml,nR,u every rowvector is aunitvector Ml,nC,u every columnvector is aunitvector

A cover:

~P(X)(0,1) = [

MMl,nR,∗

~P(XM)(0,1).

Theorem

Every path space~P(XM)(0,1),MMl,nR,, isemptyor

contractible. Which is which?

Proof.

SubspacesXM,MMl,nR,areclosed under= l.u.b.

(12)

A combinatorial model and its geometric realization

First examples Combinatorics poset category

C(X)(0,1)Ml,nR,∗ Ml,n M∈ C(X)(0,1)“alive”

Topology:

prodsimplicial complex T(X)(0,1)(n−1)l

M=m1× · · · ×ml T(X)(0,1)– one simplexmi

for every hole

~P(XM)(0,1)6=.

Examples of path spaces

1 0 1 0

1 0 0 1

0 1 1 0

0 1 0 1

T(X1)(0,1) = (∂∆1)2

=4∗

T(X2)(0,1) =3∗

⊃ C(X)(0,1)

(13)

Further examples

State spaces, “alive” matrices and path spaces

1 X =~In\~Jn

2

1 C(X)(0,1) =M1,nR,∗\ {[1,. . .1]}. T(X)(0,1) =∂∆n−1 'Sn−2.

2 Cmax(X)(0,1) =

{

0 1 1

0 1 1

,

1 0 1

1 0 1

,

1 1 0

1 1 0

}. C(X)(0,1) ={MMl,nR,∗| ∃N ∈ Cmax(X)(0,1):MN} T(X)(0,1) =3 diagonal squares⊂(∂∆2)2=T2

'S1.

(14)

Homotopy equivalence between trace space

~ T ( X )( 0, 1 ) and the prodsimplicial complex T ( X )( 0, 1 )

Theorem (A variant of the nerve lemma)

~P(X)(0,1)'T(X)(0,1)'∆C(X)(0,1).

Proof.

FunctorsD,E,T :C(X)(0,1)(op)Top:

D(M) =~P(XM)(0,1), E(M) =∆M,

T(M) =∗

colimD=~P(X)(0,1), colimE =T(X)(0,1), hocolimT =∆C(X)(0,1).

The trivial natural transformationsD ⇒ T,E ⇒ T yield:

hocolimD ∼=hocolimT∼=hocolimT ∼=hocolimE. Projection lemma:

hocolimD 'colimD, hocolimE 'colimE.

(15)

Why prodsimplicial?

rather than simplicial

We distinguish, for every obstruction,setsJi ⊂[1:n]of restrictions. A joint restriction is of product type

J1× · · · ×Jl ⊂[1:n]l, andnot an arbitrary subset of [1:n]l.

Simplicial model: a subcomplex of∆nl –2(nl) subsimplices.

Prodsimplicial model: a subcomplex of(n)l –2(nl) subsimplices.

(16)

From C ( X )( 0, 1 ) to properties of path space

Questions answered by homology calculations usingT(X)(0,1) Questions

Is~P(X)(0,1)path-connected, i.e., are all (execution) d-paths dihomotopic (lead to the same result)?

Determination ofpath-components?

Are componentssimply connected?

Other topological properties?

Strategies – Attempts

ImplementationofT(X)(0,1)in ALCOOL:

Progress at CEA/LIX-lab.: Goubault, Haucourt, Mimram The prodsimplicial structure onC(X)(0,1)T(X)(0,1) leads to an associatedchain complexof vector spaces over a field.

Use fast algorithms (eg Mrozek’s CrHom etc) to calculate thehomologygroups of these chain complexes even for very big complexes: M. Juda (Krakow).

Number of path-components:rkH0(T(X)(0,1)).

For path-components alone, there are faster “discrete”

methods, that also yield representatives in each path component.

(17)

Detection of dead and alive subcomplexes

An algorithm starts with deadlocks and unsafe regions!

Allow less = forbid more!

Removeextendedhyperrectangles Rji := [0,bi1[× · · · ×

[0,bji1[×]aij,bji[×[0,bij+1[× · · · × [0,bni[⊃Ri.

XM =X\Smij=1Rji.

Theorem

The following are equivalent:

1 ~P(XM)(0,1) = ⇔M6∈C(X)(0,1).

2 There is a “dead” matrix N ≤M,N ∈Ml,nC,u, such that T

nij=1Rji 6= – giving rise to adeadlockunavoidable from 0, i.e., T(XN)(0,1) =.

(18)

Dead matrices in D ( X )( 0, 1 )

Inequalities decide Decisions: Inequalities

Deadlock algorithm (Fajstrup, Goubault, Raussen) : Theorem

NMl,nC,udead

For all1jn, for all1kn such thatj0:nkj0=1:

nij =1aij<bkj.

MMl,nR,∗dead⇔ ∃NMl,nC,udead, N M.

Definition

D(X)(0,1):={PMl,n|∃NMl,nC,u,Ndead:NP}.

A cube with a cube hole X=~In\~Jn

D(X)(0,1) ={[1,. . .,1]}=M1,nC,u.

(19)

Maximal alive ↔ minimal dead

Still alive – not yet dead

Cmax(X)(0,1)⊂ C(X)(0,1)maximalalive matrices.

Matrices inCmax(X)(0,1)correspond tomaximal simplex productsinT(X)(0,1).

Connection: M ∈ Cmax(X)(0,1),M ≤N a succesor (a single 0 replaced by a 1)⇒N ∈D(X)(0,1).

A cube removed from a cube

X =~In\~Jn,D(X)(0,1) ={[1,. . .,1]}; Cmax(X)(0,1): vectors with a single 0;

C(X)(0,1) =Ml,nR \ {[1,. . .,1]}; T(X)(0,1) =∂∆n1.

(20)

Open problem: Huge complexes – complexity

l obstructions,nprocessors:

T(X)(0,1)is a subcomplex of(n1)l: potentially ahuge high-dimensionalcomplex.

Smaller models? Make use ofpartial orderamong the obstructionsRi, and in particular the inherited partial order among their extensionsRji with respect to⊆.

Consider onlysaturatedmatrices in the sense:

Rji1 ⊂Rij2,mi2j =1⇒mi1j =1.

Work in progress: yields simplicial complex of farsmaller dimension!

(21)

Open problem: Variation of end points

Conncection to MD persistence?

So far:~T(X)(0,1)-fixedend points.

Now: Variation of~T(X)(a,b)of start and end point, giving rise tofiltrations.

At which thresholds do homotopy types change?

Can one cut upX×X intocomponentsso that the homotopy type of trace spaces with end point pair in a component is invariant?

Birth and death of homology classes?

Compare with multidimensional persistence (Carlsson, Zomorodian): even more complex because ofdouble multi-filtration.

(22)

Extensions

1. Obstruction hyperrectangles intersecting the boundary ofIn - Components

More general linear semaphore state spaces

More general semaphores (intersection with the boundary

∂In ⊂Inallowed)

ndining philosophers: Trace space has2n−2 contractible components!

Different end points:~P(X)(c,d)and iterative calculations Endcomplexesrather than end points (allowing processes not to respond..., Herlihy & Cie)

State space components

New light on definition and determination ofcomponentsof model spaceX.

(23)

Extensions

2a. Semaphores corresponding tonon-linearprograms:

Path spaces in product of digraphs Products ofdigraphsinstead of~In: Γ=nj=1Γj, state spaceX = Γ\F,

F a product of generalized hyperrectanglesRi.

~P(Γ)(x,y) =~P(Γj)(xj,yj)–homotopy discrete!

Pullback to linear situation

Represent apath componentC ∈~P(Γ)(x,y)by (regular) d-pathspj ∈~P(Γj)(xj,yj)– an interleaving.

The mapc:~InΓ,c(t1,. . .,tn) = (c1(t1),. . .,cn(tn))induces ahomeomorphism◦c :~P(~In)(0,1)→C⊂~P(Γ)(x,y).

(24)

Extensions

2b. Semaphores: Topology of components of interleavings Homotopy types of interleaving components Pull backF viac:

X¯ =~In\F¯,F¯ =SR¯i,R¯i =c1(Ri)– honest hyperrectangles!

iX :~P(X),→~P(Γ).

Given a componentC⊂~P(Γ)(x,y).

The d-mapc : ¯XXinduces a homeomorphism c:~P(X¯)(0,1)→iX1(C)⊂~P(Γ)(x,y).

C“lifts toX”⇔~P(X¯)(0,1)6=; if so:

AnalyseiX1(C)via~P(X¯)(0,1).

Exploit relations between various components.

Special case:Γ= (S1)n– a torus

State space: A torus with rectangular holes inF: Investigated by Fajstrup, Goubault, Mimram etal.:

Analyse bylanguageon the alphabetC(X)(0,1)ofalive matrices for a delooping ofΓ\F.

(25)

Extensions

3a. D-paths in pre-cubical complexes

HDA: Directed pre-cubical complex

Higher Dimensional Automaton: Pre-cubical complex– like simplicial complex but withcubesas building blocks – with preferred diretions.

Geometric realizationX with d-space structure.

Branch points and branch cubes

These complexes havebranch pointsandbranch cells–more than onemaximal cell with same lower corner vertex.

At branch points, one can cut up a cubical complex into simpler pieces.

Trouble: Simpler pieces may havehigher order branch points.

(26)

Extensions

3b. Path spaces for HDAswithoutd-loops Non-branching complexes

Start with complexwithout directed loops: After finally many iterations: SubcomplexYwithout branch points.

Theorem

~P(Y)(x0,x1)isemptyorcontractible.

Proof.

Such a subcomplex has a preferreddiagonal flowand a contraction from path space to the flow line from start to end.

Branch category

Results in a (complicated) finitebranch categoryM(X)(x0,x1) on subsets of set of (iterated) branch cells.

Theorem

~P(X)(x0,x1)is homotopy equivalent to the nerve N(M(X)(x0,x1))of that category.

(27)

Extensions

3c. Path spaces for HDAswithd-loops

Delooping HDAs

A pre-cubical complex comes with anL1-length 1-formω reducing toω =dx1+· · ·+dxnon everyn-cube.

Integration:L1-length on rectifiable paths,homotopy invariant.

Definesl:P(X)(x0,x1)→Randl] :π1(X)→RwithkernelK. The (usual) coveringX˜ ↓X withπ1(X˜) =K is adirected pre-cubical complexwithout d-loops.

Theorem (Decomposition theorem)

For every pair of pointsx0,x1 ∈X , path space~P(X)(x0,x1)is homeomorphic to the disjoint unionFnZ~P(X˜)(x00,xn1)a.

ain the fibres overx0,x1

(28)

To conclude

From a (rather compact) state space model to afinite dimensional tracespace model.

Calculations ofinvariants(Betti numbers) of path space possible for state spaces of a moderate size.

Dimension of trace space model reflectsnotthesizebut thecomplexityof state space (number of obstructions, number of processors) –linearly.

Challenge: General properties of path spaces for algorithms solving types of problems in adistributed manner?

Connections to the work of Herlihy and Rajsbaum: protocol complex etc

Challenge: Morphisms between HDA d-maps between pre-cubical state spaces functorial maps between trace spaces. Properties? Equivalences?

(29)

Want to know more?

Thank you!

References

MR,Simplicial models for trace spaces, AGT10(2010), 1683 – 1714.

MR,Execution spaces for simple higher dimensional automata, to appear in Appl. Alg. Eng. Comm. Comp.

MR,Simplicial models for trace spaces II: General HDA, Aalborg University Research Report R-2011-11; submitted.

Fajstrup,Trace spaces of directed tori with rectangular holes, Aalborg University Research Report R-2011-08.

Fajstrup etal.,Trace Spaces: an efficient new technique for State-Space Reduction, to appear in Proceedings ESOP, 2012.

Rick Jardine,Path categories and resolutions, Homology, Homotopy Appl.12(2010), 231 – 244.

Thank you for your attention!

Referencer

RELATEREDE DOKUMENTER

Table of Contents Examples: State spaces and associated path spaces in Higher Dimensional Automata HDA Motivation: Concurrency Simplest case: State spaces and path spaces related

MR, Simplicial models for trace spaces II: General Higher Dimensional Automata, to appear in AGT 12, 2012.. Fajstrup, Trace spaces of directed tori with rectangular holes,

Table of Contents Agenda Examples: State spaces and associated path spaces in Higher Dimensional Automata HDA Motivation: Concurrency Simplest case: State spaces and path spaces

Table of Contents Agenda Examples: State spaces and associated path spaces in Higher Dimensional Automata HDA Motivation: from Concurrency Theory Simplest case: State spaces and

We have defined, in the case of transitions fusion, a modular state space, consisting of a synchronisation graph, the state spaces of the modules and the transition fusion

The main node of the trace graph is the node corresponding to the initial method in the program being analyzed (in a C program this would be the main function). Each trace graph

4 well it begins to look as if the black boxes were effortlessly gliding through space as a result of their own impetus‖ (1987, p. To trace black boxes that form around

The JET neutron profile monitor was used to simulta- neously measure the d – d and d – t neutron emission during discharges in which tritium was puffed in at the plasma edge..