A weak one-way function that is not strongly one-way #
If one-way functions exist, then some weak one-way function is not strongly one-way
Goldreich, Exercise 7.3
(Cslib.Crypto.OneWay.exists_weakOneWay_not_oneWay).
The draft gives no guideline. The construction lets the first input bit choose between the
identity and f: g(1 x) = 1 x and g(0 x) = 0 f(x) (Cslib.Crypto.OneWayEasyHalf.easyHalf).
Returning the challenge inverts g whenever the first bit is 1, so with probability at least
one half, and g is not one-way. An inverter for g that succeeded with probability at least
3/4 would invert f on the challenges 0 f(x) with probability at least one half
(Cslib.Crypto.OneWayEasyHalf.succProbability_inversionGame_succ_le), so g is weakly one-way
with the polynomial p(n) = 4 of Definition 7.4.
Main definitions #
Cslib.Crypto.OneWayEasyHalf.easyHalf: identity on inputs starting with1,fon the rest.Cslib.Crypto.OneWayEasyHalf.tailInverter: the inverter forfbuilt from one foreasyHalf f.
Main results #
Cslib.Crypto.OneWayEasyHalf.weakOneWay:easyHalf fis weakly one-way whenfis one-way.Cslib.Crypto.OneWayEasyHalf.not_oneWay:easyHalf fis never strongly one-way.Cslib.Crypto.OneWay.exists_weakOneWay_not_oneWay: Goldreich, Exercise 7.3.
References #
- O. Goldreich, Computational Complexity: A Conceptual Perspective, draft
r4.pdfof March 2007, Exercise 7.3 (printed page 305, PDF page 41), with Definitions 7.1 and 7.4 (printed pages 269–270).
The inverter for f from an inverter for easyHalf f: prefix the challenge with 0, run the
given inverter one length up and drop the first bit of its candidate.
Inversion reduction. At length n + 1, half of the inputs are easy, and on the other half
the inverter for easyHalf f is an inverter for f at length n.
Returning the challenge inverts easyHalf f with probability at least one half at every
positive length.
easyHalf f is weakly one-way when f is one-way: every efficient inverter fails with
probability strictly greater than 1/4 from some length on.
Goldreich, Exercise 7.3: if one-way functions exist, then some
weak one-way function is not strongly one-way. Weak one-wayness is Cslib.Crypto.WeakOneWay
(Definition 7.4: some positive polynomial p bounds the failure probability of every uniform
strict PPT inverter below by 1 / p(n) for all sufficiently large n); strong one-wayness is
Cslib.Crypto.OneWay (Definition 7.1).