Levin reductions #
A Levin reduction of an NP relation R to an NP relation S is a polynomial-time map f of
instances together with two polynomial-time maps of witnesses: a forward map sending each witness
w for a to a witness for f a, and a backward map sending each witness for f a to a witness
for a. This is the augmented Karp reduction of Goldreich, Exercise 2.28, which
Goldreich notes is the definition Levin used [Lev73] (Levin's witness maps read only the
witness). Goldreich's Definition 2.12 keeps only the instance map and the backward map; the
forward map is what lets an honest prover for S run on the witnesses of R, as in
zero-knowledge proofs for all of NP.
Both witness maps read the instance as well as the witness. A Levin reduction is in particular a
polynomial-time many-one reduction between the languages
(Cslib.Complexity.LevinReduction.toPolyTimeReducible). Levin reductions compose
(Cslib.Complexity.LevinReduction.trans), and an NP relation is LevinHard when every NP
relation, over any encoded instance type, Levin-reduces to it; its language is then NP-hard
(Cslib.Complexity.LevinHard.npHard). This is Goldreich's PC-hardness (the
remark following Goldreich, Definition 2.18) for the augmented reductions.
Main definitions #
Cslib.Complexity.LevinReduction: instance map with forward and backward witness maps.Cslib.Complexity.LevinReduction.refl,Cslib.Complexity.LevinReduction.trans: identity and composition.Cslib.Complexity.LevinHard: every NP relation Levin-reduces to the given one.
Main results #
Cslib.Complexity.LevinReduction.mem_language_iff,Cslib.Complexity.LevinReduction.toPolyTimeReducible: the instance map is a polynomial-time many-one reduction of the languages.Cslib.Complexity.LevinHard.trans: hardness transfers along Levin reductions.Cslib.Complexity.LevinHard.npHard: the language of a Levin-hard relation isNP-hard.
References #
- O. Goldreich, Computational Complexity: A Conceptual Perspective; numbering of the author's online draft of 30 December 2006.
- L. A. Levin, Universal sequential search problems
A Levin reduction of the NP relation R to the NP relation S
Goldreich, Exercise 2.28: a polynomial-time map toFun of instances, a
polynomial-time map forwardWitness sending a witness w for a to the witness
forwardWitness (a, w) for toFun a, and a polynomial-time map backwardWitness sending a
witness w for toFun a to the witness backwardWitness (a, w) for a.
- toFun : α → β
The map of instances.
The map of witnesses for an instance to witnesses for its image.
The map of witnesses for the image of an instance back to witnesses for the instance.
- computableInPolyTime_toFun : Turing.MultiTapeTM.ComputableInPolyTime self.toFun encA encB
The map of instances is computable in polynomial time.
- computableInPolyTime_forwardWitness : Turing.MultiTapeTM.ComputableInPolyTime self.forwardWitness (Turing.MultiTapeTM.encPair encA Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits
The forward witness map is computable in polynomial time.
- computableInPolyTime_backwardWitness : Turing.MultiTapeTM.ComputableInPolyTime self.backwardWitness (Turing.MultiTapeTM.encPair encA Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits
The backward witness map is computable in polynomial time.
- isWitness_forwardWitness (a : α) (w : List Bool) : R.IsWitness a w → S.IsWitness (self.toFun a) (self.forwardWitness (a, w))
The forward map sends witnesses to witnesses.
- isWitness_backwardWitness (a : α) (w : List Bool) : S.IsWitness (self.toFun a) w → R.IsWitness a (self.backwardWitness (a, w))
The backward map sends witnesses to witnesses.
The instance map of a Levin reduction preserves membership in the languages.
A Levin reduction is a polynomial-time many-one reduction of the languages.
The identity Levin reduction of an NP relation to itself.
Composition of Levin reductions. The forward maps compose along the first instance map; the backward map first pulls a witness back to the intermediate instance.
The NP relation S is Levin-hard: every NP relation, over any encoded type of instances,
Levin-reduces to it. This is Goldreich's PC-hardness (the remark following
Goldreich, Definition 2.18) for reductions with both witness maps, over NP
relations with certificates of exactly the prescribed length. As in Cslib.Complexity.HardUnder,
the instance type is strict-implicit.
Levin-hardness transfers along a Levin reduction.
The language of a Levin-hard NP relation is NP-hard.