Git Product home page Git Product logo

Comments (2)

spartucus avatar spartucus commented on June 7, 2024

After some thinking, we should not read data from register in the generate_trace phase. generate_trace is only used to re-format trace into stark way. So the proper way would be: We keep 16 register columns, we do read/write in constraint phase.

from olavm.

spartucus avatar spartucus commented on June 7, 2024

For register's consistency, we treat all columns as a set of row. Also refer from winterfell. From zk point of view, it just handles numbers, here, register(and memory also) is just a set of numbers.

So here comes question: do we need a register consistency constraint, just like a memory consistency constraint? For all register columns, constraints their initial state, transform correctness, and final state.

But for register, it has fixed numbers, perhaps we don't need to constraint it like memory, we constraint by all instructions, step by step.

So this is wrong:

At present, there is no constraint on the reading and writing of register

We did constraint register. The register's initial state is all 16 ZEROs, and each instruction changes register.

from olavm.

Related Issues (14)

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.