• Keine Ergebnisse gefunden

Constructing Galois Connections

N/A
N/A
Protected

Academic year: 2022

Aktie "Constructing Galois Connections"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Verifikation von C-Programmen

Vorlesung 6 vom 04.12.2014: Abstract Interpretation

Christoph Lüth Universität Bremen Wintersemester 2014/15

11.12.2014 1 [8]

Galois-Connections

LetL,Mbe lattices and

α:LM γ:ML

withα, γmonotone, thenhL, α, γ,Miis a Galois connection if

γ.αwλl.l (1)

α.γvλm.m (2)

2 [8]

Example of a Galois Connection

L=hP(Z),⊆i M=hInterval,vi γZI([a,b]) ={z∈Z|azb}

αZI(Z) =

(⊥ Z=∅ [inf(Z),sup(Z)] otherwise

3 [8]

Constructing Galois Connections

LethL, α, β,Mibe a Galois connection, andSbe a set. Then (i) SL,SMare lattices with functions ordered pointwise:

f vg ←→ ∀s.f svg s

(ii)hS→L, α0, γ0,SMiis a Galois connection with α0(f) =α.f γ0(g) =γ.g

4 [8]

Generalised Monotone Framework

AGeneralised Monotone Frameworkis given by I a latticeL=hL,vi

I a finite flowFLab×Lab I a finite set of extremal labelsEvLab I an extremal labelιLab

I mappingsf fromlab(F) toL×Landlab(E) toL This gives a set ofconstraints

A(l)wG

{A.(l0)|(l0,l)F} tιlE (3)

A.(l)wfl(A(l)) (4)

5 [8]

Correctness

LetRbe a correctness relationRV×L, andhL, α, γ,Mibe a Galois connection, then we can construct a correctness relationSV×Mby

v S m←→v Rγ(m)

On the other hand, ifB,Mis a Generalised Monotone Framework, and hL, α, γ,Miis a Galois connection, then a solution to the constraintsBv is a solution toAv.

This means: we can transfer the correctness problem fromLtoMand solve it there.

6 [8]

An Example

The analysisSSis given by the latticeP(State),vand given a statementS:

I flow(S)

I extremal labels areE={init(S)}

I the transfer functions (for Σ⊆State):

flSS(Σ) ={σ[x7→ A[[a]]σ]|σ∈Σ} if [x:=a]lis inS

flSS(Σ) = Σ if [skip]lis inS

flSS(Σ) = Σ if [b]lis inS

Now use the Galois connectionhP(State), αZI, γZI,Intervalito construct a monotone framework withhInterval,vi, with in particular

glIS(σ) =σ[x7→[i,j]] if [x:=a]linS, and [i,j] =αZI(A[[a]](γZI(σ)))

7 [8]

What’s Missing?

I Fixpoints: Widening and narrowing.

8 [8]

Referenzen

ÄHNLICHE DOKUMENTE

June 2, 2012: US, South Korea, and Japan agree to strengthen cooperation in deterring North Korean aggression at a meeting of senior defense ministers at the 11 th Asia

An n-cluster is a plane integral point set in general position that consists of n points such that there exists a representation using integer coordinates, i.e., lattice

After having established the quoted result for Floyd's algorithm, it is used for a derivation of the expected number of interchanges, and of comparisons, which

One of the most frustrating developments facing US alliance managers in Northeast Asia is the continuing tensions between Korea and Japan over insults and actions, real and perceived,

23, just nine days before Vice President Joe Biden’s planned visit to Japan, China, and South Korea, China’s Ministry of National Defense (MND) announced an East China Sea ADIZ..

June 1, 2013: Japanese Minister of Defense Onodera, Republic of Korea Minister of National Defense Kim Kwan-jin, and Defense Secretary Hagel meet on the margins of the Shangri La

“unprofessional,” and emphasized that cyber-crime is an international issue that can only be solved by “international cooperation on the basis of mutual trust and respect.” He

The 17 th Sino-Russian Prime Ministerial Regular Meeting was held in Moscow on Dec. 6 and was co-chaired by Wen Jiabao and Prime Minister Dmitry Medvedev. The occasion was quite