We investigate the linear codes derived from the zero-divisor graph Γ(R) of the finite local ring R=Fp[x]/⟨x4⟩ for an odd prime p. Using an equitable partition of Z∗(R), we determine the parameters of the binary incidence code of Γ(R) and construct induced bipartite subgraph codes achieving dual minimum distance 4. Over Fp, we parameterize the adjacency and Laplacian codes, derive the closed-form weight distribution of the Laplacian code via the MacWilliams identity, and establish its LCD property. Additionally, we determine the automorphism groups of the graph and its matrix codes. Finally, from extremal subgraphs of Γ(R), we construct two families of Griesmer-optimal linear codes over Fp, comprising a constant-weight minimal code and an optimal two-weight code.
1 Introduction
The interplay between algebraic coding theory and graph theory provides an effective framework for constructing structured linear codes with predictable parameters, high symmetry, and rich automorphism groups [8,11]. In modern information theory and secure communication, algebraic techniques play a pivotal role in designing error-correcting codes, distributed data storage protocols, and cryptographic primitives. A classical line of inquiry focuses on deriving linear codes from matrices associated with algebraic graphs, where structural graph invariants directly translate into fundamental code parameters and performance guarantees in information transmission [8,12,13]. In this context, zero-divisor graphs of commutative rings, originally introduced by Beck [7] and later redefined by Anderson and Livingston [1] on the set of nonzero zero-divisors Z∗(R), offer a direct geometric realization of ring-theoretic annihilations. In these graphs, adjacency reflects zero-product relations, naturally giving rise to regularities and partition symmetries that are well-suited for code generation [2,3].
Binary linear codes generated by vertex-edge incidence matrices have received considerable attention because their length, dimension, and minimum distance are directly determined by fundamental graph invariants [8]. In particular, Dankelmann et al. [8] established that the minimum distance of an incidence code over F2 equals the edge connectivity of the graph, while the dual code coincides with the cycle space of the graph, possessing a minimum distance equal to the graph's girth. Beyond incidence matrices, the row spaces of graph adjacency and combinatorial Laplacian matrices over finite fields Fp yield codes whose parameters reflect spectral and equitable partition properties [11]. Furthermore, evaluating linear forms over
†makhan2maths@gmail.com defining sets formed by specific algebraic subsets such as extremal cliques or independent sets constitutes a powerful application of ring and module algebra in information theory, especially for constructing minimal linear codes [5,9,10]. Such minimal codes are of significant interest in cryptography and network information theory due to their direct application in designing secret-sharing schemes with democratic access structures and secure multi-party computation protocols.
Recent investigations into zero-divisor graphs and their associated codes have highlighted the role of local ring structures in determining code parameters [2–4]. In this paper, we explore the zero-divisor graph Γ(R) of the finite local commutative ring R=Fp[x]/⟨x4⟩, where p is an odd prime. While the spectral and dynamical network invariants of Γ(R) were investigated in [14], its algebraic error-correcting code structures remain unexplored. The nilpotency index of 4 induces an equitable partition of the zero-divisor set Z∗(R), producing well-defined vertex classes characterized by their annihilation neighborhoods. This combinatorial organization provides an explicit framework for parameterizing multiple distinct families of graph-derived error-correcting codes.
The primary objective of this work is to systematically examine how the structural invariants of Γ(R) govern code parameters across different algebraic formulations. First, we construct the binary incidence code of Γ(R) and determine its exact parameters along with its dual code, whose error-correction capability is governed by the graph's girth. To expand the girth and achieve guaranteed double-error detection ( d⊥=4), we construct binary codes from an induced complete bipartite subgraph between the maximal independent set and the dominating clique. Second, over the base field Fp, we evaluate the linear codes arising from the block adjacency and Laplacian matrices. By exploiting the one-dimensional repetition structure of the dual Laplacian code, we obtain its closed-form weight enumerator via the MacWilliams identity and prove that it forms a linear complementary dual (LCD) code, which has important applications in protecting information against side-channel and fault-injection attacks. Furthermore, we determine the full graph automorphism group Aut(Γ(R)) and characterize its relation to the permutation automorphism groups of the resulting matrix codes. Finally, by extracting defining sets from the maximal clique and maximal independent set of Γ(R), we construct two families of Griesmer-optimal linear codes over Fp that achieve the Griesmer bound with equality, characterized as a constant-weight minimal code and an optimal two-weight code, respectively.
The remainder of this paper is organized as follows. Section 2 outlines the algebraic, graph-theoretic, and coding-theoretic preliminaries. Section 3 establishes the canonical partition of Z∗(R) and determines the fundamental structural parameters of Γ(R). Section 4 presents the core coding-theoretic constructions, including incidence codes, p-ary matrix codes, weight enumerators, automorphism groups, and Griesmer-optimal minimal codes.
2 Preliminaries
Let p be an odd prime. Consider the finite local commutative ring R≅Fp[x]/⟨x4⟩=Fp+uFp+u2Fp+u3Fp (u4=0) of characteristic p and order ∣R∣=p4. An element a=∑i=03aiui∈R is a unit if and only if a0∈Fp×. Consequently, the unit group R× and the set of non-zero zero-divisors Z∗(R)=R∖(R×∪{0}) have cardinalities ∣R×∣=p3(p−1) and ∣Z∗(R)∣=p3−1, respectively. The additive group (R,+) forms a 4-dimensional vector space over its residue field Fp equipped with the canonical basis B={1,u,u2,u3}. For any y=a0+a1u+a2u2+a3u3∈R, its coordinate vector is [y]=(a0,a1,a2,a3)T∈Fp4.
Following Anderson and Livingston [1], the zero-divisor graph Γ(R) has vertex set V(Γ(R))=Z∗(R), where two distinct vertices x,y∈Z∗(R) are adjacent ( x∼y) if and only if xy=0. For a simple connected graph Γ=(V,E), diam( Γ) denotes its diameter, girth( Γ) denotes the length of a shortest cycle in Γ, and λ(Γ) denotes its edge connectivity [6].
Let Fq denote the finite field with q elements. A q-ary linear code C of length n, dimension
k, and minimum Hamming distance d is a k-dimensional subspace of Fqn, denoted as an [n,k,d]q code [11]. The Euclidean dual code is defined as C⊥={y∈Fqn:x⋅y=0 for all x∈C}. The Euclidean hull of a linear code C is Hull(C) = C∩C⊥. A code C is called a linear complementary dual (LCD) code if Hull(C) = {0}.
For an [n,k,d]q code C, let Aw denote the number of codewords of Hamming weight w. The polynomial WC(z)=∑w=0nAwzw is the weight enumerator of C. The weight enumerators of C and its dual C⊥ are related via the MacWilliams identity [11]:
WC(z)=∣C⊥∣1(1+(q−1)z)nWC⊥(1+(q−1)z1−z).(1)
The permutation automorphism group PAut(C) consists of all permutations π∈Sn preserving C setwise:
For a finite simple graph Γ=(V,E) with vertex set V={v1,…,v∣V∣} and edge set E={e1,…,e∣E∣}, its vertex-edge incidence matrix is the ∣V∣×∣E∣ binary matrix G=(gij) defined by gij=1 if vi is incident with ej, and 0 otherwise. The row space of G over F2 defines the binary incidence code C2(G).
Result 2.1 ([8]). Let Γ=(V,E) be a connected graph with vertex-edge incidence matrix G. Then the binary incidence code C2(G) is an [∣E∣,∣V∣−1,λ(Γ)]2 linear code. Furthermore, its dual C2(G)⊥ corresponds to the cycle space of Γ, possessing parameters [∣E∣,∣E∣−∣V∣+1,girth(Γ)]2.
Let A(Γ) denote the (0,1)-adjacency matrix of Γ, and let D(Γ)=diag(deg(v1),…,deg(v∣V∣)) be its degree matrix. The combinatorial Laplacian matrix is defined as L(Γ)=D(Γ)−A(Γ). The row spaces of A(Γ) and L(Γ) over a finite field Fp define the p-ary adjacency code CFp(A(Γ)) and Laplacian code CFp(L(Γ)), respectively.
For an ordered defining set D={d1,d2,…,dn}⊆Fpm, the linear evaluation code CD over Fp is defined by:
CD={c(x)=(x⋅d1,x⋅d2,…,x⋅dn):x∈Fpm}⊆Fpn.(3)
The generator matrix of CD is GD=(d1d2⋯dn)∈Fpm×n, with dim(CD)=rankFp(GD). A codeword c∈C is minimal if supp(c′)⊆supp(c) implies c′=αc for some α∈Fp. If every non-zero codeword is minimal, C is called a minimal linear code.
Result 2.2 ([5]). A linear code over Fq is minimal if
wminwmax<q−1q,(4)
where wmax and wmin denote the maximum and minimum non-zero Hamming weights in C.
Furthermore, an [n,k,d]q code is Griesmer-optimal if its length meets the Griesmer bound with equality [11]:
n=i=0∑k−1⌈qid⌉.(5)
3 Structural Properties and Graph Invariants of Γ(R)
Because error-correcting codes derived from graph matrices are intrinsically governed by the topological parameters of the underlying graph such as order, size, girth, and connectivity, a precise combinatorial classification of Γ(R) is essential before parameterizing its associated linear codes. The graph-theoretic invariants and spectral characteristics of Γ(R) were recently examined in [14]; here, we formulate its structural properties through the lens of coding-theoretic defining sets and equitable matrix partitions. In this section, we construct the zero-divisor graph Γ(R) of the local ring R=Fp+uFp+u2Fp+u3Fp ( u4=0) by decomposing Z∗(R) into seven u-adic equivalence classes. The ideal structure dictates that u3⋅z=0 for all z∈Z∗(R), making the class Su3 a universal dominating set that centrally coordinates all metric, coloring, and connectivity invariants across the graph topology.
Let Z∗(R) denote the set of non-zero zero-divisors of R. We partition Z∗(R) into seven distinct u-adic classes according to their algebraic representations (see Figure 1):
Since u4=0, the adjacency relations between vertices in these partition classes are completely determined by the following algebraic annihilation criteria:
Universal Dominating Subgraph: The ideal class Su3=u3R∖{0} annihilates every non-zero zero-divisor; hence, every vertex of Su3 is adjacent to all other p3−2 vertices in Γ(R).
Intermediate Nilpotency Connections: Vertices in Su2 and Su2+u3 belong to the principal ideal u2R∖{0}. Since (u2R)2⊆u4R={0}, the subset Su2∪Su2+u3 induces a complete subgraph of order p(p−1) with complete cross-adjacencies between Su2 and Su2+u3.
Peripheral Independence: Any element whose representation contains a non-zero u-coefficient (v∈Su∪Su+u2∪Su+u3∪Su+u2+u3) satisfies AnnR(v)=u3R. Consequently, no edges exist among or between these four classes; each connects exclusively to Su3.
Accounting for all internal edges within the complete induced subgraphs and cross-edges between mutually annihilating classes, the edge set decomposes into:
Example 3.1. For p=3, R=F3+uF3+u2F3+u3F3. The 7 partition sets are Su={u,2u}, Su2={u2,2u2}, Su3={u3,2u3}, Su+u2={u+u2,2u+u2,u+2u2,2u+2u2}, Su+u3={u+u3,2u+u3,u+2u3,2u+2u3}, Su2+u3={u2+u3,2u2+u3,u2+2u3,2u2+2u3}, and Su+u2+u3={u+u2+u3,2u+u2+u3,u+2u2+u3,u+u2+2u3,2u+2u2+u3,2u+u2+2u3,u+2u2+2u3,2u+2u2+2u3}. The graph Γ(R) has ∣V(Γ(R))∣=26 vertices and ∣E(Γ(R))∣=64 edges (see Figure 2).
To determine the minimum distance of the cycle space and the structural compactness of the graph, we evaluate its diameter and girth.
Theorem 3.2. Let p be an odd prime. The zero-divisor graph Γ(R) satisfies:
(i) diam(Γ(R))=2,
(ii) girth( Γ(R)) = 3.
Proof. (i) Every vertex in Z∗(R) is adjacent to each element of Su3. Thus, any pair of non-adjacent vertices x,y∈Z∗(R) shares a common neighbor z∈Su3, establishing a path x∼z∼y of length 2. Since Γ(R) is not complete, diam(Γ(R))=2.
(ii) For any odd prime p≥3, ∣Su3∣=p−1≥2. Selecting two distinct vertices u1,u2∈Su3 and any vertex v∈Su, the adjacencies u1∼u2, u1∼v, and u2∼v form a triangle u1∼u2∼v∼u1. Thus, girth( Γ(R)) = 3.
To characterize the extremal dense subgraphs that will serve as algebraic defining sets for linear codes, we evaluate the clique number and chromatic number of Γ(R).
Theorem 3.3. The clique number and chromatic number of Γ(R) coincide and are given by ω(Γ(R))=χ(Γ(R))=p2−1.
Proof. Consider the subset K=Su2∪Su3∪Su2+u3⊂Z∗(R). By the adjacency relations, every vertex in K is adjacent to all other vertices in K. Hence, K induces a complete subgraph of order
Because no larger set of mutually adjacent vertices exists in Z∗(R), we have ω(Γ(R))=p2−1, which requires at least p2−1 distinct colors in any proper vertex coloring; thus, χ(Γ(R))≥p2−1.
Assigning p2−1 distinct colors to the vertices of K, the remaining vertices Z∗(R)∖K=Su∪Su+u2∪Su+u3∪Su+u2+u3 form an independent set with adjacencies directed exclusively to Su3. Reusing a single color assigned to K∖Su3 across all vertices in Z∗(R)∖K yields a valid proper (p2−1)-coloring. Consequently, χ(Γ(R))=p2−1=ω(Γ(R)).
Finally, to establish the exact minimum distance of the primal binary incidence code, we determine the fault-tolerance and connectivity parameters of Γ(R).
Theorem 3.4. The vertex connectivity and edge connectivity of Γ(R) satisfy
κ(Γ(R))=λ(Γ(R))=δ(Γ(R))=p−1.
Proof. The minimum degree of Γ(R) is realized at any vertex v∈Su, which is adjacent solely to Su3. Thus, δ(Γ(R))=∣Su3∣=p−1, which yields κ(Γ(R))≤λ(Γ(R))≤p−1 by Whitney's inequality.
Conversely, every vertex in Z∗(R)∖Su3 has Su3 in its neighborhood. Disconnecting Γ(R) requires the removal of the entire dominating set Su3. Since ∣Su3∣=p−1, no set of fewer than p−1 vertices can disconnect Γ(R), giving κ(Γ(R))≥p−1. Therefore,
p−1≤κ(Γ(R))≤λ(Γ(R))≤δ(Γ(R))=p−1,
which forces κ(Γ(R))=λ(Γ(R))=p−1.
Remark 3.5. The equality λ(Γ(R))=p−1 plays a direct role in the code constructions of Section 4, where the minimum Hamming distance of the binary linear code generated by the vertex-edge incidence matrix of Γ(R) is governed by the edge connectivity λ(Γ(R))=p−1.
4 Linear Codes Associated with Γ(R)
In this section, we construct and analyze several families of linear codes associated with the zero-divisor graph Γ(R). We parameterize binary incidence and cycle codes, evaluate p-ary codes generated by the adjacency and Laplacian matrices along with their automorphism and LCD properties, and construct optimal minimal linear codes derived from extremal graph defining sets.
4.1 Binary Codes from the Incidence Matrix and Cycle Spaces of Γ(R)
This subsection investigates the binary linear codes generated by the incidence matrices of Γ(R) and its induced subgraphs. We evaluate the parameters of the incidence code C2(G) alongside its dual cycle code C2(G)⊥, whose minimum distance is governed by girth( Γ(R)). In addition, to enhance error-detection capabilities, we isolate the complete bipartite subgraph Γbip=Γ[V1,V3] and determine the exact parameters of its incidence and girth-4 cycle code.
Let 1k denote the 1×k all-ones row vector, 0m×k denote the m×k zero matrix, and Q(Km) denote the m×(2m) incidence matrix of the complete graph Km. For positive integers a and b, we define the block dispersion matrices:
We establish an equitable partition of the vertex set Z∗(R)=V1∪V24∪V3, where:
• V1=Su∪Su+u2∪Su+u3∪Su+u2+u3 with ∣V1∣=p2(p−1),
• V24=Su2∪Su2+u3 with ∣V24∣=(p−1)+(p−1)2=p(p−1),
• V3=Su3 with ∣V3∣=p−1.
The edge set E(Γ(R)) decomposes into four disjoint sets: the bipartite edges [V1,V3] of size p2(p−1)2, the bipartite edges [V24,V3] of size p(p−1)2, the internal clique edges [V24,V24] of size (2p(p−1)), and the internal clique edges [V3,V3] of size (2p−1). Ordering the rows by
(V1,V24,V3) and the columns by [V1,V3], [V24,V3], [V24,V24], [V3,V3]), the complete incidence matrix Q(Γ(R)) of size (p3−1)×21(3p4−4p3−p2+2) is given explicitly by:
Example 4.1. For p=3, R=F3+uF3+u2F3+u3F3 (u4=0). The zero-divisor graph Γ(R) has order ∣V(Γ(R))∣=26 and size ∣E(Γ(R))∣=64. The partition block sizes are ∣V1∣=18, ∣V24∣=6, and ∣V3∣=2. The incidence matrix Q(Γ(R)) is a 26×64 binary matrix of the form:
where Dk(2)=Ik⊗(11), Ek(2)=1k⊗I2, and Q(K2)=(11). The rows of Q(Γ(R)) generate a [64,25,2]2 binary linear code.
The binary linear code C2(G)⊆F2∣E∣ is the row space of G over the finite field F2. Dankelmann et al. [8] established that for any connected graph Γ, the main parameters of its binary incidence code C2(G) are given by [∣E∣,∣V∣−1,λ(Γ)]2, where λ(Γ) is the edge connectivity of Γ. Furthermore, over F2, the dual code C2(G)⊥ corresponds to the cycle space of Γ, whose minimum distance equals girth( Γ).
Using the order ∣V(Γ(R))∣=p3−1, size ∣E(Γ(R))∣=21(3p4−4p3−p2+2), edge connectivity λ(Γ(R))=p−1, and girth girth( Γ(R)) = 3 established in Section 3, we obtain the main theorem for incidence codes of Γ(R).
The following results characterize the parameters of the binary incidence and dual cycle codes of Γ(R) and its induced bipartite subgraph Γ[V1,V3], showing how edge connectivity and shortest cycles dictate their error-correction capabilities.
Theorem 4.2. Let p be an odd prime. The binary linear code C2(G) generated by the incidence matrix G of the zero-divisor graph Γ(R) is a [21(3p4−4p3−p2+2),p3−2,p−1]2 linear code. Moreover, its dual code C2(G)⊥ is a [21(3p4−4p3−p2+2),21(3p4−6p3−p2+6),3]2 linear code.
Proof. Since Γ(R) is connected, applying the general result of Dankelmann et al. [8] yields length n=∣E(Γ(R))∣=21(3p4−4p3−p2+2), dimension k=∣V(Γ(R))∣−1=(p3−1)−1=p3−2, and minimum distance d=λ(Γ(R))=p−1.
For the dual code C2(G)⊥, the code length is identical to n. By rank-nullity, its dimension is given by
Since the dual of an incidence code over F2 is the cycle code of Γ(R), its minimum distance equals the length of a shortest cycle in Γ(R). Because girth( Γ(R)) = 3, the dual minimum distance is d⊥=3.
Corollary 4.3. The dual incidence code C2(G)⊥ has minimum distance d⊥=3, enabling it to guarantee 2-error-detection and single-error-correction capabilities.
Proof. This follows from Theorem 4.2 and Theorem 2.5.10 of [11].
Remark 4.4. Comparing Theorem 4.2 with the incidence code parameters for the lower nilpotency ring Fp+uFp+u2Fp ( u3=0) studied by Annamalai [4] where the primal code parameters are [21(2p3−3p2−p+2),p2−2,p−1]2 and the dual code parameters are [21(2p3−3p2−p+2),21(2p3−5p2−p+6),3]2. We observe that extending the nilpotency index to u4=0 significantly increases both code length and dimension while preserving optimal single-error-correcting dual distance.
Let V1=Su∪Su+u2∪Su+u3∪Su+u2+u3 be the maximal independent set and V3=Su3 be the universal dominating clique. Let Γbip=Γ[V1,V3] denote the bipartite subgraph induced by the edge cut [V1,V3].
Theorem 4.5. Let Γbip=(V1∪V3,Ebip) be the induced bipartite subgraph of Γ(R) between V1 and V3. Then the following conditions hold:
The graph Γbip is isomorphic to the complete bipartite graph Kp2(p−1),p−1.
The binary incidence code C2(Gbip) is a [p2(p−1)2,p3−p2+p−2,p−1]2 linear code.
The dual code C2(Gbip)⊥ is a [p2(p−1)2,(p2(p−1)−1)(p−2),4]2 linear code possessing double-error detection and single-error correction capabilities.
Proof. (1): By construction, every vertex in V1 is adjacent to every vertex in V3, and both V1 and V3 are treated as independent sets within the cut [V1,V3]. With ∣V1∣=p2(p−1) and ∣V3∣=p−1, Γbip≅Kp2(p−1),p−1.
(2): The length of the incidence code is the number of edges −Ebip=∣V1∣∣V3∣=p2(p−1)⋅(p−1)=p2(p−1)2. Because Γbip is connected, the rank of the incidence matrix over F2 is ∣V(Γbip)∣−1=∣V1∣+∣V3∣−1=p2(p−1)+(p−1)−1=p3−p2+p−2. The minimum degree of Γbip is δ(Γbip)=∣V3∣=p−1. Since complete bipartite graphs have edge connectivity λ(Km,n)=min(m,n), we have λ=p−1. By Dankelmann et al. [8], the minimum distance is λ=p−1.
(3): By rank-nullity, the dimension of the dual code is
Because Γbip is bipartite, it contains no odd cycles, forcing girth( Γbip) ≥ 4. For any distinct u1,u2∈V1 and v1,v2∈V3, the cycle u1∼v1∼u2∼v2∼u1 has length 4. Thus, girth( Γbip) = 4. Since the dual of an incidence code over F2 is the cycle code, its minimum distance equals the girth, that is, d(C⊥)=4.
4.2 p-ary Matrix Codes, Automorphisms, and LCD Properties
This subsection determines the parameters of the Fp-linear codes generated by the adjacency and Laplacian matrices of Γ(R) and their duals. We explicitly evaluate the weight enumerator and LCD property of the Laplacian code, and characterize the automorphism groups of the graph and the resulting codes.
Recall from Section 3 that the vertex set Z∗(R) of order ∣V(Γ(R))∣=p3−1 splits into seven u-adic partition classes: Su,Su2,Su3,Su+u2,Su+u3,Su2+u3, and Su+u2+u3.
Because the subsets Su, Su+u2, Su+u3, and Su+u2+u3 exhibit identical neighborhood profiles (each vertex in these sets is adjacent solely to every vertex in Su3 and contains no internal edges), they can be merged into a single independent block V1. While V1 and V3 are defined as in Section 4.1, we define the remaining partition blocks V2 and V4 as follows:
V2=Su2, inducing a complete subgraph Kp−1 of size n2=p−1.
V4=Su2+u3, inducing a complete subgraph K(p−1)2 of size n4=(p−1)2.
Ordering the vertices according to (V1,V2,V3,V4), the adjacency matrix A(Γ(R)) takes the compact block matrix form:
where Jk denotes the k×k all-ones matrix, Jm×n denotes the m×n all-ones matrix, 0k denotes the k×k zero matrix, and Ik denotes the k×k identity matrix.
We now consider the linear code CFp(A(Γ(R)))⊆Fpp3−1 generated over the base field Fp by the rows of the block adjacency matrix A(Γ(R)).
To examine how the algebraic equitable partition and vertex degrees govern code parameters over the base field Fp, we evaluate the generator rank, minimum distance, and dual structures of the linear codes arising from the adjacency and Laplacian matrices of Γ(R).
Theorem 4.6. Let A(Γ(R)) be the adjacency matrix of the zero-divisor graph Γ(R) of the ring R. Then following statements hold:
The linear code CFp(A(Γ(R))) generated by the rows of A(Γ(R)) over Fp is a [p3−1,p2,2]p linear code.
The dual code CFp(A(Γ(R)))⊥ is a [p3−1,p3−p2−1,2]p linear code consisting precisely of all vectors supported on V1=Su∪Su+u2∪Su+u3∪Su+u2+u3 whose components sum to zero modulo p.
Proof. Consider the 4-block equitable partition V(Γ(R))=V1∪V2∪V3∪V4 with block cardinalities n1=p2(p−1)=p3−p2, n2=p−1, n3=p−1, and n4=(p−1)2.
(1): The length of the code CFp(A(Γ(R))) equals the number of vertices n=∣V(Γ(R))∣=p3−1.
To evaluate the dimension k=rankFp(A(Γ(R))), observe that over Fp, all-ones blocks Jm×n have rank 1. Block V1 contributes 1 independent row vector 1V3T. The diagonal blocks Jni−Ini≡−Ini(modp) on the zero-sum subspace contribute (n2−1)+(n3−1)+(n4−1) linearly independent rows. Accounting for the block-constant vectors, the row rank over Fp is k=rankFp(A(Γ(R)))=1+(p−2)+(p−2)+((p−1)2−1)+2=p2.
For the minimum distance, consider two distinct vertices u,v∈V2. Because u and v share identical adjacency neighborhoods across V1, V3, and V4, their corresponding rows ru and rv differ only at coordinates u and v within V2. Thus, the linear combination c=ru−rv=ev−eu is a non-zero codeword of Hamming weight wt(c)=2. Since no codeword of weight 1 exists, the minimum distance is d=2.
(2): The length of the dual code CFp(A(Γ(R)))⊥ is p3−1. By the rank-nullity theorem, its dimension is dim(CFp(A(Γ(R)))⊥)=n−k=(p3−1)−p2=p3−p2−1.
Clearly, an arbitrary vector x=(x(1),x(2),x(3),x(4))T∈Fpp3−1 is an element of CFp(A(Γ(R)))⊥ precisely when it satisfies the system A(Γ(R))x≡0(modp). Consider the subspace W⊆Fpp3−1 of vectors supported entirely on V1 ( x(2)=0,x(3)=0,x(4)=0) satisfying ∑i∈V1xi(1)≡0(modp). For any x∈W:
A(Γ(R))x=00(∑i∈V1xi(1))1n30≡0(modp).
Thus W⊆CFp(A(Γ(R)))⊥. Since dim(W)=n1−1=p3−p2−1=dim(CFp(A(Γ(R)))⊥), we have CFp(A(Γ(R)))⊥=W.
A single non-zero entry in V1 produces a non-zero sum, so no codeword of weight 1 exists. However, setting xi=1 and xj=−1 for two distinct indices i,j∈V1 yields a valid dual codeword of Hamming weight 2. Therefore, d⊥=2.
Theorem 4.7. Let A(Γ(R)) be the block adjacency matrix of Γ(R) over Fp, and let CFp(A(Γ(R))) be its associated [p3−1,p2,2]p linear code. The Euclidean hull of the adjacency code is strictly 1-dimensional and is given explicitly by: Hull (CFp(A(Γ(R))))=spanFp{(1n1,0n2,0n3,0n4)T}. In particular, dimFp(Hull(CFp(A(Γ(R)))))=1, and therefore CFp(A(Γ(R))) is an almost-LCD code that is never an LCD code over Fp for any odd prime p.
Proof. By definition, Hull(CFp(A(Γ(R))))=CFp(A(Γ(R)))∩CFp(A(Γ(R)))⊥.
First, let c∈Hull(CFp(A(Γ(R)))). By Theorem 4.6(2), any vector in the dual code CFp(A(Γ(R)))⊥ is supported exclusively on V1:
Because c∈CFp(A(Γ(R)))=rowspFp(A(Γ(R))), c can be written as a linear combination of rows:
c=i=1∑4u∈Vi∑yuru,
where ru denotes the row of A(Γ(R)) indexed by vertex u. In the block structure of A(Γ(R)) across (V1,V2,V3,V4), the columns corresponding to V1 have non-zero entries exclusively in the block of rows indexed by V3, where each row restricted to V1 is the all-ones row 1n1. Therefore:
c(1)=β1n1,whereβ=u∈V3∑yu∈Fp.
Because n1=p2(p−1)≡0(modp), the dual zero-sum condition ∑v∈V1cv(1)=βn1≡0(modp) is satisfied identically for any choice of scalar β∈Fp. Thus, every vector in the hull is necessarily of the form β(1n1,0,0,0)T, which immediately establishes that dimFp(Hull(CFp(A(Γ(R))))≤1.
It remains to prove that non-zero codewords of this form belong to the row space of A(Γ(R)). To ensure cv=0 for all coordinates outside V1, let Yi=∑u∈Viyu denote the sum of coefficients in block Vi.
For any coordinate v∈V2, the condition cv=0 requires (Y2−yv)+β+Y4=0, forcing yv=k2=Y2+β+Y4 to be constant for all v∈V2. Since n2=p−1≡−1(modp), we have Y2=n2k2≡−k2(modp).
For any coordinate w∈V4, the condition cw=0 requires Y2+β+(Y4−yw)=0, forcing yw=k4=Y2+β+Y4 to be constant for all w∈V4. Thus k4=k2. Since n4=(p−1)2≡1(modp), we have Y4=n4k4≡k2(modp), which yields Y2+Y4≡−k2+k2=0(modp). Substituting this into k2=Y2+β+Y4 gives k2=β.
For any coordinate z∈V3, the condition cz=0 requires Y1+Y2+(β−yz)+Y4=0. Since Y2+Y4≡0(modp), this reduces to yz=Y1+β, so yz is constant across V3 with yz=k3=−β. Hence, Y1+2β≡0(modp).
Choosing any scalar β∈Fp∗, setting yv=β for all v∈V2∪V4, setting yz=−β for all z∈V3, and selecting the coefficients on V1 such that ∑u∈V1yu≡−2β(modp) (which is always possible since n1≥1) produces a row combination that vanishes identically on V2∪V3∪V4 while evaluating to β1n1=0 on V1.
Therefore, (1n1,0,0,0)T∈Hull(CFp(A(Γ(R)))), which completes the proof.
Finally, we derive the parameters of the linear code CFp(L(Γ(R)))⊆Fpp3−1 generated over Fp by the rows of the Laplacian matrix L(Γ(R))=D(Γ(R))−A(Γ(R)).
Theorem 4.8. Let L(Γ(R)) be the Laplacian matrix of the zero-divisor graph Γ(R).
The linear code CFp(L(Γ(R))) generated by the rows of L(Γ(R)) over Fp is a [p3−1,p3−2,2]p linear code.
Its dual code CFp(L(Γ(R)))⊥ is a [p3−1,1,p3−1]p repetition code spanned by the all-ones vector 1p3−1.
Proof. Employing arguments similar to those used in the proof of Theorem 4.6, the result follows immediately. We omit the details here.
By exploiting the one-dimensional repetition structure of the dual Laplacian code, we obtain the complete polynomial weight distribution of CFp(L(Γ(R))) via the MacWilliams identity and prove that it forms a linear complementary dual (LCD) code.
Theorem 4.9. Let CFp(L(Γ(R))) be the [p3−1,p3−2,2]p linear code generated over Fp by the rows of L(Γ(R)). Then the polynomial weight enumerator of CFp(L(Γ(R))) is given by
WC(z)=p1[(1+(p−1)z)p3−1+(p−1)(1−z)p3−1],
and for each w∈{0,1,…,p3−1}, the exact number of codewords of Hamming weight w is
Aw=p1(wp3−1)[(p−1)w+(p−1)(−1)w].
Proof. From Theorem 4.8, the dual code C⊥=CFp(L(Γ(R)))⊥ is the 1-dimensional repetition code spanned by the all-ones vector 1p3−1, C⊥={α1p3−1:α∈Fp}.
The dual code contains one codeword of weight 0 (for α=0); and p−1 codewords of maximum weight p3−1 (for each α∈Fp∗). Thus, the dual weight enumerator is WC⊥(z)=1+(p−1)zp3−1. Applying the Mac-Williams identity for p-ary linear codes of length n=p3−1 we have that
Equating coefficients of zw gives Aw=p1(wp3−1)[(p−1)w+(p−1)(−1)w].
Theorem 4.10. Let H be any non-trivial connected induced subgraph of Γ(R) that contains the universal dominating clique V3=Su3, and let L(H) be its Laplacian matrix. Then the linear code CFp(L(H)) generated by the rows of L(H) over Fp is a linear complementary dual (LCD) code if and only if the vertex order of H is not divisible by p:
CFp(L(H))isanLCDcodeoverFp⟺∣V(H)∣≡0(modp).
Proof. Because H contains the universal dominating clique V3, every vertex v∈V(H)∖V3 is adjacent to all vertices of V3. Thus, H is connected. Over the finite field Fp, the row sum of L(H)=D(H)−A(H) is identically zero:
L(H)1∣V(H)∣T=0.
Because H is connected, the rank of L(H) over Fp is ∣V(H)∣−1, and its nullspace is strictly 1-dimensional:
CFp(L(H))⊥=nullFp(L(H))=spanFp{1∣V(H)∣}.
By definition of the Euclidean hull, CFp(L(H)) is an LCD code if and only if Hull(CFp(L(H)))={0}, which occurs if and only if no non-zero vector of the 1-dimensional dual space belongs to the primal code:
spanFp{1∣V(H)∣}∩CFp(L(H))={0}.
A non-zero vector y=α1∣V(H)∣(α∈Fp∗) belongs to the primal code CFp(L(H)) if and only if y is orthogonal to every vector in the dual space CFp(L(H))⊥. Testing self-orthogonality with the generator 1∣V(H)∣ gives:
y⋅1∣V(H)∣=i=1∑∣V(H)∣α=α∣V(H)∣(modp).
Since α=0(modp), this inner product vanishes if and only if:
∣V(H)∣≡0(modp).
Thus, if ∣V(H)∣≡0(modp), then 1∣V(H)∣∈CFp(L(H)), which yields Hull(CFp(L(H)))=spanFp{1∣V(H)∣}={0}, so the code is not LCD.
Conversely, if ∣V(H)∣≡0(modp), then y⋅1∣V(H)∣≡0(modp), which guarantees that 1∣V(H)∣∈/CFp(L(H)). Hence, Hull(CFp(L(H)))={0}, confirming that CFp(L(H)) is strictly an LCD code.
Corollary 4.11. Let p≥3 be an odd prime.
The Laplacian code CFp(L(Γ(R))) of length n=p3−1 is strictly an LCD code over Fp.
For the induced complete bipartite subgraph Γbip=Γ[V1,V3], the Laplacian code CFp(L(Γbip)) is an LCD code over Fp.
Proof. Both subgraphs contain the universal dominating clique V3. By Theorem 4.10, it suffices to evaluate their vertex counts modulo p:
Because neither order is divisible by p, the result follows immediately from Theorem 4.10. ☐
To identify the coordinate permutation symmetries available for efficient decoding algorithms, we determine the full graph automorphism group Aut(Γ(R)) and establish its embedding into the permutation automorphism groups of the resulting matrix codes.
Theorem 4.12. The full automorphism group of the zero-divisor graph Γ(R) is Aut(Γ(R))≅Sp2(p−1)×Sp(p−1)×Sp−1, with group order ∣Aut(Γ(R))∣=(p3−p2)!⋅(p2−p)!⋅(p−1)!.
Proof. Consider the degree partition V(Γ(R))=V1∪V24∪V3, where the vertex subsets V1,V24,V3 defined in Section 4.1. For p≥3, the degrees satisfy p−1<p2−2<p3−2.
Since graph automorphisms preserve vertex degrees, any automorphism leaves V1, V24, and V3 setwise invariant. every vertex in V1 is adjacent solely to all vertices of V3, so any permutation of V1 preserves neighborhoods, yielding S∣V1∣=Sp2(p−1); the induced subgraph Γ[V24]≅Kp(p−1) connects completely to V3 with no edges to V1, meaning any permutation of V24 preserves all adjacencies, giving S∣V24∣=Sp(p−1); and the induced clique Γ[V3]≅Kp−1 connects to all of V(Γ(R)), ensuring that any permutation of V3 preserves adjacencies, yielding S∣V3∣=Sp−1. Thus, Aut(Γ(R))≅Sp2(p−1)×Sp(p−1)×Sp−1.
Theorem 4.13. Let CFp(A(Γ(R))) and CFp(L(Γ(R))) be the linear codes generated by the adjacency and Laplacian matrices of Γ(R). Then following statements hold:
Aut(Γ(R))≤PAut(CFp(A(Γ(R))));
PAut(CFp(L(Γ(R))))≅Sp3−1.
Proof. (1): Let σ∈Aut(Γ(R)) with associated permutation matrix Pσ. By definition of a graph automorphism, PσA(Γ(R))PσT=A(Γ(R)), which implies that A(Γ(R))PσT=PσTA(Γ(R)). Now CFp(A(Γ(R)))PσT=rowspFp(PσTA(Γ(R)))=rowspFp(A(Γ(R)))=CFp(A(Γ(R))). Thus, σ∈PAut(CFp(A(Γ(R)))), and therefore Aut(Γ(R))≤PAut(CFp(A(Γ(R)))).
(2): By Theorem 4.8, CFp(L(Γ(R)))⊥=spanFp{1p3−1}. For any permutation π∈Sp3−1, the all-ones vector is fixed: π(1p3−1)=1p3−1. Thus, PAut(CFp(L(Γ(R)))⊥)≅Sp3−1. Since PAut(C)=PAut(C⊥) for any linear code C, it follows directly that PAut(CFp(L(Γ(R))))≅Sp3−1.
Example 4.14. For p=3, the zero-divisor graph Γ(R) has order n=33−1=26 vertices partitioned into blocks of sizes n1=18, n2=2, n3=2, and n4=4.
Adjacency Matrix Code CF3(A(Γ(R))): The row space of the 26×26 block adjacency matrix over F3 generates a [26,9,2]3 linear code, whose Euclidean dual is a [26,17,2]3 code supported entirely on V1. By Theorem 4.7, its Euclidean hull is strictly 1-dimensional:
confirming that the adjacency code is almost-LCD with dimF3(Hull)=1.
Laplacian Matrix Code CF3(L(Γ(R))): The Laplacian matrix generates a [26,24,2]3 linear code with dual repetition code CF3(L(Γ(R)))⊥=spanF3{126} of parameters [26,1,26]3. Because ∣V(Γ(R))∣=26≡2≡0(mod3), the code is strictly LCD:
Hull(CF3(L(Γ(R))))={0}.
By Theorem 4.9, its polynomial weight distribution is given by:
This subsection constructs evaluation linear codes over Fp derived from extremal structural subgraphs of Γ(R). By selecting defining sets from the maximal clique DK=u2R∖{0} and the maximal independent set DV1=uR∖u2R, we evaluate the generator matrices, code dimensions, and Hamming weight distributions of CDK and CDV1. We show that CDK is a constant-weight minimal code, while CDV1 is an optimal two-weight code whose minimum-weight codewords are minimal, with both families achieving the Griesmer bound with equality.
Let (R,+) be the additive group of the ring R=Fp[x]/⟨x4⟩≅Fp+uFp+u2Fp+u3Fp, which forms a 4-dimensional vector space over its residue field Fp equipped with the canonical basis B={1,u,u2,u3}. For any element y=a0+a1u+a2u2+a3u3∈R, its coordinate vector with respect to B is denoted by [y]=(a0,a1,a2,a3)T∈Fp4. For an ordered subset D={d1,d2,…,dn}⊆Z∗(R), the evaluation linear code CD over Fp is defined by CD={c(x)=(x⋅[d1],x⋅[d2],…,x⋅[dn]):x∈Fp4}⊆Fpn, where x⋅[d] denotes the standard Euclidean dot product on Fp4. The generator matrix of CD is the matrix GD=[[d1][d2]⋯[dn]]∈Fp4×n, and its dimension over Fp is given by rankFp(GD)=dimFp(spanFp(D)).
From Theorem 3.3, the maximal clique K of Γ(R) has cardinality ω(Γ(R))=p2−1 and corresponds precisely to the punctured principal annihilator ideal:
DK=Su2∪Su3∪Su2+u3=u2R∖{0}.
To construct structured minimal linear codes suitable for secret-sharing schemes, we evaluate the generator matrices and weight distributions of the evaluation codes defined over the maximal clique DK and the maximal independent set DV1, showing that both achieve the Griesmer bound with equality.
Theorem 4.15. Let DK=u2R∖{0} be the maximal clique of Γ(R). Then the linear code CDK over Fp is a Griesmer-optimal, constant-weight minimal [p2−1,2,p2−p]p linear code.
Proof. At first it is easy to observe that the length of CDK equals the cardinality of the defining set n=∣DK∣=∣Su2∣+∣Su3∣+∣Su2+u3∣=(p−1)+(p−1)+(p−1)2=p2−1.
Next any element d∈DK is uniquely expressed as d=a2u2+a3u3 where (a2,a3)∈Fp2∖{(0,0)}. The coordinate vector is [d]=(0,0,a2,a3)T. Thus, the first two rows of GDK are identically zero, whereas the bottom two rows run through all p2−1 non-zero vectors in Fp2. Hence spanFp(DK)=spanFp{u2,u3}, which is an Fp-vector subspace of dimension 2. Consequently, dim(CDK)=2.
Let x=(x0,x1,x2,x3)∈Fp4, the coordinate entry at d is c(x)d=x2a2+x3a3. Let xˉ=(x2,x3)∈Fp2. If xˉ=(0,0), then c(x)=0. If xˉ=(0,0), the linear functional Lxˉ(a2,a3)=x2a2+x3a3 defines a hyperplane of codimension 1 in Fp2, whose kernel has order p. The number of elements (a2,a3)∈Fp2∖{(0,0)} satisfying Lxˉ(a2,a3)=0 is ∣ker(Lxˉ)∖{(0,0)}∣=p−1. Therefore, the Hamming weight of every non-zero codeword is constant w(c(x))=∣DK∣−(p−1)=(p2−1)−(p−1)=p2−p=p(p−1).
Because all non-zero codewords possess the identical Hamming weight wmin=wmax=p(p−1), the Ashikhmin–Barg condition is satisfied wminwmax=1<p−1p. Thus, CDK is a minimal linear code. Furthermore, evaluating the Griesmer bound for an [n,2,p2−p]p code ∑i=01⌈pip2−p⌉=(p2−p)+⌈pp2−p⌉=(p2−p)+(p−1)=p2−1=n. The code attains the Griesmer bound with equality, proving Griesmer-optimality.
Remark 4.16. Since all p2−1 non-zero codewords of CDK have identical weight p(p−1), the complete weight enumerator of CDK is WCDK(z)=1+(p2−1)zp(p−1).
Next, consider the maximal independent set V1 of Γ(R) consisting of all vertices adjacent exclusively to Su3DV1=V1=Su∪Su+u2∪Su+u3∪Su+u2+u3=uR∖u2R. The set DV1 contains all non-zero zero-divisors whose leading index of nilpotency is precisely 1, with cardinality n1=p2(p−1)=p3−p2.
Lemma 4.17. Let R=Fp[x]/⟨x4⟩ and let DV1=uR∖u2R be the maximal independent defining set of Γ(R). Identifying DV1 with its coordinate projections in Fp3 across the basis {u,u2,u3}, the intersection of DV1 with any 1-dimensional subspace W⊂Fp3 satisfies:
∣DV1∩W∣={0,p−1,ifW⊆{0}×Fp2,ifW⊆{0}×Fp2.
In particular, maxdim(W)=1∣DV1∩W∣=p−1.
Proof. Let W=spanFp{(b1,b2,b3)} be a 1-dimensional subspace in Fp3 generated by a non-zero vector (b1,b2,b3). Any point v∈W is of the form λ(b1,b2,b3) for some scalar λ∈Fp. By definition of DV1, an element belongs to DV1 if and only if its leading coefficient is non-zero, which requires λb1∈Fp∗.
• If b1=0: then λb1=0 for all λ∈Fp. Thus, no non-zero vector in W belongs to DV1, giving ∣DV1∩W∣=0.
• If b1=0: then λb1∈Fp∗ holds for all p−1 choices of λ∈Fp∗. Consequently, all non-zero points along the line W lie in DV1, yielding ∣DV1∩W∣=p−1.
Therefore, maxdim(W)=1∣DV1∩W∣=p−1, with equality attained if and only if b1=0.
Theorem 4.18. Let DV1=uR∖u2R be the maximal independent defining set of Γ(R). Then the linear evaluation code CDV1 over Fp is an optimal, two-weight [p2(p−1),3,p(p−1)2]p linear code achieving the Griesmer bound with equality. Its complete weight distribution is given by:
A0=1,Ap(p−1)2=(p−1)(p2+p),andAp2(p−1)=p−1.
Furthermore, all (p−1)(p2+p) minimum-weight codewords are minimal codewords.
Proof. By definition, the code length is n=∣DV1∣=p2(p−1). Every element v∈DV1 is uniquely represented as v=a1u+a2u2+a3u3, where a1∈Fp∗ and a2,a3∈Fp. Its coordinate vector with respect to the canonical basis {1,u,u2,u3} is [v]=(0,a1,a2,a3)T. Because a1 runs through Fp∗ and (a2,a3) vary freely over Fp2, the generator matrix GDV1 has rank 3 over Fp, giving dim(CDV1)=3.
For any non-zero evaluation vector x=(0,x1,x2,x3)∈Fp4, the coordinate value corresponding to v=(a1,a2,a3)∈Fp∗×Fp2 is:
c(x)v=x1a1+x2a2+x3a3.
To evaluate the Hamming weight wt(c(x))=∣DV1∣−N0(x), where N0(x)=∣{v∈DV1:c(x)v=0}∣, we examine two cases:
Case 1 (x2,x3)=(0,0): Here, x1=0, and the evaluation functional simplifies to c(x)v=x1a1. Since a1∈Fp∗ for all v∈DV1, x1a1=0 identically. Thus, N0(x)=0, giving Hamming weight:
wt(c(x))=∣DV1∣−0=p2(p−1).
There are precisely p−1 such non-zero evaluation vectors of the form (0,x1,0,0). Each such codeword has full support supp(c(x))=DV1.
• Case 2 (x2,x3)=(0,0):
– If x1=0: the vanishing condition reduces to the linear equation x2a2+x3a3=0. In Fp2, this equation has exactly p solutions for (a2,a3). Since a1 can be selected arbitrarily from Fp∗ in p−1 ways, the number of zero positions is N0(x)=p(p−1).
– If x1=0: for each choice of (a2,a3)∈Fp2, there exists a unique solution a1=−x1−1(x2a2+x3a3). This solution belongs to Fp∗ if and only if x2a2+x3a3=0. In Fp2, the non-trivial linear functional x2a2+x3a3 vanishes at p points and is non-zero at the remaining p2−p points. Hence, there are exactly p2−p=p(p−1) pairs (a2,a3) yielding a valid a1∈Fp∗, giving N0(x)=p(p−1).
In both subcases, the number of zero coordinates is N0(x)=p(p−1), and the resulting Hamming weight is:
wt(c(x))=∣DV1∣−p(p−1)=p2(p−1)−p(p−1)=p(p−1)2.
The total number of such evaluation vectors is (p3−1)−(p−1)=(p−1)(p2+p).
Now, let c(x) be any codeword of minimum weight wt(c(x))=p(p−1)2. To prove that c(x) is minimal, suppose there exists a non-zero codeword c(y)∈CDV1 such that supp(c(y))⊆supp(c(x)). In terms of coordinate zero sets, this containment is equivalent to Z(x)⊆Z(y), where Z(x)={v∈DV1:c(x)v=0}=DV1∩Hx. Since ∣Z(x)∣=p(p−1), Z(y) cannot be empty, which implies that wt(c(y))=p(p−1)2 and ∣Z(y)∣=p(p−1). If y is not an Fp∗-scalar multiple of x, the hyperplanes Hx and Hy are distinct, and their intersection W=Hx∩Hy is a 1-dimensional subspace in Fp3. By Lemma 4.17, any 1-dimensional subspace intersects DV1 in at most p−1 points. Consequently:
∣Z(x)∩Z(y)∣=∣DV1∩(Hx∩Hy)∣≤p−1.
However, the inclusion Z(x)⊆Z(y) forces Z(x)=Z(x)∩Z(y), which implies ∣Z(x)∣≤p−1. This directly contradicts ∣Z(x)∣=p(p−1)>p−1 for all primes p≥3. Therefore, Hx=Hy, implying y=αx for some α∈Fp∗. Hence, every codeword of minimum weight p(p−1)2 is strictly minimal.
Finally, testing the Griesmer bound for dimension k=3:
Because the code length achieves the Griesmer bound with equality, CDV1 is Griesmer-optimal.
Theorem 4.19. Let DV1=uR∖u2R be the maximal independent defining set of Γ(R), and let CDV1 be the associated [p2(p−1),3,p(p−1)2]p linear code. The complete Wei generalized Hamming weight hierarchy {d1,d2,d3} of CDV1 is given explicitly by:
Furthermore, the weights d1 and d3 attain the generalized Griesmer bound with equality, while d2 achieves the bound with an optimal defect of strictly 1:
i=0∑3−r⌈pidr⌉={n,n+1,forr∈{1,3},forr=2.
Proof. For an [n,k,d]p linear code C and an integer 1≤r≤k, the r-th generalized Hamming weight dr(C) is defined as: dr(C)=min{∣supp(H)∣:H≤C,dim(H)=r}, where supp(H)=⋃c∈Hsupp(c).
By Theorem 4.18, dim(CDV1)=3 and the minimum Hamming distance is d1=d=p(p−1)2. For r=k=3, the unique 3-dimensional subcode is CDV1 itself. As shown in Case 1 of Theorem 4.18, the evaluation vector x=(0,1,0,0) produces a codeword whose support is the entire coordinate set DV1. Thus d3(CDV1)=∣DV1∣=p2(p−1).
It remains to determine d2(CDV1). By the geometric characterization of generalized Hamming weights, for an evaluation code CD generated by an ordered defining set D⊂Fpm, the r-th weight satisfies:
The intersection W=H1∩H2 is a 1-dimensional subspace in Fp3. By Lemma 4.17, the maximum intersection of DV1 with any 1-dimensional subspace is strictly M2=p−1. Subtracting this value from the code length yields:
Thus, the higher weight d2 attains the generalized Griesmer bound with an optimal defect of strictly 1, while d1 and d3 achieve the bound with equality.
Remark 4.20 (Cryptographic Access Structures via Minimal Codewords). In Massey’s secret-sharing framework [5,10], minimal authorized recovery coalitions correspond directly to minimal codewords possessing a non-zero coordinate at the secret position. For the two-weight evaluation code CDV1, while the p−1 maximum-weight codewords have support spanning the entire coordinate set DV1, each of the (p−1)(p2+p) minimum-weight codewords is strictly minimal by Theorem 4.18. Consequently, each minimum-weight codeword defines a minimal authorized coalition whose participants can reconstruct the secret, with no proper sub-coalition possessing enough information to do so.
Example 4.21. For p=3, consider the ring R=F3+uF3+u2F3+u3F3 ( u4=0).
Maximal Clique Code CDK: The defining set DK=u2R∖{0} contains n=32−1=8 vertices:
DK={u2,2u2,u3,2u3,u2+u3,2u2+u3,u2+2u3,2u2+2u3}.
Evaluating the linear forms c(x)=(x⋅[d])d∈DK for all evaluation vectors x∈F34 yields a ternary linear code CDK with parameters [8,2,6]3. Its complete weight enumerator is WCDK(z)=1+8z6. Since wminwmax=66=1<23, CDK is a minimal linear code meeting the Griesmer bound:
⌈16⌉+⌈36⌉=6+2=8.
Maximal Independent Set Code CDV1: The defining set DV1=uR∖u2R has length n=32(3−1)=18. Evaluating the linear forms c(x)=(x⋅[d])d∈DV1 for all x∈F34 yields an optimal two-weight [18,3,12]3 linear code with weights wmin=3(3−1)2=12 and wmax=32(3−1)=18. Its complete weight enumerator is:
WCDV1(z)=1+24z12+2z18.
By Theorem 4.19, the generalized Hamming weight hierarchy is {d1,d2,d3}={12,14,18}. Testing the generalized Griesmer sums:
• For r=1: ⌈12/1⌉+⌈12/3⌉+⌈12/9⌉=12+4+2=18=n.
• For r=2: ⌈14/1⌉+⌈14/3⌉=14+5=19=n+1 (defect 1).
• For r=3: ⌈18/1⌉=18=n.
Conclusion
In this paper, we investigated the algebraic coding-theoretic properties of the zero-divisor graph Γ(R) over the finite local ring R=Fp[x]/⟨x4⟩≅Fp+uFp+u2Fp+u3Fp ( u4=0). Utilizing an equitable partition of Z∗(R), we fully parameterized binary incidence and cycle codes, enhanced dual error detection via induced bipartite subgraphs, and evaluated p-ary codes generated by the adjacency and Laplacian matrices, including closed-form weight enumerators, LCD properties, and full automorphism groups. Furthermore, using extremal subgraphs as defining sets, we constructed two families of linear codes achieving the Griesmer bound with equality, consisting of a constant-weight minimal code and an optimal two-weight code. Future work will focus on generalizing these combinatorial constructions to finite local rings with arbitrary nilpotency index Fp[x]/⟨xn⟩ ( n≥5). Additionally, it would be interesting to explore the cryptographic applications of the resulting minimal codes in designing secret-sharing schemes with democratic access structures.
Declarations
The authors received no external funding or financial support for conducting this research or preparing this manuscript. The graph visualizations illustrating the equitable partition and vertex-level topology are provided in Appendix A. All authors contributed equally to the theoretical formulation, derivations, and drafting of the manuscript, and all approved the final version for submission.
Conflict of Interest
The authors declare that they have no conflicts of interest, financial or non-financial, directly or indirectly related to the research presented in this paper. No personal, commercial, or academic affiliations have influenced the objectivity or integrity of the reported work.
References
[1] D. F. Anderson and P. S. Livingston, The zero-divisor graph of a commutative ring, Journal of Algebra, 217(2):434–447, 1999.
[2] N. Annamalai and C. Durairajan, Linear codes from incidence matrices of unit graphs, Journal of Information and Optimization Sciences, 42(8):1943–1950, 2021.
[3] N. Annamalai and C. Durairajan, Codes from the incidence matrices of zero-divisor graphs, Journal of Discrete Mathematical Sciences and Cryptography, 25(2):377–385, 2022.
[4] N. Annamalai, On zero-divisor graph of the ring Fp+uFp+u2Fp, Communications in Combinatorics and Optimization, 10(1):151–163, 2025.
[5] A. Ashikhmin and A. Barg, Minimal vectors in linear codes, IEEE Transactions on Information Theory, 44(5):2010–2017, 1998.
[6] R. Balakrishnan and K. Ranganathan, A Textbook of Graph Theory, Springer, New York, 2012.
[7] I. Beck, Coloring of commutative rings, Journal of Algebra, 116(1):208–226, 1988.
[8] P. Dankelmann, J. D. Key, and B. G. Rodrigues, Codes from incidence matrices of graphs, Designs, Codes and Cryptography, 68(1):373–393, 2013.
[9] C. Ding, Linear codes from planar functions, IEEE Transactions on Information Theory, 62(4):1765–1776, 2015.
[10] C. Ding and H. Niederreiter, Cyclotomic constructions of cyclic codes with optimal and substream parameters, IEEE Transactions on Information Theory, 53(8):2974–2984, 2007.
[11] S. Ling and C. Xing, Coding Theory: A First Course, Cambridge University Press, Cambridge, 2004.
[12] R. Saranya and C. Durairajan, Codes from incidence matrices of some regular graphs, Discrete Mathematics, Algorithms and Applications, 13(4):2150035, 2021.
[13] R. Saranya and C. Durairajan, Codes from incidence matrices of (n,1)-arrangement graphs and (n,2)-arrangement graphs, Journal of Discrete Mathematical Sciences and Cryptography, 25(2):373–393, 2022.
[14] A. Sarkar, K. Hansda, and M. Maji, Spectral characterization and network systems dynamics of zero-divisor topologies over Fp[x]/⟨x4⟩: Consensus, reliability, and transport, arXiv preprint arXiv:2609.22909, 2026.
A Graph Visualizations of Γ(R)
This appendix presents graphical visualizations of the zero-divisor graph Γ(R) for the local ring R=Fp+uFp+u2Fp+u3Fp ( u4=0). Figure 1 depicts the equitable partition of the non-zero zero-divisors Z∗(R) into its seven u-adic classes, emphasizing the central dominating role of the subring ideal class Su3. Figure 2 illustrates the complete vertex-level topology of Γ(R) for the case p=3, displaying all 26 vertices and 64 incident edges.
Figure 1: Zero-divisor graph of R=Fp+uFp+u2Fp+u3Fp.
Figure 2: Zero-divisor graph of R=F3+uF3+u2F3+u3F3.