Personally, I prefer the following phrasing:

In theory, but not in practice, there exists no difference between theory and practice.