Manuscript Offprint
arXiv:2611.09656From Function Inversion to Preimage Reporting
Abstract
Given an arbitrary function , the function inversion problem asks to preprocess and to be able to, when given some , decide whether there exists some such that and if so, to report such an . Recently, Fiat-Naor's solution to this problem has seen significant traction in theoretical computer science, and allowed for several conjectures related to meta-complexity and the 3SUM problem to be broken.
In this paper, we consider the natural extension of the function inversion problem that we call preimage reporting. Here, instead of having to report only one such that , the whole set must be found.
We present a new general method to convert any arbitrary function inversion scheme into an efficient corresponding preimage reporting scheme. In particular, if is the maximal indegree of , we show that we can perform preimage reporting using space in time for any and satisfying , matching a variant of a tradeoff obtained by Fiat and Naor for function inversion. This last result implies an improvement over the corresponding function inversion scheme itself, which constitutes the first function inversion scheme whose query time is inversely proportional to . We derive new simple solutions for the SUM-indexing with reporting and Jumbled indexing with reporting problems.
1 Introduction
In this section, we give the necessary background to understand our main result, and compare it with the state of the art.
There are two trivial solutions to the problem. The first one requires no preprocessing: when given the query point , we scan the domain of in time to find such that . This requires no extra space. The other approach does all the work during preprocessing: we build a hash map that associates to every an such that , if it exists. This approach takes time to answer queries but requires space. Function inversion schemes try to achieve time and space between these two extremes.
The best-known result for general-purpose function inversion was given by Fiat and Naor [15], who gave the first tradeoff that allowed for the inversion of arbitrary functions . They stated that for any choice of and satisfying , they could preprocess any with high probability into a data structure of size that answers function inversion queries in time (notice that we do not require the scheme to work for values of and outside the useful range). We say that is Fiat-Naor's tradeoff. An equivalent statement would be to say that for any choice of , they achieve function inversion in time and space . Intuitively, the more we are willing to invest into space, the faster the inversion algorithm.
*Université Libre de Bruxelles (ULB), Brussels, Belgium; mathieu.vannimmen@ulb.be; https://orcid.org/0009-0004-2465-855X; Mathieu Vannimmen is a Research Fellow of the Fonds de la Recherche Scientifique - FNRS.
In the same paper, Fiat and Naor gave an alternative tradeoff that depends on the collision probability of over uniformly random inputs. Recently, Kirkpatrick, Kuszmaul, Mathialagan and Vassilevska Williams [20] noticed that this very tradeoff could be expressed in terms of , the maximal indegree of . They found , which we will refer to as the -variant of Fiat-Naor.
More recently, Golovnev, Guo, Peters and Stephens-Davidowitz [18] showed that Fiat-Naor's data structure could be modified to obtain the tradeoff , at the cost of bits of shared randomness. In the context of algorithms, the shared randomness model is often unrealistic and the tradeoff is therefore seldom used.
While originally from cryptography, function inversion tradeoffs were adopted by other fields of computer science. For instance, they were used to show many interesting results in complexity theory and algorithms. In particular, such tradeoffs where used to disprove a version of the Perebor conjecture [19, 22] and to improve the state of the art in many preprocessed problems related to geometry [3, 4, 23], stringology [3, 6, 7, 10, 11] and 3SUM [8, 13, 17, 20, 21].
1.2 Main result
A natural extension of the function inversion problem is the preimage reporting problem: instead of having to find just one of the preimages, we need to report all of them (we need to find the set ).
Preimage reporting was used to solve some problems by an increasingly large set of authors. The problem was used to attack both reporting problems [6, 7, 10] and non-reporting problems [8, 20, 23]. The general idea of this last category of results is to invert a function where preimages could be either real or false positives, and to examine all yielded values to find potential positive examples for the problem at hand (for instance finding a pair of numbers and that sum to a particular value in the case of preprocessed 3SUM [8, 20]).
Our main result is a reduction that takes an arbitrary function inversion scheme and converts it into a corresponding preimage reporting scheme. Our reduction itself is greatly inspired by techniques developed by McCauley [23] and Kirkpatrick, Kuszmaul, Mathialagan and Vassilevska Williams [20]. With it, we are able to convert Fiat-Naor's into a corresponding preimage reporting scheme that achieves the same tradeoff . Note that we do so without opening the Fiat-Naor black box.
Theorem 1. Let be an arbitrary function to invert, with . There exists a preimage reporting data structure that, for any choice of and satisfying , achieves preimage reporting on in time and space . Furthermore, is preprocessed in time with high probability.
The strengths of the above result lies in its simplicity and its applicability.
Indeed, it can be used as an out-of-the-box tool that achieves state-of-the-art performance on many problems. Examples of such uses can be found in section 3.2.
Our technique does not require us to understand how function inversion schemes work as we only rely on the assumption that they retrieve some preimage with high probability. We deem that the sampling technique used to retrieve all preimages is natural and easy to understand.
1.3 Comparison with previous works
We now give existing preimage reporting results and compare our scheme to the state of the art.
Recently, Bibbens et al. [6, Theorem 5] modified the Fiat-Naor inversion scheme to make an efficient preimage reporting scheme when is small enough. In particular, they showed:
Strictly speaking, they showed that the data structure could be preprocessed in expected time , but we can achieve with high probability at a cost of multiplicative .
Theorem 2 (BIBBENS, BOREVITZ, MCCAULEY [6]). There exists a preimage reporting data structure that, for any choice of and satisfying and , achieves preimage reporting in time and space . Furthermore, is preprocessed in time with high probability.
Very recently, Charalampopoulos, El Ghazi, Ellert and Starikovskaya [10] combined the ideas of Aronov et al. [3] and Bibbens et al. (Theorem 2, [6]) to obtain a preimage reporting scheme that covers the case where that Bibbens et al. missed. Furthermore, they are able to use the superior tradeoff for this range of values of . From their result, we are able to derive the following:
Theorem 3 (Derived from CHARALAMPOPOULOS, EL GHAZI, ELLERT, STARIKOVSKAYA [10]). There exists a preimage reporting data structure that, for any choice of and satisfying and , achieves preimage reporting in time and space . Furthermore, is preprocessed in time with high probability.
We can now compare Theorems 1, 2 and 3. Given only the exponents in the tradeoff , it is not clear which are better. To compare them, we can fix for some and get the corresponding value of back. In figure 1.1, we did so and plotted the exponents for the three schemes for two different values of .

(a)
(b)
Figure 1.1: Comparison of the query time for fixed space usage for preimage reporting schemes.
In particular, our result gives a simple tradeoff that is at least as good as the state of the art for any choice of (or ).
Section 2.2 gives all the ideas used to prove Theorem 1. The formal proofs and the precise reduction can be found in section 2.4. Section 3 gives examples of applications, in which we improve the state of the art for some reporting problems.
2 Efficient preimage reporting
2.1 Preliminaries
We denote by the set , and we use notation which omits polylogarithmic factors, such that (we define and analogously). Let be
We slightly altered the presentation of their preimage reporting data structure to make it fit into our tradeoff framework. In reality, they show that for a fixed S, they achieve the worst out of what or would have given. We can split this result in two, and obtain that they achieve when (which is exactly Theorem 2) and when .
some function and let . We define to be the domain of , to be its codomain, to denote the image of a set and to be the image of . The inverse of by is defined to be . We use log to denote . We work in the word RAM model, with words of size .
A function inversion data structure achieves function inversion in time and space if it preprocesses any given function into a data structure of space and, given a query point , it finds a point in such that (or says that it does not exist) in time . We define preimage reporting data structures equivalently.
In general, tradeoffs take the following form , for , constants. We say that a function inversion scheme achieves the tradeoff if, for any choice of and satisfying , and , there exists a function inversion data structure that achieves function inversion in time and space . We define preimage reporting schemes equivalently.
The above allows us to state Fiat-Naor's and Golovnev et al.'s theorems properly.
Theorem 4 (FIAT-NAOR [15]). There exists a function inversion scheme that achieves the tradeoff . Furthermore, is preprocessed in time with high probability.
Theorem 5 ( -variant of FIAT-NAOR [15, 20]). There exists a function inversion scheme that achieves the tradeoff . Furthermore, is preprocessed in time with high probability.
Theorem 6 (GOLOVNEV, GUO, PETERS, STEPHENS-DAVIDOWITZ [18]). There exists a function inversion scheme that achieves the tradeoff . Furthermore, is preprocessed in time with high probability. The scheme uses words of shared randomness.

(a)
(b)
Figure 2.1: Comparison of the query time for fixed space usage for function inversion schemes.
In general, we might be interested in inverting functions where the codomain is larger than the domain: functions of the form with . Furthermore, we let to make it fit into machine words. We call inversion schemes that are able to invert such functions extended inversion schemes.
It is by now well known that classical inversion schemes whose tradeoffs do not depend on (where in , such as e.g. ) can be turned into corresponding extended inversion schemes via standard hashing techniques (see e.g. [17, 20, 21]). The original idea essentially works by inverting in instead of , where is picked uniformly at random from a 2-universal hash family. The issue when there is a dependency on () is that this hash function might introduce large discrepancies between and . Picking from a -wise independent hash family gives using standard balls and bins results (e.g. [9]). The full proof is given for completeness in appendix A.
Theorem 7 (Codomain extension). Let , be constants. If there exists a function inversion data structure that achieves the tradeoff that preprocesses in time , then there exists a corresponding extended function inversion data structure that achieves the same tradeoff and preprocesses for in time with high probability.
2.2 The main idea
We now give the basis for our method, which is inspired by the works of McCauley [23] in 2024 and Kirkpatrick, Kuszmaul, Mathialagan and Vassilevska Williams [20] in 2026. The idea is as follows: instead of inverting only one function of maximal indegree , build a partition of the domain into sets for , where each element of is placed in with probability (in particular, we have on expectation). Then, we define functions for all . For each , we can preprocess a function inversion data structure. We can show that the number of preimages of any given by any will be . We can even expect that with high enough probability, there will be exactly one preimage of by any given and inverting in each of the subfunctions will yield a large enough fraction of the at most preimages of the query point. Repeating times the above scheme would then enable us to find for any with high probability.
This idea uses function inversion schemes as a black box to perform preimage reporting, which is an advantage. However, the main flaw of the approach is the partition of into sets: as they are defined via a random function, they require space to be stored. This was mitigated in two different ways:
-
McCauley [23] figured that the same partition could be used for at most different functions. In particular, if one needs to do preimage reporting on multiple functions, the overhead of storing a random partition of could be amortized.
-
Kirkpatrick, Kuszmaul, Mathialagan and Vassilevska Williams [20] noticed that if the function that they were trying to invert was of a special form, they could get away with only partitioning a subset of .
The main idea of our work is to use a hash function picked uniformly at random from a -wise independent hash family to do the partitioning. Then, instead of considering , we consider . Given some partition of into sets for of size , we define the subfunctions . We will show in section 2.4 that:
-
With constant probability and for a fixed , there is some such that is the only preimage of by that can be found through (there is an such that ).
-
for all with high probability.
Replicating the construction an appropriate number of times, we find the following lemma.
Lemma 8. Let , be constants. If there exists an inversion scheme that achieves the tradeoff and preprocesses in time , then there exists a corresponding extended preimage reporting data structure that preprocesses with

Figure 2.2: A visualization of , for some fixed and . The set is depicted in green.
in time with high probability. Furthermore, for all choices of and satisfying , the data structure requires space and finds the set of any query point in time .
Applying the above result to the -variant of Fiat-Naor (Theorem 5, ) yields Theorem 1. One can check that plugging in the two other inversion schemes (Theorems 4 and 6) yield strictly worse preimage reporting data structures (for any fixed , the corresponding is larger for these two schemes).
2.3 Tools
Lemma 9 (BELLARE, ROMPEL [5, Lemma 2.3]). Let be an even integer. Suppose are -wise independent random variables taking values in . Let and , and let . Then,
Theorem 10 (YAO [25]). Any function inversion scheme with a success probability that uses words of space and answers queries in time must satisfy:
Lemma 11. Let , be constants and suppose there exists a function inversion scheme that achieves the tradeoff . Then, we must have:
Proof. By our definition of inversion schemes, the scheme must achieve the tradeoff for all possible choices of satisfying said tradeoff, and so for any value of . If and if we fix , we obtain . Since , we obtain that the function inversion scheme must be instantiable for all values of bounded by . We will show that and via a contradiction with Yao's Theorem 10.
We have . Let us first show that . We fix . We know from our reasoning above that picking with gives a valid point on the tradeoff curve. We distinguish two cases: either , which implies that and we are done, or , such that . If this is the case, we have and from Theorem 10, which immediately gives , which contradicts our hypothesis that . Hence, .
Repeating the same argument with yields .
2.4 A preimage reporting reduction
Unless stated otherwise, we use the random polynomial hash families of Carter and Wegman [24], where each hash function is a polynomial of degree k-1 and the family is k-wise independent.
In this section, we complete the sketch of section 2.2 and show that the ideas do work.
Let , be constants. We assume access to an extended (or not, using Theorem 7) function inversion scheme that achieves the tradeoff . Consider a function such that , that we want to invert. Instead of inverting in directly, we will invert in for a hash function picked uniformly at random from a -wise independent family of hash functions , with . Consider a partition of into disjoint sets denoted , each of size . We can then define functions which are just domain-restricted versions of . The main idea is that if we fix some query , we expect that in each set , we will have at most preimages of by , because the domain was uniformly shuffled and the preimages distributed uniformly in the sets . Note that can be both queried and stored in time and space and the overhead of using such an vanishes in the notation.
Notice that if , then is a preimage of by .
The main intuition of this whole section is that we want to shuffle the domain of . Assuming the shuffle is good enough, dividing the domain in pieces yields sets where only (or ideally just 1) preimages of can be found, meaning that we have functions with domains of size and .
The preimage reporting algorithm follows.
-
Pick from a -wise independent hash family and choose a value of and on the curve . Choose a partition of into sets of size .
-
Preprocess independent function inversion schemes on the functions with the chosen parameters and .
-
When given a query point , query all inversion schemes. Let be the output of the inversion of on . Then, . Output all the preimages of that you find.
To obtain a high probability of success, one can replicate this construction times and output the union of the outputs.
To show that this all works, we first need to show that the maximal indegree of the functions is .
Lemma 12. With high probability, holds for all simultaneously.
Proof. Let us fix a function and a .
Let us define the binary random variable that is 1 if and only if , such that denotes the size of , the number of preimages of by .
For a fixed , the random variables are -wise independent, since the randomness comes from the choice of . To prove our lemma, we would like to apply Lemma 9 which is a version of Chernoff bounds for -wise independent random variables (which requires to be even, we can consider otherwise). We have by linearity of expectation and:
Since , we have that with probability at least . Union bounding over all functions and all possible values of in gives the result.
We now show that a constant fraction of the preimages of y can be retrieved using classical function inversion even though we are hashing the domain.
Lemma 13. Consider a fixed and a fixed . Then, there exists at least one set such that with probability at least .
Proof. Let be the event for and let (there is a way to reach using ). Let be the event for , and let (there is some set from which is reachable and is not the only element of to be so). The lemma requires a bound on . We have, by Bonferroni inequalities and by pairwise independence of :
By union bound and by pairwise independence of h:
For large enough , .
We are now ready to show Lemma 8, that we restate.
Lemma. Let , be constants. If there exists an inversion scheme that achieves the tradeoff and preprocesses in time , then there exists a corresponding extended preimage reporting data structure that preprocesses with in time with high probability. Furthermore, for all choices of and satisfying , the data structure requires space and finds the set of any query point in time .
Proof. Let us use the construction described at the beginning of this section to obtain a new function , and the associated functions (we have of these), with . By Lemma 12, with high probability for all . Let and be respectively the query time and the space of the function inversion scheme for subfunction . We choose the following values for and , that only depend on a single parameter :
One can easily check that the function inversion schemes's tradeoff is respected (). Since we have different functions, we need to have such instances of our function inversion scheme and need to query of each of them. This gives a total preprocessing time of , a total query time of and a total required space of . One can check that these values of and lie on the tradeoff curve . It is important to note that not all values of that satisfy this equation are reachable using our parameter . Indeed, we need and we use these inequalities to derive the constraints . In particular, we can only reach values of that vary between and . Since as and by Lemma 11, the upper bound lies beyond the useful range of values for . Since and by the same lemma, we have , which means that the constraint is also always valid for nontrivial values of . We do not enforce as if the value of is such that either of these is false, we obtain a scheme that achieves either or , which is outside the useful parameter range.
We still need to justify that our scheme returns all preimages for all query points .
First, let us establish the success probability of the function inversion schemes on the subfunctions . Each finds a preimage of with probability at least by hypothesis (because the high probability statement is with respect to the size of the domain of , not on the domain of ). We can assume that (otherwise, we can do no preprocessing and use a bruteforce approach, as would force anyway). Hence, if we replicate each subscheme times, we obtain a success probability of for each of them. The exact same comment can be made if the function inversion scheme that was used was extended using Theorem 7. Replicating them as above also gives a high probability of success in .
Now that we know that we will get a preimage for each subscheme if there is one, we need to show that the union of their answers will yield a large enough subset of . By Lemma 13, the probability that is never alone in some and that it is thus never returned by the inversion of for some is at most . If we replicate the whole scheme times, we obtain a probability of failure to retrieve a fixed of . Applying the union bound over all possible values of in yields the result.
3 Applications
Our Theorem 1 can be plugged in many constructions to retrieve existing results. For instance, we recover the findings of Kirkpatrick et al. [20] and Carmel et al. [8] on a data structure variant of 3SUM called preprocessed 3SUM (which is not 3SUM-indexing). We can also recover the solution of Bibbens et al. [6] for a text indexing problem. As mentioned before, the solutions of Kirkpatrick et al. [20] and Bibbens et al. [6] involved designing their own preimage reporting scheme.
In this section, we show some applications of our main result that either give a new tool that may be of independent interest (section 3.1) or improve the state of the art for some other reporting problems (section 3.2) with minimal effort.
3.1 Speeding up function inversion
We will now give a simple derived data structure that is able to retrieve a single preimage for any query point with a running time that depends on the number of preimages of .
The idea is to build the data structure of Lemma 8, but to stop after finding one preimage. We can show that this happens with high probability after querying a fraction of the subfunctions . When we talk of the function inversion scheme that deals with , we actually talk about the repetitions of this scheme that are here to guarantee a high probability of success (which does not change anything as the repetitions get absorbed by the notation).
We require the following lemma.
Lemma 14. With high probability and for all , at least one preimage of is returned by the preimage reporting scheme of section 2.4 within inversion queries to the subfunctions.
Proof. Let count the number of preimages of found by the examination of subfunctions . We have . Applying Lemma 9 with and , we obtain that and at least one preimage is found with probability at least . Applying the union bound over all possible choices of gives the result. ■
We can now show the following lemma.
Lemma 15. Let , be constants. If there exists an inversion scheme that achieves the tradeoff that preprocesses in time , then there exists a corresponding extended function inversion data structure that preprocesses with in time with high probability. Furthermore, for all choice of and satisfying and , the data structure requires space and finds a preimage of any query point in time .
Proof. By Lemma 14, an inverse is found with high probability after queries to the function inversion scheme, which means that the space usage is the same as in Lemma 8 but the query time is only .
For the same reasons as in the proof of Lemma 8 (section 2.4), the above is equivalent to saying that for any choice of and on the curve with , we achieve function inversion in time and in space . ■
Applying it to Fiat-Naor's , we find the following theorem.
Theorem 16 (Output-sensitive ). There exists an extended inversion data structure that, for any choice of and satisfying and , achieves function inversion in time and space . Furthermore, with is preprocessed in time with high probability.
3.2 kSUM-indexing and Jumbled indexing with reporting
3SUM-indexing is the problem where we are given a set of integers from a universe with to preprocess to answer queries where we are given some , and we need to report one pair such that , if one exists. This problem has already been extensively studied [12, 13, 16, 17, 21]. In 2024, Bille et al. [7] considered the reporting variant of this problem (where all pairs that sum to the query must be found). They designed a problem-specific preimage reporting data structure to solve it and showed the following theorem.
Theorem 17 (BILLE, GØRTZ, LEWENSTEIN, PISSIS, ROTENBERG, STEINER [7]). For every , there is a data structure for -indexing with reporting with space and query time, where is the size of the output.
We easily derive an improvement over their solution by using our Theorem 1. In fact, we show an efficient solution for -indexing with reporting, where we need to find all -tuples of elements of that sum to the given query .
Corollary 18 (Improved -indexing with reporting). For every , there is a data structure for -indexing with reporting with space and query time, where is the maximal size of the output. Furthermore, the data structure can be built in time .
Proof. Let denote the th element of in some arbitrary ordering. We consider the function . We preprocess it in time using our Theorem 1 (which we can do since is in bijection with , the correct form for the domain of the function to preprocess). We obtain a data structure that finds all preimages of at any given point in time and space for any on the curve , with . When given , the set gives the answer to the -indexing with reporting query, as we can easily convert a pair into the required . Fixing for any , we find .
In the worst case and for any value of , Theorem 17 gives the same running time as our Corollary 18 for but with strictly worse space: instead of our . Note that depends on the instance (we do know that because is a set, but it could be much smaller). We can find its precise value in time , which comes essentially for free in the context of the preprocessing time of our data structure.
In their paper, Bille et al. actually showed that a solution to 3SUM-indexing with reporting implies solutions to many other reporting problems. We give one such example below, in the form of the Jumbled indexing with reporting problem.
Let be a string over an alphabet . A histogram is an array of dimension where the entry at index gives the number of times the th letter of appears in (assuming some ordering on ).
In Jumbled indexing, we are given a string over to preprocess to answer queries where we are given some histogram and need to find one substring of whose histogram is (see e.g. [2]). The reporting variant of the problem was studied by Afshani et al. [1], who showed that if is the size of the output, then any solution that takes time to report all substrings must consume space.
Corollary 19 (Jumbled indexing with reporting, BILLE ET AL. [7]). For every , there is a data structure for Jumbled indexing with reporting on alphabets of size with space and query time, where is the size of the output.
Plugging our Corollary 18 into their reduction gives the following, which again improves on their result for any in the worst case.
Corollary 20. For every , there is a data structure for Jumbled indexing with reporting on alphabets of size with space and query time, where is the maximal size of the output.
Acknowledgements
The main result of this work was found in the context of Mathieu Vannimmen's master's thesis, supervised by both Jean Cardinal and John Iacono.
No AI tools were used to produce mathematical ideas, proofs or to write this document. The authors used Claude Opus 5.5 and Claude Fable 5.1 sparingly and exclusively to proofread technical arguments.
We thank Jean Cardinal and John Iacono for many helpful discussions.
References
[1] AFSHANI, P., VAN DUIJN, I., KILLMANN, R., AND NIELSEN, J. S. A lower bound for jumbled indexing. In Proceedings of the 2020 ACM-SIAM Symposium on Discrete Algorithms (2020), SIAM, Philadelphia, PA, pp. 592–606.
[2] AMIR, A., CHAN, T. M., LEWENSTEIN, M., AND LEWENSTEIN, N. On hardness of jumbled indexing. In Automata, Languages, and Programming - 41st International Colloquium, ICALP 2014, Copenhagen, Denmark, July 8-11, 2014, Proceedings, Part I (2014), J. Esparza, P. Fraigniaud, T. Husfeldt, and E. Koutsoupias, Eds., vol. 8572 of Lecture Notes in Computer Science, Springer, pp. 114–125.
[3] ARONOV, B., CARDINAL, J., DALLANT, J., AND IACONO, J. A General Technique for Searching in Implicit Sets via Function Inversion. In 2024 Symposium on Simplicity in Algorithms, SOSA 2024, Alexandria, VA, USA, January 8-10, 2024 (2024), M. Parter and S. Pettie, Eds., SIAM, pp. 215–223.
[4] ARONOV, B., EZRA, E., SHARIR, M., AND ZIGDON, G. Time and space efficient collinearity indexing. Comput. Geom. 110 (2023), 101963.
[5] BELLARE, M., AND ROMPEL, J. Randomness-Efficient Oblivious Sampling. In 35th Annual Symposium on Foundations of Computer Science, Santa Fe, New Mexico, USA, November 20-22, 1994 (1994), IEEE Computer Society, pp. 276–287.
[6] BIBBENS, J., BOREVITZ, L., AND MCCAULEY, S. Space-Efficient Text Indexing with Mismatches using Function Inversion. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing, STOC 2026, Salt Lake City, UT, USA, June 22-26, 2026 (2026), A. Bhaskara and A. Czumaj, Eds., ACM, pp. 1061–1072.
[7] BILLE, P., GÖRTZ, I. L., LEWENSTEIN, M., PISSIS, S. P., ROTENBERG, E., AND STEINER, T. A. Gapped String Indexing in Subquadratic Space and Sublinear Query Time. In 41st International Symposium on Theoretical Aspects of Computer Science, STACS 2024, Clermont-Ferrand, France, March 12-14, 2024 (2024), O. Beyersdorff, M. M. Kanté, O. Kupferman, and D. Lokshtanov, Eds., vol. 289 of LIPIcs, Schloss Dagstuhl - Leibniz-Zentrum für Informatik, pp. 16:1–16:21.
[8] CARMEL, A., KOSOBURD, Y., AND KRAUTHGAMER, R. Recovery Beats Storage: Improved Space for Preprocessed 3SUM. CoRR abs/2608.22355 (2026).
[9] CELIS, L. E., REINGOLD, O., SEGEV, G., AND WIEDER, U. Balls and Bins: Smaller Hash Families and Faster Evaluation. SIAM J. Comput. 42, 3 (2013), 1030–1050.
[10] CHARALAMPOPOULOS, P., EL GHAZI, T., ELLERT, J., AND STARIKOVSKAYA, T. Improved Time-Space Tradeoffs for Exact and Approximate Text Indexing. In ACM-SIAM Symposium on Discrete Algorithms (SODA27) (2027).
[11] CHARALAMPOPOULOS, P., GHAZI, T. E., ELLERT, J., GAWRYCHOWSKI, P., AND STARIKOVSKAYA, T. Suffix random access via function inversion: A key for asymmetric streaming string algorithms. In 53rd International Colloquium on Automata, Languages, and
Programming, ICALP 2026, Royal Holloway, University of London, Egham, United Kingdom, July 7-10, 2026 (2026), S. Bhattacharya, D. Nanongkai, M. Benedikt, and G. Puppis, Eds., vol. 374 of LIPIcs, Schloss Dagstuhl - Leibniz-Zentrum für Informatik, pp. 55:1–55:20.
[12] CHUNG, E., AND LARSEN, K. G. Stronger 3SUM-Indexing lower bounds. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA) (2023), SIAM, Philadelphia, PA, pp. 444–455.
[13] DINUR, I., AND GOLOVNEV, A. Improved time-space tradeoffs for 3SUM-indexing. In 53rd International Colloquium on Automata, Languages, and Programming, vol. 374 of LIPIcs. Leibniz Int. Proc. Inform. Schloss Dagstuhl. Leibniz-Zent. Inform., Wadern, 2026, pp. Paper No. 78, 17.
[14] EVEN, G., GOLDREICH, O., LUBY, M., NISAN, N., AND VELICKOVIC, B. Approximations of General Independent Distributions. In Proceedings of the 24th Annual ACM Symposium on Theory of Computing, May 4-6, 1992, Victoria, British Columbia, Canada (1992), S. R. Kosaraju, M. Fellows, A. Wigderson, and J. A. Ellis, Eds., ACM, pp. 10–16.
[15] FIAT, A., AND NAOR, M. Rigorous Time/Space Trade-offs for Inverting Functions. SIAM J. Comput. 29, 3 (1999), 790–803.
[16] GOLDSTEIN, I., KOPELOWITZ, T., LEWENSTEIN, M., AND PORAT, E. Conditional Lower Bounds for Space/Time Tradeoffs. In Algorithms and Data Structures - 15th International Symposium, WADS 2017, St. John's, NL, Canada, July 31 - August 2, 2017, Proceedings (2017), F. Ellen, A. Kolokolova, and J. Sack, Eds., vol. 10389 of Lecture Notes in Computer Science, Springer, pp. 421–436.
[17] GOLOVNEV, A., GUO, S., HOREL, T., PARK, S., AND VAIKUNTANATHAN, V. Data structures meet cryptography: 3SUM with preprocessing. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, STOC 2020, Chicago, IL, USA, June 22-26, 2020 (2020), K. Makarychev, Y. Makarychev, M. Tulsiani, G. Kamath, and J. Chuzhoy, Eds., ACM, pp. 294–307.
[18] GOLOVNEV, A., GUO, S., PETERS, S., AND STEPHENS-DAVIDOWITZ, N. Revisiting Time-Space Tradeoffs for Function Inversion. In Advances in Cryptology - CRYPTO 2023 - 43rd Annual International Cryptology Conference, CRYPTO 2023, Santa Barbara, CA, USA, August 20-24, 2023, Proceedings, Part II (2023), H. Handschuh and A. Lysyanskaya, Eds., vol. 14082 of Lecture Notes in Computer Science, Springer, pp. 453–481.
[19] HIRAHARA, S., ILANGO, R., AND WILLIAMS, R. R. Beating Brute Force for Compression Problems. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, STOC 2024, Vancouver, BC, Canada, June 24-28, 2024 (2024), B. Mohar, I. Shinkar, and R. O'Donnell, Eds., ACM, pp. 659–670.
[20] KIRKPATRICK, Y., KUSZMAUL, J., MATHIALAGAN, S., AND VASSILEVSKA WILLIAMS, V. Preprocessed 3SUM for Unknown Universes with Subquadratic Space. In 53rd International Colloquium on Automata, Languages, and Programming, ICALP 2026, Royal Holloway, University of London, Egham, United Kingdom, July 7-10, 2026 (2026), S. Bhattacharya, D. Nanongkai, M. Benedikt, and G. Puppis, Eds., vol. 374 of LIPIcs, Schloss Dagstuhl - Leibniz-Zentrum für Informatik, pp. 126:1–126:13.
[21] KOPELOWITZ, T., AND PORAT, E. The Strong 3SUM-INDEXING Conjecture is False. CoRR abs/1907.11206 (2019).
[22] MAZOR, N., AND PASS, R. The Non-Uniform Perebor Conjecture for Time-Bounded Kolmogorov Complexity Is False. In 15th Innovations in Theoretical Computer Science Conference, ITCS 2024, January 30 to February 2, 2024, Berkeley, CA, USA (2024), V. Guruswami, Ed., vol. 287 of LIPIcs, Schloss Dagstuhl - Leibniz-Zentrum für Informatik, pp. 80:1–80:20.
[23] MCAULEY, S. Improved Space-Efficient Approximate Nearest Neighbor Search Using Function Inversion. In 32nd Annual European Symposium on Algorithms, ESA 2024, September 2-4, 2024, Royal Holloway, London, United Kingdom (2024), T. M. Chan, J. Fischer, J. Iacono, and G. Herman, Eds., vol. 308 of LIPIcs, Schloss Dagstuhl - Leibniz-Zentrum für Informatik, pp. 88:1–88:19.
[24] WEGMAN, M. N., AND CARTER, J. New hash functions and their use in authentication and set equality. Journal of Computer and System Sciences 22, 3 (1981), 265–279.
[25] YAO, A. C. Coherent Functions and Program Checkers (Extended Abstract). In Proceedings of the 22nd Annual ACM Symposium on Theory of Computing, May 13-17, 1990, Baltimore, Maryland, USA (1990), H. Ortiz, Ed., ACM, pp. 84–94.
A Codomain extension
In this appendix, we show Theorem 7. We require the following lemma.
Lemma 21 (EVEN, GOLDREICH, LUBY, NISAN, VELIČKOVIĆ [14, Theorem 2]). Let be -wise independent binary random variables. Then,
We now restate the theorem before proving it.
Theorem. Let , be constants. If there exists a function inversion data structure that achieves the tradeoff that preprocesses in time , then there exists a corresponding extended function inversion data structure that achieves the same tradeoff and preprocesses for in time with high probability.
Proof. Pick a function from a -wise independent hash family. Instead of inverting in , we invert in . Let be the image of and let be restricted to . By standard balls and bins results (e.g. [9]), with high probability (one hash is used for one function , so taking to be fixed is not a problem). For any , , so and the indegree of is preserved with high probability.
Consider a fixed . When given , we find a preimage by by computing a preimage of by . Indeed, means that . The idea is that most likely, we have but it could be that and that introduces a false positive. We bound the probability that this happens. Let and let be a binary random variable that is 1 if and only if for . Conditioned on , the variables for are -wise independent. By Lemma 21 and for large enough , we have:
Hence, the probability that a collision with happens is at most . Replicating the construction times gives a probability of success for at least one of the schemes of and applying the union bound over all possible query points yields the result.