Skip to content

[Circuit DSL] Support lookup arguments (Plookup / log-derivative tables) in circuit DSL #41

Description

@satran004

Background & Objective

Standard bitwise arithmetic and non-native hashes (e.g. SHA-256, Blake2b, SHA-512, range checks) generate large numbers of R1CS constraints (~25,000+ constraints per hash invocation).

Lookup arguments (such as Plookup or log-derivative lookup tables) allow proving that a tuple of signals exists in a precomputed table using only a few constraints per lookup.

Scope & Tasks

  • Research and design lookup table DSL constructs in zeroj-circuit-dsl.
  • Add support for precomputed lookup tables (e.g. 8-bit XOR/AND tables, range tables).
  • Support lookup verification in the PlonK / multiset permutation compiler.
  • Benchmark constraint reduction for Blake2b and SHA-512 key derivation circuits.

Risk Classification

  • R2: Circuit compiler & proof system expansion.
  • Reference: docs/zeroj-comprehensive-review-and-readiness-gemini.md (Section 5.3).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions