Skip to content

round3 扩展的时候,如何理解 to_coset_extended_lagrange 和 ZH_big 的对应关系? #92

Discussion options

You must be logged in to vote

ZH(x)的表示式是X^N-1,

        # Compute Z_H = X^N - 1, also in evaluation form in the coset
        #  不考虑coset时,ZH的系数表示 = x^group_order -1,
        #  考虑coset时,  ZH的的系数表示是 = (offset *x)^group_order - 1 = (offset^group_order) * x^group_order - 1 ,
        #  有两种得到ZH_big 的方式:
        #  方式1:构造系数 = [-1,0,0,...,(offset^group_order),0,0... ]的多项式,对其做fft.
        #  方式2:直接将 x= (offset * w) 带入 x^group_order -1,获得ZH的点值表示
        #  这两种方式是等价的。

        #方式1:
        ZH_coeffs =[0] * (4 *group_order) # ZH_big 的阶数 = 4 * ground_order
        ZH_coeffs[0] = -1  # 常数项 = -1
        # [-1,0,0,...,(offset^group_order),0,0... ]
        ZH_coeffs[group_order] = self.fft_cofactor ** group_order #第group_order项系数= …

Replies: 1 comment

Comment options

readygo67
May 14, 2023
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by readygo67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant