• Keine Ergebnisse gefunden

• true, fail ∈ ∆

N/A
N/A
Protected

Academic year: 2021

Aktie "• true, fail ∈ ∆"

Copied!
4
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Constraint Signature: (Σ, ∆, Σ

0

, ∆

0

) with

• true, fail ∈ ∆

0

and = ∈ ∆

2

• Σ

0

⊆ Σ and ∆

0

⊆ ∆

• ∆

0

does not contain true, fail, or =

Constraints: At(Σ

0

, ∆

0

, V ) ∪ At(Σ, {=}, V) ∪ {true, fail}

Example: Σ

0

= Σ

FD

, ∆

0

= ∆

FD

with Σ

00

= ZZ

Σ

01

= {−, abs}

Σ

02

= {+, −, ∗, /, mod, min, max}

02

= {#>=, #=<, #=, #\=, #>, #<}

40

(2)

fact(0,1).

fact(X,Y) :- X #> 0, X1 #= X-1, fact(X1,Y1), Y #= X*Y1.

fac(0,1).

fac(X,Y) :- X > 0, X1 is X-1, fac(X1,Y1), Y is X*Y1.

41

(3)

add(X,0,X).

add(X,s(Y),s(Z)) :- add(X,Y,Z).

(¬add(s(0),s(0),U),∅)

`P (¬add(s(0),0,Z),{X/s(0),Y/0,U/s(Z)})

`P (2,{X0/s(0),Z/s(0)} ◦ {X/s(0),Y/0,U/s(Z)}

| {z }

{X0/s(0),Z/s(0),X/s(0),Y/0,U/s(s(0))}

)

(¬add(s(0),s(0),U),true)

`P (¬add(X,Y,Z),add(s(0),s(0),U) = add(X,s(Y),s(Z)))

`P (2,add(X,Y,Z) = add(X0,0,X0)∧add(s(0),s(0),U) = add(X,s(Y),s(Z)))

(¬add(s(0),s(0),U),true)

`P (¬add(X,Y,Z),add(s(0),s(0),U) = add(X,s(Y),s(Z))

| {z }

s(0)=Xs(0)=s(Y)U=s(Z)

)

`P (2,add(X,Y,Z) = add(X0,0,X0)

| {z }

X=X0Y=0Z=X0

∧s(0) =X ∧ s(0) = s(Y) ∧ U= s(Z))

42

(4)

There is acomputation step(G1,CO1)`P (G2,CO2) iff

G1={¬A1, . . . ,¬Ak} withk ≥1 and one of (A) or (B) holds:

(A) SomeAi is not a constraint. Then:

there exists aK ∈ P withν(K) ={B,¬C1, . . . ,¬Cn}such that ν(K) has no common variables withG1orCO1

CT∪ {∀X X =X,true} |=∃(CO1∧Ai=B) G2={¬A1, . . . ,¬Ai−1,¬C1, . . . ,¬Cn,¬Ai+1, . . . ,¬Ak} CO2=CO1∧Ai=B

(B) SomeAi is a constraint. Then:

CT∪ {∀X X =X,true} |=∃CO1∧Ai

G2={¬A1, . . . ,¬Ai−1,¬Ai+1, . . . ,¬Ak} CO2=CO1∧Ai

P[[P,CT,G]] ={σ(A1∧. . .∧Ak)|(G,true)`+P (2,CO), σis ground substitution with CT∪ {∀X X =X,true} |=σ(CO)}

43

Referenzen

ÄHNLICHE DOKUMENTE

In the upper Belize River valley, the coalescence of a social boundary by the Late Classic period is marked by (1) the proliferation of symbols linked to complex net- works

Taanis ollakse seisukohal, et teaduse toorandmete säilitamine peaks olema reguleeritud keskselt riigi tasandil ning neid peaks säilitama ühtses rahvuslikus (või rahvusvahelises)

In this paper we shall not use time explicitly as a control variable but shall seek the causal factor that directly leads to changes in system dynamics3. This is the proxiroate

[r]

Comparing the obtained multiple load path designs (see Fig. 17) to a cantilever design optimized without failure (see Fig. 8), it is observed that the worst-case stress and FSF can

Die Instruktion check i überprüft, ob die (ungebundene) Variable oben auf dem Keller innerhalb des Term vorkommt, an den die Variable i gebunden ist.. Ist dies der Fall,

The inability of Arab societies to make a transition from authoritarian political systems to democratic ones has been explained in two ways: (1) as a result of religious and cultural

There are those that significantly and continuously under-perform, lurching from crisis to crisis, a roller coaster of political and economic collapse, but do not explode into