Papers
Topics
Authors
Recent
Search
2000 character limit reached

Function-Correcting Codes: Theory & Applications

Updated 30 November 2025
  • Function-Correcting Codes (FCCs) are error-correcting codes that ensure accurate recovery of specific function values by relaxing traditional distance constraints.
  • They employ a combinatorial framework and metrics like the Lee metric to reduce redundancy, often achieving optimal performance with minimal extra bits.
  • FCCs leverage irregular-distance coding and graph-theoretic techniques to enhance data aggregation and distributed computations in practical settings.

Function-Correcting Codes (FCCs) are a novel class of error-correcting codes designed to guarantee the reliable recovery of prescribed function values computed on a message, while minimizing the redundancy compared to classical codes. In contrast to traditional error-correcting codes (ECCs), which require all distinct message codewords to be separated by a fixed metric distance, FCCs only impose distance constraints between codewords with nonequivalent function values. This fundamental relaxation can dramatically reduce redundancy when the function of interest is many-to-one. FCCs admit a general, function- and metric-dependent combinatorial framework, and have been explicitly studied for various algebraic and combinatorial metrics, including Hamming, Lee, pair, and homogeneous distances.

1. Formal Definition and Framework

Consider messages u∈Zqku \in \mathbb{Z}_q^k and a target function f:Zqk→Im⁡(f)f: \mathbb{Z}_q^k \rightarrow \operatorname{Im}(f). A systematic function-correcting code (FCC) for ff and tt-error correction in a metric dd is an encoding map Enc⁡(u)=(u,p(u))∈Zqk+r\operatorname{Enc}(u) = (u, p(u)) \in \mathbb{Z}_q^{k+r} such that if f(u1)≠f(u2)f(u_1) \neq f(u_2), then d(Enc⁡(u1),Enc⁡(u2))≥2t+1d(\operatorname{Enc}(u_1), \operatorname{Enc}(u_2)) \geq 2t+1 (K. et al., 3 Aug 2025). The smallest rr for which such an encoder exists is the optimal redundancy rf(q,k,t)r^f(q,k,t).

FCCs in the Lee Metric

The Lee metric for f:Zqk→Im⁡(f)f: \mathbb{Z}_q^k \rightarrow \operatorname{Im}(f)0 is f:Zqk→Im⁡(f)f: \mathbb{Z}_q^k \rightarrow \operatorname{Im}(f)1. For vectors, f:Zqk→Im⁡(f)f: \mathbb{Z}_q^k \rightarrow \operatorname{Im}(f)2. The systematic FCC for f:Zqk→Im⁡(f)f: \mathbb{Z}_q^k \rightarrow \operatorname{Im}(f)3 in the Lee metric (a Function-Correcting Lee Code, FCLC) satisfies f:Zqk→Im⁡(f)f: \mathbb{Z}_q^k \rightarrow \operatorname{Im}(f)4 when f:Zqk→Im⁡(f)f: \mathbb{Z}_q^k \rightarrow \operatorname{Im}(f)5 (K. et al., 3 Aug 2025).

A central tool is the distance requirement matrix f:Zqk→Im⁡(f)f: \mathbb{Z}_q^k \rightarrow \operatorname{Im}(f)6 of size f:Zqk→Im⁡(f)f: \mathbb{Z}_q^k \rightarrow \operatorname{Im}(f)7 with entries f:Zqk→Im⁡(f)f: \mathbb{Z}_q^k \rightarrow \operatorname{Im}(f)8 for f:Zqk→Im⁡(f)f: \mathbb{Z}_q^k \rightarrow \operatorname{Im}(f)9, else ff0. The minimal ff1 such that a set of redundancy vectors ff2 exists with ff3 for all ff4 is denoted ff5. The optimal redundancy is ff6 (K. et al., 3 Aug 2025).

2. Core Principles and Theoretical Bounds

FCC design reduces to constructing irregular-distance codes: vector sets subject to a matrix of minimum distance constraints reflecting function preimages. Two main types of bounds result:

  • Plotkin-like Lower Bound: For even ff7, ff8. For odd ff9, tt0. The denominator adjusts for parity in tt1 and tt2 (K. et al., 3 Aug 2025).
  • Gilbert–Varshamov Upper Bound: tt3, with tt4 the size of a Lee ball of radius tt5 (Verma et al., 23 Jul 2025).

These generalize bounds for classical codes. For any function, the redundancy obeys

tt6

3. Explicit FCC Constructions and Function Classes

Explicit and often optimal FCLCs have been constructed for several function classes (K. et al., 3 Aug 2025, Verma et al., 23 Jul 2025):

3.1 Lee Weight (tt7)

Let tt8; consider representative vectors of weights tt9. The code distance matrix is dd0.

Construction: For dd1, dd2:

  • Odd dd3: dd4.
  • Even dd5: dd6 for dd7, dd8 for dd9.
  • Redundancy is Enc⁡(u)=(u,p(u))∈Zqk+r\operatorname{Enc}(u) = (u, p(u)) \in \mathbb{Z}_q^{k+r}0 (Enc⁡(u)=(u,p(u))∈Zqk+r\operatorname{Enc}(u) = (u, p(u)) \in \mathbb{Z}_q^{k+r}1).

This is optimal for many small Enc⁡(u)=(u,p(u))∈Zqk+r\operatorname{Enc}(u) = (u, p(u)) \in \mathbb{Z}_q^{k+r}2. Applying the Plotkin bound to Enc⁡(u)=(u,p(u))∈Zqk+r\operatorname{Enc}(u) = (u, p(u)) \in \mathbb{Z}_q^{k+r}3 gives explicit lower bounds (K. et al., 3 Aug 2025).

3.2 Lee-Weight Distribution (Enc⁡(u)=(u,p(u))∈Zqk+r\operatorname{Enc}(u) = (u, p(u)) \in \mathbb{Z}_q^{k+r}4)

Divide weight into Enc⁡(u)=(u,p(u))∈Zqk+r\operatorname{Enc}(u) = (u, p(u)) \in \mathbb{Z}_q^{k+r}5-bins. If Enc⁡(u)=(u,p(u))∈Zqk+r\operatorname{Enc}(u) = (u, p(u)) \in \mathbb{Z}_q^{k+r}6 divides Enc⁡(u)=(u,p(u))∈Zqk+r\operatorname{Enc}(u) = (u, p(u)) \in \mathbb{Z}_q^{k+r}7, then image size is Enc⁡(u)=(u,p(u))∈Zqk+r\operatorname{Enc}(u) = (u, p(u)) \in \mathbb{Z}_q^{k+r}8.

  • Upper bound: Enc⁡(u)=(u,p(u))∈Zqk+r\operatorname{Enc}(u) = (u, p(u)) \in \mathbb{Z}_q^{k+r}9, with f(u1)≠f(u2)f(u_1) \neq f(u_2)0 reflecting minimum bin differences.
  • For f(u1)≠f(u2)f(u_1) \neq f(u_2)1, redundancy f(u1)≠f(u2)f(u_1) \neq f(u_2)2.

3.3 Modular Sum (f(u1)≠f(u2)f(u_1) \neq f(u_2)3)

Image size f(u1)≠f(u2)f(u_1) \neq f(u_2)4. Assign each modular sum f(u1)≠f(u2)f(u_1) \neq f(u_2)5 a parity f(u1)≠f(u2)f(u_1) \neq f(u_2)6 as above. Redundancy requirements mirror those for Lee weight.

3.4 Locally f(u1)≠f(u2)f(u_1) \neq f(u_2)7-Bounded Functions

If f(u1)≠f(u2)f(u_1) \neq f(u_2)8 is locally f(u1)≠f(u2)f(u_1) \neq f(u_2)9, i.e., the value set of d(Enc⁡(u1),Enc⁡(u2))≥2t+1d(\operatorname{Enc}(u_1), \operatorname{Enc}(u_2)) \geq 2t+10 within any Lee-ball of radius d(Enc⁡(u1),Enc⁡(u2))≥2t+1d(\operatorname{Enc}(u_1), \operatorname{Enc}(u_2)) \geq 2t+11 is d(Enc⁡(u1),Enc⁡(u2))≥2t+1d(\operatorname{Enc}(u_1), \operatorname{Enc}(u_2)) \geq 2t+12, assign a coloring d(Enc⁡(u1),Enc⁡(u2))≥2t+1d(\operatorname{Enc}(u_1), \operatorname{Enc}(u_2)) \geq 2t+13 with d(Enc⁡(u1),Enc⁡(u2))≥2t+1d(\operatorname{Enc}(u_1), \operatorname{Enc}(u_2)) \geq 2t+14 colors, then use a code with parameters adapted to d(Enc⁡(u1),Enc⁡(u2))≥2t+1d(\operatorname{Enc}(u_1), \operatorname{Enc}(u_2)) \geq 2t+15. For d(Enc⁡(u1),Enc⁡(u2))≥2t+1d(\operatorname{Enc}(u_1), \operatorname{Enc}(u_2)) \geq 2t+16, d(Enc⁡(u1),Enc⁡(u2))≥2t+1d(\operatorname{Enc}(u_1), \operatorname{Enc}(u_2)) \geq 2t+17. This is sometimes optimal by matching lower bounds.

4. Redundancy Analysis and Comparative Performance

Lower and upper bounds can often be explicitly calculated for concrete function classes using matrix methods and combinatorial arguments (K. et al., 3 Aug 2025). In the most studied cases, explicit constructions achieve minimal redundancy.

A comparative summary:

Method Redundancy Lower Bound Typical Redundancy Achieved
Classical Lee ECC d(Enc⁡(u1),Enc⁡(u2))≥2t+1d(\operatorname{Enc}(u_1), \operatorname{Enc}(u_2)) \geq 2t+18 Sphere-packing dominated
ECC on function values d(Enc⁡(u1),Enc⁡(u2))≥2t+1d(\operatorname{Enc}(u_1), \operatorname{Enc}(u_2)) \geq 2t+19 Function-image size dominates
FCLC rr0 (varies by class) Often rr1 (see Lee weight)

In the Lee-weight example with rr2, ECC on data needs rr3, ECC on function values rr4, but FCLC achieves rr5. For large rr6 and functions with small image size, rr7 can be substantially smaller with FCLCs.

5. Graph-Theoretic and Algorithmic Perspectives

FCC construction is equivalent to finding large independent sets in a function-dependent graph where vertices encode messages and their redundancy and edges correspond to forbidden pairs under the metric and rr8 constraints (K. et al., 3 Aug 2025). The problem reduces to constructing a code with a prescribed irregular-distance matrix, leveraging coloring and code-assignment techniques. Greedy and coloring-based algorithms derive from Brooks' theorem and sphere-packing ideas.

6. Specializations, Metric Extensions, and Open Problems

The FCC paradigm generalizes readily to other metrics (b-symbol, symbol-pair, homogeneous, Hamming). Reed–Muller, Gray-code, and parity-repetition constructions have broad applicability (K. et al., 3 Aug 2025, Verma et al., 23 Jul 2025). Tight Plotkin-type bounds have been extended to the Lee metric, improving upon prior results in the homogeneous metric (Verma et al., 23 Jul 2025).

Open problems include:

  • Tightening bounds for specific rr9.
  • Explicit constructions for more general algebraic and combinatorial rf(q,k,t)r^f(q,k,t)0.
  • Extensions to list decoding, probabilistic decoding, and channels with additional error models.

7. Significance and Applications

FCCs, particularly in the Lee metric, provide a rigorous method to optimize and minimize redundancy when only a function of a message matters for downstream reliability—central to data aggregation, hash verification, machine learning inference in storage, and error-resilient distributed computations (K. et al., 3 Aug 2025). Their design paradigm offers a strict generalization of error-correcting codes, interpolating between function-value and data protection, and enables significant improvements in code rate for a wide spectrum of practical coding scenarios.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

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 (FCCs).