• 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!
30
0
0

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

Hele teksten

(1)

Simplicial models for trace spaces

Martin Raussen

Department of Mathematical Sciences Aalborg University

Denmark

Applied Algebraic Topology FIM, ETH Zürich 8.7.2011

(2)

Content

Higher Dimensional Automata: Examples ofstate spaces and associatedpath spaces

Motivation: Concurrency

A simple case: State spaces and path spaces related to linear PV-programs

Tool: Cutting up path spaces intocontractiblesubspaces Homotopy type of path space described by amatrix poset categoryand realized by aprodsimplicial complex

Algorithmics: Detectingdeadandalive subcomplexes/matrices

Outlook: How to handlegeneral HDA.

(3)

Intro: State space and trace space

Problem: How are they related?

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

State space= a 3D cube~I3\F

minus 4 box obstructions

Path space modelcontained in a torus(2)2

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

(4)

Intro: State space and trace space

Pre-cubical set as state space

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

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

Path spacemodel:

Prodsimplicial complex contained in torus(∂∆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 hole:

2D torus∂∆2×∂∆2with a rectangle∆1×1removed

Path spacemodel:

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

(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/abstractionPi : . . .PRj. . .VRj. . . (E.W. Dijkstra) P: pakken;V: vrijlaten

(7)

A geometric model: Schedules in "progress graphs"

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 ann-cube In:

Hole= isothetic hyperrectangle

Ri =]ai1,b1i[× · · · ×]ain,bni[,1i l, in ann-cube:

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

Xinherits a partial order from~In.

More general (PV)-programs:

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

Holes have then the formp1i((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

the interesting spaces 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).

Adihomotopyon~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: Covers of X and of ~ P ( X )( 0, 1 )

by contractible or empty subspaces

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

Xj1,...,jl ={xX| ∀i:xji aij

i∨ ∃k:xkbik}

={xX| ∀i:xbi xjiaij

i}, 1ji n.

Examples:

A cover:

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

1≤j1,...,jl≤n

~P(Xj1,...,jl)(0,1).

(11)

More intricate subspaces as intersections

either empty or contractible Definition

6=J1,. . .,Jl ⊆[1:n]:

XJ1,...,Jl = \

ji∈Ji

Xj1,...,jl

= {xX| ∀i,jiJi :xbixjiaij

i}

Theorem

Every path space~P(XJ1,...,Jl)(0,1)is eitheremptyor contractible.

Proof.

relies on: SubspacesXJ1,...,Jl areclosed under= l.u.b.

Question:

For whichJ1,. . .,Jl ⊆[1:n]is~P(XJ1,...,Jl)(0,1)6=?

(12)

Combinatorics: Bookkeeping with binary matrices

Binary matrices

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

Correspondences

Index sets Matrix sets (P([1:n]))l Ml,n

J= (J1,. . .,Jl) 7→ MJ = (mij), mij=1jJi

JM M JiM={j|mij =1} l-tuples of subsets6= Ml,nR

{(K1,. . .,Kl)|[1:n] =GKi} ↔ Ml,nC

Question rephrased

XM :=XJM, ~P(XM)(0,1) =~P(XJM)(0,1)6=∅?

(13)

A combinatorial model and its geometric realization

First examples

Combinatorics: poset category –

C(X)(0,1)⊆Ml,nRMl,n JM ∈ C(X)(0,1)

Topology:prodsimplicial complex

T(X)(0,1)⊆(n1)l

|JJ11|−1× · · · ×|JJl|−1

l

T(X)(0,1)

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

First examples

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)

(14)

Further examples

State spaces and “alive” matrices

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. Many more examples in Goubault’s talk!

(15)

Homotopy equivalence between trace space

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

Theorem

~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) =|JJ1|−1

1 × · · · ×|JJl|−1

l =JM,

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.

(16)

Why prodsimplicial?

rather than simplicial

We distinguish, for every obstruction,setsJi of restrictions.

A joint restriction is of typeJ1× · · · ×Jl, and not an arbitrary subset of[1:n]l.

Prodsimplicial and simplicial model (nerve of category) have the same number ofvertices (≤nl)anddimension (≤(n−1)(l−1)−1).

The number of cells is of different orders:

prodsimplicial 2nl simplicial 2(nl)

(17)

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 etal

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 CrHom etc) to calculate thehomologygroups of these chain complexes even for very big complexes.

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: Goubault etal.

Even when “exponential explosion” prevents precise calculations, inductive determination (round by round) of general properties ((simple) connectivity) may be possible.

(18)

Detection of dead and alive subcomplexes

An algorithm starts with deadlocks and unsafe regions!

Allow less = forbid more!

RemoveextendedhyperrectanglesRij

:= [0,bi1[× · · · ×[0,bij−1[×]aij,bij[×[0,bij+1[× · · · ×[0,bni[⊃Ri.

XM =X\ [

mij=1

Rji.

Theorem

The following are equivalent:

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

2 There is a map i :[1:n]→[1:l]such that mi(j),j =1aand such thatT1≤j≤nRij(j) 6=∅– giving rise to adeadlock unavoidable from0.

acorresponding to a matrixM(i)Ml,nC withM(i)M

(19)

Partial orders and order ideals on matrix spaces

and an order preserving decision mapΨ

Dead or alive?

ConsiderΨ:Ml,nZ/2, Ψ(M) =1⇔~P(XM)(0,1) =. Ψ isorder preserving, in particular:

Ψ1(0),Ψ1(1)are closed in opposite senses:

M ≤N :Ψ(N) =0⇒Ψ(M) =0;Ψ(M) =1⇒Ψ(N) =1 (thusT(X)(0,1)prodsimplicial).

Ψ(M) =1⇔∃N ∈Ml,nC such thatN≤M,Ψ(N) =1 D(X)(0,1) ={N ∈Ml,nC|Ψ(N) =1}–dead

C(X)(0,1) ={M ∈Ml,nR|Ψ(M) =0}–alive

(20)

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).

Dmin(X)(0,1)=D(X)(0,1)∩Ml,nC minimaldead matrices.

Connection: M ∈ Cmax(X)(0,1),M ≤N a succesor (a single 0 replaced by a 1)⇒N ∈Dmin(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.

(21)

Dead matrices in D

min

( X )( 0, 1 )

Inequalities decide

Decisions: Inequalities

Enough to decide among thelnmatrices inMl,nC. A matrixM ∈Ml,nC is described by a (choice) map

i :[1:n]→[1:l],mi(j),j =1.

Deadlock algorithm inequalities:

M ∈D(X)(0,1)⇔aij(j) <bji(k)for all 1≤j,k ≤n.

Algorithmic organisation: Choice maps with thesame imagegive rise to the sameupperboundsbj.

(22)

From D ( X ) to C

max

( X )

Minimal transversals in hypergraphs (simplicial complexes)

Incremental search: comparisons

ConstructCmax(X)(0,1)incrementally (checking for one matrix N∈D(X)(0,1)at a time), starting with matrix1:

1 Ni+16≤M ∈ Ci(X)⇒M ∈ Ci+1(X);

2 Ni+1≤M ⇒M is replaced bynmatricesMj with one additional 0. Example: X =~In\~Jn.

Minimal transversals in a hypergraph

A matrix inD(X)(0,1)describes ahyperedgeon the vertex set[1:l]×[1:n];D(X)(0,1)describes ahypergraph.

Atransversalin a hypergraph is a vertex set that has non-empty intersection with each hyperedge.

Complements of minimal transversals correpond to matrices inCmax(0,1)– algorithms well-developed.

(23)

Extensions

1. Obstruction hyperrectangles intersecting the boundary ofIn - Components

More general linear semaphore state spaces

More general semaphores (intersection with the boundary ofInallowed)

ndining philosophers: Trace space has 2n−2 components Different end points:~P(X)(c,d)and iterative calculations Endcomplexesrather than end points (allowing processes not to respond..., Herlihy & Cie)

Same technique, modification of definition and calculation ofC(X)(−,−),D(X)(−,−)etc. ; cf preprint, submitted.

State space components

New light on definition and determination ofcomponentsof model spaceX.

(24)

Extensions

2a. Semaphores corresponding tonon-linearprograms:

Path spaces in product of digraphs Products of digraphs instead 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).

(25)

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)(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 one-fold delooping ofΓ\F.

(26)

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 in simpler pieces.

Trouble: Simpler pieces may havehigher order branch points.

(27)

Extensions

3b. Path spaces for HDAs without d-loops Non-branching complexes

Start with complex without directed loops: After finally many iterations: SubcomplexY withoutbranch points.

Theorem

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

Proof.

Such a subcomplex has a preferred diagonal flow and a contraction from path space to the flow line from start to end.

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

Theorem

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

(28)

Extensions

3c. Path spaces for HDAs with d-loops

Delooping HDAs

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

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

Definesl:P(X)(x0,x1)→Randl] :π1(X)→Rwith kernelK. The (usual) coveringX˜ ↓X withπ1(X˜) =K is adirected pre-cubical complexwithoutdirected 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

(29)

To conclude

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

Calculations of invariants (Betti numbers) possible even for quite large state spaces.

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?

(Connection to the work of Herlihy and Rajsbaum)

(30)

Want to know more?

Thank you!

Eric Goubault’s talk this afternoon!

References

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

MR,Execution spaces for simple higher dimensional automata, Aalborg University Research Report R-2010-14;

submitted

MR,Simplicial models for trace spaces II: General HDA, Draft.

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, submitted.

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

Thank you for your attention!

Referencer

RELATEREDE DOKUMENTER

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

● Løsningen skulle være mere fleksibel for at den kunne være brugbar i forhold til en meget varieret brugergruppe bestående af både fysisk og psykisk udviklingshæmmede, og hvor

Danish Building Research Institute, Aalborg University, Denmark Centre for Environmental and Marine Studies, Aveiro University, Portugal Danish Centre for Environment and

When analyzing machine listening as a socio-technical network, we fi nd different kinds of spaces folded together: the three-dimensional physical space of the ambiences where

In this theoretically oriented article (see e.g. Weaver-Hightower 2003; Smith, Killgore, &amp; Lane 2018), targeting an audience interested in pedagogic development in HE, our aim

This section presents a new stubborn set method for determining whether from all reachable markings it is possible to reach a marking where a given state property holds.. This can

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