0xMiden / 0xMiden/miden-vm

feat(stark): add support for constraint tracking

Aberta
#3,523 2 comentários 0 reações 0 responsáveis Ver no GitHub
starks
Linguagem predominante
Rust
Estrelas
772
Forks
352
Merge médio
1d 12h
PRs com merge (30d)
93

Descrição

We should add support for naming/tagging constraints in the AirBuilder to improve debugging. When a constraint fails, the debug builder currently reports only `"constraint not satisfied at instance {i}, row {r}"` with no indication of which logical rule was violated.

### Upstream work

- https://github.com/Plonky3/Plonky3/pull/1431 adds `NamedAirBuilder` and related debugging improvements
- https://github.com/0xMiden/miden-vm/pull/2856 refactors the Miden VM's constraint tagging approach (replaces the earlier PR #2713)

### Goals

- [ ] Integrate with Plonky3's `NamedAirBuilder` from https://github.com/Plonky3/Plonky3/pull/1431
- [ ] Improve the debug builder in `debug.rs` to report constraint names on failure
- [ ] Ensure zero overhead in production builds

---

Ported from https://github.com/0xMiden/p3-miden/issues/29

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.