Skip to content

Python verifier#236

Merged
TomWambsgans merged 81 commits into
mainfrom
python-verifier
May 27, 2026
Merged

Python verifier#236
TomWambsgans merged 81 commits into
mainfrom
python-verifier

Conversation

@TomWambsgans
Copy link
Copy Markdown
Collaborator

No description provided.

TomWambsgans and others added 30 commits May 17, 2026 10:11
Reverts the temporary single-threaded `find` introduced for deterministic
debugging during the Python verifier port. With the bug found (sorted dict
iteration in `stacked_pcs_global_statements`) the determinism aid is no
longer needed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Merge `TableInfo` and `TableMeta` into a single dataclass.
- Drop `BusData`, `Bus.data`, `Bus.selector`, `Bus.direction_flag` — only
  `bus_direction` is ever read by the verifier; flatten it onto `TableMeta`.
- Drop the `register_air_evaluator` decorator + global registry; replace
  with a direct dispatch table in `air_constraint_eval`.
- Collapse per-table helpers (`_max_air_constraints`, `_table_degree_air`,
  `_table_down_column_indexes`, `_table_n_down_columns`) into one `_TABLE_SPECS`
  dict keyed by table name.
- Replace ad-hoc lazy-init globals (`_WHIR_CONFIGS`, `_POSEIDON1_CONSTS`,
  `_load_whir_configs`, `_load_poseidon1_constants`, `_p1c`) with
  `functools.cache`d helpers.
- Drop unused helpers: `poseidon16_permute`, `_from_int`, `_next_pow_two`,
  `whir_num_variables_at_round`, `_load_test_vector`, `EF.from_basis_coefficients`.
- Trim `AirStageResult` to the three fields actually consumed downstream.
- Strip "Port of X" / "Mirror of X" boilerplate from ~36 docstrings.
- Condense `# ─── Section ───` banners to single lines.
- Fold `test_zkvm.py` loader into `verifier.py:main()`.

3010 → 2742 lines, all four prior checks still pass (rec-aggregation proof
verifies end-to-end).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ode / memory / poseidon / extension_op interractions
# Conflicts:
#	crates/backend/air/src/symbolic.rs
#	crates/lean_compiler/src/instruction_encoder.rs
#	crates/lean_prover/src/prove_execution.rs
#	crates/lean_prover/src/verify_execution.rs
#	crates/lean_vm/src/core/constants.rs
#	crates/lean_vm/src/tables/execution/air.rs
#	crates/lean_vm/src/tables/execution/mod.rs
#	crates/lean_vm/src/tables/extension_op/air.rs
#	crates/lean_vm/src/tables/extension_op/exec.rs
#	crates/lean_vm/src/tables/extension_op/mod.rs
#	crates/lean_vm/src/tables/mod.rs
#	crates/lean_vm/src/tables/poseidon_16/mod.rs
#	crates/lean_vm/src/tables/table_enum.rs
#	crates/lean_vm/src/tables/table_trait.rs
#	crates/lean_vm/src/tables/utils.rs
#	crates/rec_aggregation/src/compilation.rs
#	crates/rec_aggregation/zkdsl_implem/recursion.py
#	crates/sub_protocols/src/logup.rs
#	crates/sub_protocols/tests/soundness_logup.rs
#	crates/utils/src/multilinear.rs
@TomWambsgans TomWambsgans merged commit 7284c04 into main May 27, 2026
3 checks passed
TomWambsgans added a commit that referenced this pull request May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant