Module Import PosSort := Sort PosOrder.
Definition OCPAux {n : nat} (cp : cartesianPower positive (S (S n))) := (PosSort.sort (CPToList cp)).
Definition OCP {n : nat} (cp : cartesianPower positive (S (S n))) : cartesianPower positive (S (S n)).

Lemma OCPPerm {n : nat} :
forall (cp : cartesianPower positive (S (S n))),
Permutation.Permutation (CPToList cp) (CPToList (OCP cp)).