Skip to content

Even code

A binary linear code in which every codeword has even Hamming weight; it is doubly even when all weights are divisible by four and strictly even when even but not doubly even.

Version
v2 · 2026-11-14 · History
Domain-specific #
9328
Domain group
Formal Sciences
Origin domain
Information Theory
Subdomains
Coding Theory, Binary Linear Codes → Information Theory

Core Idea

An even code is a binary linear code all of whose codewords have even Hamming weight. Because the code is linear, the condition can be checked on a generating set: sums of even-weight generators remain even. Equivalently, every codeword is orthogonal over F₂ to the all-ones vector, so the code lies inside the even-weight subspace. For a binary cyclic code, evenness corresponds to the generator polynomial having x+1 as a factor under the usual polynomial representation.

How would you explain it like I'm…

The Even-Switches Club

Imagine a secret language made of light switches that are on or off. In an Even code, every allowed message has an even number of switches turned on — 2, 4, 6, never 3. And if you mix two allowed messages together the right way, you still get an even number.

Even-Number-of-Ones Code

Computers send messages as strings of 0s and 1s, and codes are special sets of allowed strings that help catch mistakes. An even code is a code where every allowed string has an even number of 1s. These codes are 'linear,' meaning if you combine two allowed strings by adding each spot (where 1+1 makes 0), you get another allowed string. So you only need to check the starting strings: if they all have an even number of 1s, every combination will too. Some even codes are extra special, with the number of 1s always a multiple of four.

Even-Weight Linear Code

An Even code is a binary linear code in which every codeword has even Hamming weight, meaning an even count of 1s. Since linear codes are closed under adding codewords bit-by-bit mod 2, and adding two even-weight words always gives an even-weight word, it's enough to check a set of generators. Another way to say it: each codeword's dot product with the all-ones vector is 0 mod 2, so the code sits inside the space of all even-weight words. A code is doubly even if every weight is a multiple of 4, and strictly even if it is even but has some word whose weight leaves remainder 2 when divided by 4. The extended Hamming code of length 8 and extended Golay code of length 24 are famous doubly even examples.

 

An even code is a binary linear code all of whose codewords have even Hamming weight. By linearity, it suffices to verify the condition on a generating set, since the sum of two even-weight vectors over F₂ has even weight. Equivalently, every codeword is orthogonal over F₂ to the all-ones vector, so the code is a subspace of the even-weight subspace. For binary cyclic codes in the usual polynomial representation, evenness is equivalent to x+1 dividing the generator polynomial, but this criterion does not apply to noncyclic codes. A doubly even code has all weights divisible by four; an even code containing some word of weight congruent to 2 mod 4 is strictly even. The extended binary Hamming code of length 8 and the extended binary Golay code of length 24 are prominent doubly even, self-dual examples.

Scope of Application

Use even code with binary field, block length, linear code or generator matrix, weight definition, proof of parity, cyclic-polynomial convention if relevant, and strictly/doubly even subtype stated. Use even code with binary field, block length, linear code or generator matrix, weight definition, proof of parity, cyclic-polynomial convention if relevant, and strictly/doubly even subtype stated.

  • Coding theory. Classifies binary linear codes.
  • Error detection. Uses parity constraints.
  • Self-dual codes. Studies weight divisibility.
  • Lattice constructions. Relates doubly even codes to lattices.
  • Combinatorics. Studies weight enumerators.

Clarity

Evenness is a global condition over all codewords but linearity reduces checking to generators. That shortcut fails for arbitrary nonlinear code sets. The closest near miss sets the boundary: A single-parity-check code is closest and is itself the full even-weight code, while an arbitrary even code can be any linear subcode of it.

Manages Complexity

Weight divisibility by four adds structure not captured by parity and interacts strongly with self-duality, weight enumerators, and lattice constructions. The central all-word property–generator shortcut tradeoff is this: Linearity makes a global condition checkable from a basis. A second even parity–four-divisibility tension matters because Both sound similar while supporting different theorems.

Abstract Reasoning

Use three linked moves: verify binary linear-code structure; compute weights of a generating basis; confirm every generator has even parity. As a collapse test, the case exits when one codeword has odd Hamming weight or the object is not a binary linear code under the stated identity. A fourth check is to for cyclic codes, reconcile with the x+1 factor.

Knowledge Transfer

Divisibility constraints on word weights transfer to lattices and designs, but binary linear-code structure delimits even codes. The nearest stopping boundary is explicit: A single-parity-check code is closest and is itself the full even-weight code, while an arbitrary even code can be any linear subcode of it. The inclusion test remains: A binary linear code is even when every vector in the code has an even number of ones. The structure no longer applies when the case exits when one codeword has odd Hamming weight or the object is not a binary linear code under the stated identity. No canonical parent prime is currently asserted; broader structural comparisons remain related-prime analogies until separately adjudicated in the DAG. It is the exact mathematical genus.

Relationships to Other Abstractions

Local relationship map for Even codeParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Even codeDOMAINDomain-specific abstraction: Error-Correcting Code — is a kind of, conditionalError-CorrectingCodeDOMAIN

Current abstraction Even code Domain-specific

Parents (1) — outgoing typed relations

  • Even code is a kind of, conditional Error-Correcting Code Domain-specific

    Even-weight constraint alone guarantees parity structure and some detection; correction capability depends on the complete code's minimum distance.

    Condition / exception Even-weight constraint alone guarantees parity structure and some detection; correction capability depends on the complete code's minimum distance.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Even code sits in a moderately populated region (40th percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Unclustered & Miscellaneous (3155 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14