Construction (6.8) is P-time computable
OpenHILL.PRG.construction_6_8_ptimeLet be a P-time function ensemble with input length , a P-time polynomial parameter, and , P-time keyed families with the lengths of (6.2) and (6.7). Then the false-entropy construction (6.8) is a mildly nonuniform P-time function ensemble with advice from (6.6). The same holds for its comparison law , in which the hashed bits are replaced by extra uniform input bits :
are computed by fixed polynomial-time machines from the binary encoding of the finite seed and the unary advice .
This is the efficiency assertion implicit in "P-time function ensemble" in (6.8) and in the statement of Theorem 6.2 ("mildly nonuniform false-entropy generator").
Formalization Note Polynomial time is Mathlib's TM2 model. Seeds and outputs use the fixed-width encodings encodeSeed64 and encodeOut64. The length hypotheses on and are assumed only for , as in the formalized Theorem 6.2.
import Mathlib import Definitions.Def_HILL_PRG_Model import Definitions.Def_HILL_PRG_Constructions
namespace HILL.PRG
/-- Construction (6.8) and its comparison law ℰ are polynomial-time computable from the
encoded finite seed, with the advice `m64 F k n`. -/
theorem construction_6_8_ptime (F : FunEns) (hf : ∀ n, F.t n = n)
(hF : F.PTime (fun _ => 0)) (k : ℕ → ℕ) (hkpt : PTimeParam k)
(h hp : HashFamily) (hh : h.PTime) (hhp : hp.PTime)
(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) :
(∃ M : Bits → Bits, PolyTimeComputable M ∧
∀ n, ∀ seed : Seed64 n (k n) (h.keyLen n) (hp.keyLen n),
M (encAdvice n (m64 F k n) (encodeSeed64 seed)) =
encodeOut64 F h hp n (k n) (outD64 F h hp n (k n) seed)) ∧
(∃ M : Bits → Bits, PolyTimeComputable M ∧
∀ n, ∀ seed : Seed64 n (k n) (h.keyLen n) (hp.keyLen n),
∀ z : Fin (m64 F k n) → Bool,
M (encAdvice n (m64 F k n) (encodeSeed64 seed ++ List.ofFn z)) =
encodeOut64 F h hp n (k n)
(outE64 F h hp n (k n) (m64 F k n) seed z)) := by sorry
end HILL.PRG