Is this correct, for weakest pre-condition respectively strongest post-condition?
{P} x = x-x; {x'=x}
P: x = 0
{true} y = y-y; {Q}
Q: y = 0
Edit:
I started by applying this as follows:
{true} y = y - y {Q} ==> sp(y = y-y; true) = ∃x,y = x-x ∧ true
Now I'm not sure what to do with this; In my mind "y = 0" would make most sense, but that doesn't seem correct.