Giter Site home page Giter Site logo

system-l's Introduction

system-L

Stars Forks Repo size License Language build Coverage

Descripton

It's a formal logic deduction based on system-L

Symbols

  • ~: negation
  • ->: deduce (denoted as '>')

Axioms

The three basic axioms:

  • L1: p->(q->p)
  • L2: (p->(q->r)) -> ((p->q)->(p->r))
  • L3: ~q->~p -> (p->q)

Deduction

{p,p->q} |- q

Read this book or click here to see more details.

Methods

To prove one proposition:

  • Firstly, Use deduction theorem to de-level the formula and get a proposition variable or a proposition in form of ~(...). Let's denote it as p or ~p.
  • Next, Create a set called garma and fill it with some generated formulas which is deduced from the above axioms, some theorems and conclusions.
  • Then, Search p or ~p in garma, or further, using modus ponent(MP) to deduce p or ~p.
  • Finally, if MP can't prove it, use Proof by contradiction instead.

Requirements

python modules

  • sympy

Visual

To do

  • 将证明过程对象化,便于处理,打印(英文版,中文版),
  • 其他连接词的转换
  • 处理简单的, 有一定模式的自然语言, 形成命题推理

Licence

MIT

system-l's People

Contributors

heqin-zhu avatar

Stargazers

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