Code Monkey home page Code Monkey logo

Comments (4)

cpitclaudel avatar cpitclaudel commented on July 29, 2024 3

that wouldn't be a breaking change, would it?

It could be, since the new proofs are harder.
It may be that Dafny managed to call the previous function with the simpler spec and not the one with the more general spec.

For example Map(f: A -> B, xs: seq<A>) has no preconditions. But Map(f: A --> B, xs: seq<A>) has requires forall a | a in xs :: f.requires(a). It should be easy to satisfy this new precondition, but it's still extra work.

Sometimes it's worse, and the most general version of the function has complex preconditions that can be satisfied in various ways that are not immediately obvious (for example, Fold)

from libraries.

MikaelMayer avatar MikaelMayer commented on July 29, 2024

Good questions. I think we can always promote -> to --> and then to ~>` for arguments when it will be necessary, correct?

from libraries.

cpitclaudel avatar cpitclaudel commented on July 29, 2024

Correct @MikaelMayer, but that entails additional proof obligations (the preconditions of the more general function that you're calling).

from libraries.

MikaelMayer avatar MikaelMayer commented on July 29, 2024

That's part of the upgrade, but for a user of the library, that wouldn't be a breaking change, would it?

from libraries.

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.