Giter VIP home page Giter VIP logo

alpyne's Introduction

Alpyne - Algebraic Petri Nets with Python

Build Status codecov

Alpyne is a package designed for the construction and verification of Algebraic Petri Nets with Python.

Algebraic Petri Nets (APNs) are a high order variant of Petri Nets, a class of models typically used in the verification of concurrent software. The objective of Alpyne is to provide a framework to build models of concurrent programs with APNs and to automatically check properties on them.


Installation

To install Alpyne, simply clone this repository and run the command pip3 install --upgrade . at its root (and preferably inside of a virtual environment). Once this is done, the package can be used like any other Python library.

Usage

Algebraic Data Types (ADTs)

Algebraic Petri Nets are built on top of the concept of Algebraic Data Types (a.k.a. ADTs -- mathematically formalised data structures described with the help of many-sorted algebrae, axioms and rewrite rules -- see the book by Sannella and Tarlecki for an in-depth discussion on the subject).

Before an Algebraic Petri Net can be built, the sorts of the terms it uses as tokens need to be defined. This can be done with the adt module of this package. Examples of definitions of ADTs can be found in the /alpyne/adts folder of this repository, where the ADTs of base sorts such as booleans or naturals are defined.

Algebraic Petri Nets (APNs)

To define and use APNs, the apn module of this package can be used. An example of script that builds and executes an APN to compute the Fibonacci sequence is provided in the /examples folder of this repository.

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.