Documentation

CslibFrontier.Computability.Interactive.Sumcheck.Words

A sumcheck round on binary words #

Each prover polynomial is a list of binary coefficients in increasing order of degree. The verifier checks the current claim at zero and one and then evaluates at the new challenge.

Main definitions #

Main results #

The verifier's accumulated challenges, partial-sum claim and check bit.

  • challenges : List ℕ

    Previously sampled challenges, in round order.

  • claim : ℕ

    Current claimed partial sum modulo the field size.

  • ok : Bool

    Whether all rounds checked so far have passed.

theorem Cslib.Interactive.Sumcheck.encWordState_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → List ℕ} {x1 : γ → ℕ} {x2 : γ → Bool} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat) budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encNat budget) (h2 : Turing.MultiTapeTM.ComputableInSpace x2 encIn Turing.MultiTapeTM.encBool budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { challenges := x0 x, claim := x1 x, ok := x2 x }) encIn encWordState budget

Framed list of binary challenges, binary claim, and Boolean check bit in that order.

theorem Cslib.Interactive.Sumcheck.encWordState_ok_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → WordState} :
@[reducible, inline]

The tuple of the fields of encWordState.

theorem Cslib.Interactive.Sumcheck.encWordState_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → List ℕ} {T0 S0 x1 T1 S1 : γ → ℕ} {x2 : γ → Bool} {T2 S2 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat) T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encNat T1 S1) (h2 : Turing.MultiTapeTM.ComputableInO x2 encIn Turing.MultiTapeTM.encBool T2 S2) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { challenges := x0 x, claim := x1 x, ok := x2 x }) encIn encWordState (fun (x : γ) => T0 x + (T1 x + T2 x)) fun (x : γ) => S0 x + (S1 x + S2 x)
theorem Cslib.Interactive.Sumcheck.encWordState_claim_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → WordState} :
theorem Cslib.Interactive.Sumcheck.encWordState_challenges_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → WordState} :

Check the row against the old claim and update the claim at challenge r.

The new check bit records acceptance of this polynomial in the field sumcheck protocol, provided its degree is within the prescribed limit.