Function-Correcting Codes: Theory & Constructions
- 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 , a systematic encoder of the form is an -FCC if
The optimal redundancy is the smallest such . 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 is bijective, FCCs reduce to ordinary systematic ECCs, whereas if is constant then 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 1, transmits 2, and the received vector is
3
The receiver knows 4 and the encoder, but is required to recover only 5, not necessarily 6 itself (Ly et al., 19 Apr 2025).
This formulation is naturally described in terms of the equivalence relation
7
because FCCs only need to separate different function classes. This is the central distinction from classical ECCs: an ECC preserves the identity of 8, whereas an FCC preserves only 9 (Ge et al., 24 Feb 2025). The same distinction appears across later variants, including 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 1, the distance requirement matrix is defined by
2
where 3. A 4-code is a set of redundancy vectors whose pairwise distances dominate this matrix, and the optimal FCC redundancy is exactly the minimum length 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 6, vertices are pairs 7, and an independent set of size 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 9 (Premlal et al., 2024).
A further reformulation replaces functions by partitions. If 0 is the domain partition induced by 1, then an 2-FCC is exactly a function-correcting partition code (FCPC) for 3. This makes FCCs a special case of coding directly on partitions of 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
5
Originally proved over the binary field, this bound was extended to any finite field 6 by showing that every nonconstant function has two messages at Hamming distance 7 with different function values, forcing the redundancy part to contribute at least 8 distance (Ly et al., 19 Apr 2025).
Over 9, an upper bound of logarithmic order in 0 is known: 1 This follows from systematic binary BCH codes of distance 2, and establishes that for fixed 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: 4 The construction uses a systematic MDS code with parameters 5, so in this regime the redundancy depends only on 6, not on 7 (Ly et al., 19 Apr 2025).
For linear functions 8, several bounds can be rewritten in terms of 9. In the Hamming-metric case, the simplified Plotkin-like lower bound is
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 1 is a locally 2-function, meaning 3 for every 4, then
5
where 6 is the minimum length of a binary code with 7 codewords and minimum distance 8 (Rajput et al., 10 Apr 2025). This converts local structure of 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 0, the optimal redundancy can be reduced to an irregular-distance problem on ordered weight representatives 1, and the known bounds were significantly tightened: 2 for 3 and 4, while explicit constructions based on Gray codes improve the upper bound to 5 when 6 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
7
the threshold for optimal redundancy 8 is now known to be 9, 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 0 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 1, 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
2
the relevant metric is the pair distance 3, and an FCSPC requires
4
This was generalized to 5-symbol read channels over finite fields, where the receiver observes overlapping blocks of length 6 and the distance is
7
The corresponding function-correcting 8-symbol code (FCBSC) uses the same systematic form 9, and the optimal redundancy is denoted 0 (Singh et al., 17 Mar 2025). For linear functions on the 1-symbol channel, a Plotkin-like lower bound takes the form
2
and specializes to the known symbol-pair and substitution-channel bounds when 3 and 4, respectively (Sampath et al., 29 Mar 2025). The locality-based theory was also extended to locally 5-functions, with the recurrence
6
and explicit bounds such as 7 for locally 8-functions (Verma et al., 14 May 2025).
The Lee-metric analogue replaces Hamming distance by
9
over 00. In this setting the optimal redundancy is characterized by irregular Lee-distance codes: 01 For locally binary Lee functions, the exact formula is
02
which specializes to 03 for 04 and 05 for 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 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 08, explicit FCCHDs achieve redundancy 09 when 10, 11, and 12 (Liu et al., 4 Jul 2025). A broader homogeneous-metric theory later incorporated locally bounded functions, modular sum functions, and linear functions over 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
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: 15 for data protection and 16 for function protection, with 17. An encoding is an 18-FCC if every pair of distinct messages is separated by at least 19, and every pair with different function values is separated by at least 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 21, graph structure becomes decisive. Using the 22-distance graph 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 24 at distances 25. Their optimal redundancy is characterized by a distance requirement matrix 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 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 28, the largest possible minimum distance 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 30 (Ly et al., 19 Apr 2025) and the threshold 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 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).