Conceptio › Archive › NCBI PubMed Central
NCBI PubMed Central open access

On (n,k)-Simple Random Integer Lattices.

Hu G · ncbi_pmc
NCBI PubMed Central · Papers
Open Source ↗Direct PDF ↓
cryptography-security
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

On (n,k)-Simple Random Integer Lattices - PMC Skip to main content An official website of the United States government Here's how you know Here's how you know Search Log in Primary site navigation Search Log in Search PMC Full-Text Archive Search in PMC Journal List User Guide As a library, NLM provides access to scientific literature. Inclusion in an NLM database does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: PMC Disclaimer | PMC Copyright Notice Entropy (Basel) . 2026 May 27;28(6):600. doi: 10.3390/e28060600 On ( n , k )-Simple Random Integer Lattices Gengran Hu 1, 2 Editor: Lu Wei Author information Article notes Copyright and License information 1 School of Cyberspace, Hangzhou Dianzi University, Hangzhou 310018, China; grhu@hdu.edu.cn 2 Zhejiang Provincial Key Laboratory of Sensitive Data Security and Confidentiality Governance, Hangzhou Dianzi University, Hangzhou 310018, China Roles Lu Wei : Academic Editor Received 2026 Apr 1; Revised 2026 May 26; Accepted 2026 May 26; Collection date 2026 Jun. © 2026 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license . PMC Copyright notice PMCID: PMC13298366  PMID: 42352110 Abstract Random integer lattices are fundamental to lattice-based cryptography and algorithmic number theory. A new random integer lattice model, free of any restrictions on the Hermite Normal Form (HNF), was introduced by in 2016. It was also observed that the probability of such a lattice being in a simple HNF form is approximately 44%. In this paper, the gap between general random integer lattices and those in a simple HNF is bridged by introducing the concept of the ( n , k ) -simple random integer lattice, where the first k diagonal entries of the HNF are fixed to 1. We derive the asymptotic counting formula for such lattices and compute their density among all integer lattices. Furthermore, a generation algorithm for the ( n , k ) -simple random integer lattice based on rejection sampling and inverse sampling methods are proposed, with the analysis showing that it achieves O ( n 2 ) expected running time. This work provides a theoretical foundation and practical toolkit for constructing structured random lattices with controlled HNF forms. Keywords: ( n , k )-simple; HNF; random integer lattice; rejection sampling method 1. Introduction The study of random integer lattices is significant in computational number theory and cryptography, particularly in the analysis of lattice-based cryptographic primitives such as NTRU [ 1 ], LWE [ 2 ], and their variants [ 3 , 4 ]. A challenge in this area lies in understanding the distribution of lattice bases and their associated Hermite Normal Form (HNF), which offers a unique normal form for integer lattices [ 5 ]. HNF has been studied to some extent in algorithmic number theory. Early work by Kannan and Bachem [ 6 ] established polynomial-time algorithms for HNF computation, while subsequent research by Micciancio and Warinschi [ 7 ] explored its applications in cryptography. The probabilistic properties of HNF have attracted considerable attention, with studies on the distribution of diagonal entries and their statistical behavior [ 8 ]. The problem of generating random lattices has been studied from multiple perspectives. Goldstein and Mayer [ 9 ] studied the distribution of lattice determinants and related arithmetic functions, laying the foundation for probabilistic models of lattices. Concerning HNF of integer matrices, Maze [ 10 ] explored their natural density distribution. Then the enumeration of integer lattices with a bounded determinant was systematically studied by Hu et al. [ 11 ] and later refined in [ 12 ] on the generation algorithm, providing the theoretical basis for random lattice models. Especially in [ 11 ], the analysis revealed that a significant proportion—approximately 44% of such random lattices—already exhibit a simple HNF structure, where the diagonal entries are all 1 but the last one. However, this observation raises a natural question: what is the precise probability that an HNF has its first k diagonal entries equal to 1, and how can such structured lattices be generated efficiently? When cryptographic applications are considered, the generation of random lattices with specific properties has become increasingly important. The NTRU cryptosystem [ 1 ] relies on lattices with special algebraic structures, while LWE-based schemes [ 2 ] often require random lattices with controlled parameters. Later works on efficient lattice trapdoors [ 13 ], Ring-LWE toolkit [ 14 ], FHE based on LWE and NTRU [ 15 ], and lattice-based obfuscation [ 16 ] have further emphasized the need for efficient and flexible lattice generation methods. Meanwhile, to assess the security of lattice-based cryptosystems, algorithms like LLL [ 17 ] and BKZ [ 18 , 19 ] are commonly employed. Since both cryptographic constructions and the corresponding lattice reduction algorithms operate on integer lattices, which are discrete subgroups of Z n , the question of how to properly define and randomly generate such lattices is of great importance. Once a method for generating random integer lattices is constructed, it can be employed to supply random inputs to lattice algorithms, thereby allowing their average performance characteristics to be evaluated. In this paper, we formalize the notion of ( n , k ) -simple HNF, defined as an n × n HNF whose first k diagonal entries are 1. This definition fills the gap between the general random integer lattice model and the special case of simple HNF considered in [ 11 ]. We study the asymptotic enumeration of such lattices and derive closed-form expressions for their density among all integer lattices. Our results generalize the earlier findings and provide a unified framework for analyzing HNF-restricted random lattices. For example, the well-known NTRU lattice, derived from the public key polynomial h ( x ) in NTRU cryptosystem, has the basis matrix of the form B N T R U = I N H 0 q I N , where I N denotes the N × N identity matrix, q is the modulus, and H is an N × N circulant matrix generated by the degree- N polynomial h ( x ) with small integer coefficients. The security of NTRU cryptosystem lies in the hardness of finding the private key, which is some short vector in the lattice L ( B N T R U ) . To be more specific, we consider a concrete tiny instance of NTRU. Let N = 4 and the modulus q = 17 ; suppose that the circulant matrix H is given by H = 1 1 0 1 1 1 1 0 0 1 1 1 1 0 1 1 , where H corresponds to the ideal generated by the polynomial 1 + x + x 3 (matching the first row (1,1,0,1) of the matrix) in the ring Z [ x ] / ( x N − 1 ) ; then the corresponding NTRU lattice basis matrix B N T R U is an 8 × 8 matrix constructed as B N T R U = 1 0 0 0 1 1 0 1 0 1 0 0 1 1 1 0 0 0 1 0 0 1 1 1 0 0 0 1 1 0 1 1 0 0 0 0 17 0 0 0 0 0 0 0 0 17 0 0 0 0 0 0 0 0 17 0 0 0 0 0 0 0 0 17 . Since B N T R U is already in upper triangular form with positive diagonal entries, and the upper triangular entries satisfy ( B N T R U ) i j ∈ [ 0 , ( B N T R U ) j j ] for i < j , while the first k = N = 4 diagonal entries are 1, this specific basis represents an exact ( 8 , 4 ) -simple HNF and the corresponding integer lattice. This framework can be used to rigorously evaluate the average-case performance of lattice reduction algorithms on this structured family by generating uniformly random instances within the controlled ( n , k ) -simple HNF space, rather than relying on completely unstructured random integer lattices. The key advances of this work can be summarized in the following. The concept of an ( n , k ) -simple random integer lattice is introduced and its asymptotic counting formula is established. The density of such lattices among all integer lattices is derived, expressed in terms of the Riemann zeta function. An efficient generation algorithm combining rejection sampling and continuous inverse sampling is proposed, with a rigorous analysis of its time complexity. This paper proceeds as follows. Section 2 recalls the basic notions of lattices and HNF. Section 3 gives the asymptotic counting formula for ( n , k ) -simple random integer lattices. Section 4 computes the density of such lattices. Section 5 details a generation algorithm along with its complexity. Section 6 closes with concluding remarks. 2. Preliminaries Lattice and HNF Let B ∈ R m × n with m ≤ n and rank ( B ) = m , the lattice spanned by the basis B is L ( B ) = { ∑ i = 1 m x i b i | x i ∈ Z } , with b i the i -th row of B . The lattice has rank m . When m = n , the lattice is called full-rank, and the lattice determinant is defined as det ( L ( B ) ) = | det ( B ) | . In the rest of this paper, all lattices are assumed to be full-rank. A unimodular matrix U ∈ G L ( n , Z ) satisfies B = U B ′ if and only if the two bases B and B ′ span the same lattice. Cryptographic schemes usually consider integer lattices, meaning their basis matrices have entries in Z rather than R . Hence, the space of all full-rank integer lattices is the quotient G L ( n , R ) ∩ Z n × n / G L ( n , Z ) . HNF is a special type of integer matrix used in number theory, whose definition is as follows. Definition 1 (HNF) . An n × n integer matrix is called an n × n HNF when it meets the following criteria: Upper triangular: h i j = 0 for all indices with i > j ; Positive diagonal: h i i > 0 for each i; Modular reduction: For any off-diagonal entry above the diagonal, it requires that h i j ∈ [ 0 , h j j ) for all i < j . Now we define a family of special form of HNF, called ( n , k ) -simple HNF, which is described below. Definition 2 ( ( n , k ) -simple HNF) . An n × n integer matrix H is called an ( n , k ) -simple HNF if it meets the following criteria: H is an n × n HNF; The first k diagonal entries of H, or h 11 , h 22 , ⋯ , h k k are 1 . If a random HNF is chosen, most of its diagonal entries will be 1 [ 11 ]; therefore, it is necessary to consider the special form of HNF with several 1s on the diagonal. 3. The ( n , k )-Simple Random Integer Lattice It is a classical result that every full-rank integer lattice possesses a unique HNF as its basis [ 20 ], and by [ 11 ], the random integer lattice is defined by an HNF chosen uniformly from the set H n ≤ ( M ) , where M ∈ Z + is large enough, and H n ≤ ( M ) ≜ { H | H is an n × n HNF with determinant ≤ M } . Here we generalize this definition to the set of ( n , k ) -simple form of the HNF, which is stated as H n , k ≤ ( M ) ≜ { H | H is an ( n , k ) - simple HNF with determinant ≤ M } . From [ 11 ], we already knew the asymptotic formula for | H n ≤ ( M ) | , which is | H n ≤ ( M ) | = ∏ j = 2 n ζ ( j ) n M n + O ( M n − 1 log M ) , (1) now we intend to obtain the asymptotic formula for H n , k ≤ ( M ) on k = 1 , ⋯ , n − 1 . First, we need a lemma in [ 11 ] that counts the summation of certain power series, which is given below. Lemma 1 (From [ 11 ], Lemma 1) . For a given integer n ≥ 4 and sufficiently large M ∈ Z + , let ( t i ) i = 1 n be a non-decreasing sequence of non-negative integers satisfying t n − 3 ≤ t n − 2 < t n − 1 ≤ t n . If the multiple sum is defined as S ( M , t 1 , ⋯ , t n ) ≜ ∑ a i ∈ Z + , ∏ i = 1 n a i ≤ M a 1 t 1 ⋯ a n t n , where ζ ( s ) is the Riemann zeta function, then the asymptotic expansion of S ( M , t 1 , ⋯ , t n ) is given as S ( M , t 1 , ⋯ , t n ) = ∏ j = 1 n − 1 ζ ( s n + 1 − s j ) s n + 1 M s n + 1 + O ( M s n log M ) , t n − 1 < t n ∏ j = 1 n − 1 ζ ( s n + 1 − s j ) s n + 1 M s n + 1 log M + O ( M s n + 1 ) , t n − 1 = t n . Using Lemma 1, we can obtain the counting result on | H n , k ≤ ( M ) | , which is shown in Theorem 1. Theorem 1. For integer n ≥ 4 and sufficiently large M ∈ Z + , the value of | H n , k ≤ ( M ) | can be estimated asymptotically by | H n , k ≤ ( M ) | = ∏ j = 2 n − k ζ ( j ) n M n + O ( M n − 1 log M ) . (2) Proof. By definition, any H ∈ H n , k ≤ ( M ) should satisfy that H is ( n , k ) -simple and det ( H ) is bounded by M . Since the ( n , k ) -simple property means that the first k diagonal entries of H are exactly 1, we know that | H n , k ≤ ( M ) | is determined exclusively by a k + 1 , ⋯ , a n , which is represented by the following formula as ∑ a i ∈ Z + , ∏ i = k + 1 n a i ≤ M 1 0 ⋯ 1 k − 1 a k + 1 k a k + 2 k + 1 ⋯ a n n − 1 . By Lemma 1, we obtain | H n , k ≤ ( M ) | = ∑ a i ∈ Z + , ∏ i = k + 1 n a i ≤ M a k + 1 k a k + 2 k + 1 ⋯ a n n − 1 = S ( M , k , k + 1 , ⋯ , n − 1 ) = ∏ j = 1 n − k − 1 ζ ( n − ( k − 1 + j ) ) n M n + O ( M n − 1 log M ) = ∏ j = 2 n − k ζ ( j ) n M n + O ( M n − 1 log M ) . The proof is hereby completed.    □ Now we give the definition of ( n , k ) -simple random integer lattice as follows. Definition 3 ( ( n , k ) -simple random integer lattice) . For integer n ≥ 4 , and the determinant upper bound M ∈ Z + , if H is selected uniformly from H n , k ≤ ( M ) , then L ( H ) is called an ( n , k ) -simple random integer lattice. Remark 1. It should be pointed out that when k = 0 , the ( n , 0 ) -simple random integer lattice is exactly the random integer lattice defined in [ 11 ]. 4. The Density of ( n , k )-Simple Integer Lattice After defining the ( n , k ) -simple random integer lattice, the following theorem gives the density of the ( n , k ) -simple integer lattice in all of the integer lattices. Theorem 2. For integer n ∈ [ 4 , + ∞ ) , and a large enough M ∈ Z + , when M → + ∞ , let H be uniformly chosen from H n ≤ ( M ) ; then the probability of H being ( n , k ) -simple is 1 / ∏ j = n − k + 1 n ζ ( j ) for k = 1 , 2 , ⋯ , n − 1 . Proof. Combing the results from Equations ( 1 ) and ( 2 ), we obtain the following P r o b ( H is ( n , k ) - simple ) = | H n , k ≤ ( M ) | | H n ≤ ( M ) | = ∏ j = 2 n − k ζ ( j ) n M n + O ( M n − 1 log M ) ∏ j = 2 n ζ ( j ) n M n + O ( M n − 1 log M ) = 1 / ∏ j = n − k + 1 n ζ ( j ) + O ( log M / M ) 1 + O ( log M / M ) = 1 / ∏ j = n − k + 1 n ζ ( j ) + O ( log M / M ) , implying that when M tends to infinity, the probability of H being ( n , k ) -simple is 1 / ∏ j = n − k + 1 n ζ ( j ) , which completes the proof.    □ More clearly, the approximate numerical result on the density of ( n , k ) -simple integer lattices from Theorem 2 is shown in Table 1 , where n is set to 2 s for s ∈ [ 3 , 8 ] , and k is set to 1 , n 4 , n 2 , 3 n 4 and n − 1 . Table 1. The approximate density of ( n , k ) -simple integer lattices among all integer lattices (rounded to five decimal places). n k = 1 k = n 4 k = n 2 k = 3 n 4 k = n − 1 8 0.99609 0.99216 0.96145 0.76258 0.43574 16 0.99998 0.99976 0.99798 0.96074 0.43576 32 1.00000 0.99999 0.99999 0.99798 0.43576 64 1.00000 1.00000 1.00000 0.99998 0.43576 128 1.00000 1.00000 1.00000 1.00000 0.43576 256 1.00000 1.00000 1.00000 1.00000 0.43576 Open in a new tab Based on the data presented in Table 1 , for a fixed lattice rank n , the density decreases monotonically as k increases, since imposing more diagonal entries equal to 1 introduces stricter structural constraints, thus reducing the number of admissible lattices. In more detail, when k is relatively small compared to n , the density rapidly approaches 1 as n increases. For instance, at k = n / 2 , the density rises from approximately 0.96145 for n = 8 to almost 1.00000 for n = 64 , 128 , 256 . This indicates that a random integer lattice with high rank almost surely satisfies the condition that the first k diagonal entries of its HNF are equal to 1. Moreover, when k = n − 1 , the density stabilizes at approximately 0.43576 and exhibits nearly no dependence on n . This limiting value coincides with the theoretical constant ∏ j = 2 + ∞ ζ ( j ) . 5. The Generation Algorithm of ( n , k )-Simple Random Integer Lattice Since in [ 12 ], the authors proposed an algorithm aimed at generating a random integer lattice, in this part, we generalize this algorithm to the ( n , k ) -simple random integer lattice for k ∈ [ 1 , n − 1 ] . 5.1. Rejection Sampling and Inverse Sampling To illustrate this algorithm clearly, we first need two fundamental techniques from probability theory: rejection sampling and continuous inverse sampling. When dealing with a distribution D that is defined on a set A , these methods can produce a random variable that adheres precisely to D . The following two theorems outline these two standard sampling methods respectively. For rigorous proofs and detailed theoretical foundations, we refer the reader to [ 21 ] and [ 22 ], respectively. Theorem 3 (Rejection Sampling, from [ 21 ]) . Suppose D is a distribution defined on a set A with its density function f ( x ) , D ′ is another distribution with proposal density function g ( x ) . Let C be a constant s.t. f ( x ) ≤ C g ( x ) for all x. Then iteratively do the following: Sample x ∼ D ′ and u ∼ U [ 0 , 1 ] ; if u > f ( x ) C g ( x ) , reject and repeatedly sample x and u; otherwise accept and output x. Finally, the output x then follows the target distribution D. Theorem 4 (Inverse Sampling, from [ 22 ]) . Let D be a distribution defined over a set A with a cumulative distribution function F. Sample y ∼ U [ 0 , 1 ] and compute x satisfying F ( x ) = y . Then the random variable x follows the target distribution D. 5.2. Generating the (n,k)-Simple Random Integer Lattice As discussed in Section 2 and Section 3 , an integer lattice has a unique HNF. Since an ( n , k ) -simple random integer lattice has the first k diagonal entries a 1 = ⋯ = a k = 1 , its leading k × k principal submatrix has already been determined to be I k . The remaining generation process consists of three stages. First, the diagonal entries a k + 1 , a k + 2 , ⋯ , a n − 1 are generated. Second, the final diagonal entry a n n is generated. Third, all off-diagonal entries are chosen. The resulting matrix H is then output as the basis matrix for the ( n , k ) -simple random integer lattice. 5.2.1. Generating the Diagonal Entries h k + 1 , k + 1 , ⋯ , h n − 1 , n − 1 In this part, to generate the diagonal entries h k + 1 , k + 1 , ⋯ , h n − 1 , n − 1 , the distribution of these variables should be obtained. The joint distribution of a k + 1 , ⋯ , a n − 1 is described below. Theorem 5. Given the lattice rank n ≥ 4 and the upper bound of the lattice determinant M ∈ Z + , if H = ( h i j ) is an ( n , k ) -simple random integer lattice with k ∈ [ 1 , n − 1 ] , then for b 1 , ⋯ , b n − k − 1 ∈ Z + , when M → + ∞ , for i ∈ [ 1 , n − k − 1 ] , it can be obtained that Prob ( h k + i , k + i = b i for all i ) = ∏ i = 1 n − k − 1 b i − ( n + 1 − i ) ∏ j = 2 n − k ζ ( j ) . Proof. Since the diagonal entries a k + 1 , ⋯ , a n − 1 have been set to b 1 , ⋯ , b n − k − 1 respectively, the only free variable to do summation is the last diagonal entry a n n . From Lemma 1, we know that P r o b ( h k + 1 , k + 1 = b 1 , ⋯ , h n − 1 , n − 1 = b n − k − 1 ) = lim M → + ∞ ( ∑ a 1 ≤ M / ( b 1 ⋯ b n − k − 1 ) a 1 n − 1 ) ∏ i = 1 n − k − 1 b i k + i − 1 | H n , k ≤ ( M ) | = lim M → + ∞ ( 1 n ( M b 1 ⋯ b n − k − 1 ) n + O ( ( M b 1 ⋯ b n − k − 1 ) n − 1 log M b 1 ⋯ b n − k − 1 ) ) ∏ i = 1 n − k − 1 b i k + i − 1 ∏ j = 2 n − k ζ ( j ) n M n + O ( M n − 1 log M ) = ∏ i = 1 n − k − 1 b i − ( n + 1 − k − i ) ∏ j = 2 n − k ζ ( j ) , which completes the proof.    □ Moreover, the distribution of each value of a k + 1 , ⋯ , a n − 1 is stated below. Theorem 6. Consider an integer lattice of rank n ≥ 4 with a prescribed upper bound M ∈ Z + on its determinant. If H = ( h i j ) is an ( n , k ) -simple random integer lattice with k ∈ [ 1 , n − 1 ] , then for b 1 , ⋯ , b n − k − 1 ∈ Z + , when M → + ∞ , for each i ∈ [ 1 , n − k − 1 ] , it can be derived that Prob ( h k + i , k + i = b i ) = b i − ( n + 1 − k − i ) ζ ( n + 1 − k − i ) . Proof. Since only one diagonal entry a k + i has been determined, the summation is for the remaining variables. By Lemma 1, we have P r o b ( h k + i , k + i = b i ) = lim M → + ∞ ( ∑ a 1 ⋯ a n − k − 1 ≤ M b i a 1 k ⋯ a i − 1 k + i − 2 a i k + i ⋯ a n − k − 1 n − 1 ) b i k + i − 1 | H n , k ≤ ( M ) | = lim M → + ∞ S ( M b i , k , ⋯ , k + i − 2 , k + i , ⋯ , n − 1 ) b i k + i − 1 | H n , k ≤ ( M ) | = lim M → + ∞ ( ∏ j = 2 , j ≠ n − k − i + 1 n − k ζ ( j ) n ( M b i ) n + O ( ( M b i ) n − 1 log M b i ) ) b i k + i − 1 ∏ j = 2 n − k ζ ( j ) n M n + O ( M n − 1 log M ) = b i − ( n + 1 − k − i ) ζ ( n + 1 − k − i ) . The proof is concluded.    □ Remark 2. Combining the above two theorems, we know that for sufficiently large M ∈ Z + , the joint distribution of h k + 1 , k + 1 , ⋯ , h n − 1 , n − 1 is exactly the product of the distribution of each variable, which implies that these values can be viewed as independent variables. Since the distributions of h k + 1 , k + 1 , ⋯ , h n − 1 , n − 1 have been computed, the rejection sampling method can be utilized to generate them sequentially. From Theorem 6, consider the distribution of h k + i , k + i , if D ( s ) is defined as D ( s ) : P r o b ( X = x ) = 1 ζ ( s ) x − s ( x = 1 , 2 , ⋯ ) , (3) then the distribution of h k + i , k + i is actually D ( n + 1 − k − i ) . To generate random variates following the distribution D ( s ) , we employ the rejection sampling method. Since the target distribution D ( s ) has the density function f ( x ) as in Equation ( 3 ), we choose the proposal distribution D ′ over Z + with density g ( x ) = 1 x ( x + 1 ) , ( x = 1 , 2 , ⋯ ) . It could be verified that sampling from D ′ can be achieved by the simple transformation x = ⌊ 1 / v ⌋ , with v ∼ U [ 0 , 1 ] . Indeed, for any x ∈ Z + , we have P r o b ( ⌊ 1 / v ⌋ = x ) = P r o b ( 1 x + 1 < v ≤ 1 x ) = 1 x − 1 x + 1 = g ( x ) . Moreover, the maximum of f ( x ) g ( x ) = x − s / ζ ( s ) 1 / ( x ( x + 1 ) ) = x 1 − s ( x + 1 ) ζ ( s ) is 2 / ζ ( s ) attained at x = 1 , which implies the constant C can be set to 2 / ζ ( s ) . Thus the procedure of generating h k + i , k + i can be designed as follows. Choose v ∼ U [ 0 , 1 ] and compute x = ⌊ 1 / v ⌋ ; Set s = n + 1 − k − i , compute f ( x ) = x − s / ζ ( s ) and g ( x ) = 1 / x ( x + 1 ) ; Choose v ∼ U [ 0 , 1 ] ; when u > ( ζ ( s ) f ( x ) ) / ( 2 g ( x ) ) , reject and repeat from step 1; otherwise, accept and set h k + i , k + i = x . 5.2.2. Generating the Last Diagonal Entry h n n The case of generating the last diagonal entry h n n is different. Let d be the product of all diagonal entries except the last. Using the technique in [ 12 ], we can similarly obtain Theorem 7. Theorem 7. For rank n ≥ 4 and sufficiently large determinant upper bound M ∈ Z + , given an ( n , k ) -random integer lattice with its HNF is H = ( h i j ) and d ≜ ∏ i = 1 n − 1 h i i , we have Prob ( d ≥ 1 / ( log M ) 2 ) ≤ 1 / log M . Sketch of the Proof. The proof consists of two main parts: deriving the mathematical expectation of d using the HNF counting lemma, and then applying Markov’s inequality to establish the probability upper bound. For the first part, the expected value of the product of the first n − 1 diagonal elements is formulated as E ( d ) = ∑ ≤ M t · P r o b ( d = t ) = ∑ t ≤ M t · | H n − 1 , k ( t ) | · ∑ a n ≤ M / t a n n − 1 | H n , k ≤ ( M ) | , where | H n − 1 , k ( t ) | represents the number of ( n − 1 ) -dimensional HNFs with determinant t , and | H n , k ≤ ( M ) | is the total number of ( n , k ) -simple HNFs with determinants upper bounded by M . Expanding the numerator by using the HNF counting formula yields a multi-variable summation. This allows us to map both the numerator and the denominator directly to the asymptotic sums defined in Lemma 1 as E ( d ) = S ( M , k + 1 , k + 2 , … , n − 1 , n − 1 ) S ( M , k , k + 1 , … , n − 2 , n − 1 ) According to the asymptotic formulas provided in Lemma 1, we have S ( M , k + 1 , k + 2 , … , n − 1 , n − 1 ) = ∏ j = 2 n − k − 1 ζ ( j ) n M n log M + O ( M n ) , S ( M , k , k + 1 , … , n − 2 , n − 1 ) = ∏ j = 2 n − k ζ ( j ) n M n + O ( M n − 1 log M ) . Dividing the above expressions yields E ( d ) = ∏ j = 2 n − k − 1 ζ ( j ) n M n log M + O ( M n ) ∏ j = 2 n − k ζ ( j ) n M n + O ( M n − 1 log M ) = log M + O ( 1 ) ζ ( n − k ) + O log M M = 1 ζ ( n − k ) log M + O ( 1 ) . This completes the first part of the proof. For the second part, since d = ∏ i = 1 n − 1 h i i is a product of positive diagonal entries, it is strictly a non-negative random variable. Markov’s inequality can be applied here, which states that for any non-negative random variable X and a constant a > 0 , it holds that P r o b ( X ≥ a ) ≤ E ( X ) a . By setting the random variable d and assigning the threshold parameter a = ( log M ) 2 , we obtain the following tail probability bound as P r o b ( d ≥ ( log M ) 2 ) ≤ E ( d ) ( log M ) 2 = 1 ζ ( n − k ) log M + O ( 1 ) ( log M ) 2 ≤ 1 log M , which completes the second part of the proof.    □ Theorem 7 shows that ∏ i = 1 n − 1 h i i is typically much smaller than M , which implies that ⌊ M / d ⌋ is still sufficiently large. Since the value range for h n n is large, we can use the inverse sampling method to obtain h n n by providing a reasonable characterization of the distribution of h n n . Consequently, for an ( n , k ) -simple random integer lattice basis H = ( h i j ) , the distribution of h n n can be represented as D ˜ ( n , M 0 ) : P r o b ( X = x ) = 1 ∑ t = 1 M 0 t n − 1 x n − 1 ( x = 1 , 2 , ⋯ , M 0 ) , (4) which is actually a truncated discrete power-law distribution. Thus the distribution of h n n in an ( n , k ) -simple random integer lattice is actually D ˜ ( n , ⌊ M / d ⌋ ) where d = ∏ i = 1 n h i i . After computing its cumulative distribution function F ( x ) , we know that the following is a reasonable estimation of F ( x ) by considering the main terms as F ( x ) ≜ P r o b ( X ≤ x ) ≈ x n / n M 0 n / n = ( x M 0 ) n . Since the function ( x ⌊ M / d ⌋ ) n can be easily inverted, we can design the process of generating h n n as follows by the inverse sampling method. Choose y ∼ U [ 0 , 1 ] ; Compute x s.t. ( x ⌊ M / d ⌋ ) n = y , and set h n n = ⌊ x ⌉ . Since the first k diagonal entries of ( n , k ) -simple HNF are 1, and the generation of the off-diagonal entries is easy, we can now propose the main generation algorithm for the ( n , k ) -simple random integer lattice. 5.3. Detailed Algorithm Description After the discussion in Section 5.2 , the detailed generation algorithm of ( n , k ) -simple random integer lattice is listed as Algorithm 1. Algorithm 1 Construction of an ( n , k ) -simple random integer lattice Require: lattice rank n , lattice determinant bound M , and k ∈ [ 1 , n − 1 ] Ensure: An ( n , k ) -simple random integer lattice L with det ( L ) ≤ M Phase 1: Diagonal entries h 11 , … , h n − 1 , n − 1 h 11 = ⋯ = h k k = 1 d ← 1 for i = 1 to n − k − 1 do repeat Sample v ∼ U [ 0 , 1 ] and set x ← ⌊ 1 / v ⌋ Compute acceptance probability r ← x 1 − s ( x + 1 ) with s = n + 1 − k − i Draw u ∼ U [ 0 , 1 ] until u ≤ r d ← d · x h k + i , k + i ← x end for Phase 2: Final diagonal h n n Sample y ∼ U [ 0 , 1 ] h n n ← M / d · y 1 / n Phase 3: Off-diagonal entries for j = 1 to n do for i = 1 to j − 1 do h i j ∼ U { 0 , 1 , … , h j j − 1 } end for for i = j + 1 to n do h i j ← 0 end for end for Phase 4: Output Construct H = ( h i j ) , return L ( H ) Open in a new tab 5.4. Running Time Analysis of Algorithm 1 When analyzing the time complexity, notice that the time spent in Phase 2 and Phase 3 is obviously O ( 1 ) and O ( n 2 ) , respectively. Thus, the remaining task is to assess the repetition times in the repeat loop of Phase 1. In fact, the following theorem states the result. Theorem 8. For lattice rank n and the parameter k ∈ [ 1 , n − 1 ] , in each repeat loop of Algorithm 1, the expected number of iterations is bounded by 2. Proof. Since within the repeat loop, the rejection sampling method is used, for s = n + 1 − k − i , we obtain that E ( number of iterations ) = 1 / E ( P r o b ( a c c e p t ) ) = 1 / ∑ x ≥ 1 g ( x ) · f ( x ) C g ( x ) = C · ∑ x ≥ 1 f ( x ) = C = 2 ζ ( s ) ≤ 2 , which completes the proof. □ By Theorem 8, since the expected number of iterations does not exceed 2, the expected total number of iterations within Phase 1 is bounded by 2 ( n − k − 1 ) , which is O ( n ) . Thus, we have the following assessment of the time complexity of this algorithm. Theorem 9. For lattice rank n and the parameter k ∈ [ 1 , n − 1 ] , Algorithm 1 runs in O ( n 2 ) expected time on average. 6. Conclusions In this work, the special ( n , k ) -simple HNF is first discussed; then the corresponding ( n , k ) -simple random integer lattice is defined and studied. Moreover, the probability result of the diagonal entries is utilized to construct the generation algorithm of ( n , k ) -simple random integer lattices. Finally, it is estimated that the generation algorithm takes O ( n 2 ) time on average. However, an open problem to study in the future is the investigation of the distribution and density of random integer lattices whose HNF diagonal entries are restricted to specific prime powers, or whose off-diagonal entries satisfy certain linear congruence constraints. Exploring these structured variations would provide deeper insights into the random models required for Module-LWE and Ring-LWE variants in lattice-based cryptography. Informed Consent Statement Not applicable. Data Availability Statement No new data were created. Conflicts of Interest The author declares no conflicts of interest. Funding Statement This research was funded by the national natural science foundation of China under grant number 61602143. Footnotes Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. References 1. Hoffstein J., Pipher J., Silverman J.H. Proceedings of the International Algorithmic Number Theory Symposium. Springer; Berlin/Heidelberg, Germany: 1998. NTRU: A ring-based public key cryptosystem; pp. 267–288. [ Google Scholar ] 2. Regev O. On lattices, learning with errors, random linear codes, and cryptography. J. ACM. 2009;56:1–40. doi: 10.1145/1568318.1568324. [ DOI ] [ Google Scholar ] 3. Peikert C. A decade of lattice cryptography. Found. Trends Theor. Comput. Sci. 2016;10:283–424. doi: 10.1561/0400000074. [ DOI ] [ Google Scholar ] 4. Lyubashevsky V., Peikert C., Regev O. Proceedings of the Annual International Conference on the Theory and Applications of Cryptographic Techniques. Springer; Berlin/Heidelberg, Germany: 2010. On ideal lattices and learning with errors over rings; pp. 1–23. [ Google Scholar ] 5. Joux A. Algorithmic Cryptanalysis. Chapman and Hall/CRC; Boca Raton, FL, USA: 2009. [ Google Scholar ] 6. Kannan R., Bachem A. Polynomial algorithms for computing the Smith and Hermite normal forms of an integer matrix. SIAM J. Comput. 1979;8:499–507. doi: 10.1137/0208040. [ DOI ] [ Google Scholar ] 7. Micciancio D., Warinschi B. A linear space algorithm for computing the Hermite normal form; Proceedings of the 2001 International Symposium on Symbolic and Algebraic Computation; London, ON, Canada. 18–21 July 2001; pp. 231–236. [ Google Scholar ] 8. Odlyzko A.M. Asymptotic enumeration methods. Handb. Comb. 1995;2:1229. [ Google Scholar ] 9. Goldstein D., Mayer A. On the equidistribution of Hecke points. Forum Math. 2003;15:165. doi: 10.1515/form.2003.009. [ DOI ] [ Google Scholar ] 10. Maze G. Natural density distribution of Hermite normal forms of integer matrices. J. Number Theory. 2011;131:2398–2408. doi: 10.1016/j.jnt.2011.06.010. [ DOI ] [ Google Scholar ] 11. Hu G., Pan Y., Liu R., Chen Y. On random nonsingular Hermite Normal Form. J. Number Theory. 2016;164:66–86. doi: 10.1016/j.jnt.2015.12.004. [ DOI ] [ Google Scholar ] 12. Hu G., You L., Li L., Hu L., Wang H. Random Integer Lattice Generation via the Hermite Normal Form. Entropy. 2021;23:1509. doi: 10.3390/e23111509. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 13. Micciancio D., Peikert C. Proceedings of the Annual International Conference on the Theory and Applications of Cryptographic Techniques. Springer; Berlin/Heidelberg, Germany: 2012. Trapdoors for lattices: Simpler, tighter, faster, smaller; pp. 700–718. [ Google Scholar ] 14. Lyubashevsky V., Peikert C., Regev O. Proceedings of the Annual International Conference on the Theory and Applications of Cryptographic Techniques. Springer; Berlin/Heidelberg, Germany: 2013. A toolkit for ring-LWE cryptography; pp. 35–54. [ Google Scholar ] 15. Bonte C., Iliashenko I., Park J., Pereira H.V., Smart N.P. Proceedings of the International Conference on the Theory and Application of Cryptology and Information Security. Springer; Berlin/Heidelberg, Germany: 2022. FINAL: Faster FHE instantiated with NTRU and LWE; pp. 188–215. [ Google Scholar ] 16. Cini V., Lai R.W., Woo I.K. Proceedings of the Annual International Cryptology Conference. Springer; Berlin/Heidelberg, Germany: 2025. Lattice-based obfuscation from NTRU and Equivocal LWE; pp. 39–72. [ Google Scholar ] 17. Lenstra A., Lenstra H., Jr., Lovász L. Factoring Polynomials with Rational Coefficients. Math. Ann. 1982;261:515–534. doi: 10.1007/BF01457454. [ DOI ] [ Google Scholar ] 18. Schnorr C.P., Euchner M. Lattice basis reduction: Improved practical algorithms and solving subset sum problems. Math. Program. 1994;66:181–199. doi: 10.1007/BF01581144. [ DOI ] [ Google Scholar ] 19. Chen Y., Nguyen P.Q. Proceedings of the International Conference on the Theory and Application of Cryptology and Information Security. Springer; Berlin/Heidelberg, Germany: 2011. BKZ 2.0: Better lattice security estimates; pp. 1–20. [ Google Scholar ] 20. Cohen H. A Course in Computational Algebraic Number Theory. Springer Science & Business Media; Berlin/Heidelberg, Germany: 2013. [ Google Scholar ] 21. Forsythe G.E. Von Neumann’s comparison method for random sampling from the normal and other distributions. Math. Comput. 1972;26:817–826. doi: 10.1090/s0025-5718-1972-0315863-9. [ DOI ] [ Google Scholar ] 22. Devroye L. Nonuniform random variate generation. Handb. Oper. Res. Manag. Sci. 2006;13:83–121. [ Google Scholar ] Associated Data This section collects any data citations, data availability statements, or supplementary materials included in this article. Data Availability Statement No new data were created. Articles from Entropy are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI) ACTIONS View on publisher site PDF (297.7 KB) Cite Collections Permalink RESOURCES Similar articles Cited by other articles Links to NCBI Databases Follow NCBI NCBI on X (formerly known as Twitter) NCBI on Facebook NCBI on LinkedIn NCBI on GitHub NCBI RSS feed Connect with NLM NLM on X (formerly known as Twitter) NLM on Facebook NLM on YouTube National Library of Medicine 8600 Rockville Pike Bethesda, MD 20894 Web Policies FOIA HHS Vulnerability Disclosure Help Accessibility Careers NLM NIH HHS USA.gov Back to Top

Related documents

Record · ID 315711 · SHA-256 78baab259dc7252b
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive