Function-Correcting Lee Codes (FCLCs)
- FCLCs are Lee-metric codes that ensure the reliable recovery of a function f(u) rather than the full message, offering reduced redundancy.
- They leverage irregular Lee-distance codes to establish Plotkin- and Gilbert–Varshamov-type bounds, linking redundancy to minimum required code length.
- Explicit constructions target canonical functions like Lee weight, weight distribution, and modular sum, tailoring redundancy based on both function properties and local constraints.
Function-Correcting Lee Codes (FCLCs) are systematic function-correcting codes over designed for Lee-metric channels: instead of requiring reliable recovery of the entire message, they require reliable recovery of a prescribed function of the message , and they do so by enforcing distance constraints only between codewords associated with different function values. In the current literature, this perspective yields an exact redundancy characterization through irregular Lee-distance codes, general Plotkin- and Gilbert–Varshamov-type bounds, exact or near-exact results for several structured function classes, and a direct specialization of homogeneous-distance FCCs over , where homogeneous distance coincides with Lee distance (Verma et al., 23 Jul 2025).
1. Lee-metric setting and correction criterion
The ambient alphabet is , , with Lee weight
Under the symmetric labeling of residues, this becomes . For vectors , the Lee distance is
A Lee ball of radius 0 around 1 is 2, and for 3 its volume in 4 is
5
which is the volume term used in Gilbert–Varshamov-type arguments (Verma et al., 23 Jul 2025).
An FCLC uses a systematic encoder
6
where 7 is the redundancy. For a fixed function 8 and Lee error radius 9, the defining requirement is
0
This is strictly weaker than a classical 1-error-correcting Lee code, which would require the same inequality for all 2. Accordingly, any conventional Lee code with minimum distance 3 is automatically an 4-FCLC for every 5, but usually with non-optimal redundancy (Verma et al., 23 Jul 2025).
The optimal redundancy is
6
The decoding implication is purely metric: if the received word 7 satisfies 8, then all codewords within Lee radius 9 of 0 must correspond to the same function value, even if they do not determine the same message. A common misconception is that an FCLC is a weakened decoder for a conventional Lee code; in fact, the code design problem itself is different, because only function-distinct pairs must be separated (Verma et al., 23 Jul 2025).
2. Irregular Lee-distance codes and exact redundancy characterization
The central structural device is the irregular Lee-distance code. Given a symmetric nonnegative matrix 1, a set 2 is a 3-code in the Lee metric if
4
The minimum length of such a code is denoted 5. When all off-diagonal entries of 6 equal a constant 7, this reduces to the standard parameter 8 for an 9-Lee code (Verma et al., 23 Jul 2025).
For messages 0, the distance requirement induced by 1 and 2 is captured by
3
where 4. This matrix measures exactly how much Lee distance the redundancy part must contribute after the systematic part contributes 5 (Verma et al., 23 Jul 2025).
The exact equivalence theorem states that if 6, then
7
Thus the optimal redundancy problem for FCLCs is equivalent to the shortest-length problem for an irregular Lee-distance code. A direct lower-bound corollary is that for any subset 8,
9
This reduction is the Lee-metric analogue of the irregular-distance viewpoint used earlier for Hamming-metric FCCs and later for symbol-pair and sum-rank metrics (Verma et al., 23 Jul 2025, Xia et al., 2023, Kammila et al., 4 Jul 2026).
A second, smaller matrix acts on the image of 0. If 1, define
2
and then
3
This yields the general upper bound
4
obtained by assigning the same redundancy vector to all messages with the same function value. When one can choose representatives 5 realizing the same matrix, the upper and lower bounds coincide and give an exact formula (Verma et al., 23 Jul 2025).
3. General redundancy bounds
The general lower bound is a Plotkin-type inequality for irregular Lee-distance codes. If 6 is an 7 Lee distance matrix, then
8
For regular distance 9, this yields
0
Two specializations are especially significant: for 1, Lee distance is Hamming distance, and the bound recovers the Hamming irregular-distance bound of Lenz et al.; for 2, where Lee distance coincides with homogeneous distance, the resulting bound improves the earlier 3 homogeneous-metric Plotkin bound of Liu–Liu by a factor of 4 (Verma et al., 23 Jul 2025).
The general upper bound is Gilbert–Varshamov-type: 5 It is obtained by a greedy construction that successively avoids Lee balls of the forbidden radii around previously chosen codewords (Verma et al., 23 Jul 2025).
A coarse but function-universal sandwich bound depends only on 6: 7 The lower bound comes from the existence, for every non-constant 8, of two messages at Lee distance 9 with different function values; the upper bound comes from assigning one codeword of an 0-Lee code to each function value (Verma et al., 23 Jul 2025). The two-code case is exact: 1 Hence every non-constant FCLC satisfies
2
For 3 this becomes 4, and for 5 it becomes 6 (Verma et al., 23 Jul 2025).
4. Locality in the Lee metric
A major structured subclass is defined through Lee-locality. For a function 7, the function ball is
8
The function is locally 9 if
0
If 1, one obtains locally binary Lee functions (Verma et al., 23 Jul 2025).
The key combinatorial device is a coloring map 2 such that
3
whenever 4 or 5. Using a length-6 Lee code 7, one then encodes
8
which yields the general locality bound
9
for every locally 0 function (Verma et al., 23 Jul 2025).
The locally binary case is completely characterized: 1 whenever 2 is locally 3. This gives an exact redundancy theorem rather than a one-sided bound (Verma et al., 23 Jul 2025).
Later explicit-construction work over 4 sharpened the locality picture for locally 5-bounded functions. If 6, it gives a direct scalar-parity construction with
7
obtained by spacing 8 parity symbols in Lee distance and repeating the chosen symbol 9 times (K. et al., 3 Aug 2025).
5. Canonical function classes
Three function classes dominate the FCLC literature: Lee weight, Lee weight distribution, and modular sum. Over 00, the same classes also appear in the homogeneous-distance FCC literature because homogeneous distance and Lee distance coincide there (Liu et al., 4 Jul 2025).
| Function class | Stated Lee-metric result | Source |
|---|---|---|
| 01 | 02 | (Verma et al., 23 Jul 2025) |
| 03 | 04 | (Verma et al., 23 Jul 2025) |
| 05 | explicit FCLCs; 06 for odd 07 with 08, and 09 for even 10 | (K. et al., 3 Aug 2025) |
| locally 11-bounded 12 | 13 when 14 | (K. et al., 3 Aug 2025) |
For the Lee weight function 15, the image is 16. The triangle inequality yields
17
for every 18, so 19 is locally 20. At 21, this gives
22
A stronger result uses explicit representatives 23 satisfying
24
Consequently,
25
and
26
For 27, one obtains the explicit lower bound
28
which over 29 specializes to
30
That 31 specialization exactly matches the earlier Liu–Liu lower bound, but the Lee-metric derivation holds for arbitrary 32 (Verma et al., 23 Jul 2025).
For the Lee weight distribution function
33
the same weight-difference estimate implies
34
Hence 35 is locally 36, and at 37,
38
This makes the dependence on the quantization parameter 39 explicit: coarser quantization lowers the effective local alphabet size and can reduce redundancy (Verma et al., 23 Jul 2025).
The modular sum function was treated explicitly in later Lee-metric construction work. Over 40, if
41
then there are explicit parity-symbol constructions with redundancy 42 for odd 43 and 44, and redundancy 45 for even 46. The same work also derived lower bounds from a refined Plotkin-like bound and proved optimality in several concrete parameter regimes (K. et al., 3 Aug 2025).
Over 47, the homogeneous-distance study gives additional exact small-48 statements because Lee and homogeneous metrics coincide there. For the Lee weight function on 49, it yields
50
and supplies explicit constructions achieving those values (Liu et al., 4 Jul 2025).
6. Relation to adjacent FCC frameworks
FCLCs belong to a broader FCC program in which the metric changes but the function-centric logic remains stable. The Hamming-metric literature established the general FCC paradigm and proved the universal lower bound 51 over finite fields, with equality for sufficiently large fields; symbol-pair and sum-rank works then recast the same design problem as one of irregular-distance coding in their respective metrics (Ly et al., 19 Apr 2025, Xia et al., 2023, Kammila et al., 4 Jul 2026). This suggests that the Lee-metric theory is not an isolated construction but one instance of a metric-dependent, irregular-distance framework.
At the same time, the Lee case has distinctive algebraic features. On 52, the homogeneous weight
53
is exactly the Lee weight, so every FCCHD over 54 is literally an FCLC (Liu et al., 4 Jul 2025). For 55 with 56, homogeneous distance remains a closely related but broader framework, and later work on finite chain rings extends locality, linear-function bounds, and explicit constructions in that setting (Verma et al., 15 Mar 2026).
A further branch studies strict FCCs with data protection, where the function is protected at a higher distance level than the underlying data. Those results are currently stated in the Hamming metric and use 57-distance graphs, Cayley-graph structure, and subcodes generated by low-weight codewords (Rajput et al., 1 Mar 2026, Rajput et al., 29 Apr 2026). A plausible implication is that analogous Lee-distance graphs and Lee-weight-generated subcodes could support a strict Lee-metric theory, but that step is presented as a prospective direction rather than an established Lee-metric theorem in the cited works.
Across this literature, the central distinction remains the same: FCLCs are not merely Lee-metric error-correcting codes with a specialized decoder; they are codes whose distance constraints, redundancy bounds, and explicit constructions are tailored to the function itself. Later explicit comparisons with classical Lee error-correcting codes and codes that encode only function values show that FCLCs can significantly reduce redundancy while preserving function correctness (K. et al., 3 Aug 2025).