Similar Items: Formalising the pi-calculus using nominal logic