--- id: QuantumQutritSecretSharingExplicitDecoder language: en section: quantum-physics source: Verification/QuantumQutritSecretSharingExplicitDecoder.lean source_sha256: fa7f46e47baea5f6c7c1f02f8bdce1bfbd517a7767826350c99939b267fa0447 novelty: not-assessed status: reviewed --- # Explicit unitary decoder for qutrit two-of-three secret sharing [Section](../quantum-physics/README.md) · [Lean](../../Verification/QuantumQutritSecretSharingExplicitDecoder.lean) ## Explicit permutation and tensor convention This module uses the fixed 27-by-3 code and cyclic regroupings of module 189. q=0 retains BC and loses A; q=1 retains CA and loses B; q=2 retains AB and loses C. Each pair has dimension 9, with finProdFinEquiv ordering. D|u,v> = |v-u,2v-u>, (s,t) -> (t-2s,t-s) All arithmetic is in Fin 3. decodeCoordinates and encodeCoordinates are proved mutual inverses. decoderEquiv packages the explicit finite bijection. decoder is its permutation matrix: entry (y,x) is 1 iff y=decoderEquiv x. decoder_basis fixes the column-action convention. Both D†D=I_9 and DD†=I_9 are proved directly. No spectral certificate or chosen recovery defines D. ## Full-state factorization liftedDecoder is D tensor I_3 in the flat ((logical,auxiliary),lost) order. separatedCode has entries amplitude when logical output equals logical input and the auxiliary and lost labels agree, and zero otherwise. Thus its columns are |s> tensor |Omega_3>, with the normalized maximally entangled state from module 187. decoder_code proves liftedDecoder * groupedCode q=separatedCode for all three erased positions. factorized X represents X tensor |Omega_3>