Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tip 8: Continuations #219

Merged
merged 6 commits into from
Oct 23, 2023
Merged

Tip 8: Continuations #219

merged 6 commits into from
Oct 23, 2023

Conversation

aszepieniec
Copy link
Collaborator

No description provided.

Copy link
Member

@jan-ferdinand jan-ferdinand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not fully understood all parts about the construction yet. Here's some comments (inline) and questions (below) I have so far.

Currently open questions:

  • what about zero-knowledge when transmitting memory objects?
  • is the intuition for transmitting i/o actually arithmetizable?


This note describes a way to commit to the state of the virtual machine in a way that enables linking two consecutive segment-proofs.

At the heart of this technique lies the representation of memory as a pair of polynomials, $K(X)$ and $V(X)$. $K(X)$ is the smallest-degree polynomial that evaluates to zero in all addresses. $V(X)$ is the lowest-degree interpolant that takes the memory's value in those points.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that evaluates to zero in all addresses

that evaluates to zero in all used? addresses


### (c) Input and Output

The input evaluation arguments for proofs of consecutive segments need not be linked. What matters is that these evaluation arguments work relative to the correct subsequences of input symbols. To facilitate this, the segment claim has two additional fields relative to the whole claim: a start and stop index for reading input symbols. When read in combination with the claim for the whole computation, it is easy to select the correct substring of field elements. When merging consecutive segment proofs, it is possible that the stop index of the former equals the start index of the latter.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is possible that the stop index of the former equals the start index of the latter.

it is necessary? that the stop index of the former equals the start index of the latter.


To prove that the continuation polynomials at the end of one segment are equal to the continuation polynomials at the start of the next segment, assert the equality of their evaluations in a random point $\alpha$. In order to get $\alpha$ non-interactively, the prover must commit to the execution traces of both segments.

Specifically, let $B_A, B_B, B_C$ be the base tables of segments $A, B, C$. In order to obtain the point $\alpha$ for extending $A$, the prover must first send both the commitments to (or Merkle roots of) $B_A$ and to $B_B$. Then $\alpha \leftarrow \mathsf{H}(\mathsf{com}(B_A) \Vert \mathsf{com}(B_B))$ can be used to extend $A$.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In our current lingo, “extending” usually applies to base tables and means the acquisition of the extension tables. Do we want to use the same word here?

In a similar vein, do we want to call the different parts / chunks / segments of the trace “segments”, where that word is also currently used for segment polynomials?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In our current lingo, “extending” usually applies to base tables and means the acquisition of the extension tables. Do we want to use the same word here?

I am using this exact meaning. To compute the continuation polynomials' values, you need extension columns and an $\alpha$.

In a similar vein, do we want to call the different parts / chunks / segments of the trace “segments”, where that word is also currently used for segment polynomials?

I don't think there is any risk for confusion. Also: Risc0 is using segment in the same sense. Happy to consider alternatives though -- please suggest.

@jan-ferdinand jan-ferdinand merged commit 4b38d01 into master Oct 23, 2023
2 checks passed
@jan-ferdinand jan-ferdinand deleted the asz/tip8 branch October 23, 2023 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants