proof-systems
proof-systems copied to clipboard
JointLookup should not have SingleLookup inside
I think this struct is not correct, as in: there should not be a single lookup inside a jointlookup
pub struct JointLookup<F> {
pub table_id: usize,
pub entry: Vec<SingleLookup<F>>,
}
I think this can be written as:
pub struct JointLookup<F> {
pub table_id: usize,
/// linear combination of local positions
pub entry: Vec<(F, LocalPosition)>,
}
This would actually need to be entry: Vec<Vec<(F, LocalPosition)>>; it's probably clearer to keep the SingleLookup type to avoid the type complexity.
ah yeah, here it is:
pub struct SingleLookup<F> {
/// Linear combination of local-positions
pub value: Vec<(F, LocalPosition)>,
}
might be a good idea to do
/// scaling of a witness by a fixed field element.
pub type ScaledWitness = (F, LocalPosition);
/// A single lookup of a linear combination of registers / witness columns
pub struct SingleLookup<F>(Vec<ScaledWitness>);
Stale issue message
Stale issue message
Stale issue message