07.01.2013 Views

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

318 Christophe Gaston and Dirk Seifert<br />

that is<br />

0 ≤ xc(da(db + dc − xc)+db(dc − xc)+dc(dc − xc))<br />

But this follows immediately from the fact that 0 ≤ xc ≤ dc.<br />

Lemma 11.14. Let D = D1 ∪···∪Dn. Thenf(D) ≥ f (D1,...,Dn).<br />

Proof. Proof by <strong>in</strong>duction on n. The base case, n = 1 is trivial. Now assum<strong>in</strong>g<br />

that<br />

we want to show that<br />

D = D1 ∪···∪Dk ⇒ f (D) ≥ f (D1,...,Dk ),<br />

D ′ = D1 ∪···∪Dk+1 ⇒ f (D) ≥ f (D1,...,Dk+1).<br />

S<strong>in</strong>ce D ′ = D ∪ Dk+1, from Lemma 11.13 we deduce f (D ′ ) ≥ f (D, Dk+1).<br />

Now from the def<strong>in</strong>ition of f , f (D, Dk+1) =f (D)f (Dk+1). We deduce f (D ′ ) ≥<br />

f (D)f (Dk+1). From the <strong>in</strong>ductive hypothesis, we can write f (D) ≥ f (D1,...,Dk ).<br />

Thus we deduce f (D ′ ) ≥ f (D1,...,Dk )f (Dk+1). From the def<strong>in</strong>ition of f we<br />

conclude f (D ′ ) ≥ f (D1,...,Dk+1).<br />

We now prove Theorem 11.11. Assume C1 properly covers C2 for a program P<br />

and model M . Let us denote SDC1(P, M )={D 1 1 ,...,D 1 m} and SDC2(P, M )=<br />

{D 2 1 ,...,D 2 n }.LetM = {D 1 1,1 ,...D 1 1,k1 ,...,D 1 n,1 ,...D 1 } be a set such that<br />

n,kn<br />

such that M⊆SDC1(P, M )andD2 i = D 1 i,1 ∪···∪D 1 for i ∈{1,...,n}.<br />

i,ki<br />

From the def<strong>in</strong>ition of f we can write<br />

f (D 2 1 ,...,D 2 n)= �<br />

f (D 2 i ).<br />

From Lemma 11.14, we have<br />

�<br />

f (D 2 �<br />

i ) ≥<br />

i≤n<br />

i≤n,<br />

�<br />

i≤n<br />

j ≤k i ,<br />

S<strong>in</strong>ce for all i ≤ m we have f (D 1 i ) ≤ 1, we deduce:<br />

�<br />

Thus we deduce:<br />

We conclude the proof:<br />

f (D 1 i,j ).<br />

f (D<br />

j ≤ki ,<br />

1 i,j ) ≥ f (D 1 1 ,...,D 1 m ).<br />

f (D 2 1 ,...,D 2 n ) ≥ f (D 1 1 ,...,D 1 m ).<br />

M2(C1, P, M ) ≥ M2(C2, P, M ).<br />

(C) Does C1 properly cover C2 imply M3(C1, P, M , 1) ≥ M3(C2, P, M , n)where<br />

n = |SDC 1 (P,M )|<br />

|SDC2 (P,M )| ?

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!