GithubHelp home page GithubHelp logo

verimag-polyhedra / vpl Goto Github PK

View Code? Open in Web Editor NEW
17.0 5.0 2.0 1.43 MB

Verimag Polyhedra Library

License: GNU Lesser General Public License v3.0

Makefile 0.19% OCaml 78.51% Coq 21.18% Standard ML 0.08% Shell 0.04%
abstract-domain polyhedral-computations polyhedra coq-formalization

vpl's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vpl's Issues

Incremental operators

Make operators incremental: one must be able to add a constraint to the input polyhedron, and reuse the previous result to avoid recomputing everything.

Handelman Normalization

Try putting normalization on all Handelman's products except the linear part of the polynomial.

Reuse PLP regions

Some operators (e.g. join) could benefit from the regions of their input polyhedra.

Handelman Plotting

Handelman plotting has a strange shape :

open Vpl;;
open Calculator;;
open Notations;;

Flags.lin := Flags.Handelman;;
Debug.enable();;
Debug.set_colors();;
Debug.print_enable();;

PLPCore.Debug.enable DebugTypes.([Title ; MInput ; MOutput ; Normal ; Sage]);;
let p = parse "x >= 1, y >= -2, x - y >= 0, x + y <= 5, x * x + y * y <= 4";;

Assume_back: merge regions

Assume_back requires the partition into regions to be a partition of the space of parameters.
Therefore, we need to merge subdivided regions.

Intervalization

Reimplement the intervalization algorithm directly in Ocaml, and remove the extracted part.

Opam package

Fix the opam package for opam 2.0.
Fix VPL dependencies.

General code review

The code should be reviewed to track down sources of inefficiency.
In particular, some lists may be changed into arrays when necessary.

Maintain PLP regions

IneqSet must maintain an optional partition into regions.
After calling a PLP operator, regions must be stored into the abstract value.

Fix trace generation

Trace generation has been adapted for the new trace language. It needs to be checked.

Assume_back: renormalization

When assuming back a constraint which puts the normalization point outside of the result's interior, regions must be renormalized to a new normalization point.
Can it be done by simply replacing the normalization constraint with a new one in each region ?

VPL doc

Make more .mli with more doc, especially in the high level modules.

HTML page

Make a HTML page with the VPL doc.
Upload it somewhere ?

Handelman default heuristic

Handelman default heuristic builds all combination up to a certain degree (the degree of the polynomial to linearize). However, it currently seems to compute too many combinations: the degree must be wrong.

Join operator: certificate failure - strict inequalities

Certificates may fail when computing the join of two polyhedra with strict inequalities.
Example :
First polyhedron

P1 = -1.v2 + 1.v4 <= 0
1.v2 + 1.v4 <= 5
14.v2 + 5.v4 <= 237/4
-1.v4 <= 0
-293/56.v2 + -5/2.v4 < -461/56

Second polyhedron

P2 = -1.v2 <= -1
-1.v4 <= 2
14.v2 + 5.v4 <= 237/4
1.v4 < 0
-333/56.v2 + 2.v4 < -501/56

Output

14.v2 + 5.v4 <= 237/4: 14.v2 + 5.v4 <= 237/4
-1.v2 + 1.v4 < 0: -1.v2 + 1.v4 <= 0 
1.v2 + 1.v4 < 5: 1.v2 + 1.v4 <= 5
-1.v4 < 2: -1.v4 < 2
-1.v2 < -1: -1.v2 < -1
-2221/56.v2 + 1.v4 < -2305/56: -2221/56.v2 + 1.v4 < -2305/56

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.