arXiv:2610.30809cs.ITOct 2026

Manuscript Offprint

arXiv:2610.30809

An integer determinant approach to the length of Type II codes and the weights of shadows

Jae-Hyun Baek, Jon-Lark Kim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

It is well known that the length nn of a binary Type II code is divisible by 8. The classical proof relies on Gleason's theorem on weight enumerators. Motivated by a question of Vera Pless, we give elementary proofs of this fact that avoid invariant theory. Our main tool is a congruence modulo 8 for the determinant of the integer Gram matrix AA⊤AA^{\top} of a binary orthogonal matrix AA, obtained directly from the Leibniz expansion. It gives a short proof of a theorem of Janusz: the number of rows of weight congruent to 3 (mod 4) in a binary orthogonal matrix is divisible by 4. From this single statement we derive both the length restriction for Type II codes and the theorem of Conway and Sloane that every vector in the shadow of a binary self-dual code of length nn has weight congruent to n/2n/2 (mod 4). We also give two short character-theoretic proofs of the length restriction and explain how all of these arguments detect the Arf invariant of a quadratic form.

1 Introduction

A binary linear code C⊆F2n\mathcal{C} \subseteq \mathbb{F}_2^n is self-dual if C=C⊥\mathcal{C} = \mathcal{C}^\perp. It is doubly-even if every codeword has weight divisible by 4. A binary doubly-even self-dual code is called a Type II code.

Theorem 1.1 ([6]). If C⊆F2n\mathcal{C} \subseteq \mathbb{F}_2^n is a binary Type II code of length nn, then 8∣n8 \mid n.

Theorem 1.1 is the basic arithmetic constraint in the theory of Type II codes. The condition 8∣n8 \mid n is also sufficient: the [8,4,4][8, 4, 4] extended Hamming code e8e_8 is a Type II code, and so is the direct sum of n/8n/8 copies of e8e_8 for every n≡0(mod8)n \equiv 0 \pmod{8}. Thus Type II codes exist precisely at the lengths divisible by 8, and the main results on Type II codes are stated for these lengths.

Examples are the mass formula for the number of Type II codes of length n [11, Section 2] and the classification for small lengths: there are 1, 2, 9 and 85 inequivalent Type II codes of lengths 8, 16, 24 and 32, respectively [11, Table I], and 94343 of length 40 [2].

Another is the Mallows–Sloane bound d≤4⌊n/24⌋+4d \leq 4\lfloor n/24\rfloor + 4 on the minimum distance [11, Theorem 26]. Extremal Type II codes of length 24m, such as the [24, 12, 8] extended Golay code, have the further property that their codewords of each fixed weight form 5-designs [11, Theorem 36]. Finally, Type II codes are closely tied to even unimodular lattices through Construction A; for example, e8e_8 gives the E8E_8 lattice (see Section 6).

∗^{*}Corresponding author

The standard proof of Theorem 1.1 goes through Gleason's theorem [6]: the weight enumerator of a Type II code is a polynomial in the weight enumerators of the [8, 4, 4] extended Hamming code and the [24, 12, 8] extended Golay code, which are homogeneous of degrees 8 and 24. This argument determines the whole ring of possible weight enumerators, which is much more than the length restriction requires. In the early 2000s, Vera Pless used to ask the second author whether there was an elementary way to prove Theorem 1.1 (personal communication). This question motivates the present paper.

Our main observation is that Theorem 1.1 follows from an elementary congruence for integer Gram matrices (Sections 2). Let AA be a binary orthogonal matrix, regarded as a 0/1 integer matrix. Modulo 8, the Leibniz expansion of det⁡(AA⊤)\det(AA^\top) reduces to the identity and the transpositions, and the total entry sum of AA⊤AA^\top is controlled by the column weights of AA. Comparing the result with (det⁡A)2≡1(mod8)(\det A)^2 \equiv 1 \pmod{8} gives a short proof of a theorem of Janusz [8]: the number of rows of AA of weight ≡3(mod4)\equiv 3 \pmod{4} is divisible by 4 (Proposition 2.2). Applied to a generator matrix [Ik∣A][I_k \mid A] of a self-dual code, this single statement yields Theorem 1.1. It also yields the theorem of Conway and Sloane [4] that every vector in the shadow of a self-dual code of length nn has weight ≡n/2(mod4)\equiv n/2 \pmod{4} (Theorem 5.1); here the shadow has an explicit representative read off from the rows of AA.

For comparison, we also give two character-theoretic proofs of Theorem 1.1, one via a Gauss sum (Section 3) and one via the MacWilliams identity [9] evaluated at a single point (Section 4). All of these arguments detect the same obstruction, namely the Arf invariant of the quadratic form wt(x)/2 mod 2\mathrm{wt}(\mathbf{x})/2 \bmod 2 on the even-weight vectors (Remark 3.1). Some other arguments that avoid Gleason's polynomials can be found in the literature (see Section 1.1), but they rely on other machinery, such as spinor groups, the Witt–Arf theory of quadratic forms, or group-order computations in the orthogonal group. Our contribution is an elementary and unified route to these results. Section 6 contains concluding remarks.