Skip to content

would a machine-checked soundness library for circomlib be useful? #147

Description

@attilavjda

While formalizing related math, AI agent suggested and built Lean4 proofs that I don't yet fully understand, but might be valuable:

  • that circomlib templates (IsZero, Num2Bits, LessThan, comparators, a Poseidon S-box)
    are sound + complete + deterministic against a spec

i.e. no under-constraint (<-- without ===) and no spec↔R1CS mismatch.
Aliasing side conditions like 2^n ≤ p show up as explicit hypotheses.

repo: circomlib templates verifications

Would a verified companion library like this be useful to the ecosystem?
If so, which template(s) would you prioritize verifying first?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions