The swap changes both values and their positions. Try absorbing the index into each entry.
For an array , write
For adjacent entries at positions , their ranks satisfy . The reversible operation changes these ranks as
The shift by two suggests viewing an operation as changing the order of deleting two points.