Giter Site home page Giter Site logo

spidermoy / model_checking-ltl-ctls Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 2.29 MB

Computer Scientist Master Degree - Thesis Work

License: Other

Haskell 100.00%
unam model-checking haskell computer-science computer-science-degree ltl ctl ctl-star ctl-formulas ltl-formulas formal-methods

model_checking-ltl-ctls's Introduction

Simple and Efficient On-the-Fly Model Checking for LTL, CTL and CTL*

While simulation and testing explore some of the possible behaviors and scenarios of the system, leaving open the question of whether the unexplored trajectories may contain the fatal bug, formal verification conducts an exhaustive exploration of all possible behaviors.

─Clarke, Grumberg & Peled

To me, mathematics, computer science, and the arts are insanely related. They’re all creative expressions.

─Sebastian Thrun

Haskell is faster than C++, more concise than Perl, more regular than Python, more flexible than Ruby, more typeful than C#, more robust than Java, and has absolutely nothing in common with PHP.

─Audrey Tang

This repository contains my work for obtain my computer scientist master degree: a simple model checker for temporal logics written in Haskell. My thesis is here. This work simplifies and improves Girish Bhat, Rance Cleaveland and Orna Grumberg work. See Efficient On-the-Fly Model Checking for CTL* for more details.

In summary, this repository contains a model verifier for LTL temporal logic, which, does not use Büchi's Automatons or Strongly Connected Components, is only based on formal semantics. This verifier extends naturally to the CTL* temporal logic (and thus, to the CTL logic).

Requirements:

How to use:

  1. Installation:

cabal new-build

  1. How to use it:

Let n the number of variables, and m the depth of the formulas of the experiments. Both n and m are positive integers.

  • Run a random LTL (or CTL) experiment: cabal new-run model-check random LTL n m or cabal new-run model-check random CTL n m
  • Run a random LTL (or CTL) experiment comparing with nuXmv: cabal new-run model-check random nuXmv LTL n m or cabal new-run model-check random nuXmv CTL n m
  • Run a random LTL experiment with counterexamples: cabal new-run model-check random LTLc n m
  • Run a random LTL experiment with counterexamples comparing with nuXmv: cabal new-run model-check random nuXmv LTLc n m
  • Run a specific LTL experiment with counterexamples by using their initial seeds: cabal new-run -- model-check seeds ranInit ranNumInit ranKS ranF LTLc n m
  • Run a specific LTL experiment with counterexamples by using their initial seeds comparing with nuXmv: cabal new-run -- model-check seeds nuXmv ranInit ranNumInit ranKS ranF LTLc n m
  • Run a specific LTL or CTL experiment by using their initial seeds: cabal new-run -- model-check seeds ranInit ranNumInit ranKS ranF [LTL or CTL] n m
  • Run a specific LTL or CTL experiment by using their initial seeds comparing with nuXmv: cabal new-run -- model-check seeds nuXmv ranInit ranNumInit ranKS ranF [LTL or CTL] n m
  • Run simple LTL and CTL examples: cabal new-run model-check examples
  • Run the experiments in my thesis: cabal new-run model-check thesis_experiments
This repository contains an implementation of Bhat, Cleaveland and Grumberg original algorithm.

model_checking-ltl-ctls's People

Contributors

spidermoy avatar

Stargazers

 avatar  avatar  avatar  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.