So let's get this straight... iTunes will allow you to replace a pirated copy of your music with an official download, presumably identifying the original track based on audio fingerprinting and/or file hashes.
I can't think of any way in which this could be designed not to be broken. I'm expecting people will quickly figure out a way to trade hashes/fingerprints, bypassing the requirement to even bother downloading a pirated copy. Or maybe if the threshold is low enough we'll get a Shazam-like app - that records snippets of music then presents them to iTunes as a ripped track for replacing with a HQ version.