Skip to content

Translator needs to ensure the EccOpQueue is zero past the minicircuit  #1399

Closed

Description

@maramihali

The mini circuit size in translator corresponds to the number of gates in the translator circuit and, hence, the size of the op queue (note that every operation occupies two rows in the op queue). In Translator, the data from the op queue is represented as 4 polynomials: op,x_lo_y_hi, x_hi_z_1, y_lo_z_2. We need to ensure that these 4 polynomials are 0 past the mini circuit size. Options to consider:

  1. It might be the case that the Translator-Merge consistency check (which checks exactly the commitments to the 4 polynomials above against those of the merge queue polynomials) and the correctness of the merge protocol is enough to establish this. But someone should think through all the detail.
  2. TranslatorZeroConstraintsRelation enforces that the range constraint polynomials are zero past the minicircuit. This can be extended to include the op queue polynomials. (btw: I think we should just rename this into TranslatorZeroRelation since constraint and relation roughly mean the same thing in this context)
  3. TranslatorDecompositionRelation establishes that, for the polynomials whose values have to be decomposed into limbs, the decomposition has been done correctly. These limbs are exactly the range constraint polynomials and some range constraint polynomials represent the decomposition of the op queue polynomials. As we've shown in the zero relation that the range constraint polynomials are zero past the mini circuit size, we could enable the decomposition relation past the minicircuit size to enforce the op queue polynomials are zero past the mini circuit size.

None of the approaches should affect ZK as the randomness required for this falls within the minicircuit size, but, as always, surprises might arise.

Activity

  1. changed the title [-]Constrain in Translator that the OpQueue is zero past the minicircuit size[/-] [+]Translator needs to ensure the EccOpQueue is zero past the minicircuit [/+] on May 29, 2025
  2. added
    good first issue
    and removed
    good first issue
    on May 29, 2025
  3. added
    prio
    on Jul 4, 2025
  4. ledwards2225 commented on Jul 15, 2025

    @ledwards2225

    It seems to me that the merge degree checks coupled with the Translator-Merge consistency check give us everything we need here. The final table T is constructed by appending a t to a T_prev, both of which are degree checked. (T_prev is degree checked in the merge protocol based on some fixed "max" size and t is degree checked via the main protocol relations to a fixed size based on the ops used in the hiding circuit).

  5. maramihali commented on Sep 10, 2025

    @maramihali
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

prio

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions