Skip to content

Parity-Check Matrix

A finite-field matrix whose linear check equations have exactly a specified linear code as their kernel and whose action on a received word yields an error syndrome.

Version
v1 · 2026-10-03 · History
Domain-specific #
13491
Domain group
Formal Sciences
Origin domain
Information Theory
Subdomains
Coding Theory, Linear Block Codes → Information Theory

Core Idea

A parity-check matrix \(H\) represents a linear code \(C\subseteq\mathbb F_q^n\) by its valid-word constraints: \(C=\ker H\), so \(Hc^\top=0\) exactly for codewords. Each row is one linear parity equation; independent rows number \(n-k\) for an \([n,k]\) code, though redundant rows can be included. For a received vector \(r=c+e\), the syndrome is \(Hr^\top=He^\top\), which depends on the error pattern rather than the transmitted codeword.[1]

The matrix is not itself a decoder. A syndrome identifies an error coset, not necessarily one error; correction requires an error bound or choice rule. A zero syndrome means the received vector is a codeword, not necessarily that transmission was perfect. Sparse LDPC matrices are an important subtype, not the general definition.[1][2]

How would you explain it like I'm…

The Message Rule List

Imagine a secret club where every real message has to pass a few checking rules, like "these two numbers must add up to an even number." If a message breaks a rule, you know something got messed up on the way. A parity-check matrix is the list of those checking rules. But passing all the rules doesn't promise the message is perfect: some mix-ups sneak through.

Grid of Error Checks

When computers send messages, noise can flip some of the bits (the 0s and 1s). To catch this, messages are built so that every correct one passes a set of simple checks, like 'these bits must add up to an even number.' A parity-check matrix is a table that lists all those checks at once. If a received message fails some checks, the pattern of failures, called the syndrome, gives clues about what went wrong. But different mistakes can give the same clues, and some mistakes can pass every check, so the checks can't catch everything by themselves.

Code-Defining Check Equations

A linear code is a set of allowed codewords, strings of symbols, that error-correcting systems use to send data. A parity-check matrix H describes the code by equations: a string c is a valid codeword exactly when H times c equals zero, and each row of H is one linear check. If a codeword c is sent and the error e is added, the receiver computes H times the received word, called the syndrome; it equals H times e, so it depends only on the error, not on which codeword was sent. A zero syndrome doesn't prove there was no error, because an error that is itself a codeword passes all checks. A nonzero syndrome doesn't pin down the error uniquely either; correcting errors needs an assumption about which errors are likely, like 'at most one bit flipped', and a decoder. Hamming codes and sparse LDPC codes both use parity-check matrices.

 

A parity-check matrix H for a length-n linear code C ⊆ F_q^n is a matrix over the same field whose kernel is exactly C: c ∈ C if and only if Hc^T = 0. Each row expresses one linear check. If C has dimension k, a nonredundant H has rank n − k, though additional linearly dependent rows may be included without changing the kernel. Applied to a received word r = c + e, H yields the syndrome Hr^T = He^T, which is independent of the transmitted codeword. The syndrome does not uniquely identify an unrestricted error, because distinct error patterns can share a syndrome; correction requires a stated admissible error class and a decoder that selects among patterns with the same syndrome. Conversely, a zero syndrome does not guarantee error-free transmission, since any error vector that is itself a codeword goes undetected. The construction spans compact Hamming codes, whose single-bit syndromes are easy to read, and Gallager's sparse LDPC codes, though sparsity and iterative decoding define a subfamily rather than the general concept.

Scope of Application

The construction works for linear block codes over finite fields. In the binary \((7,4)\) Hamming code, three check rows have seven distinct nonzero columns. Under the at-most-one-bit-error assumption, the syndrome matches the column for the flipped position; ordinary \((7,4)\) Hamming does not thereby become a SECDED code. In Gallager's LDPC family, a much larger sparse \(H\) defines the code and supports local probabilistic decoding. Both have the same kernel relation, while their decoders and performance conditions differ.[1][2][3]

Clarity

Name the field, the code and the exact equality \(C=\ker H\). If the matrix merely supplies some checks that all codewords pass but also accepts unwanted vectors, it is incomplete for that code. A generator matrix instead spans \(C\) with its rows; a parity-check matrix's rows span the dual code. Compatible presentations satisfy \(GH^\top=0\) but play different roles.[1]

Manages Complexity

The matrix replaces enumeration of many valid words with check equations and compresses received-word violations into a syndrome. That exact membership compression does not make every error easy to correct: unrestricted errors can share a syndrome. Row operations may preserve the code while changing implementation properties; redundant checks may change a decoding graph without changing \(\ker H\). Sparsity is valuable in LDPC settings but is not mandatory.[2]

Abstract Reasoning

Treat \(H\) as a linear map from word vectors to check residuals. Verify both directions of \(Hc^\top=0\iff c\in C\). Then for \(r=c+e\), use linearity to derive \(Hr^\top=He^\top\). Ask whether the allowed error vectors have distinct syndromes before inferring a particular correction. A single-bit error gives one column of \(H\); the smallest dependent column set determines the minimum nonzero codeword weight for a nontrivial linear code.[1]

Knowledge Transfer

The same code-as-kernel and received-word-as-syndrome pattern transfers from Hamming's small computer-error example to Gallager's sparse channel code. Single-bit column lookup does not transfer automatically to arbitrary-error or LDPC decoding. The checked live Matrix identity is a strict typed parent because \(H\) is a matrix representing a finite-field linear map; live Generator Matrix and Error-Correcting Code are distinct related identities. A still broader “linear constraints define a valid set” skeleton would require a separate future-prime test rather than being assumed here.

Relationships to Other Abstractions

Local relationship map for Parity-Check MatrixParents 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.Parity-Check MatrixDOMAINDomain-specific abstraction: Matrix — is a kind ofMatrixDOMAIN

Current abstraction Parity-Check Matrix Domain-specific

Parents (1) — outgoing typed relations

  • Parity-Check Matrix is a kind of Matrix Domain-specific

    A parity-check matrix is a matrix representing the linear syndrome map whose kernel is the specified linear code.

Hierarchy paths (5) — routes to 5 parentless roots

Neighborhood in Abstraction Space

Parity-Check Matrix sits in a moderately populated region (49th percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Codes, Matrices & Combinatorial Problems (33 abstractions)

Nearest neighbors

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

References

[1] MIT OpenCourseWare, 6.02 Linear Block Codes: Encoding and Syndrome Decoding, chapter 6, §6.3, equations (6.11)–(6.13). registry ↩a ↩b ↩c ↩d ↩e

[2] Robert G. Gallager, “Low-density parity-check codes,” IRE Transactions on Information Theory 8 (1962), 21–28, original abstract. registry ↩a ↩b ↩c

[3] R. W. Hamming, “Error Detecting and Error Correcting Codes,” Bell System Technical Journal 29 (1950), 147–160. registry ↩