IsSelfComplementaryCode( code )
IsSelfComplementaryCode
returns true if
v in code Rightarrow 1 - v in code,
where 1 is the all-one word of length n.
gap> IsSelfComplementaryCode( HammingCode( 3, GF(2) ) ); true gap> IsSelfComplementaryCode( EvenWeightSubcode( > HammingCode( 3, GF(2) ) ) ); false
GAP 3.4.4