Pospaces, Local pospaces

Recap: every program in our setting is comprised of sequential processes (P1,,Pn) that are turned into a control flow graph (G1,,Gn)

μ: multi-instruction, admissibility depends on the state of the abstract machine

A point is a tuple of arrows and vertices (e.g. (,,,,))

From (,,):

  • you can either go to the end of some arrows: e.g. (,,)

  • or go to an outgoing of some of the points: e.g. (,,)

A directed path γ is turned into a sequence of instructions

γ=μ0μq
  • μ0 is admissible in the state σ
  • μ1 is admissible in the state σμ0
  • and so on…

Admissibility tell nothing as to whether you respect the branching conditions. E.g. in the state σ:x=3, you may follow the (conditional) arrow x=0 instead of the the x0 one. It is admissible, but it doesn’t correspond to a trace.

Problem:

admissibility depends on the state of the abstract machine

so what we would like to do: to remove some points in the model, so that every path is admissible (we could get rid of that state dependency) ⟹ add new constraints

Goal: knowing how many resources are held by the program just by looking at the position of the process pointer

Ex where it’s impossible to decide that:

%3 ->⋅ P(a) P(a) ⋅->P(a) P(a)->⋅

Potential function the amount of resources held by

%11 | 0 | 0 ⋅ |0 ⋅ |0 | 0->⋅ |0 0 P(a) | 1 P(a) | 1 ⋅ |0->P(a) | 1 0 V(a) | 0 V(a) | 0 P(a) | 1->V(a) | 0 1 V(a) | 0->⋅ |0 0

(we jot it down on the arrows too)

Directed paths

π={ points }{forbidden}

Sequence of multi-instructions admissible

γ,γ: directed paths on π

γ,γ induce the same action on any initial state of the abstract machine

We would like to say that

γγ

Impossible to decide at compile time.

So we want to find another relation h that is decidable at compile time such that:

h

Warning: in Set, an iso is a mono and epi, but the converse is false (at least in Posets: consider the poset categories ({a,b},=)) and ({0,1},):

f:{{a,b}{0,1}a0b1

f is injective and surjective, but not an iso, since 01, but we don’t have ab.


Homology: hard to define, easy to compute (at least for simplicial sets) Homotopy: easy/intuitive to define, hard to compute

Leave a comment