Documentation

CslibFrontier.Computability.PCP.TwoProverGame.LowIndividualDegree

The low individual degree test #

The verifier of [Ji, Natarajan, Vidick, Wright and Yuen, Definition 3.2 and Figure 2] [JNV+20b] tests assignments on a finite field. It chooses uniformly among an axis-parallel line check, a point self-consistency check, and a diagonal line check with a uniformly selected prefix of coordinates. A line question carries its set of points. It reveals neither the sampled location on the line nor its parameterization. Line answers are degree-bounded functions on the requested line.

Figure 2 samples the zero diagonal direction with positive probability. In this case its displayed affine image is a singleton, which uses the same verifier predicate as other lines. The dimension is positive because both line checks sample a coordinate.

@[reducible, inline]
abbrev Cslib.PCP.LowIndividualDegree.Point (F : Type u_2) (m : ℕ) :
Type u_2

An ambient point.

inductive Cslib.PCP.LowIndividualDegree.Question (F : Type u_2) (m : ℕ) :
Type u_2

The query discloses the branch on a line question and only the location on a point question.

Instances For
    @[instance_reducible]
    instance Cslib.PCP.LowIndividualDegree.instFintypeQuestion {F✝ : Type u_2} {m✝ : ℕ} [Fintype F✝] :
    Fintype (Question F✝ m✝)
    @[reducible, inline]

    Both players use the same finite answer alphabet. A line answer carries its domain so that the verifier can check it against the question.

    def Cslib.PCP.LowIndividualDegree.linePoints {F : Type u_1} {m : ℕ} [Field F] [Fintype F] [DecidableEq F] (u v : Point F m) :

    The affine image sent to the line player.

    theorem Cslib.PCP.LowIndividualDegree.mem_linePoints {F : Type u_1} {m : ℕ} [Field F] [Fintype F] [DecidableEq F] (u v : Point F m) (t : F) :
    u + t • v ∈ linePoints u v
    theorem Cslib.PCP.LowIndividualDegree.linePoints_translate_direction {F : Type u_1} {m : ℕ} [Field F] [Fintype F] [DecidableEq F] (u v : Point F m) (t : F) :
    linePoints (u + t • v) v = linePoints u v

    Moving the base point along an affine line leaves its set of points unchanged.

    def Cslib.PCP.LowIndividualDegree.LineHasDegree {F : Type u_1} {m : ℕ} [Field F] [Fintype F] [DecidableEq F] {L : Finset (Point F m)} (f : ↥L → F) (d : ℕ) :

    A function on a line has degree at most d if it admits a parameterization by such a univariate polynomial. This also describes the constant functions on singleton lines.

    theorem Cslib.PCP.LowIndividualDegree.LineHasDegree.exists_polynomial {F : Type u_1} {m : ℕ} [Field F] [Fintype F] [DecidableEq F] {u v : Point F m} {f : ↥(linePoints u v) → F} {d : ℕ} (h : LineHasDegree f d) :
    ∃ (p : Polynomial F), p.natDegree ≤ d ∧ ∀ (t : F), f ⟨u + t • v, ⋯⟩ = Polynomial.eval t p

    A degree-bounded line function has the same degree bound in any parameterization of the queried affine image, including the singleton case.

    def Cslib.PCP.LowIndividualDegree.lineAgrees {F : Type u_1} {m : ℕ} [Field F] [Fintype F] [DecidableEq F] (d : ℕ) (L : Finset (Point F m)) (u : Point F m) (a : (L : Finset (Point F m)) × (↥L → F)) (b : F) :

    The line answer must have the right domain and degree, and agree with the point answer.

    def Cslib.PCP.LowIndividualDegree.acceptsWithDiagonalCap {F : Type u_1} {m : ℕ} [Field F] [Fintype F] [DecidableEq F] (d D : ℕ) :
    Question F m → Question F m → Answer F m → Answer F m → Prop

    The acceptance predicate with axis degree bound d and diagonal degree bound D.

    def Cslib.PCP.LowIndividualDegree.accepts {F : Type u_1} {m : ℕ} [Field F] [Fintype F] [DecidableEq F] (d : ℕ) :
    Question F m → Question F m → Answer F m → Answer F m → Prop

    The three branches' common acceptance predicate, with the diagonal bound from Figure 2.

    theorem Cslib.PCP.LowIndividualDegree.acceptsWithDiagonalCap_swap {F : Type u_1} {m : ℕ} [Field F] [Fintype F] [DecidableEq F] (d D : ℕ) (x y : Question F m) (a b : Answer F m) :

    Exchanging the players preserves acceptance with a fixed diagonal cutoff.

    theorem Cslib.PCP.LowIndividualDegree.exists_agree_of_acceptsAtDegrees_point_diagonal {F : Type u_1} {m : ℕ} [Field F] [Fintype F] [DecidableEq F] (d D : ℕ) (L : Finset (Point F m)) (u : Point F m) (a b : Answer F m) (h : acceptsWithDiagonalCap d D (Question.point u) (Question.diagonal L) a b) :
    ∃ (g : (L : Finset (Point F m)) × (↥L → F)) (z : F), a = Sum.inl z ∧ b = Sum.inr g ∧ ∃ (hu : u ∈ g.fst), g.snd ⟨u, hu⟩ = z

    Accepted diagonal and point answers agree at the queried point.

    theorem Cslib.PCP.LowIndividualDegree.exists_agree_of_accepts_point_diagonal {F : Type u_1} {m : ℕ} [Field F] [Fintype F] [DecidableEq F] (d : ℕ) (L : Finset (Point F m)) (u : Point F m) (a b : Answer F m) (h : accepts d (Question.point u) (Question.diagonal L) a b) :
    ∃ (g : (L : Finset (Point F m)) × (↥L → F)) (z : F), a = Sum.inl z ∧ b = Sum.inr g ∧ ∃ (hu : u ∈ g.fst), g.snd ⟨u, hu⟩ = z

    Accepted diagonal and point answers agree at the queried point.

    theorem Cslib.PCP.LowIndividualDegree.exists_eq_of_accepts_points {F : Type u_1} {m : ℕ} [Field F] [Fintype F] [DecidableEq F] (d : ℕ) (u v : Point F m) (a b : Answer F m) (h : accepts d (Question.point u) (Question.point v) a b) :
    ∃ (c : F), a = Sum.inl c ∧ b = Sum.inl c

    Accepted point answers are equal field elements.

    noncomputable def Cslib.PCP.LowIndividualDegree.assignLineRoles {F : Type u_1} {m : ℕ} (line point : Question F m) :

    Send the line and point to uniformly random opposite roles.

    noncomputable def Cslib.PCP.LowIndividualDegree.consistencyQuestions {F : Type u_1} {m : ℕ} [Field F] [Fintype F] :

    Disclose the same uniformly random point to both players.

    noncomputable def Cslib.PCP.LowIndividualDegree.axisQuestions {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (n : ℕ) :
    PMF (Question F (n + 1) × Question F (n + 1))

    Axis-parallel branch, with a uniform point and independently uniform coordinate.

    def Cslib.PCP.LowIndividualDegree.prefixDirection {F : Type u_1} {m : ℕ} [Field F] (i : Fin m) (v : Fin (↑i + 1) → F) :
    Point F m

    Extend a direction in the chosen prefix by zero on all remaining coordinates.

    def Cslib.PCP.LowIndividualDegree.prefixDirectionEquiv {F : Type u_1} {m : ℕ} [Field F] (i : Fin m) :
    (Fin (↑i + 1) → F) ≃ { v : Point F m // ∀ (j : Fin m), ↑i < ↑j → v j = 0 }

    Zero padding gives every direction in the prefix exactly once.

    noncomputable def Cslib.PCP.LowIndividualDegree.diagonalQuestions {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (n : ℕ) :
    PMF (Question F (n + 1) × Question F (n + 1))

    Diagonal branch, with a uniform point, uniform prefix length and uniform direction within that prefix. Zero directions occur with the sampling probability specified in Figure 2.

    @[simp]

    At the full prefix, extending the direction is the identity.

    Every prefix direction and either role assignment occurs in the diagonal branch.

    The three verifier branches, selected with equal probability.

    Instances For
      noncomputable def Cslib.PCP.LowIndividualDegree.branchQuestions {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (n : ℕ) :
      Branch → PMF (Question F (n + 1) × Question F (n + 1))

      The question law conditional on the selected branch.

      noncomputable def Cslib.PCP.LowIndividualDegree.branchGameWithDiagonalCap {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (n d D : ℕ) (b : Branch) :
      TwoProverGame (Question F (n + 1)) (Question F (n + 1)) (Answer F (n + 1)) (Answer F (n + 1))

      The conditional verifier at an explicit diagonal degree bound.

      noncomputable def Cslib.PCP.LowIndividualDegree.branchGame {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (n d : ℕ) (b : Branch) :
      TwoProverGame (Question F (n + 1)) (Question F (n + 1)) (Answer F (n + 1)) (Answer F (n + 1))

      A verifier with its initial branch choice fixed.

      noncomputable def Cslib.PCP.LowIndividualDegree.game {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (n d : ℕ) :
      TwoProverGame (Question F (n + 1)) (Question F (n + 1)) (Answer F (n + 1)) (Answer F (n + 1))

      The low individual degree game in positive ambient dimension n + 1.

      theorem Cslib.PCP.LowIndividualDegree.winProb_game {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (n d : ℕ) (a b : Question F (n + 1) → Answer F (n + 1)) :

      Classical winning probability is the exact average of the three branch scores.

      The same exact branch decomposition applies to arbitrary conditional answer laws, in particular to all finite quantum strategies.

      theorem Cslib.PCP.LowIndividualDegree.branch_loss_le_three_mul {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (n d : ℕ) (b : Branch) (ans : Question F (n + 1) → Question F (n + 1) → PMF (Answer F (n + 1) × Answer F (n + 1))) :
      1 - (branchGame n d b).answersWinProb ans ≤ 3 * (1 - (game n d).answersWinProb ans)

      Each branch loses with probability at most three times the total loss.

      def Cslib.PCP.LowIndividualDegree.honest {F : Type u_1} {m : ℕ} [Field F] (P : MvPolynomial (Fin m) F) :
      Question F m → Answer F m

      Honest answers give the polynomial's value on point questions and its full restriction on line questions.

      The honest point answer is the polynomial's value at that point.

      theorem Cslib.PCP.LowIndividualDegree.accepts_honest_of_mem_branch {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {n d : ℕ} (P : MvPolynomial (Fin (n + 1)) F) (hP : ∀ (i : Fin (n + 1)), MvPolynomial.degreeOf i P ≤ d) (b : Branch) {q : Question F (n + 1) × Question F (n + 1)} (hq : q ∈ (branchQuestions n b).support) :
      accepts d q.1 q.2 (honest P q.1) (honest P q.2)

      Every supported question pair in each branch accepts honest answers for a polynomial with individual degree at most d.

      theorem Cslib.PCP.LowIndividualDegree.winProb_branch_honest {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {n d : ℕ} (P : MvPolynomial (Fin (n + 1)) F) (hP : ∀ (i : Fin (n + 1)), MvPolynomial.degreeOf i P ≤ d) (b : Branch) :
      (branchGame n d b).winProb (honest P) (honest P) = 1

      Honest play wins each of the three branches with probability one.

      theorem Cslib.PCP.LowIndividualDegree.winProb_honest {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {n d : ℕ} (P : MvPolynomial (Fin (n + 1)) F) (hP : ∀ (i : Fin (n + 1)), MvPolynomial.degreeOf i P ≤ d) :
      (game n d).winProb (honest P) (honest P) = 1

      The honest strategy wins the low individual degree game with probability one.