Binary Codes with a Forbidden Distance
The maximum size of a t-intersecting code in the set of words of length n over an alphabet of size m was determined independently by Ahlswede and Khachatrian and by Frankl and Tokushige, resolving a problem posed by Frankl and Füredi. A code is t-intersecting if every two distinct words agree in at least t coordinates. Keevash, Lifshitz, Long and Minzer studied the weaker (t minus one)-avoiding condition and proved that, for m greater than two and n sufficiently large in terms of t, (t minus one)-avoiding codes have the same maximum size and extremal ball constructions as t-intersecting codes. They left the binary case open. We solve the binary case for all t at least three and n at least the square of the sum of t and one. If the forbidden Hamming distance n minus t plus one is odd, the maximum size of a (t minus one)-avoiding code strictly exceeds that of a t-intersecting code. If it is even, the two maxima coincide, but their extremal families differ: some maximum (t minus one)-avoiding codes are not t-intersecting. We also characterize all maximum (t minus one)-avoiding codes in the even case. For odd forbidden distances, a weight-parity construction and a fixed-point-free pairing determine the maximum size, while Kleitman's diameter theorem gives the comparison with t-intersecting codes. For even forbidden distances, parity splitting and coordinate deletion reduce the problem to avoiding two consecutive distances. A component decomposition and disjoint-neighbourhood arguments, together with Harper's vertex-isoperimetric theorem, yield the sharp upper bound attained by a t-intersecting construction. Frankl's equality characterization for the diameter theorem then identifies the extremal families, and elementary binomial estimates establish the stated range of n.