Documentation

CslibFrontier.Computability.Complexity.Classes.PCP.ProofWord

Reading integer words from a bit-valued proof oracle #

The bit at position i of the value at key q has address encPair encBits encNat (q, i). A verifier can read any polynomial number of low bits and interpret them in little-endian order.

Main definitions #

Main results #

def Cslib.Complexity.ProofWord.value (π : List Bool → Bool) (key : List Bool) (width : ℕ) :

The low width bits of the value stored at key in the proof, least significant first.

theorem Cslib.Complexity.ProofWord.value_lt_two_pow (π : List Bool → Bool) (key : List Bool) (width : ℕ) :
value π key width < 2 ^ width

Even a dishonest proof can return only a value with at most the requested number of bits.

Read exactly the requested bits at a field of the static proof. Trailing zeros remain available to fixed-width decoders.

Polynomial-time keys and unary widths give a strict fixed-width bit read.

Read width bits at distinct addresses framed by key, and return their binary value.

Polynomial-time keys and unary widths give a strict oracle-PPT binary read.

Read a list of proof keys at one common bit width, preserving the order of the keys.

Reading a polynomially generated list of keys at a common unary width is strict oracle PPT. Every possible reply contributes just its head bit, even for a stateful prover returning long strings.

Reading a bit word against a fixed table returns the bits at its framed addresses in the same order, even when the key has been queried previously.

theorem Cslib.Complexity.ProofWord.run_readValue (π : List Bool → Bool) (key : List Bool) (width : ℕ) :
(Prover.ofProof π).run (readValue key width) () = PMF.pure (value π key width, ())

Reading a fixed proof table returns its value with certainty, including when the key is queried repeatedly from different verifier histories.

theorem Cslib.Complexity.ProofWord.run_readValues (π : List Bool → Bool) (keys : List (List Bool)) (width : ℕ) :
(Prover.ofProof π).run (readValues keys width) () = PMF.pure (List.map (fun (key : List Bool) => value π key width) keys, ())

A traversal of fixed keys obtains the corresponding values of the same proof table.

theorem Cslib.Complexity.ProofWord.exists_value_eq_mod (table : List Bool → ℕ) :
∃ (π : List Bool → Bool), ∀ (key : List Bool) (width : ℕ), value π key width = table key % 2 ^ width

One static bit proof realizes the low bits of every entry of any natural-valued table, simultaneously for all access widths.