[BBHR18] FRI 论文 soundness 解析
本篇文章主要讲解 Eli Ben-Sasson 等人在 2018 年发表的论文 [BBHR18b] ,重点放在对 FRI
协议的 completeness 和 soundness 证明上。他们在这篇论文中针对 Reed-Solomon (RS) 编码提出了一种新的 IOPP (Interactive Oracle Proof of Proximity, IOPP),称之为 FRI (Fast RS IOPP, FRI)。随后,在 [BBHR18a] 中使用 FRI 协议构建了一个实用的 ZK 系统,即我们熟知的 STARK。
首要问题 ¶ 对于在有限域 F \mathbb{F} F 中的求值 (evaluation) 集合 S S S ,假设 S S S 中的元素个数为 N N N ,给定一个码率参数 ρ ∈ ( 0 , 1 ] \rho \in (0,1] ρ ∈ ( 0 , 1 ] ,编码 RS [ F , S , ρ ] \text{RS}[\mathbb{F},S,\rho] RS [ F , S , ρ ] 表示的是所有函数 f : S → F f: S \rightarrow \mathbb{F} f : S → F 的集合,其中 f f f 是次数 d < ρ N d < \rho N d < ρN 的多项式的求值 (evaluations),即存在次数 d < ρ N d < \rho N d < ρN 的多项式 f ^ \hat{f} f ^ 使得 f f f 与 f ^ \hat{f} f ^ 在 S S S 上的值是一致的。
论文主要关注的就是 RS proximity problem :假设我们能获得关于函数 f : S → F f: S \rightarrow \mathbb{F} f : S → F 的 oracle ,需要 Verifier 用较少的查询复杂度,同时有很高的把握能辨别出 f f f 属于下面哪一种情况:
f ∈ RS [ F , S , ρ ] f \in \text{RS}[\mathbb{F},S,\rho] f ∈ RS [ F , S , ρ ] Δ ( f , RS [ F , S , ρ ] ) > δ \Delta(f, \text{RS}[\mathbb{F},S,\rho]) > \delta Δ ( f , RS [ F , S , ρ ]) > δ 也就是要么 f f f 是 RS 编码 RS [ F , S , ρ ] \text{RS}[\mathbb{F},S,\rho] RS [ F , S , ρ ] 中的一个码字,要么距离所有 RS [ F , S , ρ ] \text{RS}[\mathbb{F},S,\rho] RS [ F , S , ρ ] 中的码字的相对 Hamming 距离都大于接近参数 δ \delta δ 。一个自然的想法是 verifier 可以轮讯 d + 1 d + 1 d + 1 次,然后判断 f f f 属于上述哪一种情况,如果属于第一种,则接受,如果属于第二种,则拒绝。此时的轮讯复杂度为 d + 1 = ρ N d + 1 = \rho N d + 1 = ρN 。在计算 Testing 方法的复杂度时,没有额外的信息提供给 verifier ,那么说 prover 尝试让 verifier 相信 f ∈ RS [ F , S , ρ ] f \in \text{RS}[\mathbb{F}, S,\rho] f ∈ RS [ F , S , ρ ] 所消耗的计算复杂度为 0 ,交互的轮数为 0 ,以及产生的证明长度为 0 。对比此方法 (Testing, [RS92]) 与FRI 的复杂度,如下表所示([BBHR18b])。
prover 计算复杂度 证明长度 verifier计算复杂度 查询复杂度 轮询复杂度 Testing [RS92] 0 0 ρ N ⋅ log O ( 1 ) \rho N \cdot \log^{O(1)} ρN ⋅ log O ( 1 ) ρ N \rho N ρN 0 FRI [BBHR18b] < 6 ⋅ N <6 \cdot N < 6 ⋅ N < N 3 <\frac{N}{3} < 3 N ≤ 21 ⋅ log N \le 21 \cdot \log N ≤ 21 ⋅ log N 2 log N 2 \log N 2 log N log N 2 \frac{\log N}{2} 2 l o g N
可以看出,FRI 中 prover 的计算复杂度是严格线性的并且 verfier 的计算复杂度是严格对数的,而查询复杂度是对数级别的([BBHR18b])。
FRI 性质 ¶ 上文提到 FRI 是一种 IOPP,下面给出 IOPP 的定义。
Definition 1 [BBHR18b, Definition 1.1] (Interactive Oracle Proof of Proximity (IOPP)). An r \textbf{r} r -round Interactive Oracle Proof of Proximity (IOPP) S = ( P , V ) \textbf{S} = (\text{P}, \text{V}) S = ( P , V ) is a (r + 1 r + 1 r + 1 )-round IOP. We say S \textbf{S} S is an (r \textbf{r} r -round) IOPP for the error correcting code C = { f : S → Σ } C= \{f:S \rightarrow \Sigma\} C = { f : S → Σ } with soundness s − : ( 0 , 1 ] → [ 0 , 1 ] \textbf{s}^{-}: (0,1] \rightarrow [0,1] s − : ( 0 , 1 ] → [ 0 , 1 ] with respect to distance measure Δ \Delta Δ , if the following conditions hold:
First message format: the first prover message, denote f ( 0 ) f^{(0)} f ( 0 ) , is a purported codeword of C C C , i.e., f ( 0 ) : S → Σ f^{(0)}: S \rightarrow \Sigma f ( 0 ) : S → Σ Completeness: Pr [ ⟨ P ↔ V ⟩ = accept ∣ Δ ( f ( 0 ) , C ) = 0 ] = 1 \Pr[\left \langle \text{P} \leftrightarrow \text{V} \right \rangle = \text{accept}|\Delta(f^{(0)}, C) = 0] = 1 Pr [ ⟨ P ↔ V ⟩ = accept ∣Δ ( f ( 0 ) , C ) = 0 ] = 1 Soundness: For any P ∗ \text{P}^* P ∗ , Pr [ ⟨ P ∗ ↔ V ⟩ = reject ∣ Δ ( f ( 0 ) , C ) = δ ] ≥ s − ( δ ) \Pr[\left \langle \text{P}^* \leftrightarrow \text{V} \right \rangle = \text{reject}|\Delta(f^{(0)}, C) = \delta] \ge \textbf{s}^{-}(\delta) Pr [ ⟨ P ∗ ↔ V ⟩ = reject ∣Δ ( f ( 0 ) , C ) = δ ] ≥ s − ( δ ) 意思是 Prover 和 Verifier 会进行 r \textbf{r} r -轮的交互,需要满足三个条件。
第一个消息 f ( 0 ) f^{(0)} f ( 0 ) 是 Prover 初始声称的在 C C C 中的码字。 完备性:说的是对于诚实的 Prover ,如果 f ( 0 ) f^{(0)} f ( 0 ) 在 C C C 中,那么 Verifier 一定会输出 accept 。 Soundness:分析的是作恶的 Prover ,经过交互之后 Verifier 拒绝的概率是多少。定义中的 soundness s − : ( 0 , 1 ] → [ 0 , 1 ] \textbf{s}^{-}: (0,1] \rightarrow [0,1] s − : ( 0 , 1 ] → [ 0 , 1 ] 是一个函数,自变量 δ ∈ ( 0 , 1 ] \delta \in (0,1] δ ∈ ( 0 , 1 ] ,这也表示在分析 soundness 时,我们考虑的是作恶的 Prover ,也就是初始的 Δ ( f ( 0 ) , C ) = δ > 0 \Delta(f^{(0)}, C) = \delta > 0 Δ ( f ( 0 ) , C ) = δ > 0 ,在这种情况下 Prover 和 Verifier 进行交互,来算拒绝的概率是多少,这个概率的下界就是 s − ( δ ) ∈ [ 0 , 1 ] \textbf{s}^{-}(\delta) \in [0,1] s − ( δ ) ∈ [ 0 , 1 ] ,由于这里表示的是概率,自然 s − ( δ ) \textbf{s}^{-}(\delta) s − ( δ ) 函数值在闭区间 [ 0 , 1 ] [0,1] [ 0 , 1 ] 中。 FRI 协议 ¶ 下面摘录下论文 [BBHR18b] 中对 FRI 协议的描述。
定义和记号 ¶ Interpolant For a function f : S → F f : S \rightarrow \mathbb{F} f : S → F , S ⊂ F S \subset \mathbb{F} S ⊂ F , let interpolant f \text{interpolant}^f interpolant f denote the interpolant of f f f , defined as the unique polynomial P ( X ) = ∑ i = 0 ∣ S ∣ − 1 a i X i P(X) = \sum_{i=0}^{|S|-1} a_iX^i P ( X ) = ∑ i = 0 ∣ S ∣ − 1 a i X i of degree less than ∣ S ∣ |S| ∣ S ∣ whose evaluation on S S S equals f ∣ S f|_S f ∣ S , i.e., ∀ x ∈ S , f ( x ) = P ( x ) \forall x \in S, f(x) = P(x) ∀ x ∈ S , f ( x ) = P ( x ) . We assume the interpolant P ( X ) P(X) P ( X ) is represented as a formal sum, i.e., by the sequence of monomial coefficients a 0 , ⋯ , a ∣ S ∣ − 1 a_0, \cdots, a_{|S|-1} a 0 , ⋯ , a ∣ S ∣ − 1 .
Subspace polynomials Given a set L 0 ⊂ F L_0 \subset \mathbb{F} L 0 ⊂ F , let Zero L 0 ≜ ∏ x ∈ L 0 ( X − x ) \text{Zero}_{L_0} \triangleq \prod_{x \in L_0} (X - x) Zero L 0 ≜ ∏ x ∈ L 0 ( X − x ) be the unique non-zero monic polynomial of degree ∣ L 0 ∣ |L_0| ∣ L 0 ∣ that vanishes on L 0 L_0 L 0 . When L 0 L_0 L 0 is an additive coset contained in a binary field, the polynomial Zero L 0 ( X ) \text{Zero}_{L_0}(X) Zero L 0 ( X ) is an affine subspace polynomial , a special type of a linearized polynomial. We shall use the following properties of such polynomials, referring the interested reader to [LN97, Chapter 3.4] for proofs and additional background:
The map x ↦ Zero L 0 ( x ) x \mapsto \text{Zero}_{L_0}(x) x ↦ Zero L 0 ( x ) maps each additive coset S S S of L 0 L_0 L 0 to a single field element, which will be denoted by y S y_S y S . If L ⊃ L 0 L \supset L_0 L ⊃ L 0 are additive cosets, then Zero L 0 ( L ) ≜ { Zero L 0 ( z ) ∣ z ∈ L } \text{Zero}_{L_0}(L) \triangleq \{ \text{Zero}_{L_0}(z) | z \in L \} Zero L 0 ( L ) ≜ { Zero L 0 ( z ) ∣ z ∈ L } is an additive coset and dim ( Zero L 0 ( L ) ) = dim ( L ) − dim ( L 0 ) \dim(\text{Zero}_{L_0}(L)) = \dim(L) - \dim(L_0) dim ( Zero L 0 ( L )) = dim ( L ) − dim ( L 0 ) . Subspace specification Henceforth, the letter L L L always denotes an additive coset in a binary field F \mathbb{F} F , we assume all mentioned additive cosets are specified by an additive shift α ∈ F \alpha \in \mathbb{F} α ∈ F and a basis β 1 , ⋯ , β k ∈ F k \beta_1, \cdots, \beta_k \in \mathbb{F}^k β 1 , ⋯ , β k ∈ F k so that L = { α + ∑ i = 1 k b i β i ∣ b 1 , ⋯ , b k ∈ F 2 } L = \left\{ \alpha + \sum_{i=1}^k b_i\beta_i | b_1, \cdots, b_k \in \mathbb{F}_2 \right\} L = { α + ∑ i = 1 k b i β i ∣ b 1 , ⋯ , b k ∈ F 2 } ; we assume α \alpha α and β ⃗ = ( β 1 , ⋯ , β k ) \vec{\beta} = (\beta_1, \cdots, \beta_k) β = ( β 1 , ⋯ , β k ) are agreed upon by prover and verifier.
COMMIT 阶段 ¶ 协议的轮数为 r ≜ ⌊ k ( 0 ) − R η ⌋ r \triangleq \left \lfloor \frac{k^{(0)} - \mathcal{R}}{\eta}\right\rfloor r ≜ ⌊ η k ( 0 ) − R ⌋ ,其中 R = log ( 1 / ρ ) \mathcal{R} = \log(1/\rho) R = log ( 1/ ρ ) ,ρ \rho ρ 表示码率。在 COMMIT 阶段的第 i i i 轮,i ∈ { 0 , ⋯ , r − 1 } i \in \{0, \cdots, r - 1\} i ∈ { 0 , ⋯ , r − 1 } ,Verifier 可以访问一个由 Prover 提交的函数 f ( i ) : L ( i ) → F f^{(i)}: L^{(i)} \rightarrow \mathbb{F} f ( i ) : L ( i ) → F 的 oracle,其中 dim ( L ( i ) ) = k ( i ) = k ( 0 ) − η ⋅ i \dim(L^{(i)}) = k^{(i)} = k^{(0)} - \eta \cdot i dim ( L ( i ) ) = k ( i ) = k ( 0 ) − η ⋅ i ,并且空间 L ( i ) L^{(i)} L ( i ) 是预先固定的,特别地,它们不依赖于 Verifier 的消息。
FRI-COMMIT:
Common input:
Parameters R , η , i \mathcal{R}, \eta, i R , η , i , all are positive integers:
– rate parameter R \mathcal{R} R : logarithm of RS code rate (ρ = 2 − R \rho = 2^{-\mathcal{R}} ρ = 2 − R )
– localization parameter η \eta η : dimension of L 0 ( i ) L_0^{(i)} L 0 ( i ) (i.e., ∣ L 0 ( i ) ∣ = 2 η |L_0^{(i)}| = 2^{\eta} ∣ L 0 ( i ) ∣ = 2 η ); let r ≜ ⌊ k ( 0 ) − R η ⌋ r \triangleq \left \lfloor \frac{k^{(0)} - \mathcal{R}}{\eta}\right\rfloor r ≜ ⌊ η k ( 0 ) − R ⌋ denote round complexity
– i ∈ { 0 , ⋯ , r } i \in \{0, \cdots, r\} i ∈ { 0 , ⋯ , r } : round counter A parametrization of RS ( i ) ≜ RS [ F , L ( i ) , ρ = 2 − R ] \text{RS}^{(i)} \triangleq \text{RS}[\mathbb{F},L^{(i)},\rho = 2^{-\mathcal{R}}] RS ( i ) ≜ RS [ F , L ( i ) , ρ = 2 − R ] , denote k ( i ) = log 2 ∣ L ( i ) ∣ k^{(i)} = \log_2 |L^{(i)}| k ( i ) = log 2 ∣ L ( i ) ∣ (notice k ( i ) = dim ( L ( i ) ) k^{(i)} = \dim (L^{(i)}) k ( i ) = dim ( L ( i ) ) ); L 0 ( i ) ⊂ L ( i ) L_0^{(i)} \subset L^{(i)} L 0 ( i ) ⊂ L ( i ) , dim ( L 0 ( i ) ) = η \dim(L_0^{(i)})=\eta dim ( L 0 ( i ) ) = η ; let q ( i ) ( X ) = Zero L 0 ( i ) ( X ) q^{(i)}(X) = \text{Zero}_{L_0^{(i)}}(X) q ( i ) ( X ) = Zero L 0 ( i ) ( X ) and denote L ( i + 1 ) = q ( i ) ( L ( i ) ) L^{(i+1)} = q^{(i)}(L^{(i)}) L ( i + 1 ) = q ( i ) ( L ( i ) ) Prover input: f ( i ) : L ( i ) → F f^{(i)}:L^{(i)} \rightarrow \mathbb{F} f ( i ) : L ( i ) → F , a purported codeword of RS ( i ) \text{RS}^{(i)} RS ( i )
Loop: While i ≤ r i \le r i ≤ r :
Verifier sends a uniformly random x ( i ) ∈ F x^{(i)} \in \mathbb{F} x ( i ) ∈ F Prover defines the function f f ( i ) , x ( i ) ( i + 1 ) f_{f^{(i)},x^{(i)}}^{(i+1)} f f ( i ) , x ( i ) ( i + 1 ) with domain L ( i + 1 ) L^{(i+1)} L ( i + 1 ) thus, for each y ∈ L ( i + 1 ) y \in L^{(i+1)} y ∈ L ( i + 1 ) : Let S y = { x ∈ L ( i ) ∣ q ( i ) ( x ) = y } S_y = \{x \in L^{(i)} | q^{(i)}(x) = y\} S y = { x ∈ L ( i ) ∣ q ( i ) ( x ) = y } be the coset of L 0 ( i ) L_0^{(i)} L 0 ( i ) mapped by q ( i ) q^{(i)} q ( i ) to { y } \{y\} { y } ; P y ( i ) ( X ) ≜ interpolant f ( i ) ∣ S y P_y^{(i)}(X) \triangleq \text{interpolant}^{f^{(i)}|_{S_y}} P y ( i ) ( X ) ≜ interpolant f ( i ) ∣ S y ;f f ( i ) , x ( i ) ( i + 1 ) ( y ) ≜ P y ( i ) ( x ( i ) ) f_{f^{(i)},x^{(i)}}^{(i+1)}(y) \triangleq P_y^{(i)}(x^{(i)}) f f ( i ) , x ( i ) ( i + 1 ) ( y ) ≜ P y ( i ) ( x ( i ) ) ;If i = r i = r i = r then: let f ( r ) = f f ( r − 1 ) , x ( r − 1 ) ( r ) f^{(r)} = f_{f^{(r-1)},x^{(r-1)}}^{(r)} f ( r ) = f f ( r − 1 ) , x ( r − 1 ) ( r ) for f ( r ) = f f ( r − 1 ) , x ( r − 1 ) ( r ) f^{(r)} = f_{f^{(r-1)},x^{(r-1)}}^{(r)} f ( r ) = f f ( r − 1 ) , x ( r − 1 ) ( r ) defined in step 2 above; let P ( r ) ( X ) = ∑ j ≥ 0 a j ( r ) X j ≜ interpolant f ( r ) ( X ) P^{(r)}(X) = \sum_{j \ge 0} a_j^{(r)}X^j \triangleq \text{interpolant}^{f^{(r)}}(X) P ( r ) ( X ) = ∑ j ≥ 0 a j ( r ) X j ≜ interpolant f ( r ) ( X ) ; let d = ρ ⋅ ∣ L ( r ) ∣ − 1 d = \rho \cdot |L^{(r)}| - 1 d = ρ ⋅ ∣ L ( r ) ∣ − 1 ; prover commits to first d + 1 d + 1 d + 1 coefficients of P ( r ) ( X ) P^{(r)}(X) P ( r ) ( X ) , namely, to ⟨ a 0 ( r ) , ⋯ , a d ( r ) ⟩ \langle a_0^{(r)}, \cdots, a_d^{(r)} \rangle ⟨ a 0 ( r ) , ⋯ , a d ( r ) ⟩ COMMIT phase terminates; Else (i < r i < r i < r ): let f ( i + 1 ) = f f ( i ) , x ( i ) ( i + 1 ) f^{(i+1)} = f^{(i+1)}_{f^{(i)}, x^{(i)}} f ( i + 1 ) = f f ( i ) , x ( i ) ( i + 1 ) for f f ( i ) , x ( i ) ( i + 1 ) f^{(i+1)}_{f^{(i)}, x^{(i)}} f f ( i ) , x ( i ) ( i + 1 ) defined in step 2 above; prover commits to oracle f ( i + 1 ) f^{(i+1)} f ( i + 1 ) both parties repeat the COMMIT protocol with common inputparameters ( R , η , i + 1 ) (\mathcal{R}, \eta, i + 1) ( R , η , i + 1 ) a parametrization of RS ( i + 1 ) ≜ RS [ F , L ( i + 1 ) , ρ = 2 − R ] \text{RS}^{(i+1)} \triangleq \text{RS}[\mathbb{F},L^{(i+1)},\rho = 2^{-\mathcal{R}}] RS ( i + 1 ) ≜ RS [ F , L ( i + 1 ) , ρ = 2 − R ] and L 0 ( i + 1 ) ⊂ L ( i + 1 ) L_0^{(i+1)} \subset L^{(i+1)} L 0 ( i + 1 ) ⊂ L ( i + 1 ) , dim ( L 0 ( i + 1 ) ) = η \dim(L_0^{(i+1)})=\eta dim ( L 0 ( i + 1 ) ) = η
and prover input f ( i + 1 ) f^{(i+1)} f ( i + 1 ) defined at the beginning of this step; QUERY 阶段 ¶ FRI-QUERY:
verifier input:
parameters R , η \mathcal{R}, \eta R , η as defined in the COMMIT phase repetition parameter l l l sequence of rate-ρ \rho ρ RS-codes RS ( 0 ) , ⋯ , RS ( r ) \text{RS}^{(0)}, \cdots, \text{RS}^{(r)} RS ( 0 ) , ⋯ , RS ( r ) , where RS ( i ) ≜ RS [ F , L ( i ) , ρ ] \text{RS}^{(i)} \triangleq \text{RS}[\mathbb{F},L^{(i)},\rho] RS ( i ) ≜ RS [ F , L ( i ) , ρ ] and log 2 ∣ L ( i ) ∣ = k ( i ) = k ( 0 ) − η \log_2|L^{(i)}| = k^{(i)} = k^{(0)} - \eta log 2 ∣ L ( i ) ∣ = k ( i ) = k ( 0 ) − η ; (notice k ( i ) = dim ( L ( i ) ) k^{(i)} = \dim(L^{(i)}) k ( i ) = dim ( L ( i ) ) ); sequence of affine spaces L 0 ( 0 ) , ⋯ , L 0 ( r − 1 ) L_0^{(0)}, \cdots, L_0^{(r-1)} L 0 ( 0 ) , ⋯ , L 0 ( r − 1 ) , each L 0 ( i ) L_0^{(i)} L 0 ( i ) is of dimension η \eta η and contained in L ( i ) L^{(i)} L ( i ) ; transcript of verifier messages x ( 0 ) , ⋯ , x ( r − 1 ) ∈ F x^{(0)}, \cdots, x^{(r-1)} \in \mathbb{F} x ( 0 ) , ⋯ , x ( r − 1 ) ∈ F access to oracles f ( 0 ) , ⋯ , f ( r − 1 ) f^{(0)}, \cdots, f^{(r-1)} f ( 0 ) , ⋯ , f ( r − 1 ) access to last oracle P ( r ) ( X ) = ∑ j ≥ 0 a j ( r ) X j P^{(r)}(X) = \sum_{j \ge 0} a_j^{(r)}X^j P ( r ) ( X ) = ∑ j ≥ 0 a j ( r ) X j for d = ρ ⋅ ∣ L ( r ) ∣ − 1 d = \rho \cdot |L^{(r)}| - 1 d = ρ ⋅ ∣ L ( r ) ∣ − 1 ; Terminal function reconstruction:
query a 0 ( r ) , ⋯ , a d ( r ) a_0^{(r)}, \cdots, a_d^{(r)} a 0 ( r ) , ⋯ , a d ( r ) ;(a total of d + 1 ≤ 2 η d + 1 \le 2^{\eta} d + 1 ≤ 2 η queries) let P ′ ( X ) ≜ ∑ j ≥ 0 a j ( r ) X j P'(X) \triangleq \sum_{j \ge 0} a_j^{(r)}X^j P ′ ( X ) ≜ ∑ j ≥ 0 a j ( r ) X j ; let f ( r ) f^{(r)} f ( r ) be the evaluation of P ′ ( X ) P'(X) P ′ ( X ) on L ( r ) L^{(r)} L ( r ) ; (notice f ( r ) ∈ RS ( r ) f^{(r)} \in \text{RS}^{(r)} f ( r ) ∈ RS ( r ) ) Repeat l l l times: {
Sample uniformly random s ( 0 ) ∈ L ( 0 ) s^{(0)} \in L^{(0)} s ( 0 ) ∈ L ( 0 ) and for i = 0 , ⋯ , r − 1 i = 0, \cdots, r - 1 i = 0 , ⋯ , r − 1 let s i + 1 = q ( i ) ( s ( i ) ) s^{i + 1} = q^{(i)}(s^{(i)}) s i + 1 = q ( i ) ( s ( i ) ) S ( i ) S^{(i)} S ( i ) be the coset of L 0 ( i ) L_0^{(i)} L 0 ( i ) in L ( i ) L^{(i)} L ( i ) that contains s ( i ) s^{(i)} s ( i ) For i = 0 , ⋯ , r − 1 i = 0, \cdots, r - 1 i = 0 , ⋯ , r − 1 , query f ( i ) f^{(i)} f ( i ) on all of S ( i ) S^{(i)} S ( i ) ; (a total of 2 η 2\eta 2 η queries) compute P ( i ) ( X ) ≜ interpolant f ( i ) ∣ S ( i ) P^{(i)}(X) \triangleq \text{interpolant}^{f^{(i)}|_{S^{(i)}}} P ( i ) ( X ) ≜ interpolant f ( i ) ∣ S ( i ) ; (notice deg ( P ( i ) ) < 2 η \deg(P^{(i)}) < 2^{\eta} deg ( P ( i ) ) < 2 η ) round consistency : If for some i ∈ { 0 , ⋯ , r − 1 } i \in \{ 0, \cdots, r - 1\} i ∈ { 0 , ⋯ , r − 1 } it holds that> > f ( i + 1 ) ( s ( i + 1 ) ) ≠ P ( i ) ( x ( i ) ) > > >
> f^{(i+1)}(s^{(i+1)}) \neq P^{(i)}(x^{(i)})
>
> >> f ( i + 1 ) ( s ( i + 1 ) ) = P ( i ) ( x ( i ) ) >> then reject and abort;
}
Return accept
FRI 协议的主要性质 ¶ 下面的定理给出了 FRI 协议的主要性质,包括完备性(Completeness)、Soundness、Prover 复杂度以及 Verifier 复杂度。其实论文中还给出了一个稍微简略的版本,见论文 [BBHR18b] Theorem 1.3,该定理可以通过在下述定理中设置 η = 2 \eta = 2 η = 2 与 l = 1 l = 1 l = 1 证明得到的,这里就主要阐述这个更加复杂的版本。
Theorem 1 [BBHR18b, Theorem3.3] (Main properties of the FRI protocol). The following properties hold when the FRI protocol is invoked on oracle f ( 0 ) : L ( 0 ) → F f^{(0)}:L^{(0)} \rightarrow \mathbb{F} f ( 0 ) : L ( 0 ) → F with localization parameter η \eta η and rate parameter R \mathcal{R} R (and rate ρ = 2 − R \rho = 2^{- \mathcal{R}} ρ = 2 − R ) such that ρ ∣ L ( 0 ) ∣ > 16 \rho |L^{(0)}| > 16 ρ ∣ L ( 0 ) ∣ > 16 :
Completeness If f ( 0 ) ∈ RS ( 0 ) ≜ RS [ F , L ( 0 ) , ρ = 2 − R ] f^{(0)} \in \text{RS}^{(0)} \triangleq \text{RS}[\mathbb{F}, L^{(0)}, \rho = 2^{- \mathcal{R}}] f ( 0 ) ∈ RS ( 0 ) ≜ RS [ F , L ( 0 ) , ρ = 2 − R ] and f ( 1 ) , ⋯ , f ( r ) f^{(1)}, \cdots, f^{(r)} f ( 1 ) , ⋯ , f ( r ) are computed by the prover specified in the COMMIT phase, then the FRI verifier outputs accept with probability 1.
Soundness Suppose δ ( 0 ) ≜ Δ ( 0 ) ( f 0 , RS ( 0 ) ) > 0 \delta^{(0)} \triangleq \Delta^{(0)}(f^{0}, \text{RS}^{(0)}) > 0 δ ( 0 ) ≜ Δ ( 0 ) ( f 0 , RS ( 0 ) ) > 0 . Then with probability at least
1 − 3 ∣ L ( 0 ) ∣ F 1 - \frac{3|L^{(0)}|}{\mathbb{F}} 1 − F 3∣ L ( 0 ) ∣ over the randomness of the verifier during the COMMIT phase, and for any (adaptively chosen) prover oracles f ( 1 ) , ⋯ , f ( r ) f^{(1)}, \cdots, f^{(r)} f ( 1 ) , ⋯ , f ( r ) the QUERY protocol with repetition parameter l l l outputs accept with probability at most
( 1 − min { δ ( 0 ) , 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ 4 } ) l \left (1 - \min \left \{\delta^{(0)}, \frac{1-3\rho-2^{\eta}/\sqrt{|L^{(0)}|}}{4} \right \}\right )^{l} ( 1 − min { δ ( 0 ) , 4 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ } ) l Consequently, the soundness of FRI is at least
s − ( δ ( 0 ) ) ≜ 1 − ( 3 ∣ L ( 0 ) ∣ ∣ F ∣ + ( 1 − min { δ ( 0 ) , 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ 4 } ) l ) . \textbf{s}^{-}(\delta^{(0)}) \triangleq 1 - \left ( \frac{3|L^{(0)}|}{|\mathbb{F}|} + \left (1 - \min \left \{\delta^{(0)}, \frac{1-3\rho-2^{\eta}/\sqrt{|L^{(0)}|}}{4} \right \}\right )^{l} \right). s − ( δ ( 0 ) ) ≜ 1 − ⎝ ⎛ ∣ F ∣ 3∣ L ( 0 ) ∣ + ( 1 − min { δ ( 0 ) , 4 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ } ) l ⎠ ⎞ . Prover complexity The i t h i^{th} i t h step of commit phase can be computed by a parallel random access machine (PRAM) with concurrent read and exclusive write (CREW) in 2 η + 3 2\eta + 3 2 η + 3 cycles — each cycle involves a single arithmetic operation in F \mathbb{F} F — using 2 ∣ L ( i ) ∣ + η 2|L^{(i)}| + \eta 2∣ L ( i ) ∣ + η processors and a total of 4 ∣ L ( i ) ∣ 4|L^{(i)}| 4∣ L ( i ) ∣ arithmetic operations over F \mathbb{F} F .
Consequently, the total prover complexity is at most 6 ∣ L ( 0 ) ∣ 6|L^{(0)}| 6∣ L ( 0 ) ∣ arithmetic operations, which can be carried out in at most 4 ∣ L ( 0 ) ∣ 4 |L^{(0)}| 4∣ L ( 0 ) ∣ cycles on a PRAM-CREW with 2 n + 3 2n + 3 2 n + 3 processors.
Verifier complexity Verifier communication during the COMMIT phase equals r \textbf{r} r field elements; query complexity (during QUERY phase) equals l 2 η r = l 2 η ( 1 + ⌊ log ∣ L ( 0 ) ∣ − R η ⌋ ) l 2^{\eta} \textbf{r} = l 2^{\eta} \left ( 1 + \left \lfloor \frac{\log |L^{(0)}| - \mathcal{R}}{\eta} \right \rfloor \right ) l 2 η r = l 2 η ( 1 + ⌊ η l o g ∣ L ( 0 ) ∣ − R ⌋ ) . On a PRAM with exclusive read and exclusive write (EREW) with l r ⋅ 2 η l \textbf{r}\cdot2 \eta l r ⋅ 2 η processors, the verifier’s decision is obtained after 2 η + 3 + log l 2\eta + 3 + \log l 2 η + 3 + log l cycles and a total of l ⋅ r ⋅ ( 6 ⋅ 2 η + 6 η + 6 ) l\cdot \textbf{r} \cdot (6 \cdot 2\eta + 6 \eta + 6) l ⋅ r ⋅ ( 6 ⋅ 2 η + 6 η + 6 ) arithmetic operations in F \mathbb{F} F .
在第 2 项,Soundness 结论中,先给了一个参数 δ ( 0 ) ≜ Δ ( 0 ) ( f 0 , RS ( 0 ) ) > 0 \delta^{(0)} \triangleq \Delta^{(0)}(f^{0}, \text{RS}^{(0)}) > 0 δ ( 0 ) ≜ Δ ( 0 ) ( f 0 , RS ( 0 ) ) > 0 ,这里的 Δ ( 0 ) ( f 0 , RS ( 0 ) ) \Delta^{(0)}(f^{0}, \text{RS}^{(0)}) Δ ( 0 ) ( f 0 , RS ( 0 ) ) 其实并不是常见的相对 Hamming 距离,下面给出此测度的定义,同时说明它与相对 Hamming 距离之间的关系。
Block-wise 距离测度 ¶ Definition 2 [BBHR18b, Definition3.2] (Block-wise distance measure). Let S = { S 1 , ⋯ , S m } \mathcal{S} = \{S_1, \cdots, S_m\} S = { S 1 , ⋯ , S m } be a partition of a set S S S and Σ \Sigma Σ be an alphabet. The relative S \mathcal{S} S -Hamming distance measure on Σ S \Sigma^{S} Σ S is defined for f , g ∈ Σ S f, g \in \Sigma^{S} f , g ∈ Σ S as the relative Hamming distance over Σ S 1 × ⋯ × Σ S m \Sigma^{S_1} \times \cdots \times \Sigma^{S_m} Σ S 1 × ⋯ × Σ S m ,
Δ S ( f , g ) ≜ Pr i ∈ [ m ] [ f ∣ S i ≠ g ∣ S i ] = ∣ { i ∈ [ m ] ∣ f ∣ S i ≠ g ∣ S i } ∣ m . \Delta^{\mathcal{S}}(f,g) \triangleq \Pr_{i \in [m]}[f|_{S_i} \neq g|_{S_i}] = \frac{|\{i \in [m] | f|_{S_i} \neq g|_{S_i}\}|}{m}. Δ S ( f , g ) ≜ i ∈ [ m ] Pr [ f ∣ S i = g ∣ S i ] = m ∣ { i ∈ [ m ] ∣ f ∣ S i = g ∣ S i } ∣ . Thus, for F ⊂ Σ S \mathcal{F} \subset \Sigma^{S} F ⊂ Σ S let Δ S ( g , F ) = min { Δ S ( g , f ) ∣ f ∈ F } \Delta^{\mathcal{S}}(g,\mathcal{F}) = \min \{ \Delta^{\mathcal{S}}(g,f) | f \in \mathcal{F}\} Δ S ( g , F ) = min { Δ S ( g , f ) ∣ f ∈ F } .
为了更好的理解这个定义,在 FRI 协议中,考虑在 F L ( i ) \mathbb{F}^{L^{(i)}} F L ( i ) 上的 block-wise 距离,即用 FRI 协议中在第 i i i 步的 L ( i ) L^{(i)} L ( i ) 来替代上述定义中的集合 S S S ,用 F \mathbb{F} F 替换上述定义中的字母表 Σ \Sigma Σ 。在第 i i i 步,我们能够确定集合 L 0 ( i ) L_0^{(i)} L 0 ( i ) 。L 0 ( i ) L_0^{(i)} L 0 ( i ) 其实可以设为映射 q ( i ) q^{(i)} q ( i ) 的核,也就是在 L ( i ) L^{(i)} L ( i ) 集合中那些被 q i q^{i} q i 映射为 L ( i + 1 ) L^{(i+1)} L ( i + 1 ) 中单位元 e e e 的元素的集合,用数学符号表示出来即
L 0 ( i ) = { x ∈ L ( i ) ∣ q ( i ) ( x ) = e } . L_0^{(i)} = \{x \in L^{(i)} | q^{(i)}(x) = e\}. L 0 ( i ) = { x ∈ L ( i ) ∣ q ( i ) ( x ) = e } . 那么通过 L 0 ( i ) L_0^{(i)} L 0 ( i ) 的陪集可以对集合 L ( i ) L^{(i)} L ( i ) 进行划分,假设划分成 m m m 个集合,则对 L ( i ) L^{(i)} L ( i ) 的划分可记为 S ( i ) = { L 0 ( i ) , ⋯ , L m − 1 ( i ) } \mathcal{S}^{(i)} = \{L_0^{(i)}, \cdots, L_{m-1}^{(i)}\} S ( i ) = { L 0 ( i ) , ⋯ , L m − 1 ( i ) } 。那么简记
Δ ( i ) ( f , g ) ≜ Δ S ( i ) ( f , g ) \Delta^{(i)}(f,g) \triangleq \Delta^{\mathcal{S}^{(i)}}(f,g) Δ ( i ) ( f , g ) ≜ Δ S ( i ) ( f , g ) 对于两个函数 f , g : L ( i ) → F f,g : L^{(i)} \rightarrow \mathbb{F} f , g : L ( i ) → F ,定义域均为 L ( i ) L^{(i)} L ( i ) ,值域均为 F \mathbb{F} F ,现在这个 Block-wise 距离说的是这两个函数在 S ( i ) \mathcal{S}^{(i)} S ( i ) 中这些陪集中不完全一致的陪集个数的比值。例如在 S ( i ) = { L 0 ( i ) , ⋯ , L m − 1 ( i ) } \mathcal{S}^{(i)} = \{L_0^{(i)}, \cdots, L_{m-1}^{(i)}\} S ( i ) = { L 0 ( i ) , ⋯ , L m − 1 ( i ) } 中 (假设 m ≥ 2 m \ge 2 m ≥ 2 ),只有在 L 0 ( i ) L_0^{(i)} L 0 ( i ) 与 L 1 ( i ) L_1^{(i)} L 1 ( i ) 这两个集合上函数 f f f 与 g g g 对应的函数值不完全相同,即 f ∣ L 0 ( i ) ≠ g ∣ L 0 ( i ) f|_{L_0^{(i)}} \neq g|_{L_0^{(i)}} f ∣ L 0 ( i ) = g ∣ L 0 ( i ) 且 f ∣ L 1 ( i ) ≠ g ∣ L 1 ( i ) f|_{L_1^{(i)}} \neq g|_{L_1^{(i)}} f ∣ L 1 ( i ) = g ∣ L 1 ( i ) ,在其余的陪集上函数 f f f 与 g g g 完全一致,那么可以计算出 Δ ( i ) ( f , g ) = 2 m \Delta^{(i)}(f,g) = \frac{2}{m} Δ ( i ) ( f , g ) = m 2 。
上面的 Δ ( i ) ( f , g ) \Delta^{(i)}(f, g) Δ ( i ) ( f , g ) 说的是 F L ( i ) \mathbb{F}^{L^{(i)}} F L ( i ) 中两个元素的测度,下面解释下定义中关于集合中一个元素 f ( i ) ∈ F L ( i ) f^{(i)} \in \mathbb{F}^{L^{(i)}} f ( i ) ∈ F L ( i ) 与一个子集 RS ( i ) ⊂ F L ( i ) \text{RS}^{(i)} \subset \mathbb{F}^{L^{(i)}} RS ( i ) ⊂ F L ( i ) (RS ( i ) = R S [ F , L ( i ) , ρ ] \text{RS}^{(i)} = RS[\mathbb{F}, L^{(i)}, \rho] RS ( i ) = RS [ F , L ( i ) , ρ ] 自然是 F L ( i ) \mathbb{F}^{L^{(i)}} F L ( i ) 的子集)对应的 block-wise 距离测度,表示成
Δ ( i ) ( f ( i ) , RS ( i ) ) ≜ Δ S ( i ) ( f ( i ) , RS ( i ) ) = min { Δ S ( i ) ( f ( i ) , g ( i ) ) ∣ g ( i ) ∈ RS ( i ) } , \Delta^{\mathcal{(i)}}(f^{(i)},\text{RS}^{(i)}) \triangleq \Delta^{\mathcal{S}^{(i)}}(f^{(i)},\text{RS}^{(i)}) = \min \{ \Delta^{\mathcal{S}^{(i)}}(f^{(i)},g^{(i)}) | g^{(i)} \in \text{RS}^{(i)}\}, Δ ( i ) ( f ( i ) , RS ( i ) ) ≜ Δ S ( i ) ( f ( i ) , RS ( i ) ) = min { Δ S ( i ) ( f ( i ) , g ( i ) ) ∣ g ( i ) ∈ RS ( i ) } , 其含义是取遍集合 RS ( i ) \text{RS}^{(i)} RS ( i ) 中所有的码字 g ( i ) g^{(i)} g ( i ) ,算出这些 Δ S ( i ) ( f ( i ) , g ( i ) ) \Delta^{\mathcal{S}^{(i)}}(f^{(i)},g^{(i)}) Δ S ( i ) ( f ( i ) , g ( i ) ) ,其中最小的那个值就是 Δ S ( i ) ( f ( i ) , RS ( i ) ) \Delta^{\mathcal{S}^{(i)}}(f^{(i)},\text{RS}^{(i)}) Δ S ( i ) ( f ( i ) , RS ( i ) ) 。
关于该 Block-wise 距离测度,一个重要的不等式是
1 − ρ ≥ Δ ( i ) ( f ( i ) , RS ( i ) ) ≥ Δ H ( f ( i ) , RS ( i ) ) (4) 1 - \rho \ge \Delta^{\mathcal{(i)}}(f^{(i)},\text{RS}^{(i)}) \ge \Delta_H(f^{(i)},\text{RS}^{(i)}) \tag{4} 1 − ρ ≥ Δ ( i ) ( f ( i ) , RS ( i ) ) ≥ Δ H ( f ( i ) , RS ( i ) ) ( 4 ) 该等式会在 FRI 的 Soundness 证明中反复用到,比较重要,这里给出其证明。
证明 :先证明不等式的左半边,即 1 − ρ ≥ Δ ( i ) ( f ( i ) , RS ( i ) ) 1 - \rho \ge \Delta^{\mathcal{(i)}}(f^{(i)},\text{RS}^{(i)}) 1 − ρ ≥ Δ ( i ) ( f ( i ) , RS ( i ) ) 。总是存在这样一个多项式 g ( i ) ∈ RS ( i ) g^{(i)} \in \text{RS}^{(i)} g ( i ) ∈ RS ( i ) ,其次数 d e g ( g ( i ) ) < ρ ∣ L ( i ) ∣ deg(g^{(i)}) < \rho |L^{(i)}| d e g ( g ( i ) ) < ρ ∣ L ( i ) ∣ ,同时 Δ ( i ) ( f ( i ) , g ( i ) ) = 1 − ρ \Delta^{\mathcal{(i)}}(f^{(i)},g^{(i)}) = 1 - \rho Δ ( i ) ( f ( i ) , g ( i ) ) = 1 − ρ 。下面说明 g ( i ) g^{(i)} g ( i ) 的存在性。我们进行如下的构造:
在划分集合S ( i ) = { L 0 ( i ) , ⋯ , L m − 1 ( i ) } \mathcal{S}^{(i)} = \{L_0^{(i)}, \cdots, L_{m-1}^{(i)}\} S ( i ) = { L 0 ( i ) , ⋯ , L m − 1 ( i ) } 中,按顺序可得到集合序列 { L 0 ( i ) , ⋯ , L m − 1 ( i ) } = { x 0 , x 1 , ⋯ , x ∣ L ( i ) ∣ − 1 } \{ L_0^{(i)}, \cdots, L_{m-1}^{(i)}\} = \{x_0, x_1, \cdots, x_{|L^{(i)}| - 1}\} { L 0 ( i ) , ⋯ , L m − 1 ( i ) } = { x 0 , x 1 , ⋯ , x ∣ L ( i ) ∣ − 1 } ,连续选择前 ρ ∣ L ( i ) ∣ \rho |L^{(i)}| ρ ∣ L ( i ) ∣ 个点 { x 0 , x 1 , ⋯ , x ρ ∣ L ( i ) ∣ − 1 } \{x_0,x_1, \cdots, x_{\rho |L^{(i)}| - 1}\} { x 0 , x 1 , ⋯ , x ρ ∣ L ( i ) ∣ − 1 } ,得到这些点对应的 f ( i ) f^{(i)} f ( i ) 的值 { f ( i ) ( x 0 ) , f ( i ) ( x 1 ) , ⋯ , f ( i ) ( x ρ ∣ L ( i ) ∣ − 1 ) } \{f^{(i)}(x_0),f^{(i)}(x_1),\cdots, f^{(i)}(x_{\rho |L^{(i)}| - 1})\} { f ( i ) ( x 0 ) , f ( i ) ( x 1 ) , ⋯ , f ( i ) ( x ρ ∣ L ( i ) ∣ − 1 )} ,拿到这些点值对可以进行 Lagrange 插值,得到一个次数 < ρ ∣ L ( i ) ∣ < \rho |L^{(i)}| < ρ ∣ L ( i ) ∣ 的多项式 g ( i ) g^{(i)} g ( i ) ,同时易得这样构造的 g ( i ) ∈ RS ( i ) = R S [ F , L ( i ) , ρ ] g^{(i)} \in \text{RS}^{(i)} = RS[\mathbb{F}, L^{(i)}, \rho] g ( i ) ∈ RS ( i ) = RS [ F , L ( i ) , ρ ] 。同时根据前面的构造发现在集合 { L 0 ( i ) , ⋯ , L ρ m − 1 ( i ) } = { x 0 , x 1 , ⋯ , x ρ ∣ L ( i ) ∣ − 1 } \{L_0^{(i)}, \cdots, L_{\rho m - 1}^{(i)}\} = \{x_0, x_1, \cdots, x_{\rho |L^{(i)}| - 1} \} { L 0 ( i ) , ⋯ , L ρ m − 1 ( i ) } = { x 0 , x 1 , ⋯ , x ρ ∣ L ( i ) ∣ − 1 } 上函数 f ( i ) f^{(i)} f ( i ) 与 g ( i ) g^{(i)} g ( i ) 的函数值是完全相等的 (这里 ρ ∣ L ( i ) ∣ \rho |L^{(i)}| ρ ∣ L ( i ) ∣ 个点刚好完全占满在 ρ m \rho m ρ m 个集合中,不会出现最后一些点只占最后一个集合的一部分的情况,这是由于选取 ρ \rho ρ 、∣ L ( i ) ∣ |L^{(i)}| ∣ L ( i ) ∣ 都是 2 的幂次形式,能够整除),那么可计算出
Δ ( i ) ( f ( i ) , g ( i ) ) = ∣ { j ∈ [ m ] ∣ f ( i ) ∣ L j ( i ) ≠ g ( i ) ∣ L j ( i ) } ∣ m = 1 − ρ . \Delta^{(i)}(f^{(i)}, g^{(i)}) = \frac{|\{j \in [m] | f^{(i)}|_{L_j^{(i)}} \neq g^{(i)}|_{L_j^{(i)}}\}|}{m} = 1 - \rho. Δ ( i ) ( f ( i ) , g ( i ) ) = m ∣ { j ∈ [ m ] ∣ f ( i ) ∣ L j ( i ) = g ( i ) ∣ L j ( i ) } ∣ = 1 − ρ . 因此 Δ ( i ) ( f ( i ) , RS ( i ) ) \Delta^{\mathcal{(i)}}(f^{(i)},\text{RS}^{(i)}) Δ ( i ) ( f ( i ) , RS ( i ) ) 计算的 RS ( i ) \text{RS}^{(i)} RS ( i ) 中元素与 f ( i ) f^{(i)} f ( i ) 在测度 Δ ( i ) \Delta^{(i)} Δ ( i ) 下的最小值,那肯定不会超过找到的 g ( i ) ∈ RS ( i ) g^{(i)} \in \text{RS}^{(i)} g ( i ) ∈ RS ( i ) 的距离,也就证明了不等式的左半边 1 − ρ ≥ Δ ( i ) ( f ( i ) , RS ( i ) ) 1 - \rho \ge \Delta^{\mathcal{(i)}}(f^{(i)},\text{RS}^{(i)}) 1 − ρ ≥ Δ ( i ) ( f ( i ) , RS ( i ) ) 。
接下来证明不等式的右半边 Δ ( i ) ( f ( i ) , RS ( i ) ) ≥ Δ H ( f ( i ) , RS ( i ) ) \Delta^{\mathcal{(i)}}(f^{(i)},\text{RS}^{(i)}) \ge \Delta_H(f^{(i)},\text{RS}^{(i)}) Δ ( i ) ( f ( i ) , RS ( i ) ) ≥ Δ H ( f ( i ) , RS ( i ) ) 。 假设 Δ ( i ) ( f ( i ) , g ( i ) ∈ RS ( i ) ) = δ \Delta^{(i)}(f^{(i)}, g^{(i)} \in \text{RS}^{(i)}) = \delta Δ ( i ) ( f ( i ) , g ( i ) ∈ RS ( i ) ) = δ ,不失一般性,假设 f ( i ) f^{(i)} f ( i ) 与 g ( i ) g^{(i)} g ( i ) 在陪集 { L 0 ( i ) , ⋯ , L δ m − 1 ( i ) } = { x 0 , ⋯ , x δ ∣ L ( i ) ∣ − 1 } \{L_0^{(i)}, \cdots, L_{\delta m - 1}^{(i)}\} = \{x_0, \cdots, x_{\delta |L^{(i)}| - 1}\} { L 0 ( i ) , ⋯ , L δ m − 1 ( i ) } = { x 0 , ⋯ , x δ ∣ L ( i ) ∣ − 1 } 上不完全一致,在剩余的集合 { L 0 ( i ) , ⋯ , L m − 1 ( i ) } \ { L 0 ( i ) , ⋯ , L δ m − 1 ( i ) } \{L_0^{(i)}, \cdots, L_{m-1}^{(i)}\} \backslash \{L_0^{(i)}, \cdots, L_{\delta m - 1}^{(i)}\} { L 0 ( i ) , ⋯ , L m − 1 ( i ) } \ { L 0 ( i ) , ⋯ , L δ m − 1 ( i ) } 上是完全一致的。那么考虑在 L ( i ) L^{(i)} L ( i ) 上的所有点时,g ( i ) g^{(i)} g ( i ) 最多在 { L 0 ( i ) , ⋯ , L δ m − 1 ( i ) } = { x 0 , ⋯ , x δ ∣ L ( i ) ∣ − 1 } \{L_0^{(i)}, \cdots, L_{\delta m - 1}^{(i)}\} = \{x_0, \cdots, x_{\delta |L^{(i)}| - 1}\} { L 0 ( i ) , ⋯ , L δ m − 1 ( i ) } = { x 0 , ⋯ , x δ ∣ L ( i ) ∣ − 1 } 这 δ ∣ L ( i ) ∣ \delta |L^{(i)}| δ ∣ L ( i ) ∣ 点上都与 f ( i ) f^{(i)} f ( i ) 不一致,因此也就说明了 Δ H ( f ( i ) , g ( i ) ) ≤ δ \Delta_H(f^{(i)},g^{(i)}) \le \delta Δ H ( f ( i ) , g ( i ) ) ≤ δ ,进而如果设 Δ ( i ) ( f ( i ) , RS ( i ) ) = δ ∗ \Delta^{\mathcal{(i)}}(f^{(i)},\text{RS}^{(i)}) = \delta^* Δ ( i ) ( f ( i ) , RS ( i ) ) = δ ∗ 可得出 Δ H ( f ( i ) , RS ( i ) ) ≤ δ ∗ = Δ ( i ) ( f ( i ) , RS ( i ) ) \Delta_H(f^{(i)},\text{RS}^{(i)}) \le \delta^* = \Delta^{\mathcal{(i)}}(f^{(i)},\text{RS}^{(i)}) Δ H ( f ( i ) , RS ( i ) ) ≤ δ ∗ = Δ ( i ) ( f ( i ) , RS ( i ) ) 。 \Box
定理 1 完备性证明 ¶ 下面说明定理 1 中完备性证明的思路,复述下完备性:
Completeness If f ( 0 ) ∈ RS ( 0 ) ≜ RS [ F , L ( 0 ) , ρ = 2 − R ] f^{(0)} \in \text{RS}^{(0)} \triangleq \text{RS}[\mathbb{F}, L^{(0)}, \rho = 2^{- \mathcal{R}}] f ( 0 ) ∈ RS ( 0 ) ≜ RS [ F , L ( 0 ) , ρ = 2 − R ] and f ( 1 ) , ⋯ , f ( r ) f^{(1)}, \cdots, f^{(r)} f ( 1 ) , ⋯ , f ( r ) are computed by the prover specified in the COMMIT phase, then the FRI verifier outputs accept with probability 1.
完备性说的是对于诚实的 Prover ,初始的函数 f ( 0 ) f^{(0)} f ( 0 ) 是在 RS ( 0 ) \text{RS}^{(0)} RS ( 0 ) 编码空间中的,那么通过 FRI 的 COMMIT 阶段会产生一些列的函数 f ( 1 ) , ⋯ , f ( r ) f^{(1)}, \cdots, f^{(r)} f ( 1 ) , ⋯ , f ( r ) ,那么 Verifier 在 QUERY 阶段结束后肯定会输出 accept 。
首先给出了一个递归的引理,再用该引理来证明完备性,引理表述的是在第 i i i 步如果 f ( i ) ∈ RS ( i ) f^{(i)} \in \text{RS}^{(i)} f ( i ) ∈ RS ( i ) ,那么在 COMMIT 阶段,Verifier 会从 F \mathbb{F} F 中随机选取 x ( i ) x^{(i)} x ( i ) 发给 Prover ,Prover 用该随机数来构造下一步的函数 f f ( i ) , x ( i ) ( i + 1 ) f^{(i+1)}_{f^{(i)}, x^{(i)}} f f ( i ) , x ( i ) ( i + 1 ) ,那么对于 F \mathbb{F} F 中任意一个 x ( i ) x^{(i)} x ( i ) ,都有构造出来的 f f ( i ) , x ( i ) ( i + 1 ) f^{(i+1)}_{f^{(i)}, x^{(i)}} f f ( i ) , x ( i ) ( i + 1 ) 都在 RS ( i + 1 ) \text{RS}^{(i+1)} RS ( i + 1 ) 空间中。递归的引理正式表述如下,关于该引理的证明留在后面进行说明。
Lemma 1 [BBHR18b, Lemma 4.1] (Inductive argument). If f ( i ) ∈ RS ( i ) f^{(i)} \in \text{RS}^{(i)} f ( i ) ∈ RS ( i ) then for all x ( i ) ∈ F x^{(i)} \in \mathbb{F} x ( i ) ∈ F it holds that f f ( i ) , x ( i ) ( i + 1 ) ∈ RS ( i + 1 ) f^{(i+1)}_{f^{(i)}, x^{(i)}} \in \text{RS}^{(i+1)} f f ( i ) , x ( i ) ( i + 1 ) ∈ RS ( i + 1 ) .
完备性证明的思路是,在 QUERY 阶段,Verifier 主要是在检查第 3 步的 round consistency 是否成立,一旦某一步的 i ∈ { 0 , ⋯ , r − 1 } i \in \{0, \cdots, r - 1\} i ∈ { 0 , ⋯ , r − 1 } 不成立就会直接输出 reject,直到对所有的 i i i 的检测都通过,最终才会输出 accept 。那么对于 i < r − 1 i < r - 1 i < r − 1 ,根据 COMMIT 阶段 f ( i + 1 ) f^{(i + 1)} f ( i + 1 ) 的构造过程,round consistency 都会通过。对于 i = r − 1 i = r - 1 i = r − 1 ,根据根据完备性的初始条件 f ( 0 ) ∈ RS ( 0 ) f^{(0)} \in \text{RS}^{(0)} f ( 0 ) ∈ RS ( 0 ) ,该定理递归的说明了 f ( r ) ∈ R S ( r ) f^{(r)} \in RS^{(r)} f ( r ) ∈ R S ( r ) ,最后根据该结论说明在 QUERY 阶段也会检测通过 round consistency,最终 Verifier 也就一定会输出 accept 了。具体的完备性证明如下。
定理 1 第一项完备性证明 : 对于诚实的 Prover,对于任意的一个函数 f ( i ) f^{(i)} f ( i ) ,在 COMMIT 阶段的第 2 步中,对于任意的 i < r − 1 i < r - 1 i < r − 1 ,构造出
f f ( i ) , x ( i ) ( i + 1 ) ( y ) ≜ P y ( i ) ( x ( i ) ) . f_{f^{(i)}, x^{(i)}}^{(i + 1)} (y) \triangleq P_y^{(i)}(x^{(i)}). f f ( i ) , x ( i ) ( i + 1 ) ( y ) ≜ P y ( i ) ( x ( i ) ) . 根据该构造,那么一定能在 QUERY 阶段的第 3 步一定会通过 round consistency ,即
f ( i + 1 ) ( s ( i + 1 ) ) = P ( i ) ( x ( i ) ) f^{(i+1)}(s^{(i+1)}) = P^{(i)}(x^{(i)}) f ( i + 1 ) ( s ( i + 1 ) ) = P ( i ) ( x ( i ) ) 成立。
下面只需证明对于 i = r − 1 i = r - 1 i = r − 1 时,round consistency 也能通过。根据完备性的假设知 f ( 0 ) ∈ RS ( 0 ) f^{(0)} \in \text{RS}^{(0)} f ( 0 ) ∈ RS ( 0 ) ,由 Lemma 1 递归可得 f ( r ) ∈ R S ( r ) f^{(r)} \in RS^{(r)} f ( r ) ∈ R S ( r ) ,那么一定存在一个次数 < ρ ∣ L ( r ) ∣ <\rho |L^{(r)}| < ρ ∣ L ( r ) ∣ 的多项式 P ( r ) ( X ) P^{(r)}(X) P ( r ) ( X ) 使得 f ( r ) ( X ) f^{(r)}(X) f ( r ) ( X ) 与 P ( r ) ( X ) P^{(r)}(X) P ( r ) ( X ) 在 L ( r ) L^{(r)} L ( r ) 上是完全一致的。因此 Prover 会在 COMMIT 阶段的第 3 步发送 P ( r ) ( X ) P^{(r)}(X) P ( r ) ( X ) 的 d + 1 = ρ ∣ L ( r ) ∣ d + 1 = \rho |L^{(r)}| d + 1 = ρ ∣ L ( r ) ∣ 个系数 ⟨ a 0 ( r ) , ⋯ , a d ( r ) ⟩ \langle a_0^{(r)}, \cdots, a_d^{(r)} \rangle ⟨ a 0 ( r ) , ⋯ , a d ( r ) ⟩ ,Verifier 在 QUERY 阶段的 “Terminal function reconstruction” 阶段会根据发送过来的 d + 1 d + 1 d + 1 个系数构造出 P ′ ( X ) ≜ ∑ j ≤ d a j ( r ) X j P'(X) \triangleq \sum_{j \le d} a_j^{(r)}X^j P ′ ( X ) ≜ ∑ j ≤ d a j ( r ) X j ,再根据 P ′ ( X ) P'(X) P ′ ( X ) 得到函数 f ′ ( r ) f'^{(r)} f ′ ( r ) ,函数 f ′ ( r ) f'^{(r)} f ′ ( r ) 是 P ′ ( X ) P'(X) P ′ ( X ) 在 L ( r ) L^{(r)} L ( r ) 上的估计 (evaluation) 。那么可以推断出 f ′ ( r ) ∣ L ( r ) = P ′ ( X ) = P ( r ) ( X ) = f ( r ) ∣ L ( r ) f'^{(r)}|_{L^{(r)}} = P'(X) = P^{(r)}(X) = f^{(r)}|_{L^{(r)}} f ′ ( r ) ∣ L ( r ) = P ′ ( X ) = P ( r ) ( X ) = f ( r ) ∣ L ( r ) 。自然会通过第 i = r − 1 i = r - 1 i = r − 1 轮的 round consistency ,即
f ′ ( r ) ( s ( i + 1 ) ) = P ( r − 1 ) ( x i ) f'^{(r)}(s^{(i+1)}) = P^{(r-1)}(x^{i}) f ′ ( r ) ( s ( i + 1 ) ) = P ( r − 1 ) ( x i ) 从而得证 Verifier 最后一定会输出 accept 。\Box
命题 1 的引入 ¶ 在证明引理 1 前先给出一个重要的命题,再用该命题来证明引理 1 。在下述命题中,用小写字母 x , y x, y x , y 来表示域中的元素,用大写字母 X , Y X,Y X , Y 来表示自变量。
Claim 1 [BBHR18b, Claim 4.2]. For every f ( i ) : L ( i ) → F f^{(i)}: L^{(i)} \rightarrow \mathbb{F} f ( i ) : L ( i ) → F there exists Q ( i ) ( X , Y ) ∈ F [ X , Y ] Q^{(i)}(X,Y) \in \mathbb{F}[X,Y] Q ( i ) ( X , Y ) ∈ F [ X , Y ] satisfying
f ( i ) ( x ) = Q ( i ) ( x , q ( i ) ( x ) ) f^{(i)}(x) = Q^{(i)}(x,q^{(i)}(x)) f ( i ) ( x ) = Q ( i ) ( x , q ( i ) ( x )) for all x ∈ L ( i ) x \in L^{(i)} x ∈ L ( i ) deg X ( Q ( i ) ) < ∣ L 0 ( i ) ∣ \deg_X(Q^{(i)}) < |L_0^{(i)}| deg X ( Q ( i ) ) < ∣ L 0 ( i ) ∣ If f ( i ) ∈ R S [ F , L ( i ) , ρ ] f^{(i)} \in RS[\mathbb{F},L^{(i)},\rho] f ( i ) ∈ RS [ F , L ( i ) , ρ ] then deg Y ( Q ( i ) ) < ρ ∣ L ( i + 1 ) ∣ \deg_Y(Q^{(i)}) < \rho |L^{(i+1)}| deg Y ( Q ( i ) ) < ρ ∣ L ( i + 1 ) ∣ 该命题对于理解 FRI 协议是比较重要的。Vitalik 在其博客文章 STARKs, Part II: Thank Goodness It’s FRI-day 的 A First Look at Sublinearity 小节中给出了一个具体的例子,其协议过程已初具 FRI 协议的雏形,我们在这里用命题 1 的视角来重新看看这个例子。
假设有限域 L L L 的大小为 N = 1 0 9 N = 10^9 N = 1 0 9 , 设多项式 f ( X ) : L → F f(X): L \rightarrow \mathbb{F} f ( X ) : L → F ,且其次数 < 1 0 6 < 10^6 < 1 0 6 ,那么有 f ∈ R S [ F , L , ρ = 1 0 − 3 ] f \in RS[\mathbb{F}, L, \rho = 10^{-3}] f ∈ RS [ F , L , ρ = 1 0 − 3 ] 。根据命题 1 可得,一定存在一个二元多项式 g ( X , Y ) ∈ F [ X , Y ] g(X,Y) \in \mathbb{F}[X,Y] g ( X , Y ) ∈ F [ X , Y ] 满足:
对于 ∀ x ∈ L \forall x \in L ∀ x ∈ L 都有 g ( x , q ( x ) ) = f ( x ) g(x,q(x)) = f(x) g ( x , q ( x )) = f ( x ) ,其中 q ( x ) = x 1000 q(x) = x^{1000} q ( x ) = x 1000 deg X ( g ) < ∣ L 0 ∣ = 1 0 3 \deg_X(g) < |L_0| = 10^3 deg X ( g ) < ∣ L 0 ∣ = 1 0 3 由于 f ∈ R S [ F , L , ρ = 1 0 − 3 ] f \in RS[\mathbb{F}, L, \rho = 10^{-3}] f ∈ RS [ F , L , ρ = 1 0 − 3 ] ,则 deg Y ( g ) < ρ ∣ L ( 1 ) ∣ = 1 0 − 3 × 1 0 6 = 1 0 3 \deg_Y(g) < \rho |L^{(1)}| = 10^{-3} \times 10^6 = 10^3 deg Y ( g ) < ρ ∣ L ( 1 ) ∣ = 1 0 − 3 × 1 0 6 = 1 0 3
现在 Prover 想向 Verifier 证明 f ( x ) f(x) f ( x ) 的次数确实是小于 106 的。在文章中用了直观的几何图形来说明证明的过程。 在图中,正方形的横向表示的是自变量 X X X ,取值范围就是 L L L ,总共有 109 个,而纵向表示的是自变量 Y Y Y ,其取值范围是 { x 1000 ∣ x ∈ L } \{x^{1000} | x \in L\} { x 1000 ∣ x ∈ L } 。正方形中的一个点 ( x , y ) (x,y) ( x , y ) 对应的值表示的就是计算出的 g ( x , y ) g(x,y) g ( x , y ) 的值。对于在正方形的对角线上的点 ( x , y ) (x, y) ( x , y ) ,满足 x = y x = y x = y ,那么 g ( x , y ) = g ( x , x 1000 ) = f ( x ) g(x,y) = g(x, x^{1000}) = f(x) g ( x , y ) = g ( x , x 1000 ) = f ( x ) 。
证明的过程如下:
Prover 承诺上述正方形中关于 g ( X , Y ) g(X,Y) g ( X , Y ) 的所有点的估计,例如使用 Merkle 树来进行承诺。 Verifier 随机选取大约几十行和列,对于选择的每一行或列,Verifier 会要求例如 1010 个点的样本,确保在每种情况下所需的点之一位于对角线上。比如 Verifier 选取第 5 列,那么此时 x = x 4 x = x_4 x = x 4 ,此时需要选取 1010 个样本点,那么这些点的横坐标已经确定了,只需随机纵坐标就行,在纵坐标中选取 y = x 4 1000 y = x_4^{1000} y = x 4 1000 就确保了该点 ( x 4 , x 4 1000 ) (x_4,x_4^{1000}) ( x 4 , x 4 1000 ) 在对角线上了。 Prover 回复 Verifier 要求的点对应的值 g ( x , y ) g(x,y) g ( x , y ) ,并带上对应的 Merkle 分支,证明它们是 Prover 原来承诺的数据的一部分。 Verifier 检查 Merkle 分支是否匹配,同时对于每一行或每一列,Verifier 验证 Prover 提供的这些点是否真的对应一个次数 < 1000 <1000 < 1000 的多项式。Verifier 可以通过对这些点进行插值来验证这一点。 原文提到:
This gives the verifier a statistical proof that (i) most rows are populated mostly by points on degree < 1000 <1000 < 1000 polynomials, (ii) most columns are populated mostly by points on degree < 1000 <1000 < 1000 polynomials, and (iii) the diagonal line is mostly on these polynomials. This thus convinces the verifier that most points on the diagonal actually do correspond to a degree < 1 , 000 , 000 <1,000,000 < 1 , 000 , 000 polynomial.
这几点与结论可以联系命题 1 给出的那三项:
对于大多数行,对应的是次数 < 1000 <1000 < 1000 的多项式,也就是说明 deg X ( g ) < 1000 \deg_X(g) < 1000 deg X ( g ) < 1000 。 对于大多数列,对应的是次数 < 1000 <1000 < 1000 的多项式,也就是说明 deg Y ( g ) < 1000 \deg_Y(g) < 1000 deg Y ( g ) < 1000 。 对角线主要由这些多项式上的点组成,也就是说明这些点的值满足 g ( x , x 1000 ) g(x,x^{1000}) g ( x , x 1000 ) 。 这也就能说明对角线上的大多数点 ( x , x 1000 ) (x, x^{1000}) ( x , x 1000 ) 对应一个次数 < 1 0 6 <10^6 < 1 0 6 的多项式,又因为 f ( x ) = g ( x , x 1000 ) f(x) = g(x,x^{1000}) f ( x ) = g ( x , x 1000 ) ,也就让 Verifier 相信多项式 f ( X ) f(X) f ( X ) 的次数是 < 1 0 6 < 10^6 < 1 0 6 的了。
综上,如果我们想要证明多项式 f ( X ) f(X) f ( X ) 的次数小于某个值,根据命题 1 ,一定存在一个二元多项式 g ( X , Y ) g(X,Y) g ( X , Y ) 能与 f ( X ) f(X) f ( X ) 产生联系,首先就是 f ( x ) = g ( x , q ( x ) ) f(x) = g(x,q(x)) f ( x ) = g ( x , q ( x )) ,剩下两个结论是关于 g ( X , Y ) g(X,Y) g ( X , Y ) 的次数 deg X ( g ) \deg_X(g) deg X ( g ) 与 deg Y ( g ) \deg_Y(g) deg Y ( g ) 的两个结论,这就分别对应着图中横线与竖线所表示的多项式的次数。其实可以就上述步骤进行递归,这部分对应文章中 And Even More Efficiency 小节,描述的也就是 FRI 协议的过程。
下面给出命题 1 的证明。
命题 1 证明 :令 P ( i ) = interpolant f ( i ) P^{(i)} = \text{interpolant}^{f^{(i)}} P ( i ) = interpolant f ( i ) ,即将函数 f ( i ) f^{(i)} f ( i ) 在 L ( i ) L^{(i)} L ( i ) 进行插值,得到多项式 P ( i ) P^{(i)} P ( i ) 。用 F [ X , Y ] \mathbb{F}[X,Y] F [ X , Y ] 表示在有限域 F \mathbb{F} F 上的二元多项式环;先按照多项式的总次数对其中的单项式进行排序,再按照 X X X -次数进行排序。令
Q ( i ) ( X , Y ) = P ( i ) ( X ) mod Y − q ( i ) ( X ) Q^{(i)}(X,Y) = P^{(i)}(X) \qquad \text{mod} \; Y - q^{(i)}(X) Q ( i ) ( X , Y ) = P ( i ) ( X ) mod Y − q ( i ) ( X ) 为 P ( i ) ( X ) P^{(i)}(X) P ( i ) ( X ) 除以 Y − q ( i ) ( X ) Y - q^{(i)}(X) Y − q ( i ) ( X ) 的余式。通过该定义,可以得出一定存在一个商式 R ( X , Y ) ∈ F [ X , Y ] R(X,Y) \in \mathbb{F}[X,Y] R ( X , Y ) ∈ F [ X , Y ] 使得
P ( i ) ( X ) = Q ( i ) ( X , Y ) + ( Y − q ( i ) ( X ) ) ⋅ R ( X , Y ) . P^{(i)}(X) = Q^{(i)}(X,Y) + (Y - q^{(i)}(X)) \cdot R(X,Y). P ( i ) ( X ) = Q ( i ) ( X , Y ) + ( Y − q ( i ) ( X )) ⋅ R ( X , Y ) . 对于 ∀ x ∈ L ( i ) \forall x \in L^{(i)} ∀ x ∈ L ( i ) 以及 y = q ( i ) ( x ) y = q^{(i)}(x) y = q ( i ) ( x ) ,带入上式中的最右边一项,可以得到 ( Y − q ( i ) ( X ) ) ⋅ R ( X , Y ) = ( y − q ( i ) ( x ) ) ⋅ R ( x , y ) = 0 (Y - q^{(i)}(X)) \cdot R(X,Y) = (y - q^{(i)}(x)) \cdot R(x,y) = 0 ( Y − q ( i ) ( X )) ⋅ R ( X , Y ) = ( y − q ( i ) ( x )) ⋅ R ( x , y ) = 0 。因此 P ( i ) ( x ) = Q ( i ) ( x , y ) = Q ( i ) ( x , q ( i ) ( x ) ) P^{(i)}(x) = Q^{(i)}(x,y) = Q^{(i)}(x,q^{(i)}(x)) P ( i ) ( x ) = Q ( i ) ( x , y ) = Q ( i ) ( x , q ( i ) ( x )) ,而 P ( i ) ( X ) P^{(i)}(X) P ( i ) ( X ) 是由 f ( i ) ( X ) f^{(i)}(X) f ( i ) ( X ) 在 L ( i ) L^{(i)} L ( i ) 上插值得到的,那么 f ( i ) ( x ) = P ( i ) ( x ) = Q ( i ) ( x , q i ( x ) ) f^{(i)}(x) = P^{(i)}(x) = Q^{(i)}(x, q^{i}(x)) f ( i ) ( x ) = P ( i ) ( x ) = Q ( i ) ( x , q i ( x )) ,也就证明了命题中的第 1 项。
由单项式的排序,可得定义的余式 Q Q Q 满足
deg X ( Q ( i ) ( X , Y ) ) < deg ( q ( i ) ) = ∣ L 0 ( i ) ∣ , \deg_X(Q^{(i)}(X,Y)) < \deg(q^{(i)}) = |L_0^{(i)}|, deg X ( Q ( i ) ( X , Y )) < deg ( q ( i ) ) = ∣ L 0 ( i ) ∣ , 因此命题 1 的第 2 项成立。
最后证明命题 1 的第 3 项。由条件 f ( i ) ∈ R S [ F , L ( i ) , ρ ] f^{(i)} \in RS[\mathbb{F},L^{(i)},\rho] f ( i ) ∈ RS [ F , L ( i ) , ρ ] 可得 deg ( P ( i ) ) < ρ ∣ L ( i ) ∣ \deg(P^{(i)}) < \rho |L^{(i)}| deg ( P ( i ) ) < ρ ∣ L ( i ) ∣ 。根据除法法则以及单项式排序规则,得
deg Y ( Q ( i ) ) = ⌊ deg ( P ( i ) ) deg ( q ( i ) ) ⌋ = ⌊ deg ( P ( i ) ) ∣ L 0 ( i ) ∣ ⌋ < ⌊ ρ ∣ L ( i ) ∣ ∣ L 0 ( i ) ∣ ⌋ = ⌊ ρ ∣ L ( i + 1 ) ∣ ⌋ ≤ ρ ∣ L ( i + 1 ) ∣ . \deg_Y(Q^{(i)}) = \left \lfloor \frac{\deg(P^{(i)})}{\deg(q^{(i)})}\right \rfloor = \left \lfloor \frac{\deg(P^{(i)})}{|L_0^{(i)}|}\right \rfloor < \left \lfloor \frac{\rho |L^{(i)}|}{|L_0^{(i)}|}\right \rfloor = \left \lfloor \rho |L^{(i+1)}|\right \rfloor \le \rho |L^{(i+1)}|. deg Y ( Q ( i ) ) = ⌊ deg ( q ( i ) ) deg ( P ( i ) ) ⌋ = ⌊ ∣ L 0 ( i ) ∣ deg ( P ( i ) ) ⌋ < ⌊ ∣ L 0 ( i ) ∣ ρ ∣ L ( i ) ∣ ⌋ = ⌊ ρ ∣ L ( i + 1 ) ∣ ⌋ ≤ ρ ∣ L ( i + 1 ) ∣. 因此得证命题 1 第 3 项。\Box
引理 1 的证明 ¶ 使用命题 1 的记号。由命题的第 3 项得,对于任意的 x ( i ) x^{(i)} x ( i ) 有 deg Y ( Q ( i ) ) < ρ ⋅ ∣ L ( i + 1 ) ∣ \deg_Y(Q^{(i)}) < \rho \cdot |L^{(i+1)}| deg Y ( Q ( i ) ) < ρ ⋅ ∣ L ( i + 1 ) ∣ 。下面证明
∀ y ∈ L ( i + 1 ) , f ( i + 1 ) ( y ) = Q ( i ) ( x ( i ) , y ) \forall y \in L^{(i+1)} , f^{(i+1)}(y) = Q^{(i)}(x^{(i)}, y) ∀ y ∈ L ( i + 1 ) , f ( i + 1 ) ( y ) = Q ( i ) ( x ( i ) , y ) 上式如果成立就证明了 deg ( f ( i + 1 ) ) ≤ deg Y ( Q ( i ) ) < ρ ⋅ ∣ L ( i + 1 ) ∣ \deg(f^{(i+1)}) \le \deg_Y(Q^{(i)}) < \rho \cdot |L^{(i+1)}| deg ( f ( i + 1 ) ) ≤ deg Y ( Q ( i ) ) < ρ ⋅ ∣ L ( i + 1 ) ∣ ,这就证明了 deg ( f ( i + 1 ) ) ∈ RS ( i + 1 ) \deg(f^{(i+1)}) \in \text{RS}^{(i+1)} deg ( f ( i + 1 ) ) ∈ RS ( i + 1 ) 。
为了证明上式,先固定 y ∈ L ( i + 1 ) y \in L^{(i+1)} y ∈ L ( i + 1 ) ,令 S y ∈ S ( i ) S_y \in \mathcal{S}^{(i)} S y ∈ S ( i ) 是满足 q ( i ) ( S y ) = { y } q^{(i)}(S_y) = \{y\} q ( i ) ( S y ) = { y } 的集合,它也是在 L ( i ) L^{(i)} L ( i ) 中 L 0 ( i ) L_0^{(i)} L 0 ( i ) 的陪集。由 f ( i + 1 ) f^{(i+1)} f ( i + 1 ) 的构造可知
f ( i + 1 ) ( y ) = interpolant f ( i ) ∣ S y ( x ( i ) ) . f^{(i+1)}(y) = \text{interpolant}^{f^{(i)}|_{S_y}}(x^{(i)}). f ( i + 1 ) ( y ) = interpolant f ( i ) ∣ S y ( x ( i ) ) . 由命题 1 的第 1 项得
∀ x ∈ S y , f ( i ) ( x ) = P ( i ) = Q ( i ) ( x , y ) \forall x \in S_y, \quad f^{(i)}(x) = P^{(i)} = Q^{(i)}(x,y) ∀ x ∈ S y , f ( i ) ( x ) = P ( i ) = Q ( i ) ( x , y ) 由命题 1 的第 2 项,可知 deg X ( Q ( i ) ) < ∣ L 0 ( i ) ∣ = ∣ S y ∣ \deg_X(Q^{(i)}) < |L_0^{(i)}| = |S_y| deg X ( Q ( i ) ) < ∣ L 0 ( i ) ∣ = ∣ S y ∣ ,因此可以将 X X X 当作一个形式自变量,得到
interpolant f ( i ) ∣ S y ( X ) = Q ( i ) ( X , y ) \text{interpolant}^{f^{(i)}|_{S_y}}(X) = Q^{(i)}(X,y) interpolant f ( i ) ∣ S y ( X ) = Q ( i ) ( X , y ) 再令 X = x ( i ) X = x^{(i)} X = x ( i ) ,左右两边的多项式 x ( i ) x^{(i)} x ( i ) 上的估计肯定是相同的。从而得到
f ( i + 1 ) ( y ) = interpolant f ( i ) ∣ S y ( x ( i ) ) = Q ( i ) ( x ( i ) , y ) f^{(i+1)}(y) = \text{interpolant}^{f^{(i)}|_{S_y}}(x^{(i)}) = Q^{(i)}(x^{(i)},y) f ( i + 1 ) ( y ) = interpolant f ( i ) ∣ S y ( x ( i ) ) = Q ( i ) ( x ( i ) , y ) 自然,当对于任意的 y ∈ L ( i + 1 ) y \in L^{(i+1)} y ∈ L ( i + 1 ) ,有
∀ y ∈ L ( i + 1 ) , f ( i + 1 ) ( y ) = Q ( i ) ( x ( i ) , y ) \forall y \in L^{(i+1)} , f^{(i+1)}(y) = Q^{(i)}(x^{(i)}, y) ∀ y ∈ L ( i + 1 ) , f ( i + 1 ) ( y ) = Q ( i ) ( x ( i ) , y ) 因此得证。\Box
定理 1 Soundness 证明分析 ¶ 本节主要说明定理 1 中 soundness 的证明思路。首先给出几个在证明中用到的定义,接着说明两个重要的引理,最后根据这两个引理来证明 soundness。
round consistency 与 失真集 ¶ soundness 分析的难点就在于怎么准确的估计出对于任意作恶的 prover , 通过和 verifier 交互,最终通过该协议的概率。想要准确的进行估计,我们就需要考虑在协议的过程中,哪些地方可能会产生误差,如果我们将这些误差过程都毫无遗失的都估计出出错的概率,最后再综合来分析,就能得到 soundness 了。在这个过程中,为了对这些可能出现误差的情况进行概率估计分析,我们需要准确地描述出这些估计,也就是我们需要对其进行量化,下面就给出在这个过程中必要的一些定义。
在第 i i i 步,给出关于 f ( i ) f^{(i)} f ( i ) 与 f ( i + 1 ) f^{(i+1)} f ( i + 1 ) 的 oracle ,以及 Verifier 给出的随机数 x ( i ) x^{(i)} x ( i ) 。
❓ 疑问
inner-layer distance 第 i i i th 的 inner-layer distance 就是 f ( i ) f^{(i)} f ( i ) 距离 RS ( i ) \text{RS}^{(i)} RS ( i ) 的 Δ ( i ) \Delta^{(i)} Δ ( i ) -距离。δ ( i ) ≜ Δ ( i ) ( f i , RS ( i ) ) \delta^{(i)} \triangleq \Delta^{(i)}(f^{i},\text{RS}^{(i)}) δ ( i ) ≜ Δ ( i ) ( f i , RS ( i ) ) 该定义就是前文提到的第 i i i 步的 block-wise 距离。
round error 对于 i > 0 i > 0 i > 0 ,第 i i i th round 误差集 (round error set ) 是 L ( i ) L^{(i)} L ( i ) 的一个子集,定义如下A err ( i ) ( f ( i ) , f ( i − 1 ) , x ( i − 1 ) ) ≜ { y S ( i ) ∈ L ( i ) ∣ interpolant f ( i − 1 ) ∣ S ( x ( i − 1 ) ) ≠ f ( i ) ( y S ( i ) ) } A_{\text{err}}^{(i)}\left(f^{(i)},f^{(i-1)},x^{(i-1)}\right) \triangleq \left \{ y_S^{(i)} \in L^{(i)} | \text{interpolant} ^{f^{(i-1)|_S}}\left(x^{(i-1)}\right) \neq f^{(i)}\left(y_S^{(i)}\right)\right \} A err ( i ) ( f ( i ) , f ( i − 1 ) , x ( i − 1 ) ) ≜ { y S ( i ) ∈ L ( i ) ∣ interpolant f ( i − 1 ) ∣ S ( x ( i − 1 ) ) = f ( i ) ( y S ( i ) ) } round error set 描述的就是在第 i i i 轮中 Verifier 会在检查 round consistency 测试失败的那些 L ( i ) L^{(i)} L ( i ) 中的元素。相应的概率就是 i i i th round error err ( i ) \text{err}^{(i)} err ( i ) 。
err ( i ) ( f ( i ) , f ( i − 1 ) , x ( i − 1 ) ) ≜ ∣ A err ( i ) ∣ ∣ L ( i ) ∣ \text{err}^{(i)}\left(f^{(i)},f^{(i-1)},x^{(i-1)}\right) \triangleq \frac{|A_{\text{err}}^{(i)}|}{|L^{(i)}|} err ( i ) ( f ( i ) , f ( i − 1 ) , x ( i − 1 ) ) ≜ ∣ L ( i ) ∣ ∣ A err ( i ) ∣ closest codeword 令 f ˉ ( i ) \bar{f}^{(i)} f ˉ ( i ) 表示在 Δ ( i ) ( ⋅ ) \Delta^{(i)}(\cdot) Δ ( i ) ( ⋅ ) -测度下在 RS ( i ) \text{RS}^{(i)} RS ( i ) 中距离 f ( i ) f^{(i)} f ( i ) 最近的码字。我们知道Δ ( i ) ( ⋅ ) \Delta^{(i)}(\cdot) Δ ( i ) ( ⋅ ) -测度是在 L ( i ) L^{(i)} L ( i ) 的陪集划分集合 S ( i ) \mathcal{S}^{(i)} S ( i ) 中的一种度量,令 S B ( i ) ⊂ S ( i ) \mathcal{S}_B^{(i)} \subset \mathcal{S}^{(i)} S B ( i ) ⊂ S ( i ) 表示 f ( i ) f^{(i)} f ( i ) 与码字 f ˉ ( i ) \bar{f}^{(i)} f ˉ ( i ) 在划分 S ( i ) \mathcal{S}^{(i)} S ( i ) 中不一致的“坏” (“bad”) 的陪集,即S B ( i ) = { S ∈ S i ∣ f ( i ) ∣ S ≠ f ˉ ( i ) ∣ S } \mathcal{S}_B^{(i)} = \left\{ S \in \mathcal{S}^{i} | f^{(i)}|_S \neq \bar{f}^{(i)}|_S \right \} S B ( i ) = { S ∈ S i ∣ f ( i ) ∣ S = f ˉ ( i ) ∣ S } 将这些在 S ( i ) \mathcal{S}^{(i)} S ( i ) 中“坏”的陪集放在一起组成集合为 D ( i ) = ∪ S ∈ S B ( i ) S D^{(i)} = \cup_{S \in \mathcal{S}_B^{(i)}}S D ( i ) = ∪ S ∈ S B ( i ) S ,可以发现 D ( i ) D^{(i)} D ( i ) 是 L ( i ) L^{(i)} L ( i ) 的子集,其中每一个元素是一个“坏”的陪集。
如果 δ ( i ) < ( 1 − ρ ) / 2 \delta^{(i)} < (1-\rho) /2 δ ( i ) < ( 1 − ρ ) /2 ,那么根据上文关于 block-wise 距离 Δ ( i ) \Delta^{(i)} Δ ( i ) 的不等式,可得
Δ H ( i ) ≤ δ ( i ) < ( 1 − ρ ) / 2 , \Delta_H^{(i)} \le \delta^{(i)} < (1-\rho) /2, Δ H ( i ) ≤ δ ( i ) < ( 1 − ρ ) /2 , 根据相对 Hamming 距离的界,此时可以唯一解码,根据 f ( i ) f^{(i)} f ( i ) 可以解码出唯一的 f ˉ ( i ) \bar{f}^{(i)} f ˉ ( i ) ,那么此时自然 S B ( i ) \mathcal{S}_B^{(i)} S B ( i ) 是唯一的,进而 Δ H ( i ) \Delta_H^{(i)} Δ H ( i ) 也就能唯一确定了。
失真集 对于 ϵ > 0 \epsilon > 0 ϵ > 0 ,f ( i ) f^{(i)} f ( i ) 的失真集 (distortion set ) 为B [ f ( i ) ; ϵ ] ≜ { x ( i ) ∈ F ∣ Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) < ϵ } B \left[ f^{(i)}; \epsilon \right ] \triangleq \left\{ x^{(i)} \in \mathbb{F} | \Delta_H \left( f_{f^{(i)},x^{(i)}}^{(i+1)},\text{RS}^{(i+1)}\right) < \epsilon \right\} B [ f ( i ) ; ϵ ] ≜ { x ( i ) ∈ F ∣ Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) < ϵ } 注意上述使用的测度是相对 Hamming 距离。可以这样来理解这个失真集,我们知道 Verifier 会从有限域 F \mathcal{F} F 中选取随机数 x ( i ) x^{(i)} x ( i ) 发送给 Prover ,Prover 根据 Verifier 发送的 x ( i ) x^{(i)} x ( i ) 以及 f ( i ) f^{(i)} f ( i ) 去构造下一步的 f ( i + 1 ) f^{(i+1)} f ( i + 1 ) ,接着我们看构造的下一步的 f ( i + 1 ) f^{(i+1)} f ( i + 1 ) 与 RS ( i + 1 ) \text{RS}^{(i+1)} RS ( i + 1 ) 之间的相对 Hamming 距离,如果我们给定一个值 ϵ \epsilon ϵ ,我们看 F \mathbb{F} F 中哪些 x ( i ) x^{(i)} x ( i ) 会导致构造的 f f ( i ) , x ( i ) ( i + 1 ) f_{f^{(i)},x^{(i)}}^{(i+1)} f f ( i ) , x ( i ) ( i + 1 ) 距离编码空间 RS ( i + 1 ) \text{RS}^{(i+1)} RS ( i + 1 ) 的最小相对 Hamming 距离小于给定的参数 ϵ \epsilon ϵ 。进一步理解,那就是考虑域 F \mathbb{F} F 上所有的 x ( i ) x^{(i)} x ( i ) ,看看哪些 f f ( i ) , x ( i ) ( i + 1 ) f_{f^{(i)},x^{(i)}}^{(i+1)} f f ( i ) , x ( i ) ( i + 1 ) 会距离全体编码空间 RS ( i + 1 ) \text{RS}^{(i+1)} RS ( i + 1 ) 有一定距离,这个距离参数最大就是 ϵ \epsilon ϵ ,根据 ϵ > 0 \epsilon > 0 ϵ > 0 的条件,我们知道 f f ( i ) , x ( i ) ( i + 1 ) f_{f^{(i)},x^{(i)}}^{(i+1)} f f ( i ) , x ( i ) ( i + 1 ) 到编码空间至少就有一个正数的距离,肯定不在 RS ( i + 1 ) \text{RS}^{(i+1)} RS ( i + 1 ) 的空间中。
那么失真集考虑的是哪些可能出现误差的情况呢?它是从 Verifier 的行为的角度出发,考虑的是 Verifier 在挑选随机数的过程中可能由于随机数的选择导致的不再在编码空间的情况。
soundness 证明思路 ¶ 刚刚讲了失真集考虑是从 Verifier 选取随机数过程中可能造成的误差,那么另一个角度就是 Prover 在构造过程或者说 COMMIT 承诺阶段产生的误差。也就是当我们要估计 soundness 时,考虑以下两种会发生误差的情况:
Verifier 从 F \mathbb{F} F 中选取随机数 x ( i ) x^{(i)} x ( i ) 导致的误差。 Prover 在 COMMIT 阶段导致的误差。 由此有了 soundness 分析的大致思路,先估计第 1 种情况发生的概率,再假设第 1 种情况不会发生,发生第 2 种情况的概率。最后再来分析两种情况都同时发生的概率,也就得到了我们想要的 soundness 。
为了估计出第 1 种情况的概率,首先给出关于失真集的一对引理,这两对引理考虑的是不同的 ϵ \epsilon ϵ 。我们知道在对 code 解码的过程中,会先有一个相对 Hamming 距离的参数 δ \delta δ ,对 δ \delta δ 的值分两种情况:
如果 δ ≤ ( 1 − ρ ) / 2 \delta \le (1 - \rho) / 2 δ ≤ ( 1 − ρ ) /2 ,则解码是唯一的,即 unique decoding 。 如果 δ > ( 1 − ρ ) / 2 \delta > (1 - \rho) / 2 δ > ( 1 − ρ ) /2 ,此时解码出来是一个列表,是 List decoding。 📖 Notes
为了更好地理解 List Decoding,这里给出其定义:
Definition 2 [Essential Coding Theory, Definition 7.2.1] Given 0 ≤ ρ ≤ 1 0 \le \rho \le 1 0 ≤ ρ ≤ 1 , L ≥ 1 L \ge 1 L ≥ 1 , a code C ⊆ Σ n C \subseteq \Sigma^n C ⊆ Σ n is ( ρ , L ) (\rho, L) ( ρ , L ) -list decodable if for every received word y ⃗ ∈ Σ n \vec{y} \in \Sigma^n y ∈ Σ n ,
> ∣ { c ∈ C ∣ Δ ( y ⃗ , c ) ≤ ρ n } ∣ ≤ L . > > |\{c \in C | \Delta(\vec{y},c) \le \rho n\}| \le L.
> > ∣ { c ∈ C ∣Δ ( y , c ) ≤ ρ n } ∣ ≤ L . > 意思就是提前给定一个相对 Hamming 距离参数 δ \delta δ ,以及列表的长度上限 L L L ,对于每一个接收到的消息 y ⃗ \vec{y} y ,在编码空间 C C C 中,只要码字 c c c 与消息 y ⃗ \vec{y} y 之间的相对 Hamming 距离小于等于 ρ n \rho n ρ n ,我们就认为 c c c 是有效的解码。同时要求符合该距离条件的有效编码 c c c 的个数不能超过 L L L ,我们就说这个编码是 ( ρ n , L ) (\rho n, L) ( ρ n , L ) -list decodable。
根据 Hamming 距离,有这样一个性质:
Proposition 1 [Essential Coding Theory, Proposition 1.4.2] Given a code C C C , the following are equivalent:
C C C has minimum distance d ≥ 2 d \ge 2 d ≥ 2 ,If d d d is odd, C C C can correct ( d − 1 ) / 2 (d−1)/2 ( d − 1 ) /2 errors. C C C can detect d − 1 d − 1 d − 1 errors.C C C can correct d − 1 d − 1 d − 1 erasures.假设 C C C 的相对 Hamming 距离为 δ \delta δ ,那么 δ = d / n \delta = d / n δ = d / n 。根据上述的性质,知道对于 C C C ,可以纠正最坏情况的错误的编码的比例为 ≤ δ 2 \le \frac{\delta}{2} ≤ 2 δ 。又由 Singleton bound 知,
> δ ≤ 1 − ρ > > \delta \le 1 - \rho
> > δ ≤ 1 − ρ > 因此,当错误的编码比例 ≤ 1 − ρ 2 \le \frac{1-\rho}{2} ≤ 2 1 − ρ 时,此时这些错误是可以纠正的,也就是可以唯一编码。
下面正式给出这一对引理。Lemma 3 描述的是解码半径超过唯一解码界 ( 1 − ρ ) / 2 (1-\rho)/2 ( 1 − ρ ) /2 的情况,而 Lemma 4 说的是解码半径小于 ( 1 − ρ ) / 2 (1-\rho)/2 ( 1 − ρ ) /2 的情况,即唯一解码。
Lemma 3 [BBHR18b, Lemma 4.3] (Soundness above unique decoding radius). For any ϵ ≤ 2 η ∣ F ∣ \epsilon \le \frac{2^{\eta}}{|\mathbb{F}|} ϵ ≤ ∣ F ∣ 2 η and f ( i ) f^{(i)} f ( i ) such that δ ( i ) > 0 \delta^{(i)}>0 δ ( i ) > 0
Pr x ( i ) ∈ F [ x ( i ) ∈ B [ f ( i ) ; 1 2 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ] ≤ 2 η ϵ ∣ F ∣ \Pr_{x^{(i)} \in \mathbb{F}} \left[ x^{(i)} \in B \left[ f^{(i)}; \frac{1}{2} \cdot \left( \delta^{(i)} (1 - \epsilon) - \rho \right) \right ] \right] \le \frac{2^{\eta}}{\epsilon |\mathbb{F}|} x ( i ) ∈ F Pr [ x ( i ) ∈ B [ f ( i ) ; 2 1 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ] ≤ ϵ ∣ F ∣ 2 η Lemma 4 [BBHR18b, Lemma 4.4] (Soundness within unique decoding radius). If δ ( i ) < ( 1 − ρ ) / 2 \delta^{(i)} < (1 - \rho) / 2 δ ( i ) < ( 1 − ρ ) /2 then
Pr x ( i ) ∈ F [ x ( i ) ∈ B [ f ( i ) ; δ ( i ) ] ] ≤ ∣ L ( i ) ∣ ∣ F ∣ . \Pr_{x^{(i)} \in \mathbb{F}} \left[ x^{(i)} \in B \left[ f^{(i)}; \delta^{(i)} \right ] \right] \le \frac{|L^{(i)}|}{|\mathbb{F}|}. x ( i ) ∈ F Pr [ x ( i ) ∈ B [ f ( i ) ; δ ( i ) ] ] ≤ ∣ F ∣ ∣ L ( i ) ∣ . Moreover, suppose that for i < r i < r i < r the sequences f ⃗ = ( f ( i ) , ⋯ , f ( r ) ) \vec{f} = (f^{(i)}, \cdots, f^{(r)}) f = ( f ( i ) , ⋯ , f ( r ) ) and x ⃗ = ( x ( i ) , ⋯ , x ( r − 1 ) ) \vec{x} = (x^{(i)}, \cdots, x^{(r - 1)}) x = ( x ( i ) , ⋯ , x ( r − 1 ) ) satisfy
for all j ∈ { i , ⋯ , r } j \in \{i, \cdots, r\} j ∈ { i , ⋯ , r } we have δ ( j ) < 1 − ρ 2 \delta^{(j)} < \frac{1-\rho}{2} δ ( j ) < 2 1 − ρ for all j ∈ { i , ⋯ , r − 1 } j \in \{i, \cdots, r - 1\} j ∈ { i , ⋯ , r − 1 } we have f ˉ ( j + 1 ) = f f ˉ ( j ) , x ( j ) ( j + 1 ) \bar{f}^{(j+1)} = f_{\bar{f}^{(j)},x^{(j)}}^{(j+1)} f ˉ ( j + 1 ) = f f ˉ ( j ) , x ( j ) ( j + 1 ) for all j ∈ { i , ⋯ , r } j \in \{i, \cdots, r\} j ∈ { i , ⋯ , r } we have x ( j ) ∉ B [ f ( i ) ; δ ( j ) ] x^{(j)} \notin B[f^{(i)};\delta^{(j)}] x ( j ) ∈ / B [ f ( i ) ; δ ( j ) ] then
Pr s ( i ) ∈ D ( i ) [ QUERY ( f ⃗ , x ⃗ ) = reject ] = 1 \Pr_{s^{(i)} \in D^{(i)}} \left[ \text{QUERY}(\vec{f}, \vec{x}) = \text{reject} \right] = 1 s ( i ) ∈ D ( i ) Pr [ QUERY ( f , x ) = reject ] = 1 and consequently
Pr s ( i ) ∈ L ( i ) [ QUERY ( f ⃗ , x ⃗ ) = reject ] ≥ ∣ D ( i ) ∣ ∣ L ( i ) ∣ = δ ( i ) \Pr_{s^{(i)} \in L^{(i)}} \left[ \text{QUERY}(\vec{f}, \vec{x}) = \text{reject} \right] \ge \frac{|D^{(i)}|}{| L^{(i)} |} = \delta^{(i)} s ( i ) ∈ L ( i ) Pr [ QUERY ( f , x ) = reject ] ≥ ∣ L ( i ) ∣ ∣ D ( i ) ∣ = δ ( i ) 根据失真集的定义,这两个引理说得是在不同的解码半径 ϵ \epsilon ϵ 下 Verifier 选取随机数 x ( i ) x^{(i)} x ( i ) 进入失真集的概率。
Lemma 4 后面的 moreover 跟着的结论说的是如果满足如下的条件:
对于所有的 j ∈ { i , ⋯ , r } j \in \{i, \cdots, r\} j ∈ { i , ⋯ , r } ,满足唯一解码,也就是 δ ( j ) < 1 − ρ 2 \delta^{(j)} < \frac{1 - \rho}{2} δ ( j ) < 2 1 − ρ . 对于所有的 j ∈ { i , ⋯ , r − 1 } j \in \{i, \cdots, r - 1\} j ∈ { i , ⋯ , r − 1 } ,在 RS ( j ) \text{RS}^{(j)} RS ( j ) 中,选取距离 f ( j ) f^{(j)} f ( j ) 最近的码字 f ˉ ( j ) \bar{f}^{(j)} f ˉ ( j ) ,与随机数 x ( i ) x^{(i)} x ( i ) 构造的下一步的函数为 f f ˉ ( j ) , x ( j ) ( j + 1 ) f_{\bar{f}^{(j)},x^{(j)}}^{(j+1)} f f ˉ ( j ) , x ( j ) ( j + 1 ) ,假设其等于在 RS ( j + 1 ) \text{RS}^{(j+1)} RS ( j + 1 ) 中距离 f ( j + 1 ) f^{(j+1)} f ( j + 1 ) 最近的码字,即满足 f ˉ ( j + 1 ) = f f ˉ ( j ) , x ( j ) ( j + 1 ) \bar{f}^{(j+1)} = f_{\bar{f}^{(j)},x^{(j)}}^{(j+1)} f ˉ ( j + 1 ) = f f ˉ ( j ) , x ( j ) ( j + 1 ) . 对于所有的 j ∈ { i , ⋯ , r − 1 } j \in \{i, \cdots, r - 1\} j ∈ { i , ⋯ , r − 1 } ,满足随机数 x ( j ) x^{(j)} x ( j ) 没有进入失真集,即 x ( j ) ∉ B [ f ( i ) ; δ ( j ) ] x^{(j)} \notin B[f^{(i)};\delta^{(j)}] x ( j ) ∈ / B [ f ( i ) ; δ ( j ) ] . 那么得到的结论就是在 QUERY 阶段,如果从“坏”的陪集 D ( i ) D^{(i)} D ( i ) 里去选择 s i s^{i} s i ,那么 Veriifer 一定会在 QUERY 阶段拒绝,即
Pr s ( i ) ∈ D ( i ) [ QUERY ( f ⃗ , x ⃗ ) = reject ] = 1 \Pr_{s^{(i)} \in D^{(i)}} \left[ \text{QUERY}(\vec{f}, \vec{x}) = \text{reject} \right] = 1 s ( i ) ∈ D ( i ) Pr [ QUERY ( f , x ) = reject ] = 1 从而可以得到如果 s i s^{i} s i 是从整个 L ( i ) L^{(i)} L ( i ) 中选取的,QUERY 阶段 Verifier 拒绝的概率至少为 ∣ D ( i ) ∣ ∣ L ( i ) ∣ \frac{|D^{(i)}|}{| L^{(i)} |} ∣ L ( i ) ∣ ∣ D ( i ) ∣ ,即
Pr s ( i ) ∈ L ( i ) [ QUERY ( f ⃗ , x ⃗ ) = reject ] ≥ ∣ D ( i ) ∣ ∣ L ( i ) ∣ = δ ( i ) . \Pr_{s^{(i)} \in L^{(i)}} \left[ \text{QUERY}(\vec{f}, \vec{x}) = \text{reject} \right] \ge \frac{|D^{(i)}|}{| L^{(i)} |} = \delta^{(i)}. s ( i ) ∈ L ( i ) Pr [ QUERY ( f , x ) = reject ] ≥ ∣ L ( i ) ∣ ∣ D ( i ) ∣ = δ ( i ) . 现在已经做好准备工作了,开始证明协议的 soundness。到目前为止,考虑之前提到可能发生误差的情况,soundness 证明思路如下。
在 COMMIT 阶段,Verifier 可能选到失真集中的随机数。
现在 Lemma 3 和 Lemma 4 的结论可以帮助我们去估计发生这种情况的概率。我们称 Verifier 选到失真集中的随机数 x ( i ) x^{(i)} x ( i ) 为发生了“坏”的事件,Verifier 总共会选择 r r r 个随机数,记为 x ( 0 ) , ⋯ , x ( r − 1 ) x^{(0)}, \cdots, x^{(r-1)} x ( 0 ) , ⋯ , x ( r − 1 ) ,每一轮将随机数选到了失真集中的事件分别记为 E ( 0 ) , ⋯ , E ( r − 1 ) E^{(0)}, \cdots, E^{(r-1)} E ( 0 ) , ⋯ , E ( r − 1 ) ,我们估计发生了一些“坏”的事件的概率的界,其概率最多为
3 ∣ L ( 0 ) ∣ ∣ F ∣ . \frac{3|L^{(0)}|}{|\mathbb{F}|}. ∣ F ∣ 3∣ L ( 0 ) ∣ . 在 QUERY 阶段,Verifier 可能会拒绝。
假设情况 1 不会发生,在这种条件下,估计 QUERY 阶段 Verifier 拒绝的概率的界,只进行完整的一轮的拒绝概率至少为
min { δ ( 0 ) , 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ 4 } . \min \left \{\delta^{(0)}, \frac{1-3\rho-2^{\eta}/\sqrt{|L^{(0)}|}}{4} \right \}. min { δ ( 0 ) , 4 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ } . 同时考虑情况 1 和情况 2 都会发生,同时考虑 Verifier 在 QUERY 阶段重复了 l l l 次,那么可以得到 FRI 协议的 soundness 至少为
s − ( δ ( 0 ) ) ≜ 1 − ( 3 ∣ L ( 0 ) ∣ ∣ F ∣ + ( 1 − min { δ ( 0 ) , 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ 4 } ) l ) . \textbf{s}^{-}(\delta^{(0)}) \triangleq 1 - \left ( \frac{3|L^{(0)}|}{|\mathbb{F}|} + \left (1 - \min \left \{\delta^{(0)}, \frac{1-3\rho-2^{\eta}/\sqrt{|L^{(0)}|}}{4} \right \}\right )^{l} \right). s − ( δ ( 0 ) ) ≜ 1 − ⎝ ⎛ ∣ F ∣ 3∣ L ( 0 ) ∣ + ( 1 − min { δ ( 0 ) , 4 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ } ) l ⎠ ⎞ . 🤔 Thoughts
真的会发生一种情况,那就是 Verifier 选取了一些随机数 x ( i ) x^{(i)} x ( i ) ,进入了失真集中,然后由一个距离 RS code 比较远(假设 ϵ \epsilon ϵ 远)的 f ( i ) f^{(i)} f ( i ) 以及 x ( i ) x^{(i)} x ( i ) 构造出的 f f ( i ) , x ( i ) ( i + 1 ) f_{f^{(i)},x^{(i)}}^{(i+1)} f f ( i ) , x ( i ) ( i + 1 ) 的这个距离没有保持,比原来更小,也就是失真了,这个时候如果我们运行 QUERY 步骤,我们没有能力能够辨别这种情况,也就是如果是一个多项式 f f ( i ) , x ( i ) ( i + 1 ) f_{f^{(i)},x^{(i)}}^{(i+1)} f f ( i ) , x ( i ) ( i + 1 ) 它本身没有在 RS ( i + 1 ) \text{RS}^{(i+1)} RS ( i + 1 ) 中,同时呢它又距离 RS ( i + 1 ) \text{RS}^{(i+1)} RS ( i + 1 ) 小于 ϵ \epsilon ϵ ,Veriifier 具备的能力是能够辨别出一个多项式它距离 RS code 空间有 ϵ \epsilon ϵ 那么远,现在它困惑了,迷失了,它认为 Prover 没有作弊,因为这个时候确实小于给的一个参数 ϵ \epsilon ϵ ,最后它输出了 accept。
😎 关于整体 soundness 概率推导的想法
首先考虑一个最简单的 ZK 协议 (该例子与图片来自 Zero Knowledge Proofs - Introduction and History of ZKP )
我们现在考虑 soundness 分析,说的是在 Prover 给出一个不是有两种颜色的纸的情况下,计算 Verifier 拒绝的概率。这里假设 Prover 用的是一张只有一个颜色的纸来和 Veriifier 进行交互,那么每次 Prover 最多有 1 / 2 1/2 1/2 的概率能够通过,也就是 Veriifer 能够输出 accpet.最终得到的概率如下图所示。
如果我们来分析 soundness ,那就是 Verifier 拒绝的概率,接受的概率最多为 1 / 2 1/2 1/2 ,那么一次交互拒绝的概率就至少为 1 / 2 1/2 1/2 。如果要重复 k k k 次,那么 soundness 为,对于任意的 P ∗ P^* P ∗ ,有
> Pr [ ⟨ P ∗ ↔ V ⟩ = reject ∣ This page only contains 1 color ] ≥ 1 − ( 1 2 ) k > > \Pr[\left \langle \text{P}^* \leftrightarrow \text{V} \right \rangle = \text{reject}|\text{This page only contains 1 color}] \ge 1 - \left(\frac{1}{2}\right)^k
> > Pr [ ⟨ P ∗ ↔ V ⟩ = reject ∣ This page only contains 1 color ] ≥ 1 − ( 2 1 ) k > 类似于这个简单的例子分析 soundness 的过程,我们来看看 FRI 的 soundness。简单例子的概率考虑的是在输入错误的知识的情况下,从 Verifier 抛随机硬币中我们有概率能使得 Verifier 最后接受。对于 FRI 协议来说,就是在我们输入一个 f ( 0 ) ∉ RS ( 0 ) f^{(0)} \notin \text{RS}^{(0)} f ( 0 ) ∈ / RS ( 0 ) ,它不在 RS ( 0 ) \text{RS}^{(0)} RS ( 0 ) 中,那么如何衡量呢,我们衡量它在 block-wise 测度下距离 RS ( 0 ) \text{RS}^{(0)} RS ( 0 ) 有多远,即δ ( 0 ) ≜ Δ ( 0 ) ( f 0 , RS ( 0 ) ) > 0 \delta^{(0)} \triangleq \Delta^{(0)}(f^{0}, \text{RS}^{(0)}) > 0 δ ( 0 ) ≜ Δ ( 0 ) ( f 0 , RS ( 0 ) ) > 0 。接着我们类似地考虑 Veriifier 抛随机数能让 Prover 有空子可钻。由于 Verifier 抛了一些随机数 x ( i ) x^{(i)} x ( i ) 使得 Prover 能够用错误的 f ( 0 ) ∉ RS ( 0 ) f^{(0)} \notin \text{RS}^{(0)} f ( 0 ) ∈ / RS ( 0 ) 通过协议。也就是一些“坏”的事件发生了,使得选到的随机数进入了失真集,那么 Verifier 通过的概率最多为 3 ∣ L ( 0 ) ∣ ∣ F ∣ \frac{3|L^{(0)}|}{|\mathbb{F}|} ∣ F ∣ 3∣ L ( 0 ) ∣ .
还有一个是发生在 QUERY 阶段 Verifier 会拒绝的概率,上面那个例子 Verifier 直接判断 Prover 发的 coin’ 与 Verifier 自己手里有的 coin 是否相等,是直接的,也没有引入什么随机性,如果计算不相等,就会直接拒绝,不会说还有钻空子的机会。那么我们现在审视下 FRI 协议中的 QUERY 阶段是否有什么会是包含随机性的呢?我们会发现在 QUERY 阶段,Verifier 会从 L ( 0 ) L^{(0)} L ( 0 ) 中选取随机数 s ( 0 ) s^{(0)} s ( 0 ) ,然后再进行计算检查 round consistency 是否能够通过,这个 s ( 0 ) s^{(0)} s ( 0 ) 引入的随机性的过程就是我们去估计在 QUERY 阶段 Verifier 会拒绝的概率的关键。
为了能够更加清晰地分析清楚,假设 COMMIT 阶段 Verifier 选取的随机数 x ( i ) x^{(i)} x ( i ) 都没有落入失真集。接着我们看看 QUERY 阶段引入的随机,也就是 s ( 0 ) s^{(0)} s ( 0 ) 的选取。可以用 Lemma 4 的 moreover 的结论来看,如果其中的三个条件都成立,给出了一个拒绝的可能性,那就是至少为 δ ( 0 ) \delta^{(0)} δ ( 0 ) ,然后再来考虑这三个条件不同时满足的情况下 Verifier 会拒绝的概率至少是多少。这时在证明的过程中会用到集合 A err ( i ) A_{\text{err}}^{(i)} A err ( i ) 和 D ( i ) D^{(i)} D ( i ) 。
下面正式给出 Soundness 证明。
定理 1 Soundness 证明 :设 ϵ = 2 η ∣ L ( r / 2 ) ∣ \epsilon = \frac{2^{\eta}}{|L^{(r/2)}|} ϵ = ∣ L ( r /2 ) ∣ 2 η ;为简单起见,假设 r r r 是偶数(使用 ϵ = 2 η ∣ L ⌈ r / 2 ⌉ ∣ \epsilon = \frac{2^{\eta}}{|L^{\left \lceil r/2 \right \rceil }|} ϵ = ∣ L ⌈ r /2 ⌉ ∣ 2 η 会得到同样的界,但是其分析会有一点复杂)。
Part I - 一系列的坏事件 第 i i i 个坏事件 E ( i ) E^{(i)} E ( i ) 定义如下:
large distance: 如果 δ ( i ) ≥ 1 − ρ 2 \delta^{(i)} \ge \frac{1 - \rho}{2} δ ( i ) ≥ 2 1 − ρ ,那么 E ( i ) E^{(i)} E ( i ) 就是事件x ( i ) ∈ B [ f ( i ) ; 1 2 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] x^{(i)} \in B \left[ f^{(i)}; \frac{1}{2} \cdot \left( \delta^{(i)} (1 - \epsilon) - \rho \right) \right ] x ( i ) ∈ B [ f ( i ) ; 2 1 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] small distance: 如果 δ ( i ) < 1 − ρ 2 \delta^{(i)} < \frac{1 - \rho}{2} δ ( i ) < 2 1 − ρ ,那么 E ( i ) E^{(i)} E ( i ) 就是事件x ( i ) ∈ B [ f ( i ) ; δ ( i ) ] x^{(i)} \in B \left[ f^{(i)}; \delta^{(i)} \right] x ( i ) ∈ B [ f ( i ) ; δ ( i ) ] 假设事件 E ( i ) E^{(i)} E ( i ) 没有发生,
如果 δ ( i ) < 1 − ρ 2 \delta^{(i)} < \frac{1 - \rho}{2} δ ( i ) < 2 1 − ρ ,那么根据事件 E ( i ) E^{(i)} E ( i ) 以及失真集的定义,可以得到
x ( i ) ∉ B [ f ( i ) ; δ ( i ) ] , x^{(i)} \notin B \left[ f^{(i)}; \delta^{(i)} \right], x ( i ) ∈ / B [ f ( i ) ; δ ( i ) ] , 即
x ( i ) ∉ { x ( i ) ∈ F ∣ Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) < δ ( i ) } , x^{(i)} \notin \left\{ x^{(i)} \in \mathbb{F} | \Delta_H \left( f_{f^{(i)},x^{(i)}}^{(i+1)},\text{RS}^{(i+1)}\right) < \delta^{(i)} \right\}, x ( i ) ∈ / { x ( i ) ∈ F ∣ Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) < δ ( i ) } , 因此可得
Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ δ ( i ) \Delta_H \left( f_{f^{(i)},x^{(i)}}^{(i+1)},\text{RS}^{(i+1)}\right) \ge \delta^{(i)} Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ δ ( i ) 又根据 Block-wise 距离不等式得
Δ ( i + 1 ) ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ δ ( i ) \Delta^{(i+1)} \left( f_{f^{(i)},x^{(i)}}^{(i+1)},\text{RS}^{(i+1)}\right) \ge \Delta_H \left( f_{f^{(i)},x^{(i)}}^{(i+1)},\text{RS}^{(i+1)}\right) \ge \delta^{(i)} Δ ( i + 1 ) ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ δ ( i ) 如果 δ ( i ) ≥ 1 − ρ 2 \delta^{(i)} \ge \frac{1 - \rho}{2} δ ( i ) ≥ 2 1 − ρ ,那么根据事件 E ( i ) E^{(i)} E ( i ) 以及失真集的定义,可以得到
Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ 1 2 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ≥ 1 2 ⋅ ( ( 1 − ρ ) 2 ( 1 − ϵ ) − ρ ) = ( 1 − ρ ) ( 1 − ϵ ) 4 − ρ 2 = 1 − 3 ρ − ϵ + ρ ϵ 4 ≥ 1 − 3 ρ − ϵ 4 \begin{aligned}
\Delta_H \left( f_{f^{(i)},x^{(i)}}^{(i+1)},\text{RS}^{(i+1)}\right) & \ge \frac{1}{2} \cdot \left( \delta^{(i)} (1 - \epsilon) - \rho \right) \\
& \ge \frac{1}{2} \cdot \left( \frac{(1 - \rho)}{2} (1 - \epsilon) - \rho \right) \\
& = \frac{(1 - \rho)(1 - \epsilon)}{4} - \frac{\rho}{2} \\
& = \frac{1 - 3\rho - \epsilon + \rho \epsilon}{4} \\
& \ge \frac{1 - 3\rho - \epsilon }{4}
\end{aligned} Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ 2 1 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ≥ 2 1 ⋅ ( 2 ( 1 − ρ ) ( 1 − ϵ ) − ρ ) = 4 ( 1 − ρ ) ( 1 − ϵ ) − 2 ρ = 4 1 − 3 ρ − ϵ + ρ ϵ ≥ 4 1 − 3 ρ − ϵ 根据 Block-wise 距离不等式得
$$
Δ ( i + 1 ) ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ 1 − 3 ρ − ϵ 4 \Delta^{(i+1)} \left( f_{f^{(i)},x^{(i)}}^{(i+1)},\text{RS}^{(i+1)}\right) \ge \Delta_H \left( f_{f^{(i)},x^{(i)}}^{(i+1)},\text{RS}^{(i+1)}\right) \ge \frac{1 - 3\rho - \epsilon }{4} Δ ( i + 1 ) ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ 4 1 − 3 ρ − ϵ $$
记 δ 0 = 1 − 3 ρ − ϵ 4 \delta_0 = \frac{1 - 3\rho - \epsilon }{4} δ 0 = 4 1 − 3 ρ − ϵ , 则总结上述两种情况,如果没有事件 E ( i ) E^{(i)} E ( i ) 没有发生,则有
Δ ( i + 1 ) ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ min { δ ( i ) , δ 0 } \Delta^{(i+1)} \left( f_{f^{(i)},x^{(i)}}^{(i+1)},\text{RS}^{(i+1)}\right) \ge \min \left \{ \delta^{(i)}, \delta_0 \right \} Δ ( i + 1 ) ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ min { δ ( i ) , δ 0 } Part II - 界定一个坏的事件发生的概率 通过 Lemma 3 和 Lemma 4,以及我们对参数 ϵ \epsilon ϵ 的选择,有
Pr [ E ( i ) ] ≤ max { 2 η ϵ ∣ F ∣ , ∣ L ( i ) ∣ ∣ F ∣ } = max { ∣ L ( r / 2 ) ∣ ∣ F ∣ , ∣ L ( i ) ∣ ∣ F ∣ } \Pr \left[E^{(i)}\right] \le \max \left\{ \frac{2^{\eta}}{\epsilon |\mathbb{F}|}, \frac{|L^{(i)}|}{|\mathbb{F}|} \right\} = \max \left\{ \frac{|L^{(r/2)}|}{|\mathbb{F}|}, \frac{|L^{(i)}|}{|\mathbb{F}|} \right\} Pr [ E ( i ) ] ≤ max { ϵ ∣ F ∣ 2 η , ∣ F ∣ ∣ L ( i ) ∣ } = max { ∣ F ∣ ∣ L ( r /2 ) ∣ , ∣ F ∣ ∣ L ( i ) ∣ } 由于 ∣ L i ∣ |L^{i}| ∣ L i ∣ 是递减的,因此,当 i ≤ r / 2 i \le r/2 i ≤ r /2 时,
max { ∣ L ( r / 2 ) ∣ ∣ F ∣ , ∣ L ( i ) ∣ ∣ F ∣ } ≤ ∣ L ( i ) ∣ ∣ F ∣ \max \left\{ \frac{|L^{(r/2)}|}{|\mathbb{F}|}, \frac{|L^{(i)}|}{|\mathbb{F}|} \right\} \le \frac{|L^{(i)}|}{|\mathbb{F}|} max { ∣ F ∣ ∣ L ( r /2 ) ∣ , ∣ F ∣ ∣ L ( i ) ∣ } ≤ ∣ F ∣ ∣ L ( i ) ∣ 当 i > r / 2 i > r/2 i > r /2 时,
max { ∣ L ( r / 2 ) ∣ ∣ F ∣ , ∣ L ( i ) ∣ ∣ F ∣ } ≤ ∣ L ( r / 2 ) ∣ ∣ F ∣ \max \left\{ \frac{|L^{(r/2)}|}{|\mathbb{F}|}, \frac{|L^{(i)}|}{|\mathbb{F}|} \right\} \le \frac{|L^{(r/2)}|}{|\mathbb{F}|} max { ∣ F ∣ ∣ L ( r /2 ) ∣ , ∣ F ∣ ∣ L ( i ) ∣ } ≤ ∣ F ∣ ∣ L ( r /2 ) ∣ 综上得
max { ∣ L ( r / 2 ) ∣ ∣ F ∣ , ∣ L ( i ) ∣ ∣ F ∣ } ≤ { ∣ L ( i ) ∣ ∣ F ∣ i ≤ r / 2 ∣ L ( r / 2 ) ∣ ∣ F ∣ i > r / 2 \max \left\{ \frac{|L^{(r/2)}|}{|\mathbb{F}|}, \frac{|L^{(i)}|}{|\mathbb{F}|} \right\} \le
\begin{cases}
\frac{|L^{(i)}|}{|\mathbb{F}|} & i \le r/2\\
\frac{|L^{(r/2)}|}{|\mathbb{F}|} & i > r/2
\end{cases} max { ∣ F ∣ ∣ L ( r /2 ) ∣ , ∣ F ∣ ∣ L ( i ) ∣ } ≤ ⎩ ⎨ ⎧ ∣ F ∣ ∣ L ( i ) ∣ ∣ F ∣ ∣ L ( r /2 ) ∣ i ≤ r /2 i > r /2 因此对于事件 E ( 0 ) , ⋯ , E ( r − 1 ) E^{(0)}, \cdots, E^{(r-1)} E ( 0 ) , ⋯ , E ( r − 1 ) ,都不发生的概率至少是
Pr [ ⋀ i = 1 r − 1 ¬ E ( i ) ] ≥ 1 − ( ∑ i ≤ r / 2 ∣ L ( i ) ∣ ∣ F ∣ + r 2 ∣ L ( r / 2 ) ∣ ∣ F ∣ ) \begin{aligned}
\Pr \left[\bigwedge_{i=1}^{r-1} \neg E^{(i)} \right] & \ge 1 - \left(\sum_{i \le r/2} \frac{|L^{(i)}|}{|\mathbb{F}|} + \frac{r}{2}\frac{|L^{(r/2)}|}{|\mathbb{F}|} \right) \\
\end{aligned} Pr [ i = 1 ⋀ r − 1 ¬ E ( i ) ] ≥ 1 − ⎝ ⎛ i ≤ r /2 ∑ ∣ F ∣ ∣ L ( i ) ∣ + 2 r ∣ F ∣ ∣ L ( r /2 ) ∣ ⎠ ⎞ 由于 dim ( L ( i ) ) = dim ( L ( 0 ) ) − i η \dim(L^{(i)}) = \dim(L^{(0)}) - i\eta dim ( L ( i ) ) = dim ( L ( 0 ) ) − i η ,因此
∣ L ( i ) ∣ = 2 dim ( L ( i ) ) = 2 dim ( L ( 0 ) ) − i η = 2 dim ( L ( 0 ) ) ⋅ ( 1 2 η ) i = ∣ L ( 0 ) ∣ ( 1 2 η ) i |L^{(i)}| = 2^{\dim(L^{(i)})} = 2^{\dim(L^{(0)}) - i\eta} = 2^{\dim(L^{(0)})} \cdot \left(\frac{1}{2^{\eta}}\right)^{i} = |L^{(0)}| \left(\frac{1}{2^{\eta}}\right)^{i} ∣ L ( i ) ∣ = 2 d i m ( L ( i ) ) = 2 d i m ( L ( 0 ) ) − i η = 2 d i m ( L ( 0 ) ) ⋅ ( 2 η 1 ) i = ∣ L ( 0 ) ∣ ( 2 η 1 ) i 根据 r r r 的定义
r ≜ ⌊ k ( 0 ) − R η ⌋ r \triangleq \lfloor \frac{k^{(0)} - \mathcal{R}}{\eta}\rfloor r ≜ ⌊ η k ( 0 ) − R ⌋ 而 k ( 0 ) = log ∣ L ( 0 ) ∣ k^{(0)} = \log |L^{(0)}| k ( 0 ) = log ∣ L ( 0 ) ∣ ,可得
r = ⌊ k ( 0 ) − R η ⌋ ≤ k ( 0 ) − R η = log ∣ L ( 0 ) ∣ − R η r = \lfloor \frac{k^{(0)} - \mathcal{R}}{\eta}\rfloor \le \frac{k^{(0)} - \mathcal{R}}{\eta} = \frac{\log |L^{(0)}| - \mathcal{R}}{\eta} r = ⌊ η k ( 0 ) − R ⌋ ≤ η k ( 0 ) − R = η log ∣ L ( 0 ) ∣ − R 则概率不等式为
Pr [ ⋀ i = 1 r − 1 ¬ E ( i ) ] ≥ 1 − ( ∑ i ≤ r / 2 ∣ L ( i ) ∣ ∣ F ∣ + r 2 ∣ L ( r / 2 ) ∣ ∣ F ∣ ) ≥ 1 − ( ∑ i ≤ r / 2 ∣ L ( 0 ) ∣ ( 1 2 η ) i 1 ∣ F ∣ + log ∣ L ( 0 ) ∣ − R 2 η ∣ L ( r / 2 ) ∣ ∣ F ∣ ) ( 代入 ∣ L ( i ) ∣ = ∣ L ( 0 ) ∣ ( 1 2 η ) i , r ≤ log ∣ L ( 0 ) ∣ − R η ) ≥ 1 − ( ∣ L ( 0 ) ∣ ∣ F ∣ ∑ i ≤ r / 2 ( 1 2 η ) i + log ∣ L ( 0 ) ∣ − R 2 η ⋅ ∣ L ( 0 ) ∣ 2 η log ∣ L ( 0 ) ∣ − R 2 η 1 ∣ F ∣ ) ( 代入 ∣ L ( r / 2 ) ∣ = ∣ L ( 0 ) ∣ ( 1 2 η ) r / 2 ≤ ∣ L ( 0 ) ∣ ( 1 2 η ) log ∣ L ( 0 ) ∣ − R 2 η = ∣ L ( 0 ) ∣ 2 η log ∣ L ( 0 ) ∣ − R 2 η ) ≥ 1 − ( ∣ L ( 0 ) ∣ ∣ F ∣ ∑ i ≤ r / 2 ( 1 2 η ) i + log ∣ L ( 0 ) ∣ − R η ⋅ ∣ L ( 0 ) ∣ 2 η log ∣ L ( 0 ) ∣ − R 2 η 1 ∣ F ∣ ) ( 因为 log ∣ L ( 0 ) ∣ − R 2 η ≤ log ∣ L ( 0 ) ∣ − R η , 而前面还有一个负号,因此整体缩小了 ) ≥ 1 − ( ∣ L ( 0 ) ∣ ∣ F ∣ ∑ i ≤ r / 2 ( 1 2 ) i + log ∣ L ( 0 ) ∣ − R η ⋅ ∣ L ( 0 ) ∣ 2 η log ∣ L ( 0 ) ∣ − R 2 η 1 ∣ F ∣ ) ( 因为 η ≥ 1 ⇒ 2 η ≥ 2 ⇒ 1 2 η ≤ 1 2 ⇒ ∑ i ≤ r / 2 ( 1 2 η ) i ≤ ∑ i ≤ r / 2 ( 1 2 ) i ) ≥ 1 − 1 ∣ F ∣ ( 2 ∣ L ( 0 ) ∣ + log ∣ L ( 0 ) ∣ − R η ⋅ ∣ L ( 0 ) ∣ 2 η log ∣ L ( 0 ) ∣ − R 2 η ) ( 因为利用等差数列求和公式可得 ∑ i ≤ r / 2 ( 1 2 ) i = 1 ( 1 − ( 1 2 ) r / 2 + 1 ) 1 − 1 2 ≤ 1 2 ) ≥ 1 − 1 ∣ F ∣ ( 2 ∣ L ( 0 ) ∣ + log ( ρ ∣ L ( 0 ) ∣ ) ⋅ ∣ L ( 0 ) ∣ 2 η log ∣ L ( 0 ) ∣ − R 2 η ) ( 因为 log ∣ L ( 0 ) ∣ − R η ≤ log ∣ L ( 0 ) ∣ − R = log ∣ L ( 0 ) ∣ − log ( 1 / ρ ) = log ( ρ ∣ L ( 0 ) ∣ ) ) = 1 − 1 ∣ F ∣ ( 2 ∣ L ( 0 ) ∣ + log ( ρ ∣ L ( 0 ) ∣ ) ⋅ ∣ L ( 0 ) ∣ / ρ ) ( 因为 ∣ L ( 0 ) ∣ 2 η log ∣ L ( 0 ) ∣ − R 2 η = ∣ L ( 0 ) ∣ 2 log ∣ L ( 0 ) ∣ − R 2 = ∣ L ( 0 ) ∣ 2 log ( ρ ∣ L ( 0 ) ∣ ) 2 = ∣ L ( 0 ) ∣ 2 log ( ρ ∣ L ( 0 ) ∣ ) = ∣ L ( 0 ) ∣ ρ ∣ L ( 0 ) ∣ = ∣ L ( 0 ) ∣ / ρ ) \begin{aligned}
\Pr \left[\bigwedge_{i=1}^{r-1} \neg E^{(i)} \right] & \ge 1 - \left(\sum_{i \le r/2} \frac{|L^{(i)}|}{|\mathbb{F}|} + \frac{r}{2}\frac{|L^{(r/2)}|}{|\mathbb{F}|} \right) \\
& \ge 1 - \left(\sum_{i \le r/2} |L^{(0)}| \left(\frac{1}{2^{\eta}}\right)^{i} \frac{1}{|\mathbb{F}|} + \frac{\log |L^{(0)}| - \mathcal{R}}{2\eta}\frac{|L^{(r/2)}|}{|\mathbb{F}|} \right) \\
& \color{blue}{(\text{代入}|L^{(i)}| = |L^{(0)}| \left(\frac{1}{2^{\eta}}\right)^{i}, r \le \frac{\log |L^{(0)}| - \mathcal{R}}{\eta})}\\
& \ge 1 - \left(\frac{|L^{(0)}|}{|\mathbb{F}|} \sum_{i \le r/2} \left(\frac{1}{2^{\eta}}\right)^{i} + \frac{\log |L^{(0)}| - \mathcal{R}}{2\eta} \cdot \frac{|L^{(0)}|}{2^{\eta \frac{\log |L^{(0)}| - \mathcal{R}}{2 \eta} }}\frac{1}{|\mathbb{F}|} \right) \\
& \color{blue}{( \text{代入}|L^{(r/2)}| = |L^{(0)}|\left(\frac{1}{2^{\eta}}\right)^{r/2} \le |L^{(0)}|\left(\frac{1}{2^{\eta}}\right)^{\frac{\log |L^{(0)}| - \mathcal{R}}{2 \eta}} = \frac{|L^{(0)}|}{2^{\eta \frac{\log |L^{(0)}| - \mathcal{R}}{2 \eta} }} )} \\
& \ge 1 - \left(\frac{|L^{(0)}|}{|\mathbb{F}|} \sum_{i \le r/2} \left(\frac{1}{2^{\eta}}\right)^{i} + \frac{\log |L^{(0)}| - \mathcal{R}}{\eta} \cdot \frac{|L^{(0)}|}{2^{\eta \frac{\log |L^{(0)}| - \mathcal{R}}{2 \eta} }}\frac{1}{|\mathbb{F}|} \right) \\
& \color{blue}{(\text{因为} \frac{\log |L^{(0)}| - \mathcal{R}}{2 \eta} \le \frac{\log |L^{(0)}| - \mathcal{R}}{\eta},\text{而前面还有一个负号,因此整体缩小了})} \\
& \ge 1 - \left(\frac{|L^{(0)}|}{|\mathbb{F}|} \sum_{i \le r/2} \left(\frac{1}{2}\right)^{i} + \frac{\log |L^{(0)}| - \mathcal{R}}{\eta} \cdot \frac{|L^{(0)}|}{2^{\eta \frac{\log |L^{(0)}| - \mathcal{R}}{2 \eta} }}\frac{1}{|\mathbb{F}|} \right) \\
& \color{blue}{(\text{因为} \eta \ge 1 \Rightarrow 2^{\eta} \ge 2 \Rightarrow \frac{1}{2^{\eta}} \le \frac{1}{2} \Rightarrow \sum_{i \le r/2} \left(\frac{1}{2^{\eta}}\right)^{i} \le \sum_{i \le r/2} \left(\frac{1}{2}\right)^{i} )} \\
& \ge 1 - \frac{1}{|\mathbb{F}|}\left(2|L^{(0)}| + \frac{\log |L^{(0)}| - \mathcal{R}}{\eta} \cdot \frac{|L^{(0)}|}{2^{\eta \frac{\log |L^{(0)}| - \mathcal{R}}{2 \eta} }}\right) \\
& \color{blue}{(\text{因为利用等差数列求和公式可得} \sum_{i \le r/2} \left(\frac{1}{2}\right)^{i} = \frac{1 \left(1 - (\frac{1}{2})^{r/2 + 1}\right)}{1 - \frac{1}{2}} \le \frac{1}{2} )} \\
& \ge 1 - \frac{1}{|\mathbb{F}|}\left(2|L^{(0)}| + \log(\rho|L^{(0)}| ) \cdot \frac{|L^{(0)}|}{2^{\eta \frac{\log |L^{(0)}| - \mathcal{R}}{2 \eta} }}\right) \\
& \color{blue}{(\text{因为} \frac{\log |L^{(0)}| - \mathcal{R}}{\eta} \le \log |L^{(0)}| - \mathcal{R} = \log |L^{(0)}| - \log (1/\rho) = \log(\rho|L^{(0)}| ))}\\
& = 1 - \frac{1}{|\mathbb{F}|}\left(2|L^{(0)}| + \log(\rho|L^{(0)}| ) \cdot \sqrt{|L^{(0)}|/\rho} \right) \\
& \color{blue}{(\text{因为} \frac{|L^{(0)}|}{2^{\eta \frac{\log |L^{(0)}| - \mathcal{R}}{2 \eta}}} = \frac{|L^{(0)}|}{2^{\frac{\log |L^{(0)}| - \mathcal{R}}{2}}} = \frac{|L^{(0)}|}{2^{\frac{\log (\rho |L^{(0)}|)}{2}}} = \frac{|L^{(0)}|}{2^{\log(\sqrt{\rho |L^{(0)}|})}} = \frac{|L^{(0)}|}{\sqrt{\rho |L^{(0)}|}} = \sqrt{|L^{(0)}|/\rho})}\\
\end{aligned} Pr [ i = 1 ⋀ r − 1 ¬ E ( i ) ] ≥ 1 − ⎝ ⎛ i ≤ r /2 ∑ ∣ F ∣ ∣ L ( i ) ∣ + 2 r ∣ F ∣ ∣ L ( r /2 ) ∣ ⎠ ⎞ ≥ 1 − ⎝ ⎛ i ≤ r /2 ∑ ∣ L ( 0 ) ∣ ( 2 η 1 ) i ∣ F ∣ 1 + 2 η log ∣ L ( 0 ) ∣ − R ∣ F ∣ ∣ L ( r /2 ) ∣ ⎠ ⎞ ( 代入 ∣ L ( i ) ∣ = ∣ L ( 0 ) ∣ ( 2 η 1 ) i , r ≤ η l o g ∣ L ( 0 ) ∣ − R ) ≥ 1 − ⎝ ⎛ ∣ F ∣ ∣ L ( 0 ) ∣ i ≤ r /2 ∑ ( 2 η 1 ) i + 2 η log ∣ L ( 0 ) ∣ − R ⋅ 2 η 2 η l o g ∣ L ( 0 ) ∣ − R ∣ L ( 0 ) ∣ ∣ F ∣ 1 ⎠ ⎞ ( 代入 ∣ L ( r /2 ) ∣ = ∣ L ( 0 ) ∣ ( 2 η 1 ) r /2 ≤ ∣ L ( 0 ) ∣ ( 2 η 1 ) 2 η l o g ∣ L ( 0 ) ∣ − R = 2 η 2 η l o g ∣ L ( 0 ) ∣ − R ∣ L ( 0 ) ∣ ) ≥ 1 − ⎝ ⎛ ∣ F ∣ ∣ L ( 0 ) ∣ i ≤ r /2 ∑ ( 2 η 1 ) i + η log ∣ L ( 0 ) ∣ − R ⋅ 2 η 2 η l o g ∣ L ( 0 ) ∣ − R ∣ L ( 0 ) ∣ ∣ F ∣ 1 ⎠ ⎞ ( 因为 2 η l o g ∣ L ( 0 ) ∣ − R ≤ η l o g ∣ L ( 0 ) ∣ − R , 而前面还有一个负号,因此整体缩小了 ) ≥ 1 − ⎝ ⎛ ∣ F ∣ ∣ L ( 0 ) ∣ i ≤ r /2 ∑ ( 2 1 ) i + η log ∣ L ( 0 ) ∣ − R ⋅ 2 η 2 η l o g ∣ L ( 0 ) ∣ − R ∣ L ( 0 ) ∣ ∣ F ∣ 1 ⎠ ⎞ ( 因为 η ≥ 1 ⇒ 2 η ≥ 2 ⇒ 2 η 1 ≤ 2 1 ⇒ i ≤ r /2 ∑ ( 2 η 1 ) i ≤ i ≤ r /2 ∑ ( 2 1 ) i ) ≥ 1 − ∣ F ∣ 1 ( 2∣ L ( 0 ) ∣ + η log ∣ L ( 0 ) ∣ − R ⋅ 2 η 2 η l o g ∣ L ( 0 ) ∣ − R ∣ L ( 0 ) ∣ ) ( 因为利用等差数列求和公式可得 i ≤ r /2 ∑ ( 2 1 ) i = 1 − 2 1 1 ( 1 − ( 2 1 ) r /2 + 1 ) ≤ 2 1 ) ≥ 1 − ∣ F ∣ 1 ( 2∣ L ( 0 ) ∣ + log ( ρ ∣ L ( 0 ) ∣ ) ⋅ 2 η 2 η l o g ∣ L ( 0 ) ∣ − R ∣ L ( 0 ) ∣ ) ( 因为 η l o g ∣ L ( 0 ) ∣ − R ≤ l o g ∣ L ( 0 ) ∣ − R = l o g ∣ L ( 0 ) ∣ − l o g ( 1/ ρ ) = l o g ( ρ ∣ L ( 0 ) ∣ )) = 1 − ∣ F ∣ 1 ( 2∣ L ( 0 ) ∣ + log ( ρ ∣ L ( 0 ) ∣ ) ⋅ ∣ L ( 0 ) ∣/ ρ ) ( 因为 2 η 2 η l o g ∣ L ( 0 ) ∣ − R ∣ L ( 0 ) ∣ = 2 2 l o g ∣ L ( 0 ) ∣ − R ∣ L ( 0 ) ∣ = 2 2 l o g ( ρ ∣ L ( 0 ) ∣ ) ∣ L ( 0 ) ∣ = 2 l o g ( ρ ∣ L ( 0 ) ∣ ) ∣ L ( 0 ) ∣ = ρ ∣ L ( 0 ) ∣ ∣ L ( 0 ) ∣ = ∣ L ( 0 ) ∣/ ρ ) 设 f ( x ) = log 2 x f(x) = \log_2x f ( x ) = log 2 x ,g ( x ) = x g(x) = \sqrt{x} g ( x ) = x ,则当 x > 16 x > 16 x > 16 时,f ( x ) < g ( x ) f(x) < g(x) f ( x ) < g ( x ) 。使用 sagemath 可以画出这两个函数的图像进行比较。
# 导入 SageMath 的绘图功能
from sage.plot.plot import plot
# 定义函数
f(x) = log(x,2)
g(x) = x^(1/2)
# 绘制函数图像
p1 = plot(f, (x, -10, 30), color='blue', legend_label='log(x,2)')
p2 = plot(g, (x, -10, 30), color='red', legend_label='x^(1/2)')
# 将两个图像对象组合在一起并显示
(p1 + p2).show()
📝 证明当 x > 16 x > 16 x > 16 时,log 2 x < x \log_2x < \sqrt{x} log 2 x < x
令 h ( x ) = f ( x ) − g ( x ) = log 2 x − x h(x) = f(x) - g(x) = \log_2x - \sqrt{x} h ( x ) = f ( x ) − g ( x ) = log 2 x − x ,对 h ( x ) h(x) h ( x ) 求导可得
> h ′ ( x ) = 1 x ln 2 − 1 2 x = 2 x − x ln 2 2 ( ln 2 ) ⋅ x x > > h'(x) = \frac{1}{x\ln2} - \frac{1}{2\sqrt{x}} = \frac{2 \sqrt{x}- x\ln2}{2(\ln2) \cdot x\sqrt{x}}
> > h ′ ( x ) = x ln 2 1 − 2 x 1 = 2 ( ln 2 ) ⋅ x x 2 x − x ln 2 > 可以发现,当 x > 16 x > 16 x > 16 时, h ′ ( x ) < 0 h'(x) < 0 h ′ ( x ) < 0 ,因此 h ( x ) < h ( 16 ) = 0 h(x) < h(16) = 0 h ( x ) < h ( 16 ) = 0 ,从而 log 2 x < x \log_2x < \sqrt{x} log 2 x < x 。
根据定理条件 ρ ∣ L ( 0 ) ∣ > 16 \rho |L^{(0)}| > 16 ρ ∣ L ( 0 ) ∣ > 16 ,则
ρ ∣ L ( 0 ) ∣ > 16 ⇒ log ( ρ ∣ L ( 0 ) ∣ ) < ρ ∣ L ( 0 ) ∣ ⇒ log ( ρ ∣ L ( 0 ) ∣ ) ⋅ ∣ L ( 0 ) ∣ / ρ < ρ ∣ L ( 0 ) ∣ ⋅ ∣ L ( 0 ) ∣ / ρ ( 由于 ρ < 1 , 因此 ∣ L ( 0 ) ∣ / ρ > ∣ L ( 0 ) ∣ > 1 , 两边同乘以一个大于 1 的数不会改变不等式的符号 ) ⇒ log ( ρ ∣ L ( 0 ) ∣ ) ⋅ ∣ L ( 0 ) ∣ ρ < ∣ L ( 0 ) ∣ \begin{aligned}
\rho |L^{(0)}| > 16 & \Rightarrow \log(\rho |L^{(0)}|) < \sqrt{\rho |L^{(0)}|} \\
& \Rightarrow \log(\rho |L^{(0)}|) \cdot \sqrt{|L^{(0)}| / \rho} < \sqrt{\rho |L^{(0)}|} \cdot \sqrt{|L^{(0)}|/\rho} \\
& {\color{blue} (\text{由于} \rho < 1, \text{因此} \sqrt{|L^{(0)}| / \rho} > \sqrt{|L^{(0)}|} > 1, \text{两边同乘以一个大于$1$的数不会改变不等式的符号} )} \\
& \Rightarrow \log(\rho |L^{(0)}|) \cdot \sqrt{|L^{(0)}| \rho} < |L^{(0)}| \\
\end{aligned} ρ ∣ L ( 0 ) ∣ > 16 ⇒ log ( ρ ∣ L ( 0 ) ∣ ) < ρ ∣ L ( 0 ) ∣ ⇒ log ( ρ ∣ L ( 0 ) ∣ ) ⋅ ∣ L ( 0 ) ∣/ ρ < ρ ∣ L ( 0 ) ∣ ⋅ ∣ L ( 0 ) ∣/ ρ ( 由于 ρ < 1 , 因此 ∣ L ( 0 ) ∣/ ρ > ∣ L ( 0 ) ∣ > 1 , 两边同乘以一个大于 1 的数不会改变不等式的符号 ) ⇒ log ( ρ ∣ L ( 0 ) ∣ ) ⋅ ∣ L ( 0 ) ∣ ρ < ∣ L ( 0 ) ∣ 将上述不等式代入概率不等式中得
Pr [ ⋀ i = 1 r − 1 ¬ E ( i ) ] ≥ 1 − 1 ∣ F ∣ ( 2 ∣ L ( 0 ) ∣ + log ( ρ ∣ L ( 0 ) ∣ ) ⋅ ∣ L ( 0 ) ∣ / ρ ) > 1 − 1 ∣ F ∣ ( 2 ∣ L ( 0 ) ∣ + ∣ L ( 0 ) ∣ ) = 1 − 3 ∣ L ( 0 ) ∣ ∣ F ∣ . \begin{aligned}
\Pr \left[\bigwedge_{i=1}^{r-1} \neg E^{(i)} \right] & \ge 1 - \frac{1}{|\mathbb{F}|}\left(2|L^{(0)}| + \log(\rho|L^{(0)}| ) \cdot \sqrt{|L^{(0)}|/\rho} \right) \\
& > 1 - \frac{1}{|\mathbb{F}|}\left(2|L^{(0)}| + |L^{(0)}| \right) \\
& = 1 - 3\frac{|L^{(0)}|}{|\mathbb{F}|}.
\end{aligned} Pr [ i = 1 ⋀ r − 1 ¬ E ( i ) ] ≥ 1 − ∣ F ∣ 1 ( 2∣ L ( 0 ) ∣ + log ( ρ ∣ L ( 0 ) ∣ ) ⋅ ∣ L ( 0 ) ∣/ ρ ) > 1 − ∣ F ∣ 1 ( 2∣ L ( 0 ) ∣ + ∣ L ( 0 ) ∣ ) = 1 − 3 ∣ F ∣ ∣ L ( 0 ) ∣ . 下面我们假设没有事件 E ( i ) E^{(i)} E ( i ) 会发生,继续 soundness 的证明。
Part III - 当没有坏的事件发生时界定 soundness 先回顾下 Lemma 4 中对于序列 f ⃗ = ( f ( i ) , ⋯ , f ( r ) ) \vec{f} = (f^{(i)}, \cdots, f^{(r)}) f = ( f ( i ) , ⋯ , f ( r ) ) 和 x ⃗ = ( x ( i ) , ⋯ , x ( r − 1 ) ) \vec{x} = (x^{(i)}, \cdots, x^{(r - 1)}) x = ( x ( i ) , ⋯ , x ( r − 1 ) ) 的三个假设
for all j ∈ { i , ⋯ , r } j \in \{i, \cdots, r\} j ∈ { i , ⋯ , r } we have δ ( j ) < 1 − ρ 2 \delta^{(j)} < \frac{1-\rho}{2} δ ( j ) < 2 1 − ρ for all j ∈ { i , ⋯ , r − 1 } j \in \{i, \cdots, r - 1\} j ∈ { i , ⋯ , r − 1 } we have f ˉ ( j + 1 ) = f f ˉ ( j ) , x ( j ) ( j + 1 ) \bar{f}^{(j+1)} = f_{\bar{f}^{(j)},x^{(j)}}^{(j+1)} f ˉ ( j + 1 ) = f f ˉ ( j ) , x ( j ) ( j + 1 ) for all j ∈ { i , ⋯ , r } j \in \{i, \cdots, r\} j ∈ { i , ⋯ , r } we have x ( j ) ∉ B [ f ( i ) ; δ ( j ) ] x^{(j)} \notin B[f^{(i)};\delta^{(j)}] x ( j ) ∈ / B [ f ( i ) ; δ ( j ) ] 由于我们假设了没有坏的事件 E ( i ) E^{(i)} E ( i ) 会发生,因此假设 3 始终成立,那么三个假设是否成立就有了下面四种情况。
序号 假设 1 假设 2 假设 3 备注 1 ✖️ ✔️ ✔️ 2 ✖️ ✖️ ✔️ 3 ✔️ ✖️ ✔️ 4 ✔️ ✔️ ✔️ 拒绝概率至少为 δ ( 0 ) \delta^{(0)} δ ( 0 )
我们将序号 4 的这种情况先进行分析,这种情况最简单,因为 Lemma 4 已经给出了三个假设都满足的情况下 Verifier 拒绝的概率至少为 δ ( 0 ) \delta^{(0)} δ ( 0 ) 。
接着我们同时考虑序号 1 和序号 2 的情况,此时假设 1 都不满足,假设 2 满足或者不满足,那么综合来看就是假设 1 不满足,即
δ ( j ) ≥ 1 − ρ 2 \delta^{(j)} \ge \frac{1-\rho}{2} δ ( j ) ≥ 2 1 − ρ 最后是考虑序号 3 的情况,此时条件为
δ ( j ) < 1 − ρ 2 且 f ˉ ( j + 1 ) ≠ f f ˉ ( j ) , x ( j ) ( j + 1 ) \delta^{(j)} < \frac{1-\rho}{2} \text{ 且 }\bar{f}^{(j+1)} \neq f_{\bar{f}^{(j)},x^{(j)}}^{(j+1)} δ ( j ) < 2 1 − ρ 且 f ˉ ( j + 1 ) = f f ˉ ( j ) , x ( j ) ( j + 1 ) 综上,存在一些 i ∈ { 0 , ⋯ , r − 1 } i\in \{0, \cdots, r- 1\} i ∈ { 0 , ⋯ , r − 1 } 有下列两种情况之一成立
δ ( i ) ≥ 1 − ρ 2 \delta^{(i)} \ge \frac{1-\rho}{2} δ ( i ) ≥ 2 1 − ρ δ ( i ) < 1 − ρ 2 且 f ˉ ( i + 1 ) ≠ f f ˉ ( i ) , x ( i ) ( i + 1 ) \delta^{(i)} < \frac{1-\rho}{2} \text{ 且 }\bar{f}^{(i+1)} \neq f_{\bar{f}^{(i)},x^{(i)}}^{(i+1)} δ ( i ) < 2 1 − ρ 且 f ˉ ( i + 1 ) = f f ˉ ( i ) , x ( i ) ( i + 1 ) 忽略记号,令 i < r i < r i < r 表示满足上述两种条件之一的最大整数。注意此时 D ( i + 1 ) D^{(i+1)} D ( i + 1 ) 是唯一确定的,因为 δ ( i ) < 1 − ρ 2 \delta^{(i)} < \frac{1-\rho}{2} δ ( i ) < 2 1 − ρ ,因此 f ˉ ( i + 1 ) \bar{f}^{(i+1)} f ˉ ( i + 1 ) 也是唯一的。下面的命题说的是诚实的 Prover 的第 ( i + 1 ) (i+1) ( i + 1 ) 个消息在相对 Hamming 距离下离 f ˉ ( i + 1 ) \bar{f}^{(i+1)} f ˉ ( i + 1 ) 至少有 δ 0 \delta_0 δ 0 那么远。
Claim 5 [BBHR18b, Claim 4.5].
Δ H ( f ˉ ( i + 1 ) , f f ( i ) , x ( i ) ( i + 1 ) ) ≥ δ 0 \Delta_H(\bar{f}^{(i+1)}, f_{f^{(i)},x^{(i)}}^{(i+1)}) \ge \delta_0 Δ H ( f ˉ ( i + 1 ) , f f ( i ) , x ( i ) ( i + 1 ) ) ≥ δ 0 Prover 如果得知 f ( i ) f^{(i)} f ( i ) 和 x ( i ) x^{(i)} x ( i ) ,按照 COMMIT 阶段的方法去诚实的执行,就能构造得到 f f ( i ) , x ( i ) ( i + 1 ) f_{f^{(i)},x^{(i)}}^{(i+1)} f f ( i ) , x ( i ) ( i + 1 ) ,而 f ˉ ( i + 1 ) \bar{f}^{(i+1)} f ˉ ( i + 1 ) 表示在 RS i + 1 \text{RS}^{i+1} RS i + 1 中距离 f ( i + 1 ) f^{(i+1)} f ( i + 1 ) 在 Δ ( i + 1 ) ( ⋅ ) \Delta^{(i+1)}(\cdot) Δ ( i + 1 ) ( ⋅ ) -测度下最近的那个码字,此时 f f ( i ) , x ( i ) ( i + 1 ) f_{f^{(i)},x^{(i)}}^{(i+1)} f f ( i ) , x ( i ) ( i + 1 ) 与 f ˉ ( i + 1 ) \bar{f}^{(i+1)} f ˉ ( i + 1 ) 的相对 Hamming 距离至少为 δ 0 \delta_0 δ 0 。
证明 :根据前面的分析,分两种情况进行讨论。
δ ( i ) ≥ 1 − ρ 2 \delta^{(i)} \ge \frac{1 - \rho}{2} δ ( i ) ≥ 2 1 − ρ 成立。由于我们的假设是没有 E ( i ) E^{(i)} E ( i ) 事件发生,因此由 Part I 的分析过程可得
Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ 1 − 3 ρ − ϵ 4 = δ 0 \Delta_H \left( f_{f^{(i)},x^{(i)}}^{(i+1)},\text{RS}^{(i+1)}\right) \ge \frac{1 - 3\rho - \epsilon }{4} = \delta_0 Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ 4 1 − 3 ρ − ϵ = δ 0 由于 f ˉ ( i + 1 ) \bar{f}^{(i+1)} f ˉ ( i + 1 ) 表示的是在 RS ( i + 1 ) \text{RS}^{(i+1)} RS ( i + 1 ) 中距离 f f ( i ) , x ( i ) ( i + 1 ) f_{f^{(i)},x^{(i)}}^{(i+1)} f f ( i ) , x ( i ) ( i + 1 ) 最近的码字,因此
Δ H ( f ˉ ( i + 1 ) , f f ( i ) , x ( i ) ( i + 1 ) ) = Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ δ 0 \Delta_H(\bar{f}^{(i+1)}, f_{f^{(i)},x^{(i)}}^{(i+1)}) = \Delta_H \left( f_{f^{(i)},x^{(i)}}^{(i+1)},\text{RS}^{(i+1)}\right) \ge \delta_0 Δ H ( f ˉ ( i + 1 ) , f f ( i ) , x ( i ) ( i + 1 ) ) = Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) ≥ δ 0 因此命题成立。
δ ( i ) < 1 − ρ 2 且 f ˉ ( i + 1 ) ≠ f f ˉ ( i ) , x ( i ) ( i + 1 ) \delta^{(i)} < \frac{1-\rho}{2} \text{ 且 }\bar{f}^{(i+1)} \neq f_{\bar{f}^{(i)},x^{(i)}}^{(i+1)} δ ( i ) < 2 1 − ρ 且 f ˉ ( i + 1 ) = f f ˉ ( i ) , x ( i ) ( i + 1 ) 成立。为了简化描述,记 g = f f ˉ ( i ) , x ( i ) ( i + 1 ) g = f_{\bar{f}^{(i)},x^{(i)}}^{(i+1)} g = f f ˉ ( i ) , x ( i ) ( i + 1 ) 。因为 f ˉ ( i ) ∈ RS ( i ) \bar{f}^{(i)} \in \text{RS}^{(i)} f ˉ ( i ) ∈ RS ( i ) ,那么由 Lemma 1 可得 g = f f ˉ ( i ) , x ( i ) ( i + 1 ) ∈ RS ( i + 1 ) g = f_{\bar{f}^{(i)},x^{(i)}}^{(i+1)} \in \text{RS}^{(i+1)} g = f f ˉ ( i ) , x ( i ) ( i + 1 ) ∈ RS ( i + 1 ) 。同时显然 f ˉ ( i + 1 ) ∈ RS ( i + 1 ) \bar{f}^{(i+1)} \in \text{RS}^{(i+1)} f ˉ ( i + 1 ) ∈ RS ( i + 1 ) 。由 RS ( i + 1 ) = RS ( i + 1 ) [ F , L ( i + 1 ) , ρ ] \text{RS}^{(i+1)} = \text{RS}^{(i+1)}[\mathbb{F},L^{(i+1)},\rho] RS ( i + 1 ) = RS ( i + 1 ) [ F , L ( i + 1 ) , ρ ] ,那么由 RS code 的 MDS 性质(相对 Hamming 距离等于 1 − ρ 1 - \rho 1 − ρ )可得其相对 Hamming 距离 Δ H ( RS ( i + 1 ) [ F , L ( i + 1 ) , ρ ] ) = 1 − ρ \Delta_H(\text{RS}^{(i+1)}[\mathbb{F},L^{(i+1)},\rho]) = 1 - \rho Δ H ( RS ( i + 1 ) [ F , L ( i + 1 ) , ρ ]) = 1 − ρ ,那么对于 RS ( i + 1 ) \text{RS}^{(i+1)} RS ( i + 1 ) 中的两个 code f ˉ ( i + 1 ) \bar{f}^{(i+1)} f ˉ ( i + 1 ) 与 g g g 有,它们之间的相对 Hamming 距离至少为 1 − ρ 1 - \rho 1 − ρ 。由三角不等式得
1 − ρ ≤ Δ H ( f ˉ ( i + 1 ) , g ) ≤ Δ H ( f ˉ ( i + 1 ) , f f ( i ) , x ( i ) ( i + 1 ) ) + Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , g ) 1 - \rho \le \Delta_H(\bar{f}^{(i+1)}, g) \le \Delta_H(\bar{f}^{(i+1)}, f_{f^{(i)},x^{(i)}}^{(i+1)}) + \Delta_H(f_{f^{(i)},x^{(i)}}^{(i+1)},g) 1 − ρ ≤ Δ H ( f ˉ ( i + 1 ) , g ) ≤ Δ H ( f ˉ ( i + 1 ) , f f ( i ) , x ( i ) ( i + 1 ) ) + Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , g ) 由假设 δ ( i ) < 1 − ρ 2 \delta^{(i)} < \frac{1-\rho}{2} δ ( i ) < 2 1 − ρ 以及前面证明过的 block-wise 测度与相对 Hamming 距离之间的不等式得
Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , g ) ≤ Δ ( i ) ( f f ( i ) , x ( i ) ( i + 1 ) , g ) = δ ( i ) < 1 − ρ 2 \Delta_H(f_{f^{(i)},x^{(i)}}^{(i+1)},g) \le \Delta^{(i)}(f_{f^{(i)},x^{(i)}}^{(i+1)},g) = \delta^{(i)} < \frac{1-\rho}{2} Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , g ) ≤ Δ ( i ) ( f f ( i ) , x ( i ) ( i + 1 ) , g ) = δ ( i ) < 2 1 − ρ 将上面的三角不等式进行移项可得
Δ H ( f ˉ ( i + 1 ) , f f ( i ) , x ( i ) ( i + 1 ) ) ≥ Δ H ( f ˉ ( i + 1 ) , g ) − Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , g ) > ( 1 − ρ ) − 1 − ρ 2 = 1 − ρ 2 = 2 − 2 ρ 4 > 2 − 2 ρ − ( 1 + ρ + ϵ ) 4 = 1 − 3 ρ − ϵ 4 = δ 0 \begin{aligned}
\Delta_H(\bar{f}^{(i+1)}, f_{f^{(i)},x^{(i)}}^{(i+1)}) & \ge \Delta_H(\bar{f}^{(i+1)}, g) - \Delta_H(f_{f^{(i)},x^{(i)}}^{(i+1)},g) \\
& > (1 - \rho) - \frac{1-\rho}{2} \\
& = \frac{1-\rho}{2} \\
& = \frac{2-2\rho}{4} \\
& > \frac{2-2\rho - (1 + \rho + \epsilon)}{4} \\
& = \frac{1-3\rho - \epsilon}{4} \\
& = \delta_0
\end{aligned} Δ H ( f ˉ ( i + 1 ) , f f ( i ) , x ( i ) ( i + 1 ) ) ≥ Δ H ( f ˉ ( i + 1 ) , g ) − Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , g ) > ( 1 − ρ ) − 2 1 − ρ = 2 1 − ρ = 4 2 − 2 ρ > 4 2 − 2 ρ − ( 1 + ρ + ϵ ) = 4 1 − 3 ρ − ϵ = δ 0 因此命题成立。
综上所述,命题得证。\Box
下一个命题是
Claim 6 [BBHR18b, Claim 4.6].
∣ A err ( i + 1 ) ∪ D ( i + 1 ) ∣ ∣ L ( i + 1 ) ∣ ≥ Δ H ( f ˉ ( i + 1 ) , f f ( i ) , x ( i ) ( i + 1 ) ) . \frac{|A_{\text{err}}^{(i+1)} \cup D^{(i+1)}|}{|L^{(i+1)}|} \ge \Delta_H(\bar{f}^{(i+1)}, f_{f^{(i)},x^{(i)}}^{(i+1)}). ∣ L ( i + 1 ) ∣ ∣ A err ( i + 1 ) ∪ D ( i + 1 ) ∣ ≥ Δ H ( f ˉ ( i + 1 ) , f f ( i ) , x ( i ) ( i + 1 ) ) . 证明 :由 D ( i + 1 ) D^{(i+1)} D ( i + 1 ) 的定义可得,对于所有 x ∉ D ( i + 1 ) x \notin D^{(i+1)} x ∈ / D ( i + 1 ) ,有
f ˉ ( i + 1 ) ( x ) = f ( i + 1 ) ( x ) \bar{f}^{(i+1)}(x) = f^{(i+1)}(x) f ˉ ( i + 1 ) ( x ) = f ( i + 1 ) ( x ) 又由 A err ( i + 1 ) A_{\text{err}}^{(i+1)} A err ( i + 1 ) 的定义可得,对于所有 x ∉ A err ( i + 1 ) x \notin A_{\text{err}}^{(i+1)} x ∈ / A err ( i + 1 ) ,有
f ( i + 1 ) ( x ) = f f ( i ) , x ( i ) ( i + 1 ) ( x ) f^{(i+1)}(x) = f_{f^{(i)},x^{(i)}}^{(i+1)}(x) f ( i + 1 ) ( x ) = f f ( i ) , x ( i ) ( i + 1 ) ( x ) 因此对所有 x ∉ A err ( i + 1 ) ∪ D ( i + 1 ) x \notin A_{\text{err}}^{(i+1)} \cup D^{(i+1)} x ∈ / A err ( i + 1 ) ∪ D ( i + 1 ) ,有
f ˉ ( i + 1 ) ( x ) = f ( i + 1 ) ( x ) = f f ( i ) , x ( i ) ( i + 1 ) ( x ) \bar{f}^{(i+1)}(x) = f^{(i+1)}(x) = f_{f^{(i)},x^{(i)}}^{(i+1)}(x) f ˉ ( i + 1 ) ( x ) = f ( i + 1 ) ( x ) = f f ( i ) , x ( i ) ( i + 1 ) ( x ) 根据相对 Hamming 距离的定义可得
Pr x ∈ L ( i + 1 ) [ f ˉ ( i + 1 ) ( x ) ≠ f f ( i ) , x ( i ) ( i + 1 ) ( x ) ] = Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ ( i + 1 ) ) \Pr_{x \in L^{(i+1)}}[\bar{f}^{(i+1)}(x) \neq f_{f^{(i)},x^{(i)}}^{(i+1)}(x)] = \Delta_H(f_{f^{(i)},x^{(i)}}^{(i+1)}, \bar{f}^{(i+1)}) x ∈ L ( i + 1 ) Pr [ f ˉ ( i + 1 ) ( x ) = f f ( i ) , x ( i ) ( i + 1 ) ( x )] = Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ ( i + 1 ) ) 那么
Pr x ∈ L ( i + 1 ) [ f ˉ ( i + 1 ) ( x ) = f f ( i ) , x ( i ) ( i + 1 ) ( x ) ] = 1 − Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ ( i + 1 ) ) \Pr_{x \in L^{(i+1)}}[\bar{f}^{(i+1)}(x) = f_{f^{(i)},x^{(i)}}^{(i+1)}(x)] = 1- \Delta_H(f_{f^{(i)},x^{(i)}}^{(i+1)}, \bar{f}^{(i+1)}) x ∈ L ( i + 1 ) Pr [ f ˉ ( i + 1 ) ( x ) = f f ( i ) , x ( i ) ( i + 1 ) ( x )] = 1 − Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ ( i + 1 ) ) 因此对于所有 x ∉ A err ( i + 1 ) ∪ D ( i + 1 ) x \notin A_{\text{err}}^{(i+1)} \cup D^{(i+1)} x ∈ / A err ( i + 1 ) ∪ D ( i + 1 ) ,要求以下两个等式同时成立:
f ˉ ( i + 1 ) ( x ) = f f ( i ) , x ( i ) ( i + 1 ) ( x ) \bar{f}^{(i+1)}(x) = f_{f^{(i)},x^{(i)}}^{(i+1)}(x) f ˉ ( i + 1 ) ( x ) = f f ( i ) , x ( i ) ( i + 1 ) ( x ) f ˉ ( i + 1 ) ( x ) = f ( i + 1 ) ( x ) \bar{f}^{(i+1)}(x) = f^{(i+1)}(x) f ˉ ( i + 1 ) ( x ) = f ( i + 1 ) ( x ) 现在已经得到第一个等式成立的概率为 1 − Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ ( i + 1 ) ) 1- \Delta_H(f_{f^{(i)},x^{(i)}}^{(i+1)}, \bar{f}^{(i+1)}) 1 − Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ ( i + 1 ) ) ,那么上述两个等式同时成立的概率肯定不会超过只要求第一个等式成立的概率,即
Pr x ∈ L ( i + 1 ) [ x ∉ A err ( i + 1 ) ∪ D ( i + 1 ) ] = Pr x ∈ L ( i + 1 ) [ f ˉ ( i + 1 ) ( x ) = f f ( i ) , x ( i ) ( i + 1 ) ( x ) = f ( i + 1 ) ( x ) ] ≤ Pr x ∈ L ( i + 1 ) [ f ˉ ( i + 1 ) ( x ) = f f ( i ) , x ( i ) ( i + 1 ) ( x ) ] = 1 − Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ ( i + 1 ) ) \begin{aligned}
\Pr_{x \in L^{(i+1)}}[x \notin A_{\text{err}}^{(i+1)} \cup D^{(i+1)}] & = \Pr_{x \in L^{(i+1)}}[\bar{f}^{(i+1)}(x) = f_{f^{(i)},x^{(i)}}^{(i+1)}(x) = f^{(i+1)}(x)]\\
& \le \Pr_{x \in L^{(i+1)}}[\bar{f}^{(i+1)}(x) = f_{f^{(i)},x^{(i)}}^{(i+1)}(x)] \\
& = 1- \Delta_H(f_{f^{(i)},x^{(i)}}^{(i+1)}, \bar{f}^{(i+1)})
\end{aligned} x ∈ L ( i + 1 ) Pr [ x ∈ / A err ( i + 1 ) ∪ D ( i + 1 ) ] = x ∈ L ( i + 1 ) Pr [ f ˉ ( i + 1 ) ( x ) = f f ( i ) , x ( i ) ( i + 1 ) ( x ) = f ( i + 1 ) ( x )] ≤ x ∈ L ( i + 1 ) Pr [ f ˉ ( i + 1 ) ( x ) = f f ( i ) , x ( i ) ( i + 1 ) ( x )] = 1 − Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ ( i + 1 ) ) 因此
∣ A err ( i + 1 ) ∪ D ( i + 1 ) ∣ ∣ L ( i + 1 ) ∣ = Pr x ∈ L ( i + 1 ) [ x ∈ A err ( i + 1 ) ∪ D ( i + 1 ) ] = 1 − Pr x ∈ L ( i + 1 ) [ x ∉ A err ( i + 1 ) ∪ D ( i + 1 ) ] ≥ 1 − ( 1 − Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ ( i + 1 ) ) ) = Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ ( i + 1 ) ) \begin{aligned}
\frac{|A_{\text{err}}^{(i+1)} \cup D^{(i+1)}|}{|L^{(i+1)}|} & = \Pr_{x \in L^{(i+1)}}[x \in A_{\text{err}}^{(i+1)} \cup D^{(i+1)}]\\
& = 1- \Pr_{x \in L^{(i+1)}}[x \notin A_{\text{err}}^{(i+1)} \cup D^{(i+1)}] \\
& \ge 1 - (1 - \Delta_H(f_{f^{(i)},x^{(i)}}^{(i+1)}, \bar{f}^{(i+1)}))\\
& = \Delta_H(f_{f^{(i)},x^{(i)}}^{(i+1)}, \bar{f}^{(i+1)})
\end{aligned} ∣ L ( i + 1 ) ∣ ∣ A err ( i + 1 ) ∪ D ( i + 1 ) ∣ = x ∈ L ( i + 1 ) Pr [ x ∈ A err ( i + 1 ) ∪ D ( i + 1 ) ] = 1 − x ∈ L ( i + 1 ) Pr [ x ∈ / A err ( i + 1 ) ∪ D ( i + 1 ) ] ≥ 1 − ( 1 − Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ ( i + 1 ) )) = Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ ( i + 1 ) ) 由此命题得证。\Box
结合 Claim 5 和 Claim 6 的结论得
∣ A err ( i + 1 ) ∪ D ( i + 1 ) ∣ ∣ L ( i + 1 ) ∣ ≥ Δ H ( f ˉ ( i + 1 ) , f f ( i ) , x ( i ) ( i + 1 ) ) ≥ δ 0 \frac{|A_{\text{err}}^{(i+1)} \cup D^{(i+1)}|}{|L^{(i+1)}|} \ge \Delta_H(\bar{f}^{(i+1)}, f_{f^{(i)},x^{(i)}}^{(i+1)}) \ge \delta_0 ∣ L ( i + 1 ) ∣ ∣ A err ( i + 1 ) ∪ D ( i + 1 ) ∣ ≥ Δ H ( f ˉ ( i + 1 ) , f f ( i ) , x ( i ) ( i + 1 ) ) ≥ δ 0 即
∣ A err ( i + 1 ) ∪ D ( i + 1 ) ∣ ∣ L ( i + 1 ) ∣ ≥ δ 0 . \frac{|A_{\text{err}}^{(i+1)} \cup D^{(i+1)}|}{|L^{(i+1)}|} \ge \delta_0. ∣ L ( i + 1 ) ∣ ∣ A err ( i + 1 ) ∪ D ( i + 1 ) ∣ ≥ δ 0 . 现在考虑在 QUERY 阶段使用的随机数 s ( i + 1 ) s^{(i+1)} s ( i + 1 ) 。首先根据 A err ( i + 1 ) A_{\text{err}}^{(i+1)} A err ( i + 1 ) 的定义,我们知道如果 s ( i + 1 ) ∈ A err ( i + 1 ) s^{(i+1)} \in A_{\text{err}}^{(i+1)} s ( i + 1 ) ∈ A err ( i + 1 ) ,那么在 QUERY 阶段 Verifer 一定会拒绝。接着我们根据 i i i 的不同,分两种情况来考虑 Verifier 拒绝的概率。
如果 i + 1 = r i + 1 = r i + 1 = r ,那么由于 f ( r ) ∈ R S ( r ) f^{(r)} \in RS^{(r)} f ( r ) ∈ R S ( r ) ,根据 D ( i + 1 ) D^{(i+1)} D ( i + 1 ) 的定义,此时 D ( i + 1 ) = ∅ D^{(i+1)} = \emptyset D ( i + 1 ) = ∅ ,在这种情况下如果 s ( i + 1 ) ∈ A err ( i + 1 ) s^{(i+1)} \in A_{\text{err}}^{(i+1)} s ( i + 1 ) ∈ A err ( i + 1 ) ,Verifier 一定会拒绝,又
∣ A err ( i + 1 ) ∪ D ( i + 1 ) ∣ ∣ L ( i + 1 ) ∣ = ∣ A err ( i + 1 ) ∣ ∣ L ( i + 1 ) ∣ ≥ δ 0 . \frac{|A_{\text{err}}^{(i+1)} \cup D^{(i+1)}|}{|L^{(i+1)}|} = \frac{|A_{\text{err}}^{(i+1)}|}{|L^{(i+1)}|} \ge \delta_0. ∣ L ( i + 1 ) ∣ ∣ A err ( i + 1 ) ∪ D ( i + 1 ) ∣ = ∣ L ( i + 1 ) ∣ ∣ A err ( i + 1 ) ∣ ≥ δ 0 . 此种情况下 Verifier 拒绝的概率至少为 δ 0 \delta_0 δ 0 。
如果 i + 1 < r i + 1 < r i + 1 < r ,通过前面我们对 i i i 的选择,选取的 i i i 表示满足以下两个条件
δ ( i ) ≥ 1 − ρ 2 \delta^{(i)} \ge \frac{1-\rho}{2} δ ( i ) ≥ 2 1 − ρ δ ( i ) < 1 − ρ 2 且 f ˉ ( i + 1 ) ≠ f f ˉ ( i ) , x ( i ) ( i + 1 ) \delta^{(i)} < \frac{1-\rho}{2} \text{ 且 }\bar{f}^{(i+1)} \neq f_{\bar{f}^{(i)},x^{(i)}}^{(i+1)} δ ( i ) < 2 1 − ρ 且 f ˉ ( i + 1 ) = f f ˉ ( i ) , x ( i ) ( i + 1 ) 之一的最大整数,也就说明在 i i i 后面的序列 f ⃗ = ( f ( i + 1 ) , ⋯ , f ( r ) ) \vec{f} = (f^{(i + 1)}, \cdots, f^{(r)}) f = ( f ( i + 1 ) , ⋯ , f ( r ) ) 和 x ⃗ = ( x ( i + 1 ) , ⋯ , x ( r − 1 ) ) \vec{x} = (x^{(i + 1)}, \cdots, x^{(r - 1)}) x = ( x ( i + 1 ) , ⋯ , x ( r − 1 ) ) 都不为空,且均满足 Lemma 4 的三个条件。根据 Lemma 4 的结论,如果 s ( i + 1 ) ∈ D ( i + 1 ) s^{(i+1)} \in D^{(i+1)} s ( i + 1 ) ∈ D ( i + 1 ) 那么在 QUERY 阶段就一定会拒绝。如果 s ( i + 1 ) ∈ A err ( i + 1 ) s^{(i+1)} \in A_{\text{err}}^{(i+1)} s ( i + 1 ) ∈ A err ( i + 1 ) ,Verifier 也一定会拒绝,那么这个拒绝概率就是看这两个集合的并集的大小相比 L ( i + 1 ) L^{(i+1)} L ( i + 1 ) 的大小有多大,已经证明
∣ A err ( i + 1 ) ∪ D ( i + 1 ) ∣ ∣ L ( i + 1 ) ∣ ≥ δ 0 . \frac{|A_{\text{err}}^{(i+1)} \cup D^{(i+1)}|}{|L^{(i+1)}|} \ge \delta_0. ∣ L ( i + 1 ) ∣ ∣ A err ( i + 1 ) ∪ D ( i + 1 ) ∣ ≥ δ 0 . 因此在这种情况下拒绝的概率也至少为 δ 0 \delta_0 δ 0 。
综合上述两种情况,拒绝的概率至少为 δ 0 \delta_0 δ 0 。
再结合之前分析满足 Lemma 4 三种情况的拒绝概率,可以得到在没有坏的事件发生的情况下,也就是 Lemma 4 的第三个条件一定成立的前提下,有
Lemma 4 的前两个条件均成立,Verifier 的拒绝概率至少为 δ ( 0 ) \delta^{(0)} δ ( 0 ) 。 Lemma 4 的前两个条件不完全成立,Verifier 的拒绝概率至少为 δ 0 \delta_0 δ 0 。 由于
∣ L ( r / 2 ) ∣ ∣ L ( 0 ) ∣ = 2 k ( 0 ) − η ⋅ ( r / 2 ) ( 2 k ( 0 ) − η ⋅ 0 ) 1 2 = 2 k ( 0 ) − η ⋅ ( r / 2 ) − k ( 0 ) 2 = 2 k ( 0 ) − η ⋅ r 2 ( 由于 k ( 0 ) ≥ η ⋅ r ,则 k ( 0 ) − η ⋅ r ≥ 0 ) ≥ 1 \begin{aligned}
\frac{|L^{(r/2)}|}{\sqrt{|L^{(0)}|}} & = \frac{2^{k^{(0)} - \eta \cdot (r/2)}}{\left(2^{k^{(0)} - \eta \cdot 0} \right)^{\frac{1}{2}}} \\
& = 2^{k^{(0)} - \eta \cdot (r/2) - \frac{k^{(0)}}{2}} \\
& = 2^{\frac{k^{(0)} - \eta \cdot r}{2}} \\
& {\color{blue}(\text{由于} k^{(0)} \ge \eta \cdot r \text{,则} k^{(0)} - \eta \cdot r \ge 0)} \\
& \ge 1
\end{aligned} ∣ L ( 0 ) ∣ ∣ L ( r /2 ) ∣ = ( 2 k ( 0 ) − η ⋅ 0 ) 2 1 2 k ( 0 ) − η ⋅ ( r /2 ) = 2 k ( 0 ) − η ⋅ ( r /2 ) − 2 k ( 0 ) = 2 2 k ( 0 ) − η ⋅ r ( 由于 k ( 0 ) ≥ η ⋅ r ,则 k ( 0 ) − η ⋅ r ≥ 0 ) ≥ 1 因此
∣ L ( r / 2 ) ∣ ≥ ∣ L ( 0 ) ∣ |L^{(r/2)}| \ge \sqrt{|L^{(0)}|} ∣ L ( r /2 ) ∣ ≥ ∣ L ( 0 ) ∣ 从而有
ϵ = 2 η ∣ L ( r / 2 ) ∣ ≤ 2 η / ∣ L ( 0 ) ∣ \epsilon = \frac{2^{\eta}}{|L^{(r/2)}|} \le 2^{\eta} / \sqrt{|L^{(0)}|} ϵ = ∣ L ( r /2 ) ∣ 2 η ≤ 2 η / ∣ L ( 0 ) ∣ 现在估计 δ 0 \delta_0 δ 0 ,得
δ 0 = 1 − 3 ρ − ϵ 4 ≥ 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ 4 \delta_0 = \frac{1 - 3 \rho - \epsilon}{4} \ge \frac{1 - 3 \rho - 2^{\eta} / \sqrt{|L^{(0)}|}}{4} δ 0 = 4 1 − 3 ρ − ϵ ≥ 4 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ 因此,如果没有坏的事件发生,Verifier 的拒绝概率至少为
min { δ ( 0 ) , δ 0 } ≥ min { δ ( 0 ) , 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ 4 } \min \{\delta^{(0)}, \delta_0\} \ge \min \left \{\delta^{(0)}, \frac{1 - 3 \rho - 2^{\eta} / \sqrt{|L^{(0)}|}}{4} \right \} min { δ ( 0 ) , δ 0 } ≥ min { δ ( 0 ) , 4 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ } 结合 Part II 的分析,在 COMMIT 阶段 Verifier 选取随机数的概率至少为
1 − 3 ∣ L ( 0 ) ∣ F , 1 - \frac{3|L^{(0)}|}{\mathbb{F}}, 1 − F 3∣ L ( 0 ) ∣ , 那么对于任意的 Prover 的 oracle f ( 1 ) , ⋯ , f ( r ) f^{(1)}, \cdots , f^{(r)} f ( 1 ) , ⋯ , f ( r ) ,在 QUERY 协议中的重复参数为 l l l ,Verifier 输出 accept 的概率最多为
( 1 − min { δ ( 0 ) , 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ 4 } ) l \left(1 - \min \left \{\delta^{(0)}, \frac{1 - 3 \rho - 2^{\eta} / \sqrt{|L^{(0)}|}}{4} \right \}\right)^l ( 1 − min { δ ( 0 ) , 4 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ } ) l 下面分析下如何得到 FRI 的 soundness 。根据 soundness 的定义:
对于任意的 P ∗ \text{P}^* P ∗ , Pr [ ⟨ P ∗ ↔ V ⟩ = reject ∣ Δ ( 0 ) ( f ( 0 ) , R S ( 0 ) ) = δ ( 0 ) ] ≥ s − ( δ ( 0 ) ) \Pr[\left \langle \text{P}^* \leftrightarrow \text{V} \right \rangle = \text{reject}|\Delta^{(0)}(f^{(0)}, RS^{(0)}) = \delta^{(0)}] \ge \textbf{s}^{-}(\delta^{(0)}) Pr [ ⟨ P ∗ ↔ V ⟩ = reject ∣ Δ ( 0 ) ( f ( 0 ) , R S ( 0 ) ) = δ ( 0 ) ] ≥ s − ( δ ( 0 ) ) .
soundness 分析主要是要得到拒绝概率的下界 s − ( δ ( 0 ) ) \textbf{s}^{-}(\delta^{(0)}) s − ( δ ( 0 ) ) 。先考虑对于任意的 P ∗ \text{P}^* P ∗ ,计算最后 Verifier 输出 accept 的概率最多为多少。通过上述分析,我们可以分两种情况考虑:
如果有坏的事件 E ( i ) ( i = 1 , ⋯ , r − 1 ) E^{(i)} (i = 1, \cdots, r - 1) E ( i ) ( i = 1 , ⋯ , r − 1 ) 发生,那么 Verifier 输出 accept 的概率最多为
3 ∣ L ( 0 ) ∣ F \frac{3|L^{(0)}|}{\mathbb{F}} F 3∣ L ( 0 ) ∣ 如果没有坏的事件 E ( i ) ( i = 1 , ⋯ , r − 1 ) E^{(i)} (i = 1, \cdots, r - 1) E ( i ) ( i = 1 , ⋯ , r − 1 ) 发生,Verifier 输出 accept 的概率最多为
( 1 − min { δ ( 0 ) , 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ 4 } ) l \left(1 - \min \left \{\delta^{(0)}, \frac{1 - 3 \rho - 2^{\eta} / \sqrt{|L^{(0)}|}}{4} \right \}\right)^l ( 1 − min { δ ( 0 ) , 4 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ } ) l 因此,对于任意的 P ∗ \text{P}^* P ∗ ,可以得到 Verifier 输出 accept 的概率的上界,即
Pr [ ⟨ P ∗ ↔ V ⟩ = accept ∣ Δ ( 0 ) ( f ( 0 ) , R S ( 0 ) ) = δ ( 0 ) ] ≤ 3 ∣ L ( 0 ) ∣ F + ( 1 − min { δ ( 0 ) , 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ 4 } ) l \Pr[\left \langle \text{P}^* \leftrightarrow \text{V} \right \rangle = \text{accept}|\Delta^{(0)}(f^{(0)}, RS^{(0)}) = \delta^{(0)}] \le \frac{3|L^{(0)}|}{\mathbb{F}} + \left(1 - \min \left \{\delta^{(0)}, \frac{1 - 3 \rho - 2^{\eta} / \sqrt{|L^{(0)}|}}{4} \right \}\right)^l Pr [ ⟨ P ∗ ↔ V ⟩ = accept ∣ Δ ( 0 ) ( f ( 0 ) , R S ( 0 ) ) = δ ( 0 ) ] ≤ F 3∣ L ( 0 ) ∣ + ( 1 − min { δ ( 0 ) , 4 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ } ) l 从而对于任意的 P ∗ \text{P}^* P ∗ ,有
Pr [ ⟨ P ∗ ↔ V ⟩ = reject ∣ Δ ( 0 ) ( f ( 0 ) , R S ( 0 ) ) = δ ( 0 ) ] = 1 − Pr [ ⟨ P ∗ ↔ V ⟩ = accept ∣ Δ ( 0 ) ( f ( 0 ) , R S ( 0 ) ) = δ ( 0 ) ] ≥ 1 − ( 3 ∣ L ( 0 ) ∣ F + ( 1 − min { δ ( 0 ) , 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ 4 } ) l ) \begin{aligned}
\Pr[\left \langle \text{P}^* \leftrightarrow \text{V} \right \rangle = \text{reject}|\Delta^{(0)}(f^{(0)}, RS^{(0)}) = \delta^{(0)}] & = 1 - \Pr[\left \langle \text{P}^* \leftrightarrow \text{V} \right \rangle = \text{accept}|\Delta^{(0)}(f^{(0)}, RS^{(0)})= \delta^{(0)}] \\
& \ge 1 - \left(\frac{3|L^{(0)}|}{\mathbb{F}} + \left(1 - \min \left \{\delta^{(0)}, \frac{1 - 3 \rho - 2^{\eta} / \sqrt{|L^{(0)}|}}{4} \right \}\right)^l \right)
\end{aligned} Pr [ ⟨ P ∗ ↔ V ⟩ = reject ∣ Δ ( 0 ) ( f ( 0 ) , R S ( 0 ) ) = δ ( 0 ) ] = 1 − Pr [ ⟨ P ∗ ↔ V ⟩ = accept ∣ Δ ( 0 ) ( f ( 0 ) , R S ( 0 ) ) = δ ( 0 ) ] ≥ 1 − ⎝ ⎛ F 3∣ L ( 0 ) ∣ + ( 1 − min { δ ( 0 ) , 4 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ } ) l ⎠ ⎞ 从而,得到 FRI 的 soundness 至少为
s − ( δ ( 0 ) ) ≜ 1 − ( 3 ∣ L ( 0 ) ∣ F + ( 1 − min { δ ( 0 ) , 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ 4 } ) l ) \textbf{s}^{-}(\delta^{(0)}) \triangleq 1 - \left(\frac{3|L^{(0)}|}{\mathbb{F}} + \left(1 - \min \left \{\delta^{(0)}, \frac{1 - 3 \rho - 2^{\eta} / \sqrt{|L^{(0)}|}}{4} \right \}\right)^l \right) s − ( δ ( 0 ) ) ≜ 1 − ⎝ ⎛ F 3∣ L ( 0 ) ∣ + ( 1 − min { δ ( 0 ) , 4 1 − 3 ρ − 2 η / ∣ L ( 0 ) ∣ } ) l ⎠ ⎞ 至此完成 soundness 证明。 \Box
唯一解码半径 —— Lemma 4 的证明 ¶ 证明 :由于 δ ( i ) < 1 − ρ 2 \delta^{(i)} < \frac{1 - \rho}{2} δ ( i ) < 2 1 − ρ ,前面介绍 closet codeword 定义中的分析已经提到 f ˉ \bar{f} f ˉ 与 S B ( f ( i ) ) \mathcal{S}_B(f^{(i)}) S B ( f ( i ) ) 是唯一的。对于集合 S B ( f ( i ) ) \mathcal{S}_B(f^{(i)}) S B ( f ( i ) ) 中的一个“坏”的陪集 S S S ,即 S ∈ S B ( f ( i ) ) S \in \mathcal{S}_B(f^{(i)}) S ∈ S B ( f ( i ) ) ,令
X S ( i ) = { x ( i ) ∈ F ∣ interpolant f ( i ) ∣ S ( x ( i ) ) = interpolant f ˉ ( i ) ∣ S ( x ( i ) ) } X_S^{(i)} = \left\{ x^{(i)} \in \mathbb{F} | \text{interpolant}^{f^{(i)}|_S}(x^{(i)}) = \text{interpolant}^{\bar{f}^{(i)}|_S}(x^{(i)}) \right\} X S ( i ) = { x ( i ) ∈ F ∣ interpolant f ( i ) ∣ S ( x ( i ) ) = interpolant f ˉ ( i ) ∣ S ( x ( i ) ) } 集合 X S ( i ) X_S^{(i)} X S ( i ) 表示的是那些在 F \mathbb{F} F 中“误导(misleading)”的 x ( i ) x^{(i)} x ( i ) ,意思是插值多项式 interpolant f ( i ) ∣ S ( x ( i ) ) = interpolant f ˉ ( i ) ∣ S ( x ( i ) ) \text{interpolant}^{f^{(i)}|_S}(x^{(i)}) = \text{interpolant}^{\bar{f}^{(i)}|_S}(x^{(i)}) interpolant f ( i ) ∣ S ( x ( i ) ) = interpolant f ˉ ( i ) ∣ S ( x ( i ) ) 是一致的,但是由于 S S S 来自于“坏”的陪集,实际上它们是不同的 low-degree 多项式,即 f ( i ) ∣ S ≠ f ˉ ( i ) ∣ S f^{(i)}|_S \neq \bar{f}^{(i)}|_S f ( i ) ∣ S = f ˉ ( i ) ∣ S 。换句话说,这些 x ( i ) x^{(i)} x ( i ) “误导”了我们 ,明明不是相同的多项式,用 x ( i ) x^{(i)} x ( i ) 在 S S S 上插值出来的多项式却是一致的。在下面我们要证明
B [ f ( i ) , δ ( i ) ] = ⋃ S ∈ S B ( f ( i ) ) X S ( i ) B\left[ f^{(i)}, \delta^{(i)} \right] = \bigcup_{S \in \mathcal{S}_B(f^{(i)})} X_S^{(i)} B [ f ( i ) , δ ( i ) ] = S ∈ S B ( f ( i ) ) ⋃ X S ( i ) 由于 f ˉ ( i ) ∈ RS ( i ) \bar{f}^{(i)} \in \text{RS}^{(i)} f ˉ ( i ) ∈ RS ( i ) ,那么由 Lemma 1 得 f f ˉ ( i ) , x ( i ) ( i + 1 ) ∈ RS ( i + 1 ) f_{\bar{f}^{(i)},x^{(i)}}^{(i+1)} \in \text{RS}^{(i+1)} f f ˉ ( i ) , x ( i ) ( i + 1 ) ∈ RS ( i + 1 ) 。对于所有的 S ∉ S B ( f ( i ) ) S \notin \mathcal{S}_B(f^{(i)}) S ∈ / S B ( f ( i ) ) ,并且 y S = q ( i ) ( S ) y_S = q^{(i)}(S) y S = q ( i ) ( S ) ,那么由于 S B ( f ( i ) ) = { S ∈ S ( i ) ∣ f ( i ) ∣ S ≠ f ˉ ( i ) ∣ S } \mathcal{S}_B(f^{(i)}) = \left\{S \in \mathcal{S}^{(i)}|f^{(i)}|_S \neq \bar{f}^{(i)}|_S\right \} S B ( f ( i ) ) = { S ∈ S ( i ) ∣ f ( i ) ∣ S = f ˉ ( i ) ∣ S } ,因此对于 ∀ S ∉ S B ( f ( i ) ) \forall S \notin \mathcal{S}_B(f^{(i)}) ∀ S ∈ / S B ( f ( i ) ) ,有 f ( i ) ∣ S = f ˉ ( i ) ∣ S f^{(i)}|_S = \bar{f}^{(i)}|_S f ( i ) ∣ S = f ˉ ( i ) ∣ S ,自然 interpolant f ( i ) ∣ S = interpolant f ˉ ( i ) ∣ S \text{interpolant}^{f^{(i)}|_{S}} = \text{interpolant}^{\bar{f}^{(i)}|_S} interpolant f ( i ) ∣ S = interpolant f ˉ ( i ) ∣ S ,向插值多项式中代入 x ( i ) x^{(i)} x ( i ) 可得 interpolant f ( i ) ∣ S ( x ( i ) ) = interpolant f ˉ ( i ) ∣ S ( x ( i ) ) \text{interpolant}^{f^{(i)}|_{S}}(x^{(i)}) = \text{interpolant}^{\bar{f}^{(i)}|_S}(x^{(i)}) interpolant f ( i ) ∣ S ( x ( i ) ) = interpolant f ˉ ( i ) ∣ S ( x ( i ) ) ,则 f f ( i ) , x ( i ) ( i + 1 ) ( y S ) = f f ˉ ( i ) , x ( i ) ( i + 1 ) ( y S ) f_{f^{(i)},x^{(i)}}^{(i+1)}(y_S) = f_{\bar{f}^{(i)},x^{(i)}}^{(i+1)}(y_S) f f ( i ) , x ( i ) ( i + 1 ) ( y S ) = f f ˉ ( i ) , x ( i ) ( i + 1 ) ( y S ) 。由于 δ ( i ) \delta^{(i)} δ ( i ) 小于唯一解码半径 1 − ρ 2 \frac{1 - \rho}{2} 2 1 − ρ ,结合 f f ˉ ( i ) , x ( i ) ( i + 1 ) ∈ RS ( i + 1 ) f_{\bar{f}^{(i)},x^{(i)}}^{(i+1)} \in \text{RS}^{(i+1)} f f ˉ ( i ) , x ( i ) ( i + 1 ) ∈ RS ( i + 1 ) 与 ∀ S ∉ S B ( f ( i ) ) \forall S \notin \mathcal{S}_B(f^{(i)}) ∀ S ∈ / S B ( f ( i ) ) ,有 f f ( i ) , x ( i ) ( i + 1 ) ( y S ) = f f ˉ ( i ) , x ( i ) ( i + 1 ) ( y S ) f_{f^{(i)},x^{(i)}}^{(i+1)}(y_S) = f_{\bar{f}^{(i)},x^{(i)}}^{(i+1)}(y_S) f f ( i ) , x ( i ) ( i + 1 ) ( y S ) = f f ˉ ( i ) , x ( i ) ( i + 1 ) ( y S ) 可得 f f ˉ ( i ) , x ( i ) ( i + 1 ) f_{\bar{f}^{(i)},x^{(i)}}^{(i+1)} f f ˉ ( i ) , x ( i ) ( i + 1 ) 是在 Hammming 距离下距离 f f ( i ) , x ( i ) ( i + 1 ) f_{f^{(i)},x^{(i)}}^{(i+1)} f f ( i ) , x ( i ) ( i + 1 ) 最近的 R S ( i + 1 ) {RS}^{(i+1)} RS ( i + 1 ) 中的码字(codeword)。因此 Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) = Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f f ˉ ( i ) , x ( i ) ( i + 1 ) ) \Delta_H(f_{f^{(i)},x^{(i)}}^{(i+1)}, \text{RS}^{(i+1)}) = \Delta_H(f_{f^{(i)},x^{(i)}}^{(i+1)}, f_{\bar{f}^{(i)},x^{(i)}}^{(i+1)}) Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) = Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f f ˉ ( i ) , x ( i ) ( i + 1 ) ) 。
同时,这两个函数在 y S y_S y S 上的值相同当且仅当以下两个条件之一成立:
S ∉ S B ( f ( i ) ) S \notin \mathcal{S}_B(f^{(i)}) S ∈ / S B ( f ( i ) ) S ∈ S B ( f ( i ) ) S \in \mathcal{S}_B(f^{(i)}) S ∈ S B ( f ( i ) ) 且 x ( i ) ∈ X S ( i ) x^{(i)} \in X_S^{(i)} x ( i ) ∈ X S ( i ) 由此可得,这两个函数在 y S y_S y S 上的值不同当且仅当以下两个条件同时成立:
S ∈ S B ( f ( i ) ) S \in \mathcal{S}_B(f^{(i)}) S ∈ S B ( f ( i ) ) S ∉ S B ( f ( i ) ) S \notin \mathcal{S}_B(f^{(i)}) S ∈ / S B ( f ( i ) ) 或 x ( i ) ∉ X S ( i ) x^{(i)} \notin X_S^{(i)} x ( i ) ∈ / X S ( i ) 当条件 1 成立时,条件 2 中的第一种情况 S ∉ S B ( f ( i ) ) S \notin \mathcal{S}_B(f^{(i)}) S ∈ / S B ( f ( i ) ) 显然就不满足了,自然 x ( i ) ∉ X S ( i ) x^{(i)} \notin X_S^{(i)} x ( i ) ∈ / X S ( i ) 成立,那么可以得到这两个函数在 y S y_S y S 上的值不同当且仅当
S ∈ S B ( f ( i ) ) 且 x ( i ) ∉ X S ( i ) S \in \mathcal{S}_B(f^{(i)}) \text{ 且 } x^{(i)} \notin X_S^{(i)} S ∈ S B ( f ( i ) ) 且 x ( i ) ∈ / X S ( i ) 即
x ( i ) ∉ ∪ S ∈ S B ( f ( i ) ) X S ( i ) . x^{(i)} \notin \cup_{S \in \mathcal{S}_B(f^{(i)})}X_S^{(i)}. x ( i ) ∈ / ∪ S ∈ S B ( f ( i ) ) X S ( i ) . 这表明 f f ( i ) , x ( i ) ( i + 1 ) f_{f^{(i)},x^{(i)}}^{(i+1)} f f ( i ) , x ( i ) ( i + 1 ) 与(唯一)最近的 RS ( i + 1 ) \text{RS}^{(i+1)} RS ( i + 1 ) -码字 f ˉ f ( i ) , x ( i ) ( i + 1 ) \bar{f}_{f^{(i)},x^{(i)}}^{(i+1)} f ˉ f ( i ) , x ( i ) ( i + 1 ) 在所有的 { y S ∣ S ∈ S B ( f ( i ) ) } \{y_S|S \in \mathcal{S}_B(f^{(i)})\} { y S ∣ S ∈ S B ( f ( i ) )} 上不一致当且仅当 x ( i ) ∉ ∪ S ∈ S B ( f ( i ) ) X S ( i ) x^{(i)} \notin \cup_{S \in \mathcal{S}_B(f^{(i)})}X_S^{(i)} x ( i ) ∈ / ∪ S ∈ S B ( f ( i ) ) X S ( i ) 。那么
B [ f ( i ) , δ ( i ) ] = { x ( i ) ∈ F ∣ Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) < δ ( i ) } = { x ( i ) ∈ F ∣ Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ f ( i ) , x ( i ) ( i + 1 ) ) < δ ( i ) } B\left[ f^{(i)}, \delta^{(i)} \right] = \left \{ x^{(i)} \in \mathbb{F} | \Delta_H\left(f_{f^{(i)},x^{(i)}}^{(i+1)}, \text{RS}^{(i+1)}\right) < \delta^{(i)} \right \} = \left \{ x^{(i)} \in \mathbb{F} | \Delta_H\left(f_{f^{(i)},x^{(i)}}^{(i+1)}, \bar{f}_{f^{(i)},x^{(i)}}^{(i+1)}\right) < \delta^{(i)} \right \} B [ f ( i ) , δ ( i ) ] = { x ( i ) ∈ F ∣ Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , RS ( i + 1 ) ) < δ ( i ) } = { x ( i ) ∈ F ∣ Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ f ( i ) , x ( i ) ( i + 1 ) ) < δ ( i ) } 而 δ ( i ) \delta^{(i)} δ ( i ) 表示的正是 ∣ S B ( f ( i ) ) ∣ |\mathcal{S}_B(f^{(i)})| ∣ S B ( f ( i ) ) ∣ 比上 L 0 ( i ) L_0^{(i)} L 0 ( i ) 的陪集个数,Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ f ( i ) , x ( i ) ( i + 1 ) ) < δ ( i ) \Delta_H\left(f_{f^{(i)},x^{(i)}}^{(i+1)}, \bar{f}_{f^{(i)},x^{(i)}}^{(i+1)}\right) < \delta^{(i)} Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ f ( i ) , x ( i ) ( i + 1 ) ) < δ ( i ) 表示的含义就是 f f ( i ) , x ( i ) ( i + 1 ) f_{f^{(i)},x^{(i)}}^{(i+1)} f f ( i ) , x ( i ) ( i + 1 ) 与 f ˉ f ( i ) , x ( i ) ( i + 1 ) \bar{f}_{f^{(i)},x^{(i)}}^{(i+1)} f ˉ f ( i ) , x ( i ) ( i + 1 ) 能在某些 { y S ∣ S ∈ S B ( f ( i ) ) } \{y_S|S \in \mathcal{S}_B(f^{(i)})\} { y S ∣ S ∈ S B ( f ( i ) )} 上一致,这样自然小于 δ ( i ) \delta^{(i)} δ ( i ) 。而 f f ( i ) , x ( i ) ( i + 1 ) f_{f^{(i)},x^{(i)}}^{(i+1)} f f ( i ) , x ( i ) ( i + 1 ) 与(唯一)最近的 RS ( i + 1 ) \text{RS}^{(i+1)} RS ( i + 1 ) -码字 f ˉ f ( i ) , x ( i ) ( i + 1 ) \bar{f}_{f^{(i)},x^{(i)}}^{(i+1)} f ˉ f ( i ) , x ( i ) ( i + 1 ) 在某些的 { y S ∣ S ∈ S B ( f ( i ) ) } \{y_S|S \in \mathcal{S}_B(f^{(i)})\} { y S ∣ S ∈ S B ( f ( i ) )} 上一致当且仅当 x ( i ) ∈ ∪ S ∈ S B ( f ( i ) ) X S ( i ) x^{(i)} \in \cup_{S \in \mathcal{S}_B(f^{(i)})}X_S^{(i)} x ( i ) ∈ ∪ S ∈ S B ( f ( i ) ) X S ( i ) 。因此可得
B [ f ( i ) , δ ( i ) ] = { x ( i ) ∈ F ∣ Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ f ( i ) , x ( i ) ( i + 1 ) ) < δ ( i ) } = ⋃ S ∈ S B ( f ( i ) ) X S ( i ) B\left[ f^{(i)}, \delta^{(i)} \right] = \left \{ x^{(i)} \in \mathbb{F} | \Delta_H\left(f_{f^{(i)},x^{(i)}}^{(i+1)}, \bar{f}_{f^{(i)},x^{(i)}}^{(i+1)}\right) < \delta^{(i)} \right \} = \bigcup_{S \in \mathcal{S}_B(f^{(i)})}X_S^{(i)} B [ f ( i ) , δ ( i ) ] = { x ( i ) ∈ F ∣ Δ H ( f f ( i ) , x ( i ) ( i + 1 ) , f ˉ f ( i ) , x ( i ) ( i + 1 ) ) < δ ( i ) } = S ∈ S B ( f ( i ) ) ⋃ X S ( i ) 至此得证上面要证的等式,即
B [ f ( i ) , δ ( i ) ] = ⋃ S ∈ S B ( f ( i ) ) X S ( i ) B\left[ f^{(i)}, \delta^{(i)} \right] = \bigcup_{S \in \mathcal{S}_B(f^{(i)})}X_S^{(i)} B [ f ( i ) , δ ( i ) ] = S ∈ S B ( f ( i ) ) ⋃ X S ( i ) 有了这个等式之后,现在来估计等式右边的界。事实上,interpolant f ( i ) ∣ S \text{interpolant}^{f^{(i)}|_{S}} interpolant f ( i ) ∣ S 与 interpolant f ˉ ( i ) ∣ S \text{interpolant}^{\bar{f}^{(i)}|_S} interpolant f ˉ ( i ) ∣ S 是次数小于 ∣ S ∣ |S| ∣ S ∣ 的两个不同的多项式,因此 ∣ X S ∣ < ∣ S ∣ |X_S| < |S| ∣ X S ∣ < ∣ S ∣ ,否则如果 ∣ X S ∣ ≥ ∣ S ∣ |X_S| \ge |S| ∣ X S ∣ ≥ ∣ S ∣ ,那么根据 X S X_S X S 的定义, interpolant f ( i ) ∣ S \text{interpolant}^{f^{(i)}|_{S}} interpolant f ( i ) ∣ S 与 interpolant f ˉ ( i ) ∣ S \text{interpolant}^{\bar{f}^{(i)}|_S} interpolant f ˉ ( i ) ∣ S 会在超过 ∣ S ∣ |S| ∣ S ∣ 个点上一致,这时两个插值多项式就会相同了,这与 interpolant f ( i ) ∣ S \text{interpolant}^{f^{(i)}|_{S}} interpolant f ( i ) ∣ S 和 interpolant f ˉ ( i ) ∣ S \text{interpolant}^{\bar{f}^{(i)}|_S} interpolant f ˉ ( i ) ∣ S 是两个不同的多项式是矛盾的。因此
∣ B [ f ( i ) , δ ( i ) ] ∣ = ∣ ⋃ S ∈ S B ( f ( i ) ) X S ( i ) ∣ < ∣ S ∣ ⋅ ∣ S B ( f ( i ) ) ∣ ≤ ∣ L ( i ) ∣ , \left\lvert B\left[ f^{(i)}, \delta^{(i)} \right] \right\rvert = \left\lvert \bigcup_{S \in \mathcal{S}_B(f^{(i)})}X_S^{(i)} \right\rvert < |S| \cdot \left\lvert \mathcal{S}_B\left(f^{(i)}\right) \right\rvert \le |L^{(i)}|, ∣ ∣ B [ f ( i ) , δ ( i ) ] ∣ ∣ = ∣ ∣ S ∈ S B ( f ( i ) ) ⋃ X S ( i ) ∣ ∣ < ∣ S ∣ ⋅ ∣ ∣ S B ( f ( i ) ) ∣ ∣ ≤ ∣ L ( i ) ∣ , 至此证得了 Lemma 4 的第一个不等式
Pr x ( i ) ∈ F [ x ( i ) ∈ B [ f ( i ) ; δ ( i ) ] ] = ∣ B [ f ( i ) , δ ( i ) ] ∣ ∣ F ∣ ≤ ∣ L ( i ) ∣ ∣ F ∣ . \Pr_{x^{(i)} \in \mathbb{F}} \left[ x^{(i)} \in B \left[ f^{(i)}; \delta^{(i)} \right ] \right] = \frac{\left\lvert B\left[ f^{(i)}, \delta^{(i)} \right] \right\rvert}{|\mathbb{F}|}\le \frac{|L^{(i)}|}{|\mathbb{F}|}. x ( i ) ∈ F Pr [ x ( i ) ∈ B [ f ( i ) ; δ ( i ) ] ] = ∣ F ∣ ∣ ∣ B [ f ( i ) , δ ( i ) ] ∣ ∣ ≤ ∣ F ∣ ∣ L ( i ) ∣ . 下面考虑在 Lemma 中假设的序列 f ⃗ \vec{f} f 与 x ⃗ \vec{x} x 。为简单起见,我们假设 f ˉ ( i ) \bar{f}^{(i)} f ˉ ( i ) 在 L ( i ) L^{(i)} L ( i ) 上的求值得到是零函数,记这个函数为 0 ∣ L ( i ) \mathbf{0}|_{L^{(i)}} 0 ∣ L ( i ) 。如果不是这种情况,我们可以通过 f ( i ) − f ˉ ( i ) f^{(i)} - \bar{f}^{(i)} f ( i ) − f ˉ ( i ) 来得到零函数。那么
f f ˉ ( i ) , x ( i ) ( i + 1 ) = f 0 ∣ L ( i ) , x ( i ) ( i + 1 ) = 0 ∣ L ( i + 1 ) f_{\bar{f}^{(i)},x^{(i)}}^{(i+1)} = f_{\mathbf{0}|_{L^{(i)}},x^{(i)}}^{(i+1)} = \mathbf{0}|_{L^{(i+1)}} f f ˉ ( i ) , x ( i ) ( i + 1 ) = f 0 ∣ L ( i ) , x ( i ) ( i + 1 ) = 0 ∣ L ( i + 1 ) 由引理的第 2 个假设得 f ˉ ( i + 1 ) = f f ˉ ( i ) , x ( i ) ( i + 1 ) = 0 ∣ L ( i + 1 ) \bar{f}^{(i+1)} = f_{\bar{f}^{(i)},x^{(i)}}^{(i+1)} = \mathbf{0}|_{L^{(i+1)}} f ˉ ( i + 1 ) = f f ˉ ( i ) , x ( i ) ( i + 1 ) = 0 ∣ L ( i + 1 ) ,那么
f f ˉ ( i + 1 ) , x ( i ) ( i + 2 ) = f 0 ∣ L ( i + 1 ) , x ( i ) ( i + 2 ) = 0 ∣ L ( i + 2 ) f_{\bar{f}^{(i+1)},x^{(i)}}^{(i+2)} = f_{\mathbf{0}|_{L^{(i+1)}},x^{(i)}}^{(i+2)} = \mathbf{0}|_{L^{(i+2)}} f f ˉ ( i + 1 ) , x ( i ) ( i + 2 ) = f 0 ∣ L ( i + 1 ) , x ( i ) ( i + 2 ) = 0 ∣ L ( i + 2 ) 同样由引理的第 2 个假设得 f ˉ ( i + 2 ) = f f ˉ ( i + 1 ) , x ( i ) ( i + 2 ) = 0 ∣ L ( i + 2 ) \bar{f}^{(i+2)} = f_{\bar{f}^{(i+1)},x^{(i)}}^{(i+2)} = \mathbf{0}|_{L^{(i+2)}} f ˉ ( i + 2 ) = f f ˉ ( i + 1 ) , x ( i ) ( i + 2 ) = 0 ∣ L ( i + 2 ) ,以此类推,通过归纳法,可得对于所有的 j ∈ { i , ⋯ , r } j \in \{i, \cdots, r\} j ∈ { i , ⋯ , r } 有 f ˉ ( j ) = 0 ∣ L ( j ) \bar{f}^{(j)} = \mathbf{0}|_{L^{(j)}} f ˉ ( j ) = 0 ∣ L ( j ) 。特别地,f ( r ) = 0 ∣ L ( r ) f^{(r)} = \mathbf{0}|_{L^{(r)}} f ( r ) = 0 ∣ L ( r ) 。
考虑在 QUERY 阶段的序列 ( s ( i ) , ⋯ , s ( r ) ) (s^{(i)}, \cdots, s^{(r)}) ( s ( i ) , ⋯ , s ( r ) ) ,其中 s ( i ) ∈ D ( i ) s^{(i)} \in D^{(i)} s ( i ) ∈ D ( i ) 。令 j j j 表示使得 s ( j ) ∈ D ( j ) s^{(j)} \in D^{(j)} s ( j ) ∈ D ( j ) 成立的最大的整数。由于 s ( i ) ∈ D ( i ) s^{(i)} \in D^{(i)} s ( i ) ∈ D ( i ) ,因此定义的这个 j j j 是能得到的。由定义 f ( r ) = 0 ∣ L ( r ) f^{(r)} = \mathbf{0}|_{L^{(r)}} f ( r ) = 0 ∣ L ( r ) 可得 D ( r ) = ∅ D^{(r)} = \emptyset D ( r ) = ∅ ,因此 j < r j < r j < r 。结合引理的第 3 个假设对所有的 j ∈ { i , ⋯ , r } j \in \{i, \cdots, r\} j ∈ { i , ⋯ , r } 有 x ( j ) ∉ B [ f ( i ) ; δ ( j ) ] x^{(j)} \notin B[f^{(i)};\delta^{(j)}] x ( j ) ∈ / B [ f ( i ) ; δ ( j ) ] 以及前面证得的等式
B [ f ( i ) , δ ( i ) ] = ⋃ S ∈ S B ( f ( i ) ) X S ( i ) B\left[ f^{(i)}, \delta^{(i)} \right] = \bigcup_{S \in \mathcal{S}_B(f^{(i)})}X_S^{(i)} B [ f ( i ) , δ ( i ) ] = S ∈ S B ( f ( i ) ) ⋃ X S ( i ) 可得 x ( j ) ∉ ⋃ S ∈ S ( j ) X S ( j ) x^{(j)} \notin \bigcup_{S \in \mathcal{S}^{(j)}}X_S^{(j)} x ( j ) ∈ / ⋃ S ∈ S ( j ) X S ( j ) ,因此 f f ( j ) , x ( i ) ( j + 1 ) ( s ( j + 1 ) ) ≠ 0 f_{f^{(j)},x^{(i)}}^{(j+1)}(s^{(j+1)}) \neq 0 f f ( j ) , x ( i ) ( j + 1 ) ( s ( j + 1 ) ) = 0 。但是通过 j j j 的定义知 j j j 是使得 s ( j ) ∈ D ( j ) s^{(j)} \in D^{(j)} s ( j ) ∈ D ( j ) 成立的最大的整数,那么对于比 j j j 大的 j + 1 j + 1 j + 1 有 s ( j + 1 ) ∉ D ( j + 1 ) s^{(j+ 1)} \notin D^{(j+1)} s ( j + 1 ) ∈ / D ( j + 1 ) ,根据 D ( j + 1 ) D^{(j+1)} D ( j + 1 ) 的定义,D ( j + 1 ) = ∪ S ∈ S B ( j + 1 ) S D^{(j+1)} = \cup_{S \in \mathcal{S}_B^{(j+1)}}S D ( j + 1 ) = ∪ S ∈ S B ( j + 1 ) S ,其中 S S S 表示那些 “坏” 的陪集,即
S B ( j + 1 ) = { S ∈ S ( j + 1 ) ∣ f ( j + 1 ) ∣ S ≠ f ˉ ( j + 1 ) ∣ S } \mathcal{S}_B^{(j+1)} = \left\{ S \in \mathcal{S}^{(j+1)} | f^{(j+1)}|_S \neq \bar{f}^{(j+1)}|_S \right\} S B ( j + 1 ) = { S ∈ S ( j + 1 ) ∣ f ( j + 1 ) ∣ S = f ˉ ( j + 1 ) ∣ S } 而 s ( j + 1 ) ∉ D ( j + 1 ) s^{(j+ 1)} \notin D^{(j+1)} s ( j + 1 ) ∈ / D ( j + 1 ) ,因此有 f ( j + 1 ) ( s ( j + 1 ) ) = f ˉ ( j + 1 ) ( s ( j + 1 ) ) = 0 f^{(j+1)}(s^{(j+1)}) = \bar{f}^{(j+1)}(s^{(j+1)}) = 0 f ( j + 1 ) ( s ( j + 1 ) ) = f ˉ ( j + 1 ) ( s ( j + 1 ) ) = 0 。至此我们得到
f f ( j ) , x ( i ) ( j + 1 ) ( s ( j + 1 ) ) ≠ 0 f_{f^{(j)},x^{(i)}}^{(j+1)}(s^{(j+1)}) \neq 0 f f ( j ) , x ( i ) ( j + 1 ) ( s ( j + 1 ) ) = 0 f ( j + 1 ) ( s ( j + 1 ) ) = 0 f^{(j+1)}(s^{(j+1)}) = 0 f ( j + 1 ) ( s ( j + 1 ) ) = 0 因此
f f ( j ) , x ( i ) ( j + 1 ) ( s ( j + 1 ) ) ≠ f ( j + 1 ) ( s ( j + 1 ) ) f_{f^{(j)},x^{(i)}}^{(j+1)}(s^{(j+1)}) \neq f^{(j+1)}(s^{(j+1)}) f f ( j ) , x ( i ) ( j + 1 ) ( s ( j + 1 ) ) = f ( j + 1 ) ( s ( j + 1 ) ) 这表示在 QUERY 阶段不会通过 round consistency 检查,也就是 Verifier 在 QUERY 阶段一定会拒绝序列 ( s ( i ) , ⋯ , s ( r ) ) (s^{(i)}, \cdots, s^{(r)}) ( s ( i ) , ⋯ , s ( r ) ) 。这证明了
Pr s ( i ) ∈ D ( i ) [ QUERY ( f ⃗ , x ⃗ ) = reject ] = 1 \Pr_{s^{(i)} \in D^{(i)}} \left[ \text{QUERY}\left(\vec{f}, \vec{x}\right) = \text{reject} \right] = 1 s ( i ) ∈ D ( i ) Pr [ QUERY ( f , x ) = reject ] = 1 由 δ ( i ) \delta^{(i)} δ ( i ) 以及集合 D ( i ) D^{(i)} D ( i ) 的定义可知
δ ( i ) = ∣ D ( i ) ∣ ∣ L ( i ) ∣ \delta^{(i)} = \frac{|D^{(i)}|}{|L^{(i)}|} δ ( i ) = ∣ L ( i ) ∣ ∣ D ( i ) ∣ 因此
Pr s ( i ) ∈ L ( i ) [ QUERY ( f ⃗ , x ⃗ ) = reject ] ≥ ∣ D ( i ) ∣ ∣ L ( i ) ∣ = δ ( i ) \Pr_{s^{(i)} \in L^{(i)}} \left[ \text{QUERY}(\vec{f}, \vec{x}) = \text{reject} \right] \ge \frac{|D^{(i)}|}{| L^{(i)} |} = \delta^{(i)} s ( i ) ∈ L ( i ) Pr [ QUERY ( f , x ) = reject ] ≥ ∣ L ( i ) ∣ ∣ D ( i ) ∣ = δ ( i ) 至此证得了 Lemma 4。 \Box
超过唯一解码半径 —— Lemma 3 的证明 ¶ 为了证明 Lemma 3 ,我们需要 [Spi95] 中引理 4.2.18 的以下改进版本。
Lemma 7 [BBHR18b, Lemma 4.7] Let E ( X , Y ) E(X, Y) E ( X , Y ) be a polynomial of degree ( α m , δ n ) (\alpha m, \delta n) ( α m , δ n ) and P ( X , Y ) P(X, Y) P ( X , Y ) a polynomial of degree ( ( α + ϵ ) m , ( δ + ρ ) n ) ((\alpha + \epsilon)m, (\delta + \rho)n) (( α + ϵ ) m , ( δ + ρ ) n ) . If there exist distinct x 1 , ⋯ , x m x_1, \cdots, x_m x 1 , ⋯ , x m such that E ( x i , Y ) ∣ P ( x i , Y ) E(x_i, Y) | P(x_i, Y) E ( x i , Y ) ∣ P ( x i , Y ) and y 1 , ⋯ , y n y_1, \cdots, y_n y 1 , ⋯ , y n such that E ( X , y i ) ∣ P ( X , y i ) E(X, y_i) | P(X, y_i) E ( X , y i ) ∣ P ( X , y i ) and
1 > max { δ + ρ , 2 α + ϵ + ρ δ } 1 > \max \left\{ \delta + \rho, 2\alpha + \epsilon + \frac{\rho}{\delta} \right\} 1 > max { δ + ρ , 2 α + ϵ + δ ρ } then E ( X , Y ) ∣ P ( X , Y ) E(X, Y) | P(X, Y) E ( X , Y ) ∣ P ( X , Y ) .
Lemma 3 的证明 :下面证明 Lemma 3 的逆否命题。先回顾下 Lemma 3 ,其说的是,对于任意的 ϵ ≤ 2 η ∣ F ∣ \epsilon \le \frac{2^{\eta}}{|\mathbb{F}|} ϵ ≤ ∣ F ∣ 2 η 以及 f ( i ) f^{(i)} f ( i ) ,有 δ ( i ) = Δ ( i ) ( f ( i ) , RS ( i ) ) > 0 \delta^{(i)} = \Delta^{(i)}(f^{(i)}, \text{RS}^{(i)})>0 δ ( i ) = Δ ( i ) ( f ( i ) , RS ( i ) ) > 0 , 那么
∣ B [ f ( i ) ; 1 2 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ F ∣ ≤ 2 η ϵ ∣ F ∣ . \frac{\left\lvert B \left[ f^{(i)}; \frac{1}{2} \cdot \left( \delta^{(i)} (1 - \epsilon) - \rho \right) \right ]\right\rvert }{|\mathbb{F}|} \le \frac{2^{\eta}}{\epsilon |\mathbb{F}|}. ∣ F ∣ ∣ ∣ B [ f ( i ) ; 2 1 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ ≤ ϵ ∣ F ∣ 2 η . 现在对其取逆否命题,得到
命题8 如果对于某些 ϵ ≥ 2 η ∣ F ∣ \epsilon \ge \frac{2^{\eta}}{|\mathbb{F}|} ϵ ≥ ∣ F ∣ 2 η ,如果有
∣ B [ f ( i ) ; 1 2 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ F ∣ > 2 η ϵ ∣ F ∣ \frac{\left\lvert B \left[ f^{(i)}; \frac{1}{2} \cdot \left( \delta^{(i)} (1 - \epsilon) - \rho \right) \right ]\right\rvert }{|\mathbb{F}|} > \frac{2^{\eta}}{\epsilon |\mathbb{F}|} ∣ F ∣ ∣ ∣ B [ f ( i ) ; 2 1 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ > ϵ ∣ F ∣ 2 η 那么
δ ( i ) = Δ ( i ) ( f ( i ) , RS ( i ) ) ≤ 0 \delta^{(i)} = \Delta^{(i)}(f^{(i)}, \text{RS}^{(i)}) \le 0 δ ( i ) = Δ ( i ) ( f ( i ) , RS ( i ) ) ≤ 0 其等价于下面的命题
命题9 对于某些 ϵ ≥ 2 η ∣ F ∣ \epsilon \ge \frac{2^{\eta}}{|\mathbb{F}|} ϵ ≥ ∣ F ∣ 2 η ,如果有
∣ B [ f ( i ) ; 1 2 ⋅ ( δ ( 1 − ϵ ) − ρ ) ] ∣ ∣ F ∣ > 2 η ϵ ∣ F ∣ \frac{\left\lvert B \left[ f^{(i)}; \frac{1}{2} \cdot \left( \delta (1 - \epsilon) - \rho \right) \right ]\right\rvert }{|\mathbb{F}|} > \frac{2^{\eta}}{\epsilon |\mathbb{F}|} ∣ F ∣ ∣ ∣ B [ f ( i ) ; 2 1 ⋅ ( δ ( 1 − ϵ ) − ρ ) ] ∣ ∣ > ϵ ∣ F ∣ 2 η 那么
δ ( i ) < δ \delta^{(i)} < \delta δ ( i ) < δ 下面证明下命题 8 与命题 9 等价
证明 : ⇒ ) \Rightarrow) ⇒ ) 反证法,假设命题 9 结论不成立,那么
δ ( i ) ≥ δ \delta^{(i)} \ge \delta δ ( i ) ≥ δ 此时由命题 9 条件可得
∣ B [ f ( i ) ; 1 2 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ F ∣ ≥ ∣ B [ f ( i ) ; 1 2 ⋅ ( δ ( 1 − ϵ ) − ρ ) ] ∣ ∣ F ∣ > 2 η ϵ ∣ F ∣ \frac{\left\lvert B \left[ f^{(i)}; \frac{1}{2} \cdot \left( \delta^{(i)} (1 - \epsilon) - \rho \right) \right ]\right\rvert }{|\mathbb{F}|} \ge \frac{\left\lvert B \left[ f^{(i)}; \frac{1}{2} \cdot \left( \delta (1 - \epsilon) - \rho \right) \right ]\right\rvert }{|\mathbb{F}|} > \frac{2^{\eta}}{\epsilon |\mathbb{F}|} ∣ F ∣ ∣ ∣ B [ f ( i ) ; 2 1 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ ≥ ∣ F ∣ ∣ ∣ B [ f ( i ) ; 2 1 ⋅ ( δ ( 1 − ϵ ) − ρ ) ] ∣ ∣ > ϵ ∣ F ∣ 2 η 那么满足命题 8 的条件,因此
δ ( i ) ≤ 0 \delta^{(i)} \le 0 δ ( i ) ≤ 0 这与假设 δ ( i ) ≥ δ \delta^{(i)} \ge \delta δ ( i ) ≥ δ 是矛盾的。因此命题 9 的结论成立。
⇐ ) \Leftarrow) ⇐ ) 反证法,假设命题 8 结论不成立,那么
δ ( i ) > 0 \delta^{(i)} > 0 δ ( i ) > 0 也就是存在这样一个 δ > 0 \delta > 0 δ > 0 ,使得下面的式子成立
δ ( i ) ≥ δ > 0 \delta^{(i)} \ge \delta > 0 δ ( i ) ≥ δ > 0 则
∣ B [ f ( i ) ; 1 2 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ F ∣ ≥ ∣ B [ f ( i ) ; 1 2 ⋅ ( δ ( 1 − ϵ ) − ρ ) ] ∣ ∣ F ∣ \frac{\left\lvert B \left[ f^{(i)}; \frac{1}{2} \cdot \left( \delta^{(i)} (1 - \epsilon) - \rho \right) \right ]\right\rvert }{|\mathbb{F}|} \ge \frac{\left\lvert B \left[ f^{(i)}; \frac{1}{2} \cdot \left( \delta (1 - \epsilon) - \rho \right) \right ]\right\rvert }{|\mathbb{F}|} ∣ F ∣ ∣ ∣ B [ f ( i ) ; 2 1 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ ≥ ∣ F ∣ ∣ ∣ B [ f ( i ) ; 2 1 ⋅ ( δ ( 1 − ϵ ) − ρ ) ] ∣ ∣ 又由命题 8 的条件可得
∣ B [ f ( i ) ; 1 2 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ F ∣ > 2 η ϵ ∣ F ∣ \frac{\left\lvert B \left[ f^{(i)}; \frac{1}{2} \cdot \left( \delta^{(i)} (1 - \epsilon) - \rho \right) \right ]\right\rvert }{|\mathbb{F}|} > \frac{2^{\eta}}{\epsilon |\mathbb{F}|} ∣ F ∣ ∣ ∣ B [ f ( i ) ; 2 1 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ > ϵ ∣ F ∣ 2 η 通过上述两个不等式,得到 2 η ϵ ∣ F ∣ \frac{2^{\eta}}{\epsilon |\mathbb{F}|} ϵ ∣ F ∣ 2 η 已经是
∣ B [ f ( i ) ; 1 2 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ F ∣ \frac{\left\lvert B \left[ f^{(i)}; \frac{1}{2} \cdot \left( \delta^{(i)} (1 - \epsilon) - \rho \right) \right ]\right\rvert }{|\mathbb{F}|} ∣ F ∣ ∣ ∣ B [ f ( i ) ; 2 1 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ 的一个下界,那么可以得出
∣ B [ f ( i ) ; 1 2 ⋅ ( δ ( 1 − ϵ ) − ρ ) ] ∣ ∣ F ∣ > 2 η ϵ ∣ F ∣ \frac{\left\lvert B \left[ f^{(i)}; \frac{1}{2} \cdot \left( \delta (1 - \epsilon) - \rho \right) \right ]\right\rvert }{|\mathbb{F}|} > \frac{2^{\eta}}{\epsilon |\mathbb{F}|} ∣ F ∣ ∣ ∣ B [ f ( i ) ; 2 1 ⋅ ( δ ( 1 − ϵ ) − ρ ) ] ∣ ∣ > ϵ ∣ F ∣ 2 η 满足命题 9 的条件,因此可以得到
δ ( i ) < δ \delta^{(i)} < \delta δ ( i ) < δ 这与假设是矛盾的,因此命题 8 的结论成立。\Box
🤔 Question
现在已经证明了命题 9 与 Lemma 3 等价,下面证明命题 9。先固定一些常数:令 n = ∣ L ( i + 1 ) ∣ n = |L^{(i+1)}| n = ∣ L ( i + 1 ) ∣ ,α = 1 2 ( 1 − ϵ − ρ δ ) \alpha = \frac{1}{2}(1 - \epsilon - \frac{\rho}{\delta} ) α = 2 1 ( 1 − ϵ − δ ρ ) ,δ ′ = δ α \delta' = \delta \alpha δ ′ = δ α , B = B [ f ( i ) ; δ ′ ] B = B[f^{(i)};\delta'] B = B [ f ( i ) ; δ ′ ] 以及 m = ∣ B ∣ m = |B| m = ∣ B ∣ 。由 B B B 的定义可得,对任意的 x ∈ B x \in B x ∈ B ,都有 Δ H ( f f ( i ) , x ( i + 1 ) , RS ( i + 1 ) ) < δ ′ \Delta_H\left(f_{f^{(i)},x}^{(i+1)}, \text{RS}^{(i+1)}\right) < \delta' Δ H ( f f ( i ) , x ( i + 1 ) , RS ( i + 1 ) ) < δ ′ 。回顾下 cloest codeword 的定义,我们知道 f ˉ f ( i ) , x ( i + 1 ) ∈ RS ( i + 1 ) \bar{f}_{f^{(i)},x}^{(i+1)} \in \text{RS}^{(i+1)} f ˉ f ( i ) , x ( i + 1 ) ∈ RS ( i + 1 ) 是距离 f f ( i ) , x ( i + 1 ) f_{f^{(i)},x}^{(i+1)} f f ( i ) , x ( i + 1 ) 最近的码字,由于我们考虑的解码半径超过唯一解码半径,可能有多个码字都距离 f f ( i ) , x ( i + 1 ) f_{f^{(i)},x}^{(i+1)} f f ( i ) , x ( i + 1 ) 是最近的,这里我们任取其一。
令 C ( X , Y ) C(X,Y) C ( X , Y ) 表示一个多项式,满足 deg X ( C ) < m \deg_X(C) < m deg X ( C ) < m ,deg Y ( C ) < ρ n \deg_Y(C) < \rho n deg Y ( C ) < ρ n ,并且对每一个 x ∈ B x \in B x ∈ B ,多项式 C ( x , Y ) C(x,Y) C ( x , Y ) 与 f ˉ f ( i ) , x ( i + 1 ) ( Y ) \bar{f}_{f^{(i)},x}^{(i+1)}(Y) f ˉ f ( i ) , x ( i + 1 ) ( Y ) 都是一致的。多项式 C ( X , Y ) C(X,Y) C ( X , Y ) 是存在的,因为根据定义,f ˉ f ( i ) , x ( i + 1 ) \bar{f}_{f^{(i)},x}^{(i+1)} f ˉ f ( i ) , x ( i + 1 ) 是一个次数小于 ρ n \rho n ρ n 的多项式的 evaluation 。通过命题 1 ,令 Q ( i ) Q^{(i)} Q ( i ) 表示与 f ( i ) f^{(i)} f ( i ) 相关的多项式,即
Q ( i ) ( X , Y ) = P ( i ) ( X ) mod Y − q ( i ) ( X ) Q^{(i)}(X,Y) = P^{(i)}(X) \qquad \text{mod} \; Y - q^{(i)}(X) Q ( i ) ( X , Y ) = P ( i ) ( X ) mod Y − q ( i ) ( X ) 通过命题 1 的第 2 项可得,deg X ( Q ( i ) ) < ∣ L 0 ( i ) ∣ \deg_X(Q^{(i)}) < |L_0^{(i)}| deg X ( Q ( i ) ) < ∣ L 0 ( i ) ∣ ,通过定义可知 ∣ L 0 ( i ) ∣ = 2 η |L_0^{(i)}| = 2^{\eta} ∣ L 0 ( i ) ∣ = 2 η 。由于 ∣ B [ f ( i ) ; 1 2 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ = ∣ B [ f ( i ) ; δ ′ ] ∣ = m \left\lvert B \left[ f^{(i)}; \frac{1}{2} \cdot \left( \delta^{(i)} (1 - \epsilon) - \rho \right) \right ]\right\rvert = \left\lvert B \left[ f^{(i)}; \delta' \right ]\right\rvert = m ∣ ∣ B [ f ( i ) ; 2 1 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ = ∣ ∣ B [ f ( i ) ; δ ′ ] ∣ ∣ = m ,则由命题 9 的条件
∣ B [ f ( i ) ; 1 2 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ F ∣ > 2 η ϵ ∣ F ∣ \frac{\left\lvert B \left[ f^{(i)}; \frac{1}{2} \cdot \left( \delta^{(i)} (1 - \epsilon) - \rho \right) \right ]\right\rvert }{|\mathbb{F}|} > \frac{2^{\eta}}{\epsilon |\mathbb{F}|} ∣ F ∣ ∣ ∣ B [ f ( i ) ; 2 1 ⋅ ( δ ( i ) ( 1 − ϵ ) − ρ ) ] ∣ ∣ > ϵ ∣ F ∣ 2 η 可得
m ∣ F ∣ > 2 η ϵ ∣ F ∣ \frac{m}{|\mathbb{F}|} > \frac{2^{\eta}}{\epsilon |\mathbb{F}|} ∣ F ∣ m > ϵ ∣ F ∣ 2 η 因此 2 η < ϵ m 2^{\eta} < \epsilon m 2 η < ϵ m ,因此 deg X ( Q ( i ) ) < ∣ L 0 ( i ) ∣ = 2 η < ϵ m \deg_X(Q^{(i)}) < |L_0^{(i)}| = 2^{\eta} < \epsilon m deg X ( Q ( i ) ) < ∣ L 0 ( i ) ∣ = 2 η < ϵ m 。通过命题 1 的第 1 项可以得到对任意的 x ∈ L ( i ) x \in L^{(i)} x ∈ L ( i ) 有
f ( i ) ( x ) = Q ( i ) ( x , q ( i ) ( x ) ) f^{(i)}(x) = Q^{(i)}(x, q^{(i)}(x)) f ( i ) ( x ) = Q ( i ) ( x , q ( i ) ( x )) 根据 COMMIT 阶段的定义,有对于每一个 y ∈ L ( i + 1 ) y \in L^{(i+1)} y ∈ L ( i + 1 ) ,
令 S y = { x ∈ L ( i ) ∣ q ( i ) ( x ) = y } S_y = \{x \in L^{(i)} | q^{(i)}(x) = y\} S y = { x ∈ L ( i ) ∣ q ( i ) ( x ) = y } 是 L 0 ( i ) L_0^{(i)} L 0 ( i ) 的陪集,并且通过映射 q ( i ) q^{(i)} q ( i ) 将 x x x 映射到 y y y ; P y ( i ) ( X ) ≜ interpolant f ( i ) ∣ S y P_y^{(i)}(X) \triangleq \text{interpolant}^{f^{(i)}|_{S_y}} P y ( i ) ( X ) ≜ interpolant f ( i ) ∣ S y f f ( i ) , x ( i ) ( i + 1 ) ( y ) ≜ P y ( i ) ( x ( i ) ) f_{f^{(i)},x^{(i)}}^{(i+1)}(y) \triangleq P_y^{(i)}(x^{(i)}) f f ( i ) , x ( i ) ( i + 1 ) ( y ) ≜ P y ( i ) ( x ( i ) ) .那么可以得到
P y ( i ) ( X ) ≜ interpolant f ( i ) ∣ S y = Q ( i ) ( X , y ) P_y^{(i)}(X) \triangleq \text{interpolant}^{f^{(i)}|_{S_y}} = Q^{(i)}(X, y) P y ( i ) ( X ) ≜ interpolant f ( i ) ∣ S y = Q ( i ) ( X , y ) 因此
f f ( i ) , x ( i ) ( i + 1 ) ( y ) ≜ P y ( i ) ( x ( i ) ) = Q ( i ) ( x ( i ) , y ) f_{f^{(i)},x^{(i)}}^{(i+1)}(y) \triangleq P_y^{(i)}(x^{(i)}) = Q^{(i)}(x^{(i)}, y) f f ( i ) , x ( i ) ( i + 1 ) ( y ) ≜ P y ( i ) ( x ( i ) ) = Q ( i ) ( x ( i ) , y ) 注意上面的 x ( i ) ∈ F x^{(i)} \in \mathbb{F} x ( i ) ∈ F ,将随机数 x ( i ) x^{(i)} x ( i ) 改记为 x x x ,那么可以得到对于任意的 x ∈ F x \in \mathbb{F} x ∈ F 以及任意的 y ∈ L ( i + 1 ) y \in L^{(i+1)} y ∈ L ( i + 1 ) 有
f f ( i ) , x ( i + 1 ) ( y ) = Q ( i ) ( x , y ) . f_{f^{(i)},x}^{(i+1)}(y) = Q^{(i)}(x, y). f f ( i ) , x ( i + 1 ) ( y ) = Q ( i ) ( x , y ) . 通过 distortion set 的定义,得到
B [ f ( i ) ; δ ′ ] = { x ∈ F ∣ Δ H ( f f ( i ) , x ( i + 1 ) , RS ( i + 1 ) ) < δ ′ } B \left[ f^{(i)}; \delta' \right ] = \left\{ x \in \mathbb{F} | \Delta_H \left( f_{f^{(i)},x}^{(i+1)},\text{RS}^{(i+1)}\right) < \delta' \right\} B [ f ( i ) ; δ ′ ] = { x ∈ F ∣ Δ H ( f f ( i ) , x ( i + 1 ) , RS ( i + 1 ) ) < δ ′ } 以及命题 9 的条件
∣ B [ f ( i ) ; δ ′ ] ∣ ∣ F ∣ > 2 η ϵ ∣ F ∣ \frac{\left\lvert B \left[ f^{(i)}; \delta' \right ]\right\rvert }{|\mathbb{F}|} > \frac{2^{\eta}}{\epsilon |\mathbb{F}|} ∣ F ∣ ∣ ∣ B [ f ( i ) ; δ ′ ] ∣ ∣ > ϵ ∣ F ∣ 2 η 我们通过上述分析已经得到
∀ x ∈ B \forall x \in B ∀ x ∈ B ,有 C ( x , Y ) C(x,Y) C ( x , Y ) 与 f ˉ f ( i ) , x ( i + 1 ) ( Y ) \bar{f}_{f^{(i)},x}^{(i+1)}(Y) f ˉ f ( i ) , x ( i + 1 ) ( Y ) 都是一致的。对于任意的 x ∈ F x \in \mathbb{F} x ∈ F 以及任意的 y ∈ L ( i + 1 ) y \in L^{(i+1)} y ∈ L ( i + 1 ) 有 f f ( i ) , x ( i + 1 ) ( y ) = Q ( i ) ( x , y ) f_{f^{(i)},x}^{(i+1)}(y) = Q^{(i)}(x, y) f f ( i ) , x ( i + 1 ) ( y ) = Q ( i ) ( x , y ) 。 那么对于任意的 x ∈ B x \in B x ∈ B 以及任意的 y ∈ L ( i + 1 ) y \in L^{(i+1)} y ∈ L ( i + 1 ) 有
C ( x , y ) = f ˉ f ( i ) , x ( i + 1 ) ( y ) C(x,y) = \bar{f}_{f^{(i)},x}^{(i+1)}(y) C ( x , y ) = f ˉ f ( i ) , x ( i + 1 ) ( y ) f f ( i ) , x ( i + 1 ) ( y ) = Q ( i ) ( x , y ) f_{f^{(i)},x}^{(i+1)}(y) = Q^{(i)}(x, y) f f ( i ) , x ( i + 1 ) ( y ) = Q ( i ) ( x , y ) 由于 f ˉ f ( i ) , x ( i + 1 ) ( y ) \bar{f}_{f^{(i)},x}^{(i+1)}(y) f ˉ f ( i ) , x ( i + 1 ) ( y ) 是在 RS ( i + 1 ) \text{RS}^{(i+1)} RS ( i + 1 ) 中距离 f f ( i ) , x ( i + 1 ) ( y ) f_{f^{(i)},x}^{(i+1)}(y) f f ( i ) , x ( i + 1 ) ( y ) 最近的码字,根据 B B B 的定义可得
Δ H ( f f ( i ) , x ( i + 1 ) ( y ) , f ˉ f ( i ) , x ( i + 1 ) ( y ) ) < δ ′ \Delta_H \left( f_{f^{(i)},x}^{(i+1)}(y),\bar{f}_{f^{(i)},x}^{(i+1)}(y)\right) < \delta' Δ H ( f f ( i ) , x ( i + 1 ) ( y ) , f ˉ f ( i ) , x ( i + 1 ) ( y ) ) < δ ′ 而相对 Hamming 距离考虑的就是 f f ( i ) , x ( i + 1 ) ( y ) f_{f^{(i)},x}^{(i+1)}(y) f f ( i ) , x ( i + 1 ) ( y ) 与 f ˉ f ( i ) , x ( i + 1 ) ( y ) \bar{f}_{f^{(i)},x}^{(i+1)}(y) f ˉ f ( i ) , x ( i + 1 ) ( y ) 不一致的比例,因此
Pr x ∈ B , y ∈ L ( i + 1 ) [ C ( x , y ) ≠ Q ( i ) ( x , y ) ] = Pr x ∈ B , y ∈ L ( i + 1 ) [ f ˉ f ( i ) , x ( i + 1 ) ( y ) ≠ f f ( i ) , x ( i + 1 ) ( y ) ] < δ ′ . \Pr_{x \in B, y \in L^{(i+1)}} \left[C(x,y) \neq Q^{(i)}(x,y)\right] = \Pr_{x \in B, y \in L^{(i+1)}} \left[\bar{f}_{f^{(i)},x}^{(i+1)}(y) \neq f_{f^{(i)},x}^{(i+1)}(y)\right] < \delta'. x ∈ B , y ∈ L ( i + 1 ) Pr [ C ( x , y ) = Q ( i ) ( x , y ) ] = x ∈ B , y ∈ L ( i + 1 ) Pr [ f ˉ f ( i ) , x ( i + 1 ) ( y ) = f f ( i ) , x ( i + 1 ) ( y ) ] < δ ′ . 🤔 Why?
通过构造 α δ ≥ δ ′ \alpha \delta \ge \delta' α δ ≥ δ ′ ,因此存在一个非零多项式
E ( X , Y ) , deg X ( E ) ≤ α m , deg Y ( E ) ≤ δ n E(X,Y), \qquad \deg_X(E) \le \alpha m, \deg_Y(E) \le \delta n E ( X , Y ) , deg X ( E ) ≤ α m , deg Y ( E ) ≤ δ n 使得在所有的点 ( x , y ) (x,y) ( x , y ) 处有 E ( x , y ) = 0 E(x,y) = 0 E ( x , y ) = 0 ,其中 x ∈ B , y ∈ L ( i + 1 ) x \in B, y \in L^{(i+1)} x ∈ B , y ∈ L ( i + 1 ) 且 C ( x , y ) ≠ Q ( i ) ( x , y ) C(x,y) \neq Q^{(i)}(x,y) C ( x , y ) = Q ( i ) ( x , y ) 。
📖 Notes
关于非零多项式 E ( X , Y ) E(X,Y) E ( X , Y ) 的存在性,我是这样理解的。我们已经得到
> Pr x ∈ B , y ∈ L ( i + 1 ) [ C ( x , y ) ≠ Q ( i ) ( x , y ) ] < δ ′ > > \Pr_{x \in B, y \in L^{(i+1)}} \left[C(x,y) \neq Q^{(i)}(x,y)\right]< \delta'
> > x ∈ B , y ∈ L ( i + 1 ) Pr [ C ( x , y ) = Q ( i ) ( x , y ) ] < δ ′ > 如下图所示,由于 α δ ≥ δ ′ \alpha \delta \ge \delta' α δ ≥ δ ′ ,存在这样的一个非零多项式 E ( X , Y ) E(X,Y) E ( X , Y ) 是合理的,其在图中蓝色的这些点的值为 0 。
多项式 E E E 也被称为 error locator polynomial [Sud92] ,因为它的根涵盖了错误位置的集合,其中 Q Q Q 是通过一个 low-degree 多项式得到的。
由于 deg Y ( C ) < ρ ∣ L ( i + 1 ) ∣ \deg_Y(C) < \rho |L^{(i+1)}| deg Y ( C ) < ρ ∣ L ( i + 1 ) ∣ 以及 deg X ( Q ( i ) ) < 2 η < ϵ m \deg_X(Q^{(i)}) < 2^{\eta} < \epsilon m deg X ( Q ( i ) ) < 2 η < ϵ m ,由 [Spi95, Chapter 4] 得存在一个多项式 P ( X , Y ) P(X,Y) P ( X , Y ) 满足
deg X ( P ) < ( ϵ + α ) m 且 deg Y ( P ) < ( δ + ρ ) n (19) \deg_X(P) < (\epsilon + \alpha)m \quad \text{且} \quad \deg_Y(P) < (\delta + \rho)n \tag{19} deg X ( P ) < ( ϵ + α ) m 且 deg Y ( P ) < ( δ + ρ ) n ( 19 ) 使得
∀ x ∈ B , y ∈ L ( i + 1 ) , P ( x , y ) = C ( x , y ) ⋅ E ( x , y ) = Q ( i ) ( x , y ) ⋅ E ( x , y ) (20) \forall x \in B, y \in L^{(i+1)}, \quad P(x,y) = C(x,y) \cdot E(x,y) = Q^{(i)}(x,y) \cdot E(x,y) \tag{20} ∀ x ∈ B , y ∈ L ( i + 1 ) , P ( x , y ) = C ( x , y ) ⋅ E ( x , y ) = Q ( i ) ( x , y ) ⋅ E ( x , y ) ( 20 ) 成立。
📖 Notes
关于 P ( X , Y ) P(X,Y) P ( X , Y ) 多项式的存在性,我的理解目前是这样的。通过多项式的次数,来看看其存在性的合理性:
先考虑自变量 X X X ,由于 deg X ( E ) ≤ α m \deg_X(E) \le \alpha m deg X ( E ) ≤ α m 以及 deg X ( Q ( i ) ) < ϵ m \deg_X(Q^{(i)}) < \epsilon m deg X ( Q ( i ) ) < ϵ m ,那么存在的 P ( X , Y ) P(X,Y) P ( X , Y ) 其次数满足 deg X ( P ) < ( ϵ + α ) m \deg_X(P) < (\epsilon + \alpha)m deg X ( P ) < ( ϵ + α ) m ,且有
> ∀ x ∈ B , y ∈ L ( i + 1 ) , P ( x , y ) = Q ( i ) ( x , y ) ⋅ E ( x , y ) > > \forall x \in B, y \in L^{(i+1)}, \quad P(x,y) = Q^{(i)}(x,y) \cdot E(x,y)
> > ∀ x ∈ B , y ∈ L ( i + 1 ) , P ( x , y ) = Q ( i ) ( x , y ) ⋅ E ( x , y ) > 是比较合理的。
同理,对于自变量 Y Y Y ,由于 deg Y ( E ) ≤ δ n \deg_Y(E) \le \delta n deg Y ( E ) ≤ δ n 以及 deg Y ( C ) < ρ n \deg_Y(C) < \rho n deg Y ( C ) < ρ n ,那么存在的 P ( X , Y ) P(X,Y) P ( X , Y ) 其次数满足 deg Y ( P ) < ( δ + ρ ) n \deg_Y(P) < (\delta + \rho)n deg Y ( P ) < ( δ + ρ ) n ,且有
> ∀ x ∈ B , y ∈ L ( i + 1 ) , P ( x , y ) = C ( x , y ) ⋅ E ( x , y ) > > \forall x \in B, y \in L^{(i+1)}, \quad P(x,y) = C(x,y) \cdot E(x,y)
> > ∀ x ∈ B , y ∈ L ( i + 1 ) , P ( x , y ) = C ( x , y ) ⋅ E ( x , y ) > 是比较合理的。
👩💻 TODO
参考 [Spi95, Chapter 4] ,为什么会存在这样一个多项式。 为什么 P ( x , y ) = C ( x , y ) ⋅ E ( x , y ) = Q ( i ) ( x , y ) ⋅ E ( x , y ) P(x,y) = C(x,y) \cdot E(x,y) = Q^{(i)}(x,y) \cdot E(x,y) P ( x , y ) = C ( x , y ) ⋅ E ( x , y ) = Q ( i ) ( x , y ) ⋅ E ( x , y ) 成立,不是 x ∈ B , y ∈ L ( i + 1 ) x \in B, y \in L^{(i+1)} x ∈ B , y ∈ L ( i + 1 ) 且 C ( x , y ) ≠ Q ( i ) ( x , y ) C(x,y) \neq Q^{(i)}(x,y) C ( x , y ) = Q ( i ) ( x , y ) 吗?令 α ′ ≜ deg X ( P ) m − ϵ \alpha' \triangleq \frac{\deg_X(P)}{m} - \epsilon α ′ ≜ m d e g X ( P ) − ϵ 以及 ρ ′ ≜ deg Y ( P ) n − δ \rho' \triangleq \frac{\deg_Y(P)}{n} - \delta ρ ′ ≜ n d e g Y ( P ) − δ ,那么由公式 ( 19 ) (19) ( 19 ) 得
🐞 Fix
我认为论文中此处 α ≜ deg X ( P ) m − ϵ \alpha \triangleq \frac{\deg_X(P)}{m} - \epsilon α ≜ m d e g X ( P ) − ϵ 中的 α \alpha α 应该改为 α ′ \alpha' α ′ 。
deg X ( P ) = ( ϵ + α ′ ) m < ( ϵ + α ) m \deg_X(P) = (\epsilon + \alpha')m < (\epsilon + \alpha)m deg X ( P ) = ( ϵ + α ′ ) m < ( ϵ + α ) m 以及
deg Y ( P ) = ( δ + ρ ′ ) n < ( δ + ρ ) n \deg_Y(P) = (\delta + \rho')n < (\delta + \rho)n deg Y ( P ) = ( δ + ρ ′ ) n < ( δ + ρ ) n 由此可得 α ′ < α \alpha' < \alpha α ′ < α 以及 ρ ′ < ρ \rho' < \rho ρ ′ < ρ 。
从 ( 19 ) (19) ( 19 ) 以及 ( 20 ) (20) ( 20 ) 可以得到对于任意一行 y ∈ L ( i + 1 ) y \in L^{(i+1)} y ∈ L ( i + 1 ) 都有 E ( X , y ) ∣ P ( X , y ) E(X,y)|P(X,y) E ( X , y ) ∣ P ( X , y ) ,类似地,对于任意一列 x ∈ B x \in B x ∈ B 都有 E ( x , Y ) ∣ P ( x , Y ) E(x,Y)|P(x,Y) E ( x , Y ) ∣ P ( x , Y ) 。换句话说,即存在不同的 y 1 , ⋯ , y n ∈ L ( i + 1 ) y_1, \cdots, y_n \in L^{(i+1)} y 1 , ⋯ , y n ∈ L ( i + 1 ) 使得 E ( X , y i ) ∣ P ( x i , y i ) E(X,y_i)|P(x_i,y_i) E ( X , y i ) ∣ P ( x i , y i ) 以及存在不同的 x 1 , ⋯ , x m ∈ B x_1, \cdots, x_m \in B x 1 , ⋯ , x m ∈ B 使得 E ( x i , Y ) ∣ P ( x i , Y ) E(x_i,Y)|P(x_i,Y) E ( x i , Y ) ∣ P ( x i , Y ) 。
由 ( 5 ) (5) ( 5 ) 式
1 − ρ ≥ Δ ( i ) ( f ( i ) , RS ( i ) ) ≥ Δ H ( f ( i ) , RS ( i ) ) 1 - \rho \ge \Delta^{\mathcal{(i)}}(f^{(i)},\text{RS}^{(i)}) \ge \Delta_H(f^{(i)},\text{RS}^{(i)}) 1 − ρ ≥ Δ ( i ) ( f ( i ) , RS ( i ) ) ≥ Δ H ( f ( i ) , RS ( i ) ) 可得 δ + ρ < 1 \delta + \rho < 1 δ + ρ < 1 。
🤔 Why?
这里的 δ + ρ < 1 \delta + \rho < 1 δ + ρ < 1 是怎么得到的?难道由于 1 − ρ ≥ Δ ( i ) ( f ( i ) , RS ( i ) ) ≥ Δ H ( f ( i ) , RS ( i ) ) > δ 1 - \rho \ge \Delta^{\mathcal{(i)}}(f^{(i)},\text{RS}^{(i)}) \ge \Delta_H(f^{(i)},\text{RS}^{(i)}) > \delta 1 − ρ ≥ Δ ( i ) ( f ( i ) , RS ( i ) ) ≥ Δ H ( f ( i ) , RS ( i ) ) > δ ? 现在已知 Δ H ( f f ( i ) , x ( i + 1 ) , RS ( i + 1 ) ) < δ ′ \Delta_H\left(f_{f^{(i)},x}^{(i+1)}, \text{RS}^{(i+1)}\right) < \delta' Δ H ( f f ( i ) , x ( i + 1 ) , RS ( i + 1 ) ) < δ ′ 以及 α δ = δ ′ \alpha \delta = \delta' α δ = δ ′ ,能否从这里推导得出呢?通过前面推导得出的 α ′ < α \alpha' < \alpha α ′ < α 以及 ρ ′ < ρ \rho' < \rho ρ ′ < ρ 和 α \alpha α 的定义可得
2 α ′ + ϵ + ρ ′ δ < 2 α + ϵ + ρ δ = 2 ⋅ 1 2 ( 1 − ϵ − ρ δ ) + ϵ + ρ δ = 1. 2 \alpha' + \epsilon + \frac{\rho'}{\delta} < 2 \alpha + \epsilon + \frac{\rho}{\delta} = 2 \cdot \frac{1}{2}(1 - \epsilon - \frac{\rho}{\delta}) + \epsilon + \frac{\rho}{\delta} = 1. 2 α ′ + ϵ + δ ρ ′ < 2 α + ϵ + δ ρ = 2 ⋅ 2 1 ( 1 − ϵ − δ ρ ) + ϵ + δ ρ = 1. 综合上面的推导可得
δ + ρ ′ < δ + ρ < 1 \delta + \rho' < \delta + \rho < 1 δ + ρ ′ < δ + ρ < 1 2 α ′ + ϵ + ρ ′ δ < 1 2 \alpha' + \epsilon + \frac{\rho'}{\delta} < 1 2 α ′ + ϵ + δ ρ ′ < 1 则有
1 > max { δ + ρ ′ , 2 α ′ + ϵ + ρ ′ δ } 1 > \max \left\{ \delta + \rho', 2\alpha' + \epsilon + \frac{\rho'}{\delta} \right\} 1 > max { δ + ρ ′ , 2 α ′ + ϵ + δ ρ ′ } 至此,综合上述分析,多项式 E ( X , Y ) E(X,Y) E ( X , Y ) 的次数为 ( α ′ m , δ n ) (\alpha' m, \delta n) ( α ′ m , δ n ) ,多项式 P ( X , Y ) P(X,Y) P ( X , Y ) 的次数为 ( ( α ′ + ϵ ) m , ( δ + ρ ′ ) m ) ((\alpha' + \epsilon)m, (\delta + \rho')m) (( α ′ + ϵ ) m , ( δ + ρ ′ ) m ) ,并且存在不同的 x 1 , ⋯ , x m ∈ B x_1, \cdots, x_m \in B x 1 , ⋯ , x m ∈ B 使得 E ( x i , Y ) ∣ P ( x i , Y ) E(x_i,Y)|P(x_i,Y) E ( x i , Y ) ∣ P ( x i , Y ) 以及存在不同的 y 1 , ⋯ , y n ∈ L ( i + 1 ) y_1, \cdots, y_n \in L^{(i+1)} y 1 , ⋯ , y n ∈ L ( i + 1 ) 使得 E ( X , y i ) ∣ P ( x i , y i ) E(X,y_i)|P(x_i,y_i) E ( X , y i ) ∣ P ( x i , y i ) ,同时
1 > max { δ + ρ ′ , 2 α ′ + ϵ + ρ ′ δ } 1 > \max \left\{ \delta + \rho', 2\alpha' + \epsilon + \frac{\rho'}{\delta} \right\} 1 > max { δ + ρ ′ , 2 α ′ + ϵ + δ ρ ′ } 🤔 Question
因此引理 7 的条件与假设都满足。通过引理的结论可得 E ( X , Y ) ∣ P ( X , Y ) E(X,Y)|P(X,Y) E ( X , Y ) ∣ P ( X , Y ) ,其是环 F [ X , Y ] \mathbb{F}[X,Y] F [ X , Y ] 中的多项式。令 Q ≡ P / E Q\equiv P/E Q ≡ P / E 。我们可以得到对于每一行 y ∈ L ( i + 1 ) y \in L^{(i+1)} y ∈ L ( i + 1 ) 且 E ( X , y ) E(X,y) E ( X , y ) 非零的情况,都有 Q ( X , y ) = Q ( i ) ( X , y ) Q(X,y) = Q^{(i)}(X,y) Q ( X , y ) = Q ( i ) ( X , y ) 。由于 deg Y ( E ) < δ n \deg_Y(E) < \delta n deg Y ( E ) < δ n ,那么 E ( X , y ) E(X,y) E ( X , y ) 在少于 δ n \delta n δ n 行为零,因此非零的行数的比例至少为 1 − δ 1 - \delta 1 − δ ,那么满足 Q ( X , y ) = Q ( i ) ( X , y ) Q(X,y) = Q^{(i)}(X,y) Q ( X , y ) = Q ( i ) ( X , y ) 的行数比例至少为 1 − δ 1 - \delta 1 − δ 。
由于通过命题 1 ,我们知道 Q ( i ) ( X , y ) Q^{(i)}(X,y) Q ( i ) ( X , y ) 为
Q ( i ) ( X , y ) = P ( i ) ( X ) mod y − q ( i ) ( X ) Q^{(i)}(X,y) = P^{(i)}(X) \qquad \text{mod} \; y - q^{(i)}(X) Q ( i ) ( X , y ) = P ( i ) ( X ) mod y − q ( i ) ( X ) 其中
P ( i ) = interpolant f ( i ) P^{(i)} = \text{interpolant}^{f^{(i)}} P ( i ) = interpolant f ( i ) 那么,f ( i ) f^{(i)} f ( i ) 与次数为 ρ ∣ L ( i ) ∣ \rho |L^{(i)}| ρ ∣ L ( i ) ∣ 的多项式 P ( i ) P^{(i)} P ( i ) 是一致的。令 S y = { x ∈ L ( i ) ∣ q ( i ) ( x ) = y } S_y = \{x \in L^{(i)}|q^{(i)}(x) = y\} S y = { x ∈ L ( i ) ∣ q ( i ) ( x ) = y } ,表示 L 0 ( i ) L_0^{(i)} L 0 ( i ) 的陪集。若在陪集 S y S_y S y 上满足 Q ( i ) ( X , y ) = Q ( X , y ) = P ( i ) ( X ) ∣ S y Q^{(i)}(X,y) = Q(X,y) = P^{(i)}(X)|_{S_y} Q ( i ) ( X , y ) = Q ( X , y ) = P ( i ) ( X ) ∣ S y ,那么根据满足 Q ( X , y ) = Q ( i ) ( X , y ) Q(X,y) = Q^{(i)}(X,y) Q ( X , y ) = Q ( i ) ( X , y ) 的行数比例至少为 1 − δ 1 - \delta 1 − δ ,则 f ( i ) f^{(i)} f ( i ) 与多项式 P ( i ) P^{(i)} P ( i ) 在超过 1 − δ 1 - \delta 1 − δ 的比例的陪集 S y S_y S y 上是一致的。
👀 TODO
In other words f ( i ) f^{(i)} f ( i ) agrees with some polynomial of degree ρ ∣ L ( i ) ∣ \rho |L^{(i)}| ρ ∣ L ( i ) ∣ on more than a ( 1 − δ ) (1 - \delta) ( 1 − δ ) -fraction of cosets of L ( i ) L^{(i)} L ( i ) in L ( i ) L^{(i)} L ( i ) .
f ( i ) f^{(i)} f ( i ) 在 L ( i ) L^{(i)} L ( i ) 中超过 1 − δ 1 - \delta 1 − δ 比例的 L 0 ( i ) L_0^{(i)} L 0 ( i ) 的陪集上和某个次数为 ρ ∣ L ( i ) ∣ \rho |L^{(i)}| ρ ∣ L ( i ) ∣ 的多项式一致。根据定义, δ ( i ) \delta^{(i)} δ ( i ) 说的是不一致的陪集的比例,那么自然可以得出 δ ( i ) < 1 − ( 1 − δ ) = δ \delta^{(i)} < 1 - (1 - \delta) = \delta δ ( i ) < 1 − ( 1 − δ ) = δ ,至此完成了引理的证明。 \Box
参考文献 ¶ [BBHR18a] Eli Ben-Sasson, Iddo Bentov, Yinon Horesh, and Michael Riabzev. Scalable, transparent, and post-quantum secure computational integrity. Cryptology ePrint Archive, Report 2018/046, 2018. Available at https:// eprint .iacr .org /2018 /046 . [BBHR18b] Eli Ben-Sasson, Iddo Bentov, Yinon Horesh, and Michael Riabzev. “Fast Reed–Solomon Interactive Oracle Proofs of Proximity”. In: Proceedings of the 45th International Colloquium on Automata, Languages and Programming (ICALP) , 2018. [RS92] Ronitt Rubinfeld and Madhu Sudan. Self-testing polynomial functions efficiently and over rational domains. In Proceedings of the Third Annual ACM/SIGACT-SIAM Symposium on Discrete Algorithms, 27-29 January 1992, Orlando, Florida. , pages 23–32, 1992. [Spi95] Daniel A. Spielman. Computationally Efficient Error-Correcting Codes and Holographic Proofs . PhD thesis, MIT, 1995. [Sud92] Madhu Sudan. Efficient Checking of Polynomials and Proofs and the Hardness of Approximation Problems . PhD thesis, UC Berkeley, Berkeley, CA, USA, 1992. UMI Order No. GAX93-30747. Venkatesan Guruswami, Atri Rudra, and Madhu Sudan. Essential Coding Theory. https:// cse .buffalo .edu /faculty /atri /courses /coding -theory /book/ , 2023. Vitalik Buterin. STARKs, Part II: Thank Goodness It’s FRI-day. https:// vitalik .eth .limo /general /2017 /11 /22 /starks _part _2 .html , 2017.