30.01.2013 Views

Logical Analysis and Verification of Cryptographic Protocols - Loria

Logical Analysis and Verification of Cryptographic Protocols - Loria

Logical Analysis and Verification of Cryptographic Protocols - Loria

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.

3.4. SYMBOLIC FORMALISATION 75<br />

with x1, x2, y1, y2 new variables (modulo the commutativity <strong>of</strong> ? =).<br />

PROOF.<br />

Let m1, m2, m3 ∈ T (Fh, X ) such that h(m1) = 1 HC h(m2) = 1 HC h(m3). If<br />

m1 =HAU t1 · f(t1, t2, t3, t4) · t2 then, by Lemma 17 we have<br />

� m2 =HAU t3 · g(t1, t2, t3, t4) · t4<br />

m3 =HAU t1 · f(t1, t2, t3, t4) · t2<br />

Let Sm1 = {m| h(m) =Hh h(m1)} then, by Lemma 17 we have Sm1 =<br />

{m| m =HAU m1} ∪ {m| m =HAU t3 · g(t1, t2, t3, t4) · t4}.<br />

We have σ |=Hh h(m) ? = h(m ′ ) that is h(mσ) =Hh h(m′ σ), <strong>and</strong> thus m ′ σ ∈ Smσ<br />

which implies that either mσ =HAU m′ σ <strong>and</strong> then σ |=HAU m ? = m ′ or mσ =HAU<br />

x1σ · f(x1σ, x2σ, y1σ, y2σ) · x2σ <strong>and</strong> m ′ σ =HAU y1σ �<br />

· g(x1σ, x2σ, y1σ, y2σ) · y2σ <strong>and</strong><br />

m ? = x1 · g(x1, x2, y1, y2) · x2, m ′ ? �<br />

= y1 · f(x1, x2, y1, y2) · y2 . �<br />

then σ |=HAU<br />

Lemma 19 Let E be a set <strong>of</strong> ground terms in normal form. If E → ∗ Ifree f(t1, t2, t ′ 1, t ′ 2)<br />

<strong>and</strong> f(t1, t2, t ′ 1, t ′ 2) /∈ Sub(E) then E → ∗ Ifree t1, t2, t ′ 1, t ′ 2.<br />

PROOF.<br />

We have E → ∗ Ifree f(t1, t2, t ′ 1, t ′ 2) that is, there exists a finite sequence<br />

<strong>of</strong> rewritings starting from E leading to f(t1, t2, t ′ 1, t ′ 2): E →Ifree E1 →Ifree<br />

. . . →Ifree En−1 →IAU En−1, f(t1, t2, t ′ 1, t ′ 2). By hypothesis, we have<br />

f(t1, t2, t ′ 1, t ′ 2) ∈ Sub(En) \ Sub(E). Let Ei be the smallest set in the derivation<br />

such that f(t1, t2, t ′ 1, t ′ 2) ∈ Sub(Ei) \ Sub(Ei−1) [i ≥ 1]. By LI free <strong>and</strong> Hfree, the<br />

rule applied in the step i <strong>of</strong> the derivation is x1, x2, y1, y2 → f(x1, x2, y1, y2). This<br />

implies that there exists a normal ground substitution σ such that ti = xiσ <strong>and</strong><br />

t ′ i = yiσ for i ∈ {1, 2} <strong>and</strong> t1, t2, t ′ 1, t ′ 2 ∈ Ei−1. We deduce that E → ∗ Ifree t1, t2, t ′ 1, t ′ 2.<br />

�<br />

Lemma 20 Let E ⊆ T (Fh) be a set <strong>of</strong> ground terms in normal form, <strong>and</strong> assume<br />

that E does not contain terms having the form f(t1, t2, t3, t4) or g(t1, t2, t3, t4) for some<br />

terms t1, . . . , t4. Let m1, m2 be two terms in T (Fh, X ) such that (h(m1) ? = h(m2)) is<br />

Hh-satisfiable. Let σ be a ground substitution which satisfies (h(m1) ? =Hh h(m2)). We<br />

have:<br />

E → ∗ IAU (m1σ)↓ if <strong>and</strong> only if E → ∗ IAU (m2σ)↓<br />

PROOF.<br />

By symmetry, it suffices to prove that E → ∗ IAU (m1σ)↓ implies E → ∗ IAU<br />

(m2σ)↓. Since σ |=Hh (h(m1) ? = h(m2)), by Lemma 18 we have two cases:<br />

• If σ |=HAU m1<br />

?<br />

= m2 then the result is obvious.

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

Saved successfully!

Ooh no, something went wrong!