Git Product home page Git Product logo

Comments (2)

tanyongkiam avatar tanyongkiam commented on June 16, 2024

Thanks for the report. That's actually a bug in the error checking: dV does not support equational postconditions directly because there is no good notion of "epsilon" progress towards it.

Here are two alternative more "canonical" ways to prove an equational postcondition.

  1. In your example, the intuition for the proof since x starts at 0 and reaches x > 1 eventually, it should have hit x=1 along the way. Use K<&> from the right-click menu to turn the postcondition to x>1 (or x>=1) first.

This gives you two branches. The "easy" branch <{x'=1}>x>1 which should prove by dV automatically.

The more interesting branch has a box modality: [{x'=1 & !x=1}] !x>1. Intuitively, this gives a contrapositive reading of what I wrote above, i.e., if the ODE never hit x=1, then it could never have hit x>1. This should prove automatically by ODE.

  1. Another case is if the equality happens to be an invariant of your system, for example:

x=0 & c=0 -> <{x'=1,c'=c}>(x>1&c=0)

Here, you can again use K<&> with x>1. The interesting branch has a box modality: [{x'=1,c'=c & !(x>1&c=0)}] !x>1. This proves automatically (or you can diff cut c=0).

Alternatively, if you would like to use [{x'=1,c'=c}]c=0 more in your subsequent proofs, then use "compactCut" from the right-click menu to first add an assumption [{x'=1,c'=c}]c=0.

from keymaerax-release.

smitsch avatar smitsch commented on June 16, 2024

Fixed in e078f77

from keymaerax-release.

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.