Table of Contents
Fetching ...

From Worst to Average Case to Incremental Search Bounds of the Strong Lucas Test

Semira Einsele, Gerhard Wunder

TL;DR

The paper addresses the problem of reliably bounding the average‑case error of the strong Lucas test used in primality testing, particularly within Baillie‑PSW in cryptography. By adapting Burthe’s approach to the strong Lucas setting and introducing careful combinatorial and analytic bounds, the authors prove that the probability a random k‑bit integer passes t strong Lucas rounds while being composite satisfies $q_{k,t} \,\le\, (\frac{4}{15})^t$ for all $k \ge 2$ and $t \ge 1$. They derive exact values for small k, establish intermediate results that hold for larger k, and provide a complete argument for the main bound, complemented by a rigorous analysis of an incremental search variant that reduces random bits and accelerates trial division. The findings improve theoretical understanding of the strong Lucas test’s average performance and yield practical implications for prime generation in cryptographic libraries, with concrete error bounds and running‑time considerations for both random and incrementally searched candidate sequences.

Abstract

The strong Lucas test is a widely used probabilistic primality test in cryptographic libraries. When combined with the Miller-Rabin primality test, it forms the Baillie-PSW primality test, known for its absence of false positives, undermining the relevance of a complete understanding of the strong Lucas test. In primality testing, the worst-case error probability serves as an upper bound on the likelihood of incorrectly identifying a composite as prime. For the strong Lucas test, this bound is $4/15$ for odd composites, not products of twin primes. On the other hand, the average-case error probability indicates the probability that a randomly chosen integer is inaccurately classified as prime by the test. This bound is especially important for practical applications, where we test primes that are randomly generated and not generated by an adversary. The error probability of $4/15$ does not directly carry over due to the scarcity of primes, and whether this estimate holds has not yet been established in the literature. This paper addresses this gap by demonstrating that an integer passing $t$ consecutive test rounds, alongside additional standard tests of low computational cost, is indeed prime with a probability greater than $1-(4/15)^t$ for all $t\geq 1$. Furthermore, we introduce error bounds for the incremental search algorithm based on the strong Lucas test, as there are no established bounds up to date as well. Rather than independent selection, in this approach, the candidate is chosen uniformly at random, with subsequent candidates determined by incrementally adding 2. This modification reduces the need for random bits and enhances the efficiency of trial division computation further.

From Worst to Average Case to Incremental Search Bounds of the Strong Lucas Test

TL;DR

The paper addresses the problem of reliably bounding the average‑case error of the strong Lucas test used in primality testing, particularly within Baillie‑PSW in cryptography. By adapting Burthe’s approach to the strong Lucas setting and introducing careful combinatorial and analytic bounds, the authors prove that the probability a random k‑bit integer passes t strong Lucas rounds while being composite satisfies for all and . They derive exact values for small k, establish intermediate results that hold for larger k, and provide a complete argument for the main bound, complemented by a rigorous analysis of an incremental search variant that reduces random bits and accelerates trial division. The findings improve theoretical understanding of the strong Lucas test’s average performance and yield practical implications for prime generation in cryptographic libraries, with concrete error bounds and running‑time considerations for both random and incrementally searched candidate sequences.

Abstract

The strong Lucas test is a widely used probabilistic primality test in cryptographic libraries. When combined with the Miller-Rabin primality test, it forms the Baillie-PSW primality test, known for its absence of false positives, undermining the relevance of a complete understanding of the strong Lucas test. In primality testing, the worst-case error probability serves as an upper bound on the likelihood of incorrectly identifying a composite as prime. For the strong Lucas test, this bound is for odd composites, not products of twin primes. On the other hand, the average-case error probability indicates the probability that a randomly chosen integer is inaccurately classified as prime by the test. This bound is especially important for practical applications, where we test primes that are randomly generated and not generated by an adversary. The error probability of does not directly carry over due to the scarcity of primes, and whether this estimate holds has not yet been established in the literature. This paper addresses this gap by demonstrating that an integer passing consecutive test rounds, alongside additional standard tests of low computational cost, is indeed prime with a probability greater than for all . Furthermore, we introduce error bounds for the incremental search algorithm based on the strong Lucas test, as there are no established bounds up to date as well. Rather than independent selection, in this approach, the candidate is chosen uniformly at random, with subsequent candidates determined by incrementally adding 2. This modification reduces the need for random bits and enhances the efficiency of trial division computation further.
Paper Structure (31 sections, 37 theorems, 88 equations, 7 tables, 4 algorithms)

This paper contains 31 sections, 37 theorems, 88 equations, 7 tables, 4 algorithms.

Key Result

Theorem 2

Let $P$ and $Q$ be integers, and $D= P^2-4Q$. Let $U_p(P,Q)$ be the Lucas sequence of the first kind. If $p$ is an odd prime such that $(p,QD)=1$, then the following congruence holds

Theorems & Definitions (66)

  • Definition 1
  • Theorem 2: Baillie, Wagstaff Lucas-Baillie
  • Definition 3: Lucas-Carmichael numbers
  • Theorem 4: Williams williams
  • Theorem 5: Baillie, Wagstaff Lucas-Baillie
  • Definition 6
  • Theorem 7: Arnault Rabin-Mon-Lucas
  • Theorem 8: Arnault Rabin-Mon-Lucas
  • Definition 9
  • Definition 10
  • ...and 56 more