Commit 8bb86d0
Xhat step (#112)
* match xhat_step_circuit to OCaml constraint system
PublicInputCommit changes:
- Add CorrectionMode (PureCorrections | InCircuitCorrections) to control
how correction points are combined
- PureCorrections: match OCaml's multiscale_known map-then-reduce structure:
Phase 1 runs all scaleFast2' (collecting results), Phase 2 reduces results
pairwise with addComplete, Phase 3 adds correction sum as constant point
- Corrections summed as pure field arithmetic (addPurePt) matching OCaml
where add_fast on constant corrections is optimized away
- Plumb correctionMode through IncrementallyVerifyProofParams, WrapParams,
and all callers
Fixture fix:
- Fix xhat_step_circuit domain from 2^15 to 2^16 in dump_circuit_impl.ml
(step circuit uses Nat.N16, wrap uses Nat.N15)
- Regenerate fixture with correct Lagrange commitments
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* pedantic build
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 90fa371 commit 8bb86d0
File tree
17 files changed
+208
-160
lines changed- packages
- pickles-circuit-diffs-types
- pickles-circuit-diffs
- circuits/ocaml
- test/Test/Pickles/CircuitDiffs
- visualizer/src
- pickles
- src/Pickles
- Wrap
- test/Test/Pickles
- snarky-kimchi
17 files changed
+208
-160
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 93 additions & 93 deletions
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
414 | | - | |
| 413 | + | |
| 414 | + | |
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | | - | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
0 commit comments