15.08.2013 Views

General Computer Science; Problems and Solutions for ... - Kwarc

General Computer Science; Problems and Solutions for ... - Kwarc

General Computer Science; Problems and Solutions for ... - Kwarc

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.

Problem 1.36 (Substitution)<br />

Apply the substitutions σ := [b/x], [(g(a))/y], [a/w] <strong>and</strong> τ := [(h(c))/x], [c/z] to the terms s :=<br />

f(g(x, g(a, x, b), y)) <strong>and</strong> t := g(x, x, h(y)) (give the 4 result terms σ(s), σ(t), τ(s), <strong>and</strong> τ(t)).<br />

Solution:<br />

σ(s) = f(g(a, f(b), g(a, a, b))) σ(t) = g(a, f(b), h(a))<br />

τ(s) = f(g(f(b), y, g(a, f(b), b))) τ(t) = g(f(b), y, h(c))<br />

37<br />

4pt Substitutions<br />

5min

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

Saved successfully!

Ooh no, something went wrong!