Giter Club home page Giter Club logo

Comments (3)

fan-tom avatar fan-tom commented on September 23, 2024

Thank you @rod-chapman for these references! How did you find this project, I almost abandoned it since faced troubles with precise handling branching and loops, could you suggest me what can I read about how to infer loop invariants (if it is possible at all)?

from liquid-rust.

rod-chapman avatar rod-chapman commented on September 23, 2024

The project was brought to my attention by Alastair Reid at Google Research. He has been keeping close track of projects doing verification with Rust.

Inference of loop invariants is still a hard problem. I know of a few teams that have tried it, but I don't know of any significant success.

from liquid-rust.

alastairreid avatar alastairreid commented on September 23, 2024

An incomplete but useful thing to consider for loop invariants is to use a 'guess and check' approach where you first guess a possible invariant and then use SMT to check whether it holds.

This paper describes an approach (that I have not personally tried) where the guessing part works like this:

  1. Gathering some data from an actual run. Which might result in x,y pairs such as 1,3 2,6 3,9.
  2. Using linear algebra to produce a guessed invariant "y = 3 * x"

This looks so simple that I keep hoping for an excuse to implement it myself.
There may be more recent papers with improvements - worth doing at least a shallow search if you think this is promising.

from liquid-rust.

Related Issues (2)

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.