Algebraic digit extraction in base (proposed by Holden and Linus)

How can we build a polynomial circuit that computes a specific function whose input is an integer in ? Here, is small and is a small prime. Here are some ideal properties:

There are two versions of the problem, depending what operations gates can perform:

In version , is between 4 and 8. A gate can:

We want to compute a specific base- digit of the input.

The final circuit should be numerically stable.

In version , is between 8 and 32. A gate can:

We want to compute the mod remainder of the input for some .

See a partial solution here.

Motivation

Digit extraction is needed for “bootstrapping” in FHE. (See the explanation of Misheel’s problem.)