-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
getting the multiplicity table from compild iop
- Loading branch information
1 parent
2ea22d0
commit ff7046a
Showing
5 changed files
with
83 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package inclusion | ||
|
||
import "github.com/consensys/linea-monorepo/prover/protocol/ifaces" | ||
|
||
// MainLookupCtx stores the compilation context of all the lookup queries | ||
// altogether. | ||
type mainLookupCtx struct { | ||
|
||
// LookupTables stores all the lookup table the compiler encounters. They are | ||
// sorted in canonical order. This used to derive a determistic ordering | ||
// of the lookup LookupTables. (We want to ensure the compiler yields always | ||
// exactly the same result for replicability). | ||
// | ||
// To illustrates its structure, the following sub-statement | ||
// | ||
// table[numTable][frag] | ||
// | ||
// refers to to the fragment #frag of the the table #numTable. | ||
LookupTables [][]table | ||
|
||
// CheckedTables stores all the checked column by lookup table. The key is | ||
// obtained as nameTable(lookupTable) where lookup is sorted in | ||
// canonical order. | ||
CheckedTables map[string][]table | ||
|
||
// IncludedFilters stores all the filters for the checked columns and `nil` | ||
// if no filter is applied. As for [checkedTables] they are stored by | ||
// lookup table name and in the same order for each key. | ||
IncludedFilters map[string][]ifaces.Column | ||
|
||
// Rounds stores the interaction round assigned to each lookupTable. The | ||
// round is obtained by taking the max of the declaration Rounds of the | ||
// Inclusion queries using the corresponding lookup table. | ||
Rounds map[string]int | ||
|
||
// it stores the multiplicity of T is S. | ||
// For the multiColum case it collapse T and S and then counts the multiplicity. | ||
// note that here the collapsing does not need the same randomness as the compilation. | ||
// since the multiplicity is the same w.r.t any randomness. | ||
mTables map[string]table | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters