Proposition Logic
Project description
Install
$ pip3 install -U proofproposition
Description
### BNF of Proposition:
Expr
= [Premise] '|-' Imply
;
Premise
= Imply {',' Imply}*
;
Imply
= Or {'->' Or}*
;
Or
= And {'+' And}*
;
And
= Atom {'*' Atom}*
;
Atom
= token
| '(' Imply ')'
;
token
= /\w+/
;
### Axiom of Primal:
1) A->(B->A)
2) (A->(B->C))->((A->B)->(A->C))
### Axiom of Minimal:
3) (A*B)->A
4) (A*B)->B
5) A->(B->(A*B))
6) A->(A+B)
7) B->(A+B)
8) (A->C)->((B->C)->((A+B)->C))
### Axiom of Intuitionistic:
9) False->A
### Axiom of Classical:
10) ((A->False)->A)->A
### Theorem:
|- A->A
### Rule of Inference:
A, A->B
---------
B
Command
$ proof "A |- B->A"
Contact us
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file proofproposition-0.0.1.tar.gz
.
File metadata
- Download URL: proofproposition-0.0.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c4cfff2d6c7ae35e79e9fb578deae7c1ada8d7ee6b222b68fd2730c4af49e02 |
|
MD5 | 67c0a2d110ae636f74581cffc9552405 |
|
BLAKE2b-256 | d44c8e73a90ab691fa02b934a3d7effb303852cadca7bc1f13987976d772ac34 |