Commit dc85036
authored
fix(sumcheck): scale polynomial evals for phase1 gap rounds in RAF and output check (#1385)
When phase1_num_rounds < log_T, the input_claim for RafEvaluation and
OutputCheck sumchecks is pre-scaled by 2^(phase3_cycle_rounds) to
pre-compensate for the gap-round halvings. However, the raw polynomial
evaluations computed from the witness data sum to the unscaled claim.
This mismatch causes UniPoly reconstruction to produce an incorrect
polynomial, failing the verifier's poly(0) + poly(1) == previous_claim
check.
Scale the raw evaluations by 2^(phase3_cycle_rounds) before polynomial
reconstruction so they are consistent with the pre-scaled previous_claim.
Made-with: Cursor1 parent 78134ca commit dc85036
2 files changed
+25
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
312 | 325 | | |
313 | 326 | | |
314 | 327 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
310 | 320 | | |
311 | 321 | | |
312 | 322 | | |
| |||
0 commit comments