Mild Average-Case Hardness of Functions Against Efficient Heuristics #
This module formalizes generic mild average-case hardness definitions for functions
f : List Bool → ℕ (and f : List Bool → ℕ∞) over the uniform distribution on {0, 1}^n
following Y. Liu and R. Pass, On One-Way Functions and Kolmogorov Complexity.
The parametric kernel MildlyHardOnAverageFor expresses hardness over any monotone asymptotic
length quantifier (MonoQuant, satisfied by both ∀ᶠ n in atTop and ∃ᶠ n in atTop) and
heuristic admissibility predicate (IsPPTOn, IsDetPolyTime), providing monotonicity,
admissibility and quantifier transport, zero-gap equivalence, one-sided-to-symmetric 2g → g
gap shifting, and negative nonvacuity witnesses across all named specializations. All section,
definition, theorem, lemma, and page locators follow the full version arXiv:2009.11514v1 (and
ECCC TR20-052).
Main definitions #
Cslib.Complexity.MonoQuant: asymptotic length quantifiersQuant : (ℕ → Prop) → Propclosed under eventual implication (∀ᶠ n in atTop), instantiated for bothFilter.Eventually · atTopandFilter.Frequently · atTop.Cslib.Complexity.IsDetPolyTime: admissibility predicate embedding deterministic polynomial-time heuristicsList Bool → βintoList Bool → ProbComp βviapure.Cslib.Complexity.MildlyHardOnAverageFor: the parametric mild average-case hardness kernel overQuant,Admissible, and a Boolean correctness testcorrect n x v.Cslib.Complexity.MildlyHardOnAverageWith,Cslib.Complexity.MildlyHardOnAverageDetWith,Cslib.Complexity.MildlyHardOnAverageIOWith: specializations ofMildlyHardOnAverageForto uniform strict PPT heuristics (∀ᶠ), deterministic polynomial-time heuristics (∀ᶠ), and infinitely-often deterministic heuristics (∃ᶠ).Cslib.Complexity.MildlyHardOnAverage: mild average-case hardness of exact computation forList Bool → ℕagainst uniform strict PPT heuristics (Liu and Pass, Definition 2.4, §2.3, p. 8 of arXiv:2009.11514v1).Cslib.Complexity.MildlyHardOnAverageToApprox: mild average-case hardness of symmetric $g(n)$-approximation (Nat.dist v (f x) ≤ g n, i.e., $|v - f(x)| \le g(|x|)$) forList Bool → ℕagainst uniform strict PPT heuristics (Liu and Pass, Definition 2.5, §2.3, p. 8 of arXiv:2009.11514v1).Cslib.Complexity.MildlyHardOnAverageToOneSidedApprox: library helper for one-sided underestimation error (f x - g n ≤ v ∧ v ≤ f x) against uniform strict PPT heuristics.Cslib.Complexity.MildlyHardOnAverageDet,Cslib.Complexity.MildlyHardOnAverageToApproxDet,Cslib.Complexity.MildlyHardOnAverageToOneSidedApproxDet: library specializations to deterministic polynomial-time heuristics.Cslib.Complexity.MildlyHardOnAverageIO,Cslib.Complexity.MildlyHardOnAverageToApproxIO,Cslib.Complexity.MildlyHardOnAverageToOneSidedApproxIO: library infinitely-often (∃ᶠ n in atTop) deterministic companions.Cslib.Complexity.MildlyHardOnAverageENat,Cslib.Complexity.MildlyHardOnAverageIOENat: libraryℕ∞-valued companions forList Bool → ℕ∞, against heuristics with outputs inℕ.
Main results #
Cslib.Complexity.MildlyHardOnAverageFor.mono: hardness for a weaker correctness test implies hardness for a stronger one under anyMonoQuant.Cslib.Complexity.MildlyHardOnAverageFor.of_admissible,Cslib.Complexity.MildlyHardOnAverageFor.of_quant: contravariance in the heuristic admissibility class and covariance in the length quantifier.Cslib.Complexity.mildlyHardOnAverageFor_isDetPolyTime_iff: equivalence betweenProbComp-liftedIsDetPolyTimehardness and direct quantification over polynomial-timeList Bool → β.Cslib.Complexity.MildlyHardOnAverageFor.approx_zero_iff,Cslib.Complexity.MildlyHardOnAverageFor.oneSidedApprox_zero_iff: zero-gap approximation hardness coincides with exact hardness.Cslib.Complexity.MildlyHardOnAverageFor.approx_of_oneSided_two_mul,Cslib.Complexity.MildlyHardOnAverageToOneSidedApprox.mildlyHardOnAverageToApprox,Cslib.Complexity.MildlyHardOnAverageToOneSidedApproxDet.mildlyHardOnAverageToApproxDet: shift + gap-scaling bridge converting one-sided $(2 g)$-approximation hardness into symmetric $g$-approximation hardness wheneverfun x => g x.lengthis computable in polynomial time.Cslib.Complexity.MildlyHardOnAverageToApprox.eventually_real_abs_sub_le: upper-rounded integer log windowd * (Nat.log 2 n + 1)implies the real-valued symmetric window $|(v : \mathbb{R}) - f(x)| \le d \log_2 |x|$ of Definition 2.5.Cslib.Complexity.MildlyHardOnAverageFor.not_of_forall_poly,Cslib.Complexity.MildlyHardOnAverageFor.not_of_admissible_pure,Cslib.Complexity.not_mildlyHardOnAverageIO_zero,Cslib.Complexity.not_mildlyHardOnAverage_zero: kernel negative-witness criteria and constant-zero nonvacuity lemmas.
References #
- Y. Liu and R. Pass, On One-Way Functions and Kolmogorov Complexity,
full version
arXiv:2009.11514v1(Section 2.3).
Monotone asymptotic quantifiers and the parametric hardness kernel #
An asymptotic length quantifier Quant : (ℕ → Prop) → Prop closed under eventual implication
along atTop. Both Filter.Eventually · atTop (∀ᶠ n in atTop) and
Filter.Frequently · atTop (∃ᶠ n in atTop) satisfy MonoQuant, even though Frequently is not
a filter.
Transport
Quant PtoQuant Qalong an eventual implication∀ᶠ n in atTop, P n → Q n.
Instances
Every deterministic polynomial-time heuristic is a strict PPT heuristic.
Lifting a polynomial-time function List Bool → β with pure yields an IsDetPolyTime
heuristic.
Parametric mild average-case hardness kernel (MildlyHardOnAverageFor).
For an asymptotic length quantifier Quant : (ℕ → Prop) → Prop, a heuristic admissibility
predicate Admissible : (List Bool → ProbComp β) → Prop, and a Boolean correctness test
correct : ℕ → List Bool → β → Bool, there exists a positive polynomial p such that every
admissible heuristic H satisfies Quant on the lengths n where H passes correct n x with
probability at most 1 - 1 / p(n) over x ← {0, 1}^n and H's coins.
Monotonicity in the correctness test: if, for all sufficiently large n, every output
passing correct₁ on an input of length n also passes correct₂, then hardness for correct₂
implies hardness for correct₁.
Contravariance in admissibility: hardness against a broader heuristic class Admissible₂
implies hardness against any narrower class Admissible₁.
Covariance in the length quantifier: transporting Quant₂ to a weaker quantifier Quant₁
preserves MildlyHardOnAverageFor.
Quantifying over IsDetPolyTime heuristics in ProbComp is equivalent to quantifying directly
over deterministic polynomial-time functions H : List Bool → β.
Monotonicity of symmetric g-approximation hardness on the kernel.
Monotonicity of one-sided g-approximation hardness on the kernel.
Symmetric g-approximation hardness implies one-sided g-approximation hardness on the
kernel.
Symmetric g-approximation hardness implies exact hardness on the kernel.
One-sided g-approximation hardness implies exact hardness on the kernel.
Zero-gap specialization (symmetric): symmetric 0-approximation hardness coincides with
exact hardness for every quantifier and admissibility predicate.
Zero-gap specialization (one-sided): one-sided 0-approximation hardness coincides with
exact hardness for every quantifier and admissibility predicate.
Parametric 2g → g gap-shifting bridge: whenever Admissible is closed under shifting
outputs down by g x.length, one-sided (2 g)-approximation hardness implies symmetric
g-approximation hardness.
Negative-witness criterion on the kernel: if Quant rejects False and every positive
polynomial p admits an admissible heuristic whose success probability eventually exceeds
1 - 1 / p(n), then MildlyHardOnAverageFor fails.
Constant-heuristic nonvacuity on the kernel: if an admissible constant heuristic pure v₀
eventually passes correct on every input of length n, then MildlyHardOnAverageFor fails.
Specializations of the kernel to PPT, deterministic, and infinitely-often cores #
Mild average-case hardness for a correctness test, against strict PPT heuristics:
MildlyHardOnAverageFor instantiated at ∀ᶠ n in atTop and IsPPTOn encBits encNat.
Mild average-case hardness for a correctness test, against deterministic heuristics:
MildlyHardOnAverageFor instantiated at ∀ᶠ n in atTop and IsDetPolyTime encNat.
Infinitely-often mild average-case hardness for a correctness test, against deterministic
heuristics: MildlyHardOnAverageFor instantiated at ∃ᶠ n in atTop and
IsDetPolyTime encNat.
Monotonicity of MildlyHardOnAverageWith in the correctness test.
MildlyHardOnAverageWith.mono for deterministic heuristics.
MildlyHardOnAverageWith.mono for infinitely-often hardness.
Hardness against strict PPT heuristics implies hardness against deterministic polynomial-time heuristics, since every deterministic polynomial-time heuristic is a strict PPT heuristic.
Eventual hardness implies infinitely-often hardness.
Average-case hardness definitions #
(Liu and Pass, Definitions 2.4 and 2.5, §2.3, p. 8 of arXiv:2009.11514v1)
Liu and Pass, Definition 2.4, §2.3, p. 8 of arXiv:2009.11514v1:
Mildly hard on average (MildlyHardOnAverage).
A function $f : \{0, 1\}^* \to \mathbb{N}$ is mildly hard on average if there exists a positive
polynomial $p$ such that for every uniform strict PPT heuristic
$\mathcal{H} : \{0, 1\}^* \to \mathrm{ProbComp}\ \mathbb{N}$, for all sufficiently large
$n \in \mathbb{N}$,
$$\Pr_{x \leftarrow \{0, 1\}^n, v \leftarrow \mathcal{H}(x)}[v = f(x)] \le 1 - \frac{1}{p(n)}.$$
Liu and Pass, Definition 2.5, §2.3, p. 8 of arXiv:2009.11514v1:
Mildly hard on average to $g$-approximate (MildlyHardOnAverageToApprox).
A function $f : \{0, 1\}^* \to \mathbb{N}$ is mildly hard on average to $g$-approximate if there
exists a positive polynomial $p$ such that for every uniform strict PPT heuristic
$\mathcal{H} : \{0, 1\}^* \to \mathrm{ProbComp}\ \mathbb{N}$, for all sufficiently large
$n \in \mathbb{N}$,
$$\Pr_{x \leftarrow \{0, 1\}^n, v \leftarrow \mathcal{H}(x)}[|v - f(x)| \le g(n)] \le 1 - \frac{1}{p(n)},$$
where $|v - f(x)|$ is formalized on $\mathbb{N}$ by the symmetric distance Nat.dist v (f x).
Library helper (MildlyHardOnAverageToOneSidedApprox): one-sided underestimation
approximation hardness against uniform strict PPT heuristics, requiring
$$\Pr_{x \leftarrow \{0, 1\}^n, v \leftarrow \mathcal{H}(x)}[f(x) - g(n) \le v \le f(x)] \le 1 - \frac{1}{p(n)}$$
for all sufficiently large $n$. By
MildlyHardOnAverageToOneSidedApprox.mildlyHardOnAverageToApprox, one-sided
$(2 g)$-approximation hardness implies symmetric $g$-approximation hardness
(MildlyHardOnAverageToApprox g f) whenever fun x => g x.length is computable in polynomial time
by shifting any heuristic output down by $g(|x|)$.
Library specialization (MildlyHardOnAverageDet): deterministic polynomial-time heuristic
specialization of MildlyHardOnAverage.
Library specialization (MildlyHardOnAverageToApproxDet): deterministic polynomial-time
heuristic specialization of MildlyHardOnAverageToApprox.
Library specialization (MildlyHardOnAverageToOneSidedApproxDet): deterministic
polynomial-time heuristic specialization of MildlyHardOnAverageToOneSidedApprox.
Library companion (MildlyHardOnAverageIO): infinitely-often (∃ᶠ n in atTop)
deterministic-heuristic companion to MildlyHardOnAverageDet.
Library companion (MildlyHardOnAverageToApproxIO): infinitely-often (∃ᶠ n in atTop)
deterministic-heuristic companion to MildlyHardOnAverageToApproxDet.
Library companion (MildlyHardOnAverageToOneSidedApproxIO): infinitely-often
(∃ᶠ n in atTop) deterministic-heuristic companion to MildlyHardOnAverageToOneSidedApproxDet.
Library companion (MildlyHardOnAverageENat): ℕ∞-valued companion to
MildlyHardOnAverage for functions f : List Bool → ℕ∞ such as Kolmogorov.timeBounded t.
Heuristics output natural numbers, so no output is correct on an input with f x = ⊤: the
predicate holds for every f that is ⊤ on all inputs of every sufficiently large length.
Library companion (MildlyHardOnAverageIOENat): ℕ∞-valued companion to
MildlyHardOnAverageIO for functions f : List Bool → ℕ∞ such as Kolmogorov.timeBounded t.
Heuristics output natural numbers, so no output is correct on an input with f x = ⊤: the
predicate holds for every f that is ⊤ on all inputs of infinitely many lengths.
Monotonicity, shifting, and specialization corollaries #
Monotonicity of MildlyHardOnAverageToApprox in the error window: if $g_1(n) \le g_2(n)$ for
all $n$, then hardness of $g_2$-approximation implies hardness of $g_1$-approximation.
Monotonicity of MildlyHardOnAverageToApproxDet in the error window.
Monotonicity of MildlyHardOnAverageToOneSidedApprox in the error window.
Monotonicity of MildlyHardOnAverageToOneSidedApproxDet in the error window.
Symmetric $g$-approximation hardness (MildlyHardOnAverageToApprox g f) implies one-sided
$g$-approximation hardness (MildlyHardOnAverageToOneSidedApprox g f).
Shift + gap-scaling bridge (MildlyHardOnAverageToOneSidedApprox.mildlyHardOnAverageToApprox):
shifting a symmetric $g$-estimator $\mathcal{H}(x)$ down by $g(|x|)$ produces a one-sided
$(2 g)$-estimator $\mathcal{H}'(x) = \mathcal{H}(x) - g(|x|)$, because $|v - f(x)| \le g(|x|)$
implies $f(x) - 2 g(|x|) \le v - g(|x|) \le f(x)$. Consequently, when fun x => g x.length is
computable in polynomial time, one-sided $(2 g)$-approximation hardness against PPT heuristics
implies symmetric $g$-approximation hardness (MildlyHardOnAverageToApprox g f).
Deterministic counterpart of
MildlyHardOnAverageToOneSidedApprox.mildlyHardOnAverageToApprox.
MildlyHardOnAverageToApproxDet implies MildlyHardOnAverageToApproxIO.
MildlyHardOnAverageToApproxDet g f implies MildlyHardOnAverageDet f.
MildlyHardOnAverageToOneSidedApproxDet g f implies MildlyHardOnAverageDet f.
MildlyHardOnAverageToApproxIO g f implies MildlyHardOnAverageIO f.
MildlyHardOnAverageToOneSidedApproxIO g f implies MildlyHardOnAverageIO f.
MildlyHardOnAverageToApprox implies MildlyHardOnAverageToApproxDet (since every
deterministic polynomial-time heuristic is a strict PPT heuristic).
MildlyHardOnAverage implies MildlyHardOnAverageIO.
MildlyHardOnAverageToApprox g f implies MildlyHardOnAverage f.
MildlyHardOnAverageToOneSidedApprox g f implies MildlyHardOnAverage f.
Rounded logarithm bounds and real-valued log window bridge #
Any real-valued symmetric approximation error $|(v : \mathbb{R}) - (w : \mathbb{R})| \le d \log_2 n$ (for $n \ge 1$) implies the upper-rounded integer distance bound
Nat.dist v w ≤ d * (Nat.log 2 n + 1).
Real-valued $d \log_2 n$ approximation window bridge: if f is mildly hard on average to
approximate within the upper-rounded integer window fun n => d * (Nat.log 2 n + 1), then f is
mildly hard on average to approximate within the real-valued window $d \log_2 n$ of
Liu and Pass, Definition 2.5 and Theorem 3.1 (c), pp. 8–9 of arXiv:2009.11514v1.
Negative-side nonvacuity lemmas for the constant zero function #
The constant zero function fun _ => 0 is not MildlyHardOnAverageIO, because the
constant zero polynomial-time heuristic succeeds with probability $1$ on every input length.
The constant zero function fun _ => 0 is not MildlyHardOnAverageDet.
The constant zero function fun _ => 0 is not MildlyHardOnAverage.
The constant zero function fun _ => 0 is not MildlyHardOnAverageToApproxIO g for any error
function g.
The constant zero function fun _ => 0 is not MildlyHardOnAverageToApproxDet g for any error
function g.
The constant zero function fun _ => 0 is not MildlyHardOnAverageToApprox g for any error
function g.
The constant zero function fun _ => 0 is not MildlyHardOnAverageToOneSidedApprox g for any
error function g.