GithubHelp home page GithubHelp logo

ltlmodelchecking's Introduction

LTLModelChecking

An implementation of a classical algorithm for verification of linear temporal logic. Assignment for CS3959, Model Checking, ACM Class.

Requirements

Antlr4

pip3 install antlr4-python3-runtime  

Run

python3 src/main.py

Implementation Details

Parser

Under src/parser is the grammar file LTL.g4 and the generated parser LTLParser.py. The parser is generated by Antlr4. We use the visitor pattern to traverse the LTL formula parse tree. While traversing, we build the corresponding syntax tree and perform some equivalence transformations to simplify the formula. Details can be found in src/parser/LTLEvalVisitor.py.

Construct GNBA

Under src/Automata is the implementation of all automata. We use the algorithm in Theorem 5.37 (page 278 of Principles of Model Checking) to construct the GNBA. Details can be found in src/Automata/GNBA.py.

Construct NBA

We use Theorem 4.56 (page 195 of Principles of Model Checking) to construct the NBA. Details can be found in src/Automata/NBA.py.

Construct cross product for NBA and original Transition System

We use Definition 4.62 (page 200 of Principles of Model Checking) to construct cross product for NBA and original Transition System. Details can be found in src/TS/TransitionSystem.py::initFromProduct.

Persistence checking

We use Algorithm 7 & 8 (page 210 of Principles of Model Checking) to perform persistence checking. Details can be found in src/TS/TransitionSystem.py::persistenceChecking.

ltlmodelchecking's People

Contributors

cblmemo avatar

Watchers

 avatar

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.