Suppose we are given information about distributions of random permutations σ,τ:Ω→Sn as follows:
pk,l1=P(σ(k)=l),pk′,l′2=P(τ(k)=l),pk,k′1,2=P(σ(k)=τ(k′)),
for any k,l,k′,l′≤n.
We want to construct a "joint distribution", i.e. a tensor Q∈Rn×n×n×n with the interpretation
Qk,lk′,l′=P(σ(k)=l,τ(k′)=l′).
You may forget about probability now if you like. The actual marginal distributions P(σ=π) and P(τ=π) are in fact not given and can be whatever you like as long as they satisfy the above equations.