Skip to content
2 changes: 2 additions & 0 deletions codelists/descendants/classical/q-ary_digits/list_rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ codes:
- cousin_of: linearized_reed_solomon
- descendant_of: interleaved_reed_solomon
- cousin_of: interleaved_reed_solomon
- descendant_of: twisted_reed_solomon
- cousin_of: twisted_reed_solomon
- manual_code_list: [mds]
10 changes: 10 additions & 0 deletions codes/classical/q-ary_digits/additive/q-ary_additive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,27 @@ description: |
A \(q\)-ary code whose codewords are closed under addition, i.e., for any codewords \(x,y\), \(x+y\) is also a codeword.
If \(q=p^m\), then additive closure already implies \(\mathbb{F}_p\)-linearity because multiplying a codeword by any \(\lambda\in\mathbb{F}_p\) is equivalent to adding that codeword to itself \(\lambda\) times.

protection: |
Additive codes over \(\mathbb{F}_{r^h}\) that are linear over \(\mathbb{F}_r\) satisfy a Griesmer-type bound on their length \cite[Thm. 12]{arxiv:2406.08916}.
A generalization of the Solomon-Stiffler construction attains this bound with equality for all sufficiently large distances \cite[Thm. 4]{arxiv:2412.14615}.
This yields infinite families of additive codes with more codewords than any linear code of the same length and distance \cite[Thm. 5 and Table 2]{arxiv:2412.14615}.

relations:
parents:
- code_id: q-ary_digits_into_q-ary_digits
- code_id: group_linear
detail: 'Additive \(q\)-ary codes are linear over the additive group \(G=\mathbb{F}_q\). If \(q=p^m\), they are always \(\mathbb{F}_p\)-linear, but for \(m>1\) they need not be \(\mathbb{F}_q\)-linear.'
cousins:
- code_id: griesmer
detail: 'Additive codes satisfy a Griesmer-type bound on their length \cite[Thm. 12]{arxiv:2406.08916}, which is attained with equality for all sufficiently large distances \cite[Thm. 4]{arxiv:2412.14615}.'


# Begin Entry Meta Information
_meta:
# Change log - most recent first
changelog:
- user_id: VictorVAlbert
date: '2026-11-18'
- user_id: VictorVAlbert
date: '2026-06-08'
- user_id: VictorVAlbert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ relations:
detail: 'Tamo-Barg codes are derived from Reed-Solomon codes; for \(r \mid k\), they have parameters \([n,k,n-k-k/r+2]\) and are optimal with respect to the LRC Singleton bound, while the special case \(r=k\) reduces to an RS code \cite[Sec. 15.9.3]{preset:HKSag}.'
- code_id: reed_solomon_nrt
detail: 'RS NRT codes reduce to RS codes when the NRT metric is equivalent to the Hamming metric \cite{preset:Schurer24}.'
- code_id: twisted_reed_solomon
detail: 'Twisted RS codes with \(\eta=0\) and evaluation points in \(\mathbb{F}_q\) reduce to RS codes \cite{arxiv:1701.01295}\cite[Ex. 4]{arxiv:2107.06945}.'
cousins:
- code_id: dual
detail: 'The dual of an RS code is an RS code \cite[pg. 296]{preset:MacSlo}.'
Expand Down Expand Up @@ -124,6 +126,8 @@ relations:
_meta:
# Change log - most recent first
changelog:
- user_id: VictorVAlbert
date: '2026-11-21'
- user_id: VictorVAlbert
date: '2026-11-07'
- user_id: VictorVAlbert
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#######################################################
## This is a code entry in the error correction zoo. ##
## https://github.com/errorcorrectionzoo ##
#######################################################

code_id: twisted_reed_solomon
physical: q-ary_digits
logical: q-ary_digits

name: 'Twisted RS (TRS) code'
short_name: 'TRS'
introduced: '\cite{arxiv:1701.01295}'

description: |
Evaluation code of \textit{twisted polynomials}, i.e., polynomials of degree below \(k\) plus a higher-degree monomial whose coefficient is \(\eta\) times a lower-degree coefficient \cite{arxiv:1701.01295}.
Although the extra monomial raises the degree above \(k-1\), suitable parameters keep every nonzero twisted polynomial from having \(k\) zeros among the evaluation points.
This yields MDS codes, many of which are not GRS codes \cite[Sec. VI]{arxiv:2107.06945}.

A twisted RS code is specified by a \textit{hook} \(0\leq h<k\), a \textit{twist} \(1\leq t\leq n-k\), a coefficient \(\eta\in\mathbb{F}_q\), and distinct evaluation points \(\alpha_i\in\mathbb{F}_q\cup\{\infty\}\) \cite[Def. 6]{arxiv:1701.01295}\cite[Def. 1]{arxiv:2107.06945}.
Its codewords are \((f(\alpha_1),\ldots,f(\alpha_n))\) for all polynomials
\begin{align}
f(x)=\sum_{i=0}^{k-1}a_i x^i+\eta\, a_h\, x^{k-1+t}~,
\end{align}
with \(a_i\in\mathbb{F}_q\), where \(f(\infty)\) is the coefficient of the highest-degree monomial \cite[Def. 2]{arxiv:1701.01295}.
\textit{Multi-twisted} codes add several such monomials \(\eta_j a_{h_j}x^{k-1+t_j}\) \cite[Def. 1]{arxiv:2107.06945}, and multiplying the coordinates by nonzero constants yields \textit{twisted GRS codes} \cite[Def. 1]{arxiv:2512.24217}.

\textit{Row-column twisted RS codes} evaluate twisted polynomials at \(n-1\) points and append the coordinate \(f(b)-\lambda f(c)\) for \(b,c,\lambda\in\mathbb{F}_q\) \cite[Def. 3.3]{arxiv:2509.06919}.
They include MDS codes inequivalent to GRS codes and to all twisted RS codes with \(t=1\) \cite[Thms. 6.3, 6.4, and 6.6]{arxiv:2509.06919}.

protection: |
A twisted RS code with evaluation points in \(\mathbb{F}_q\) is MDS if and only if a \(t\times t\) matrix determined by \(\eta\), \(h\), and each \(k\)-subset of evaluation points is nonsingular \cite[Lem. 15]{arxiv:1701.01295}.
Multi-twisted codes with distinct hooks and twists and nonzero \(\eta_j\) obey an analogous criterion \cite[Thm. 3.1]{arxiv:2201.13108}\cite[Thm. 1]{arxiv:2602.16207}.
For \(t=1\), the condition reads \((-1)^k\eta\prod_{i\in I}\alpha_i\neq 1\) for \(h=0\) and \(\eta\sum_{i\in I}\alpha_i\neq -1\) for \(h=k-1\), for every \(k\)-subset \(I\) \cite[Lems. 4 and 10]{arxiv:1701.01295}.

Hence \textit{\((*)\)-twisted RS codes}, with \((t,h)=(1,0)\), evaluation points in \(G\cup\{0\}\) for a proper subgroup \(G\) of \(\mathbb{F}_q^*\), and \((-1)^k\eta^{-1}\notin G\), are MDS \cite[Thm. 5]{arxiv:1701.01295}.
For odd \(q\), they reach length \((q+1)/2\), the maximal length of MDS twisted RS codes with \((t,h)=(1,0)\), \(\eta\neq 0\), and \(3\leq k\leq(q-5)/2\) \cite[Cor. 6 and Thm. 8]{arxiv:1701.01295}.
Likewise, \textit{\((+)\)-twisted RS codes}, with \((t,h)=(1,k-1)\), evaluation points in \(V\cup\{\infty\}\) for a proper additive subgroup \(V\) of \(\mathbb{F}_q\), and \(\eta^{-1}\notin V\), are MDS and reach length \(q/2+1\) for even \(q\) \cite[Thm. 11 and Cor. 12]{arxiv:1701.01295}.
Twisted RS codes whose evaluation points lie in a proper subfield \(\mathbb{F}_s\) and whose \(\eta\) lies outside it are MDS for every hook and twist \cite[Thm. 17]{arxiv:1701.01295}.

features:
decoders:
- 'Brute-force decoder running an RS decoder for each of the \(q\) values of the hook coefficient, correcting up to half the minimum distance with runtime of \hyperref[topic:asymptotics]{order} \(\tilde{O}(qn)\) \cite[Thm. 22]{arxiv:1701.01295}.'
- 'Guruswami-Sudan-based list and unique decoders for twisted GRS codes \cite[Sec. III]{arxiv:2512.24217}.'

relations:
parents:
- code_id: evaluation_varieties
detail: 'Twisted RS codes are evaluation codes of the space of twisted polynomials \(\sum_{i=0}^{k-1}a_i x^i+\eta a_h x^{k-1+t}\) at distinct points of \(\mathbb{F}_q\cup\{\infty\}\) \cite{arxiv:1701.01295}.'
cousins:
- code_id: generalized_reed_solomon
detail: 'For fixed evaluation points in \(\mathbb{F}_q\), hook, and twist with \(\min\{k,n-k\}\geq 3\), either all MDS twisted RS codes are GRS codes or at most six of them are \cite[Thm. 33]{arxiv:2107.06945}.
Every twisted GRS code is a subcode of the GRS code of dimension \(k+\max_j t_j\) with the same evaluation points and multipliers \cite[Lem. 4]{arxiv:2512.24217}.'
- code_id: mds
detail: '\((*)\)-twisted RS codes with \(3\leq k<n/2\) are MDS codes that are not GRS codes \cite[Thm. 10 and Cor. 27]{arxiv:2107.06945}.'
- code_id: roth_lempel
detail: 'Appending the two extra Roth-Lempel coordinates to a twisted RS code with twist \(t=1\) yields a \textit{twisted Roth-Lempel code}, which is MDS for explicit subfield-based coefficients \cite[Props. 3.12 and 3.13]{arxiv:2609.17304}.
For \(5\leq k\leq(n-1)/2\) with \(n\) evaluation points and nonzero twist and Roth-Lempel coefficients, it is neither GRS nor equivalent to the corresponding Roth-Lempel code \cite[Thm. 3.11]{arxiv:2609.17304}.'


# Begin Entry Meta Information
_meta:
# Change log - most recent first
changelog:
- user_id: VictorVAlbert
date: '2026-11-21'
6 changes: 6 additions & 0 deletions codes/classical/q-ary_digits/ag/varieties/toric_classical.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ description: |

protection: 'Parameters of toric RM-type codes and various generalizations have been determined in Refs. \cite{arxiv:math/0512285,arxiv:math/0507598,arxiv:1009.4966,arxiv:1202.0085,arxiv:1706.02114,arxiv:1907.13217}.'

features:
decoders:
- 'Generalization of the Guruswami-Sudan list decoder to any defining polytope \cite{arxiv:2510.01811}.'

notes:
- 'See Ref. \cite{arxiv:1907.13217} for various examples and implementations in Magma.'

Expand All @@ -31,6 +35,8 @@ relations:
_meta:
# Change log - most recent first
changelog:
- user_id: VictorVAlbert
date: '2026-11-18'
- user_id: VictorVAlbert
date: '2026-11-08'
- user_id: VictorVAlbert
Expand Down
6 changes: 6 additions & 0 deletions codes/classical/q-ary_digits/alternant/bch/q-ary_bch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ description: |
protection: |
By the BCH bound, a BCH code with designed distance \(\delta\) has true minimum distance \(d\geq\delta\). BCH codes with different designed distances may coincide, and the largest possible designed distance for a given code is the \textit{Bose distance}; the true distance may still be larger than that.

BCH codes of length \(q+1\) over \(\mathbb{F}_q\) with zeroes \(\{\alpha^b,\alpha^{b+1}\}\) have distance three if and only if \(\gcd(2b+1,q+1)>1\) \cite[Thm. 2]{arxiv:2312.11995}.
For odd \(q\), their distance is otherwise four \cite[Thm. 4]{arxiv:2312.11995}.
These conditions yield infinite families of MDS and almost MDS codes \cite[Cors. 2 and 5]{arxiv:2312.11995}.

features:
rate: 'Primitive BCH codes are asymptotically bad \cite[Thm. 2.6.3]{preset:HKScyclic}\cite[pg.~269]{preset:MacSlo}.'

Expand Down Expand Up @@ -61,6 +65,8 @@ relations:
_meta:
# Change log - most recent first
changelog:
- user_id: VictorVAlbert
date: '2026-11-18'
- user_id: VictorVAlbert
date: '2026-06-08'
- user_id: VictorVAlbert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ description: |
where \(\{\alpha_j\}\) is a set of elements of \(\mathbb{F}_q\).
The code is MDS if no subset of \(k-1\) elements sums to zero.

features:
decoders:
- 'Guruswami-Sudan-based list and unique decoders, with near-linear runtime at fixed rate, for the code obtained by deleting the first of the two extra columns \cite[Sec. V]{arxiv:2512.24217}.'

relations:
parents:
- code_id: mds
Expand All @@ -41,6 +45,8 @@ relations:
_meta:
# Change log - most recent first
changelog:
- user_id: VictorVAlbert
date: '2026-11-18'
- user_id: VictorVAlbert
date: '2026-06-08'
- user_id: VictorVAlbert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ relations:
detail: 'The extended ternary Golay code is a ternary sharp configuration \cite[Table 12.1]{preset:HKSbounds}.'
- code_id: projective
detail: 'The extended ternary Golay code is projective because its dual, the code itself, has distance six \cite[pg. 178]{preset:MacSlo}.'
- code_id: lexicographic
detail: 'The extended ternary Golay code is a ternary lexicode for the ordered basis obtained from the standard basis \((e_0,e_1,\ldots)\) by replacing one vector \(e_\xi\), \(\xi\leq 8\), with \(e_\xi+e_9\) \cite[Thm. 1.6]{arxiv:2602.21067}.'
cousins:
- code_id: ternary_golay
detail: 'Adding a parity-check trit to the ternary Golay code yields the extended ternary Golay code.'
Expand All @@ -41,5 +43,7 @@ relations:
_meta:
# Change log - most recent first
changelog:
- user_id: VictorVAlbert
date: '2026-11-18'
- user_id: VictorVAlbert
date: '2026-10-13'
6 changes: 5 additions & 1 deletion codes/classical/q-ary_digits/easy/glynn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ relations:
- code_id: projective
detail: 'The Glynn code is constructed using a 10-arc in \(PG(4,9)\) that is not a rational curve.'
- code_id: mds
detail: 'The Glynn code is a rare example of an MDS code that is not related to an RS code.'
detail: 'The Glynn code is an MDS code that is not a GRS code \cite[Ex. 4]{arxiv:2107.06945}.'
- code_id: twisted_reed_solomon
detail: 'The Glynn code is the twisted RS code over \(\mathbb{F}_9\) with \(k=5\), hook \(h=2\), twist \(t=2\), and a nonsquare \(\eta\), evaluated at all ten points of \(\mathbb{F}_9\cup\{\infty\}\) \cite[Ex. 4]{arxiv:2107.06945}.'
cousins:
- code_id: reed_solomon
detail: 'The only other inequivalent \([10,5,6]_9\) code is an RS code, which is the unique Euclidean self-dual code for its parameters, and which is not Hermitian self-dual \cite{manual:{T. Baicheva, I. Bouyukliev, S. Dodunekov, and W. Willems, “On the [10; 5; 6] Reed-Solomon and Glynn codes”, Mathematica Balkanica, New Series 18, 67–78 (2004)},doi:10.1109/tit.2008.928297,doi:10.1007/s10623-009-9267-1}.'
Expand All @@ -35,6 +37,8 @@ relations:
_meta:
# Change log - most recent first
changelog:
- user_id: VictorVAlbert
date: '2026-11-21'
- user_id: VictorVAlbert
date: '2026-06-08'
- user_id: VictorVAlbert
Expand Down
5 changes: 5 additions & 0 deletions codes/classical/q-ary_digits/group/cyclic/q-ary_cyclic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,18 @@ relations:
detail: |
Two families of cyclic \(q\)-ary codes support an infinite family of combinatorial 3-designs \cite{arxiv:2010.09448}.
The supports of all fixed-weight codewords of a \(q\)-ary cyclic code support a combinatorial \(1\)-design \cite[Corr. 5.2.4]{preset:HKSdesigns}.
- code_id: mds
detail: 'Reducing a cyclic MDS code over a cyclotomic field modulo a prime ideal yields a cyclic MDS code over a finite field for all but finitely many primes \cite[Thm. 6]{arxiv:2604.06822}.
Reduction modulo a prime ideal above two yields \([2^s+1,4,2^s-2]\) cyclic MDS codes over \(\mathbb{F}_{2^{2s}}\) for \(s\geq 3\) that are not equivalent to GRS codes \cite[Thm. 11]{arxiv:2604.06822}.'



# Begin Entry Meta Information
_meta:
# Change log - most recent first
changelog:
- user_id: VictorVAlbert
date: '2026-11-18'
- user_id: VictorVAlbert
date: '2026-06-08'
- user_id: MazinKarjikar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,17 @@ relations:
- code_id: two_weight
detail: 'Projective two-weight codes are two-weight codes by definition \cite[Def. 19.1]{preset:HKStwoweight} (see also \cite{doi:10.1023/A:1008294128110,doi:10.1112/blms/18.2.97,doi:10.1016/j.ffa.2017.12.010}).'
# also in two_weight
cousins:
- code_id: dual
detail: 'For odd \(q\), a projective two-weight code over \(\mathbb{F}_q\) of dimension at least three that contains the all-ones vector is self-orthogonal \cite[Thm. 18]{arxiv:2311.11634}.'


# Begin Entry Meta Information
_meta:
# Change log - most recent first
changelog:
- user_id: VictorVAlbert
date: '2026-11-18'
- user_id: VictorVAlbert
date: '2026-06-08'
- user_id: VictorVAlbert
Expand Down
4 changes: 4 additions & 0 deletions codes/classical/q-ary_digits/weight/divisible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ relations:
parents:
- code_id: q-ary_linear
cousins:
- code_id: dual
detail: 'For odd prime \(p\), a \(p\)-divisible linear code over \(\mathbb{F}_{p^e}\) that contains the all-ones vector is self-orthogonal \cite[Thm. 11]{arxiv:2311.11634}.'
- code_id: group
detail: 'If \(C\) is a group code over a field of characteristic \(p\), then the monomial kernel \(K_M(C)\) has order dividing the weight of every codeword, and the \(p^{\prime}\)-part of the divisor of \(C\) equals the \(p^{\prime}\)-part of \(|K_M(C)|\) \cite[Thm. 16.8.3]{preset:HKSalgebra}.'

Expand All @@ -33,6 +35,8 @@ relations:
_meta:
# Change log - most recent first
changelog:
- user_id: VictorVAlbert
date: '2026-11-18'
- user_id: VictorVAlbert
date: '2026-06-08'
- user_id: VictorVAlbert
Expand Down
Loading