Papers
Topics
Authors
Recent
Search
2000 character limit reached

Function-Correcting Codes: Theory & Constructions

Updated 7 July 2026
  • Function-correcting codes are specialized coding schemes that protect only the function output of messages, reducing redundancy compared to classical error-correcting codes.
  • They are formulated using systematic encoder designs, irregular-distance matrices, and graph-theoretic methods to distinguish messages with different function values.
  • Recent research demonstrates optimal and near-optimal redundancy bounds across various channels, including finite fields, symbol-pair, and insertion-deletion settings.

Searching arXiv for papers on function-correcting codes to ground the article in the latest literature. Function-correcting codes (FCCs) are coding-theoretic objects designed to protect a function of the message, rather than the entire message itself. For a function f:FqkIm(f)f:\mathbb{F}_q^k\to \operatorname{Im}(f), a systematic encoder c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r} of the form c(u)=(u,p(u))c(u)=(u,p(u)) is an (f,t)(f,t)-FCC if

f(ui)f(uj)  d(c(ui),c(uj))2t+1.f(u_i)\neq f(u_j)\ \Longrightarrow\ d(c(u_i),c(u_j))\ge 2t+1.

The optimal redundancy rf(k,t)r_f(k,t) is the smallest such rr. Because the distance constraint is imposed only on pairs of messages with different function values, FCCs are weaker than classical error-correcting codes (ECCs), which require distance $2t+1$ between every pair of distinct codewords. The two extremal cases are immediate: if ff is bijective, FCCs reduce to ordinary systematic ECCs, whereas if ff is constant then c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}0 (Lenz et al., 2021, Ly et al., 19 Apr 2025).

1. Formal model and relation to classical coding

In the standard systematic model, the transmitter holds a message c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}1, transmits c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}2, and the received vector is

c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}3

The receiver knows c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}4 and the encoder, but is required to recover only c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}5, not necessarily c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}6 itself (Ly et al., 19 Apr 2025).

This formulation is naturally described in terms of the equivalence relation

c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}7

because FCCs only need to separate different function classes. This is the central distinction from classical ECCs: an ECC preserves the identity of c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}8, whereas an FCC preserves only c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}9 (Ge et al., 24 Feb 2025). The same distinction appears across later variants, including c(u)=(u,p(u))c(u)=(u,p(u))0-symbol read channels, Lee-metric codes, homogeneous-metric codes, and insertion-deletion channels, where the metric and decoding objective change but the basic principle remains identical: only pairs with different function outputs must be protected (Singh et al., 17 Mar 2025, Verma et al., 23 Jul 2025, Singh et al., 8 Dec 2025).

2. Irregular-distance, graph, and partition formulations

A central development in FCC theory is the reduction of FCC design to an irregular-distance problem. For a list of messages c(u)=(u,p(u))c(u)=(u,p(u))1, the distance requirement matrix is defined by

c(u)=(u,p(u))c(u)=(u,p(u))2

where c(u)=(u,p(u))c(u)=(u,p(u))3. A c(u)=(u,p(u))c(u)=(u,p(u))4-code is a set of redundancy vectors whose pairwise distances dominate this matrix, and the optimal FCC redundancy is exactly the minimum length c(u)=(u,p(u))c(u)=(u,p(u))5 of such an irregular-distance code (Lenz et al., 2021).

The same problem also admits a graph-theoretic formulation. In the function-dependent graph c(u)=(u,p(u))c(u)=(u,p(u))6, vertices are pairs c(u)=(u,p(u))c(u)=(u,p(u))7, and an independent set of size c(u)=(u,p(u))c(u)=(u,p(u))8 corresponds to a valid FCC. This viewpoint yields lower bounds via independence numbers and, for linear functions, spectral bounds through the adjacency structure of c(u)=(u,p(u))c(u)=(u,p(u))9 (Premlal et al., 2024).

A further reformulation replaces functions by partitions. If (f,t)(f,t)0 is the domain partition induced by (f,t)(f,t)1, then an (f,t)(f,t)2-FCC is exactly a function-correcting partition code (FCPC) for (f,t)(f,t)3. This makes FCCs a special case of coding directly on partitions of (f,t)(f,t)4, and later generalizations use joins of partitions to protect multiple functions simultaneously (Rajput et al., 10 Jan 2026).

3. Redundancy bounds over finite fields

A universal lower bound for nonconstant functions is

(f,t)(f,t)5

Originally proved over the binary field, this bound was extended to any finite field (f,t)(f,t)6 by showing that every nonconstant function has two messages at Hamming distance (f,t)(f,t)7 with different function values, forcing the redundancy part to contribute at least (f,t)(f,t)8 distance (Ly et al., 19 Apr 2025).

Over (f,t)(f,t)9, an upper bound of logarithmic order in f(ui)f(uj)  d(c(ui),c(uj))2t+1.f(u_i)\neq f(u_j)\ \Longrightarrow\ d(c(u_i),c(u_j))\ge 2t+1.0 is known: f(ui)f(uj)  d(c(ui),c(uj))2t+1.f(u_i)\neq f(u_j)\ \Longrightarrow\ d(c(u_i),c(u_j))\ge 2t+1.1 This follows from systematic binary BCH codes of distance f(ui)f(uj)  d(c(ui),c(uj))2t+1.f(u_i)\neq f(u_j)\ \Longrightarrow\ d(c(u_i),c(u_j))\ge 2t+1.2, and establishes that for fixed f(ui)f(uj)  d(c(ui),c(uj))2t+1.f(u_i)\neq f(u_j)\ \Longrightarrow\ d(c(u_i),c(u_j))\ge 2t+1.3, the optimal redundancy is within a logarithmic factor of the lower bound (Ly et al., 19 Apr 2025). For sufficiently large fields, the situation is sharper: f(ui)f(uj)  d(c(ui),c(uj))2t+1.f(u_i)\neq f(u_j)\ \Longrightarrow\ d(c(u_i),c(u_j))\ge 2t+1.4 The construction uses a systematic MDS code with parameters f(ui)f(uj)  d(c(ui),c(uj))2t+1.f(u_i)\neq f(u_j)\ \Longrightarrow\ d(c(u_i),c(u_j))\ge 2t+1.5, so in this regime the redundancy depends only on f(ui)f(uj)  d(c(ui),c(uj))2t+1.f(u_i)\neq f(u_j)\ \Longrightarrow\ d(c(u_i),c(u_j))\ge 2t+1.6, not on f(ui)f(uj)  d(c(ui),c(uj))2t+1.f(u_i)\neq f(u_j)\ \Longrightarrow\ d(c(u_i),c(u_j))\ge 2t+1.7 (Ly et al., 19 Apr 2025).

For linear functions f(ui)f(uj)  d(c(ui),c(uj))2t+1.f(u_i)\neq f(u_j)\ \Longrightarrow\ d(c(u_i),c(u_j))\ge 2t+1.8, several bounds can be rewritten in terms of f(ui)f(uj)  d(c(ui),c(uj))2t+1.f(u_i)\neq f(u_j)\ \Longrightarrow\ d(c(u_i),c(u_j))\ge 2t+1.9. In the Hamming-metric case, the simplified Plotkin-like lower bound is

rf(k,t)r_f(k,t)0

showing explicitly that the kernel weight distribution sharpens the redundancy estimate (Premlal et al., 2024).

A different general mechanism comes from local boundedness. If rf(k,t)r_f(k,t)1 is a locally rf(k,t)r_f(k,t)2-function, meaning rf(k,t)r_f(k,t)3 for every rf(k,t)r_f(k,t)4, then

rf(k,t)r_f(k,t)5

where rf(k,t)r_f(k,t)6 is the minimum length of a binary code with rf(k,t)r_f(k,t)7 codewords and minimum distance rf(k,t)r_f(k,t)8 (Rajput et al., 10 Apr 2025). This converts local structure of rf(k,t)r_f(k,t)9 directly into a code-length bound.

4. Structured function families and explicit constructions

Several function families admit substantially sharper results than the generic theory. For the Hamming weight function rr0, the optimal redundancy can be reduced to an irregular-distance problem on ordered weight representatives rr1, and the known bounds were significantly tightened: rr2 for rr3 and rr4, while explicit constructions based on Gray codes improve the upper bound to rr5 when rr6 is a power of two (Ge et al., 24 Feb 2025). The Gray-code method starts from a binary linear code with systematic generator matrix, orders the message vectors according to the binary reflected Gray code, and assigns parity vectors cyclically from the parity parts of the linear codewords (Ge et al., 24 Feb 2025).

For the Hamming weight distribution function

rr7

the threshold for optimal redundancy rr8 is now known to be rr9, improving the earlier condition $2t+1$0. In the regime $2t+1$1, explicit constructions achieve redundancy $2t+1$2, and the lower bounds show that this scale is near-optimal (Ge et al., 24 Feb 2025).

Locally bounded functions also support explicit small-redundancy constructions. For locally $2t+1$3-functions,

$2t+1$4

and if $2t+1$5 and there exist three messages $2t+1$6 with pairwise function separation and

$2t+1$7

then the bound is tight: $2t+1$8 The construction uses four binary patterns $2t+1$9 repeated ff0 times (Rajput et al., 10 Apr 2025).

For linear functions, coset geometry plays a decisive role. When the function-value distance matrix can be realized by representatives of the cosets of ff1, the coset-wise upper bound is tight, and in some classes the FCC parity design reduces exactly to a lower-dimensional classical ECC problem (Premlal et al., 2024).

5. Extensions to other channels and metrics

The first major channel extension after the substitution channel was the symbol-pair read channel. There the channel output is the cyclic pair representation

ff2

the relevant metric is the pair distance ff3, and an FCSPC requires

ff4

(Xia et al., 2023).

This was generalized to ff5-symbol read channels over finite fields, where the receiver observes overlapping blocks of length ff6 and the distance is

ff7

The corresponding function-correcting ff8-symbol code (FCBSC) uses the same systematic form ff9, and the optimal redundancy is denoted ff0 (Singh et al., 17 Mar 2025). For linear functions on the ff1-symbol channel, a Plotkin-like lower bound takes the form

ff2

and specializes to the known symbol-pair and substitution-channel bounds when ff3 and ff4, respectively (Sampath et al., 29 Mar 2025). The locality-based theory was also extended to locally ff5-functions, with the recurrence

ff6

and explicit bounds such as ff7 for locally ff8-functions (Verma et al., 14 May 2025).

The Lee-metric analogue replaces Hamming distance by

ff9

over c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}00. In this setting the optimal redundancy is characterized by irregular Lee-distance codes: c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}01 For locally binary Lee functions, the exact formula is

c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}02

which specializes to c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}03 for c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}04 and c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}05 for c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}06 (Verma et al., 23 Jul 2025). Later work provided explicit constructions for Lee weight, Lee weight distribution, modular sum, and locally bounded functions, with optimal cases identified for several small parameter sets (K. et al., 3 Aug 2025).

Over the chain ring c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}07, homogeneous-weight versions of FCCs were introduced under the name FCCHDs, again with an exact reduction to irregular-distance problems. For the homogeneous weight distribution function c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}08, explicit FCCHDs achieve redundancy c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}09 when c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}10, c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}11, and c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}12 (Liu et al., 4 Jul 2025). A broader homogeneous-metric theory later incorporated locally bounded functions, modular sum functions, and linear functions over c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}13 (Verma et al., 15 Mar 2026).

The insertion-deletion extension defines function-correcting deletion, insertion, and insdel codes and proves that the three formulations are equivalent. The insdel version requires

c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}14

and the optimal redundancy is bounded through irregular insdel-distance codes. This framework was applied to VT syndrome functions, number-of-runs functions, maximum-run-length functions, and locally bounded functions (Singh et al., 8 Dec 2025).

6. Data protection, partition generalizations, and later developments

The original FCC model protects only function values. A later generalization imposes two distance levels: c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}15 for data protection and c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}16 for function protection, with c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}17. An encoding is an c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}18-FCC if every pair of distinct messages is separated by at least c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}19, and every pair with different function values is separated by at least c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}20 (Rajput et al., 23 Nov 2025). This setting yields a distance requirement matrix with two thresholds and a two-step construction procedure: first protect the data by a systematic ECC, then add only the extra function-specific protection (Rajput et al., 23 Nov 2025).

In the strict regime c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}21, graph structure becomes decisive. Using the c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}22-distance graph c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}23, it was shown that for linear codes the graph is isomorphic to a Cayley graph, so its connected components are cosets of the subcode generated by low-weight codewords. This converts the existence problem for strict FCCs into a subcode-generation problem. The paper also identified chain codes and narrow-sense BCH codes with designed distance three as sources of strict FCCs (Rajput et al., 29 Apr 2026). By contrast, perfect codes and MDS codes cannot provide additional protection to function values over and above the amount of protection for data, because their minimum-distance graphs are connected (Rajput et al., 23 Nov 2025).

Partition-based generalization continued beyond single functions. FCPCs treat the function only through its induced partition, and generalized function-correcting partition codes (GFCPCs) simultaneously protect multiple partitions c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}24 at distances c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}25. Their optimal redundancy is characterized by a distance requirement matrix c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}26, and the framework strictly generalizes both ordinary FCCs and FCCs with data protection (Rajput et al., 5 May 2026).

Specialized case studies show that even when redundancy is fixed, code structure can matter. For the Hamming code membership function on c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}27, valid single-error-correcting FCCs are characterized by a complementary parity rule, the distance-3 graph on Hamming codewords is bipartite, and a balanced bipartite construction uniquely achieves the maximum sum-distance c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}28, the largest possible minimum distance c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}29, and the minimum number of distance-2 pairs (Durgi et al., 25 Feb 2026). For maximally-unbalanced Boolean functions, optimal single-error-correcting FCCs were classified through their codeword distance matrices, and different distance-matrix structures were shown to produce different data BER and function error behavior under AWGN with soft-decision and hard-decision decoding (Pandey et al., 15 Jan 2026).

The current research landscape therefore contains several distinct regimes. Some are close to resolution, such as the large-field finite-field case c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}30 (Ly et al., 19 Apr 2025) and the threshold c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}31 for the Hamming weight distribution function (Ge et al., 24 Feb 2025). Others remain explicitly open, including the conjecture that the binary upper bound c:FqkFqk+rc:\mathbb{F}_q^k\to\mathbb{F}_q^{k+r}32 should hold for all finite fields (Ly et al., 19 Apr 2025) and the broader problem of optimizing redundancy for insertion and deletion channels (Singh et al., 8 Dec 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Function-Correcting Codes.