vehicle-lang / vehicle

A toolkit for enforcing logical specifications on neural networks
https://vehicle-lang.readthedocs.io/
Other
81 stars 7 forks source link

Changed variable representation in linear expressions from `Variable` to `Lv` #858

Closed MatthewDaggitt closed 3 weeks ago

MatthewDaggitt commented 3 weeks ago

We reuse de Bruijn levels to represent variables in compilation to Marabou. This should allow us to reuse the linear expressions in the loss function backend when doing domain analysis.

As a knock-on effect, I've tidied up the pretty printing code and had to restore the constant type parameter to the linear expression class.