Consensys / corset

15 stars 13 forks source link

Constraining a set of columns to a lexicograpgic order #41

Open letypequividelespoubelles opened 1 year ago

letypequividelespoubelles commented 1 year ago

We need to have a lexicographic order constraint on a set of columns.

DavePearce commented 6 months ago

Hey Francois, ok I see this issue has been outstanding for a while. So, I just to get a bit more info to understand properly:

Overall, the machinery is certainly present for ensuring a column is sorted. Therefore, its seems quite reasonable to do this.

letypequividelespoubelles commented 6 months ago

we want something lighter than sorted permutation, because the source columns are already sorted, we just want to prove that they are sorted.

TBH, we could do this by just delegating the proof by calling GEQ of WCP, this is what I made for blockhash module ... what do you think @OlivierBBB ? It would en up by three lookups to WCP only, we just have to take care at the line counting for wcp as we would rigger wcp at commit time