Generating random factored ideals in number fields

Zachary Charles

TL;DR

This paper presents a novel algorithm for generating random factored ideals in number fields and function fields. It achieves this by first generating a random norm with a specific distribution and then constructing a factored ideal with that norm, offering a polynomial-time solution for a previously challenging problem.

What Problem Does This Paper Address?

Generating random objects with specific properties is a fundamental task in many areas of mathematics and computer science. In number theory, a key problem is to generate a random integer and its prime factorization uniformly from a given range. While algorithms exist for integers, extending this to ideals in number fields (and function fields) has been a significant challenge. Ideals in number fields are more complex than integers, and directly generating and factoring them uniformly is computationally difficult. This paper tackles the problem of generating a factored ideal (an ideal along with its prime ideal factorization) uniformly at random from all ideals with a norm up to a given bound $N$.

Methods

The core of the paper's contribution lies in adapting and generalizing existing algorithms for generating random factored integers to the setting of number fields. The approach is two-pronged:

  1. Generating Random Norms: The authors first develop a method to generate a random integer (representing the norm of an ideal) according to a distribution that mirrors the distribution of norms of ideals in a number field $K$. This is achieved by generalizing Kalai's algorithm, which uses a sequence of random choices and primality tests to produce a factored integer. The generalization involves adapting the probabilistic choices to account for the structure of ideals in $K$.
  2. Constructing Factored Ideals: Once a random norm $r$ is generated with the desired distribution, the algorithm then constructs a factored ideal with that norm. This step leverages the ability to factor rational primes in the ring of algebraic integers of $K$ and solve a subset sum problem to determine the exponents of prime ideals in the factorization.

The algorithm relies heavily on:

  • Randomized Polynomial-Time Algorithms: The underlying primality testing and polynomial factorization algorithms are assumed to run in randomized polynomial time.
  • Number Field Structure: The algorithm exploits properties of number fields, such as how rational primes split, and the multiplicative nature of ideal norms.
  • Subset Sum Problem: Solving a variant of the subset sum problem is crucial for constructing the ideal from its norm and prime ideal factors.

Datasets

Not discussed in the paper. The paper focuses on algorithmic development rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Bridging the Gap: The paper successfully bridges the gap between generating random factored integers and generating random factored ideals in number fields, a significant extension of previous work.
  • Norm-Centric Approach: The strategy of first generating a random norm and then constructing the ideal is a clever way to circumvent the direct difficulty of generating and factoring ideals.
  • Generalization Power: The algorithms presented are shown to be generalizable to both number fields and function fields, highlighting a unifying principle.
  • Probabilistic Construction: The use of probabilistic methods and primality tests is essential for achieving polynomial-time complexity.

Key Results

The paper presents algorithms that generate random factored ideals in number fields and function fields with norms up to $N$. The expected runtime of these algorithms is polynomial in $d$ (the degree of the field) and $\log N$. Specifically, the algorithm for number fields uses $O((\log N)^{d^2+d+1})$ primality tests, and with optimized primality testing, the overall runtime is $O((\log N)^{d^2+d+7})$. For function fields, a similar complexity is achieved. The algorithms produce ideals with probability proportional to their norm distribution.

Limitations and Future Work

  • Dependence on Degree $d$: The runtime of the presented algorithms has an exponential dependence on the degree $d$ of the number field. This is a significant limitation for fields of high degree. The authors explicitly state that it remains an open question whether an algorithm exists that runs in polynomial time irrespective of the degree $d$.
  • Principal Ideals: The paper discusses the difficulty of generating principal ideals uniformly at random. While the current algorithm can generate any ideal, accepting only principal ones would be inefficient due to the low probability of an ideal being principal (related to the class number). A polynomial-time algorithm for detecting principal ideals in arbitrary number fields is still an open problem.
  • Adaptation of Bach's Algorithm: The authors suggest exploring whether Bach's algorithm for factored integers (which uses fewer primality tests) could be adapted to this setting to further reduce the number of primality tests required.

Summary updated

Abstract

We present a randomized polynomial-time algorithm to generate a random integer according to the distribution of norms of ideals at most N in any given number field, along with the factorization of the integer. Using this algorithm, we can produce a random ideal in the ring of algebraic integers uniformly at random among ideals with norm up to N, in polynomial time. We also present a variant of this algorithm for generating ideals in function fields.
BibTeX
@inproceedings{charles2018generating,
  author = {Zachary Charles},
  title = {{Generating random factored ideals in number fields}},
  booktitle = {Math. Comput},
  year = {2018},
  url = {https://openreview.net/forum?id=rYWbVRKQ2yq},
}

Loading related content...

Figure