Lemma 6.1 β the hidden bit on π― is pseudorandom
OpenHILL.PRG.lemma_6_1Let be a one-way function, and let be a universal hash family with input length and output length as in (6.2). Let
and let as in (6.3). Let , , , and . Then
The paper proves this from the GoldreichβLevin hidden-bit theorem (Propositions 4.1/4.2) together with a hashing argument. The inverter guesses the index and the last hash bits; the first hash bits are close to uniform.
Formalization Note The two laws are written inline as lawOn over (and ), with the fixed-width encoding of encodeOut64: padded , padded hash prefix, unary index, key, then the bit, then . The statement holds against distinguishers with any polynomially bounded integer advice. Lemma 6.5 needs this, because its reduction carries an approximation of as advice. One-wayness is against uniform inverters, and the inverter can guess the advice value.
import Mathlib import Definitions.Def_HILL_PRG_Model import Definitions.Def_HILL_PRG_Constructions
namespace HILL.PRG
/-- Lemma 6.1: on the restricted set π―, the hidden bit XΜ β Y is computationally
indistinguishable from a uniform bit given fβ²(W,R) and Y, even with polynomial advice. -/
theorem lemma_6_1 (F : FunEns) (hf : β n, F.t n = n) (hOWF : IsOWF F)
(h : HashFamily) (hh : h.IsUniversal)
(hin : β n, 1 β€ n β h.inLen n = n)
(hout : β n, 1 β€ n β h.outLen n = n + Nat.clog 2 (2 * n))
(a : β β β) (ha : 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