PEREDUR repairs unrealisable reactive specifications with a multi-objective genetic algorithm. It takes a linear temporal logic (LTL) specification in the Temporal Logic Synthesis Format (TLSF) and searches for edits that make it realisable while staying close to the original.
The Docker image holds the binaries, the solvers they call and the bundled examples. To repair the paper's running example and write the repairs to out/:
mkdir -p out
docker run --rm --init --user "$(id -u):$(id -g)" -v "$PWD:/work" benmandrew/peredur:latest \
peredur --input /opt/peredur/share/peredur/examples/paper-running-example/spec.tlsf \
--output-dir out --repair-summaryTo repair your own specification, put it in the current directory and pass --input /work/spec.tlsf. Each repair_N.tlsf in out/ is a complete specification. Run peredur --help for the other options.
The local build uses Nix with flakes enabled:
nix develop
cmake --workflow --preset release
./build-release/peredur --input examples/paper-running-example/spec.tlsf --output-dir outBuilding from source covers the build without Nix, the other presets and the tests.
The full documentation is published at benmandrew.com/docs/peredur.
| Link | Description |
|---|---|
| Examples | every bundled specification and where it comes from |
| Docker | running and building the container image, with resource limits |
| Building from source | Nix and non-Nix builds, dependencies, presets, tests |
| Virtual machine | building a VirtualBox appliance from the image |
| TLSF specifications | a worked repair, minimal unrealisable cores |
| Architecture | algorithm flow, key types, module layout |
| Configuration | tuning via TOML, objectives, selection schemes |
| API reference | the include/ headers |
| Experiment scripts | parameter sweeps and result analysis |