Documentation

MIPRE.Foundations.Introspection.SourcePaddingQueryCorrect

Legal source calls implement the padded query interface #

An attained padded prefix restricts to an attained source prefix. The common exponent-five clock therefore answers every source call used to construct the padded factor and matrix, including the runtime dimension call.

theorem MIPRE.Introspection.SourcePadding.Program.queryContext_dimension (U : Cost.ClockedUniversalMachine) {ℓ lam n : ℕ} (V : Verifier ℓ) (hV : V.IsBounded lam) (hn : 1 ≤ n) (w : Bool) (j : ℕ) {Q : ℕ} (u : Fin Q → CL.𝔽₂) :
(dimension U).toFun (queryContext V lam n w j u) = V.sampler.dim (2 ^ n)
theorem MIPRE.Introspection.SourcePadding.Program.source_prefix_attained {ℓ n Q : ℕ} (V : Verifier ℓ) (hQ : V.sampler.dim (2 ^ n) ≤ Q) (w : Bool) (j : ℕ) (u : Fin Q → CL.𝔽₂) (hu : ∃ (x : Fin Q → CL.𝔽₂), u = (CL.CLFun.truncate j (depthFamily (AuxiliaryProgram.firstEmbedding hQ) (sourceFamily V n) w)).eval x) :
∃ (x : Fin (V.sampler.dim (2 ^ n)) → CL.𝔽₂), List.take (V.sampler.dim (2 ^ n)) (CL.toBits u) = CL.toBits ((CL.CLFun.truncate j (V.sampler.cl (2 ^ n) (Player.ofBool w))).eval x)