This repository is no longer maintained.
We extended the specification language of Explanator2, and the resulting tool is named WhyMon.
Explanator2 is an online monitor that produces verdicts in the form of explanations for Metric Temporal Logic formulas on arbitrary traces.
It is the successor of the Explanator, a previous work by Bhargav Bhatt and Dmitriy Traytel.
These are the basic steps to take if you want to run the project on your local machine.
Explanator2 depends on a recent (>= 4.04.0) version of the OCaml compiler.
We recommend that you install the OCaml compiler and necessary libraries with OPAM, the OCaml package manager.
In particular, if you are a Debian/Ubuntu user
# apt-get install opam
$ opam switch 4.13.1
$ eval $(opam config env)
$ opam install dune core_kernel base zarith menhir
or if you are an Arch Linux user
# pacman -S opam
$ opam switch 4.13.1
$ eval $(opam config env)
$ opam install dune core_kernel base zarith menhir
should be enough.
You can compile the code with
$ dune build
to obtain the executable explanator2.exe inside the folder bin. Moreover,
$ ./bin/explanator2.exe --help
will print the usage statement. For instance, you can run one of our predefined examples:
$ ./bin/explanator2.exe -fmla examples/paper/ex1.mtl -log examples/paper/ex1.log -O size -check
Alternatively, you can assign different weights to the atomic propositions:
./bin/explanator2.exe -fmla examples/paper/ex1.mtl -log examples/paper/ex1.log -O size -weights examples/paper/ex1.ws -check
You can remove the binary and clean the working directory with
$ dune clean
File src/checker.ml corresponds to the code extracted from the Isabelle formalization.
Alternatively, you can extract the code on your local machine using the command:
$ isabelle build -vd thys -eD code
from inside the formalization folder.
{f} ::= true
| false
| {ATOM}
| NOT {f}
| {f} AND {f}
| {f} OR {f}
| {f} IFF {f}
| {f} IMPLIES {f}
| PREV{i} {f}
| NEXT{i} {f}
| ONCE{i} {f}
| EVENTUALLY{i} {f}
| HISTORICALLY{i} {f}
| ALWAYS{i} {f}
| {f} SINCE{i} {f}
| {f} UNTIL{i} {f}
| {f} TRIGGER{i} {f}
| {f} RELEASE{i} {f}
{i} ::= [{NAT}, {UPPERBOUND}]
{UPPERBOUND} ::= {NAT} | INFINITY
{TRACE} := @{NAT} {ATOM}*
| @{NAT} {ATOM}* \n {TRACE}
{WEIGHTS} := {ATOM}: {NAT}
| {ATOM}: {NAT} \n {WEIGHTS}
- Andrei Herasimau
- Dmitriy Traytel
- Leonardo Lima
- Martin Raszyk
This project is licensed under the GNU Lesser GPL-3.0 license - see LICENSE for details.