Lemma 6.5 — the nonstraightforward hybrid
OpenHILL.PRG.lemma_6_5Assume the setting of Corollary 6.6: is one-way, is a P-time parameter, and , are universal with the lengths of (6.2) and (6.7). Let and be the laws of (6.8) and the comparison law, and let , , , , , be as in Lemma 6.1. If a PPT adversary , given advice , distinguishes from with non-negligible advantage , then there is a PPT oracle machine , with polynomially bounded integer advice, that distinguishes
with non-negligible advantage. In the paper the advantage is at least .
The proof (pp. 1388–1392) is the paper's "most technically involved". Phase 1 builds coupled samplable hybrids and , choosing each position as the best of uniform samples according to estimated advantages. Phase 2 plants the challenge at a random position. Facts (a) and (b) use Lemma 4.8 (leftover hash) and .
Formalization Note This is the qualitative form: "not negligible" in, "not computationally indistinguishable with some polynomial advice" out. The advice lets use , the sign of the advantage, and an approximation of to inverse-polynomial precision (the paper's remark on p. 1392 that a good approximation of suffices). The Lemma 6.1 laws are written inline exactly as in HILL.PRG.lemma_6_1.
import Mathlib import Definitions.Def_HILL_PRG_Model import Definitions.Def_HILL_PRG_Constructions
namespace HILL.PRG
/-- Lemma 6.5 (qualitative form): a distinguisher for 𝒟 and ℰ that is not negligible yields
a distinguisher, with polynomial advice, for the hidden bit of Lemma 6.1. -/
theorem lemma_6_5 (F : FunEns) (hf : ∀ n, F.t n = n) (hOWF : IsOWF F)
(k : ℕ → ℕ) (hkpt : PTimeParam k)
(hk : ∀ n, 1 ≤ n → 125 * n ^ 3 ≤ k n)
(h hp : HashFamily) (hh : h.IsUniversal) (hhp : hp.IsUniversal)
(hin : ∀ n, 1 ≤ n → h.inLen n = n)
(hout : ∀ n, 1 ≤ n → h.outLen n = n + Nat.clog 2 (2 * n))
(hpin : ∀ n, 1 ≤ n → hp.inLen n = k n)
(hpout : ∀ n, 1 ≤ n → hp.outLen n = m64 F k n)
(A : Adv)
(hA : ¬ Negligible (fun n => advantage A n (m64 F k) (outLen64 F h hp n (k n))
(binaryLawD64 F h hp n (k n)) (binaryLawE64 F h hp n (k n) (m64 F k n)))) :
∃ a : ℕ → ℕ, IsPoly a ∧ ¬ CompIndist a (fun n => F.ℓ n + h.outLen n + n + h.keyLen n + 1 + n)
(fun n => lawOn ((T64 F n ×ˢ cube (h.keyLen n)) ×ˢ cube n)
(fun z => padTo (F.f 0 n z.1.1.1) (F.ℓ n) ++
padTo ((h.eval n z.1.2 z.1.1.1).take (z.1.1.2.val + Nat.clog 2 (2 * n)))
(h.outLen n) ++
indexBits z.1.1.2 ++ z.1.2 ++ ip z.1.1.1 z.2 :: z.2))
(fun n => lawOn (((T64 F n ×ˢ cube (h.keyLen n)) ×ˢ cube n) ×ˢ
(Finset.univ : Finset Bool))
(fun z => padTo (F.f 0 n z.1.1.1.1) (F.ℓ n) ++
padTo ((h.eval n z.1.1.2 z.1.1.1.1).take (z.1.1.1.2.val + Nat.clog 2 (2 * n)))
(h.outLen n) ++
indexBits z.1.1.1.2 ++ z.1.1.2 ++ z.2 :: z.1.2)) := by sorry
end HILL.PRG