Skip to content

Commit

Permalink
Merge pull request #1200 from o1-labs/misc/link-todo-with-gh-issues
Browse files Browse the repository at this point in the history
Explain TODOs
  • Loading branch information
dannywillems authored Nov 28, 2023
2 parents 2f94807 + 25156a2 commit 901033a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion book/src/specs/kimchi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2202,7 +2202,7 @@ The prover then follows the following steps to create the proof:
* $s_i$
* $w_i$
* $z$
* lookup (TODO)
* lookup (TODO, see [this issue](https://github.com/MinaProtocol/mina/issues/13886))
* generic selector
* poseidon selector

Expand Down
2 changes: 2 additions & 0 deletions kimchi/src/circuits/gate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ impl<F: PrimeField + SquareRootField> CircuitGate<F> {
EndoMul => self.verify_endomul::<G>(row, witness, &index.cs),
EndoMulScalar => self.verify_endomul_scalar::<G>(row, witness, &index.cs),
// TODO: implement the verification for the lookup gate
// See https://github.com/MinaProtocol/mina/issues/14011
Lookup => Ok(()),
CairoClaim | CairoInstruction | CairoFlags | CairoTransition => {
self.verify_cairo_gate::<G>(row, witness, &index.cs)
Expand Down Expand Up @@ -299,6 +300,7 @@ impl<F: PrimeField + SquareRootField> CircuitGate<F> {
}
GateType::Lookup => {
// TODO: implement the verification for the lookup gate
// See https://github.com/MinaProtocol/mina/issues/14011
vec![]
}
GateType::CairoClaim => turshi::Claim::constraint_checks(&env, &mut cache),
Expand Down
1 change: 0 additions & 1 deletion kimchi/src/circuits/lookup/lookups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ pub type JointLookupSpec<F> = JointLookup<SingleLookup<F>, LookupTableID>;
pub type JointLookupValue<F> = JointLookup<F, F>;

impl<F: Zero + One + Clone + Neg<Output = F> + From<u64>> JointLookupValue<F> {
// TODO: Support multiple tables
/// Evaluate the combined value of a joint-lookup.
pub fn evaluate(&self, joint_combiner: &F, table_id_combiner: &F) -> F {
combine_table_entry(
Expand Down
2 changes: 1 addition & 1 deletion kimchi/src/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ where
//~~ * $s_i$
//~~ * $w_i$
//~~ * $z$
//~~ * lookup (TODO)
//~~ * lookup (TODO, see [this issue](https://github.com/MinaProtocol/mina/issues/13886))
//~~ * generic selector
//~~ * poseidon selector
//~
Expand Down

0 comments on commit 901033a

Please sign in to comment.