Coder Social home page Coder Social logo

Custom evaluation frames about winterfell HOT 3 OPEN

facebook avatar facebook commented on April 28, 2024 3
Custom evaluation frames

from winterfell.

Comments (3)

4l0n50 avatar 4l0n50 commented on April 28, 2024 2

Just to complement, what you're saying is done here in the Cairo solidity verifier, which checks that OOD evaluations satisfy for example that (T_i(x) - T_i(g^33158*z))/(x - g^33158*z) is low degree. To what you said I would just add that you also need to modify the compose_registers method of DeepComposer struct.
However, I don't think it is a good idea to just define larger windows because not all values will be used. In the example above it will require a window of size at least 33158! I think one might instead just define which other (arbitrary?) cells might be needed when evaluating the constraints.

from winterfell.

maxgillett avatar maxgillett commented on April 28, 2024 2

Yes, the frame will just provide a view of the trace, which shouldn't impact performance. Good point about the DeepComposer modifications. It would be wasteful to construct an OOD frame for all of the row offsets up to the window size (which could be quite large, as you demonstrate). One could either define in EvaluationFrame which row offsets are used in the constraints, or as in the StarkEx contract use OOD evaluations that are both column and row specific. The latter could be achieved by dynamically tracking relative trace indices during constraint evaluation, and storing these in a sparse matrix data structure. I think these are implementation details that can be abstracted away in the definition of EvaluationFrame.

from winterfell.

4l0n50 avatar 4l0n50 commented on April 28, 2024

However, I don't think it is a good idea to just define larger windows because not all values will be used.

Now that I think, it doesn't really matter even if EvaluationFrame depends on the whole trace. As long as your constraints doesn't depend on too many variables, everything should be ok

from winterfell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.