Mathematical Logic
Project description
Dialectic
Mathematical logic implementation using python.
Installation
pip install dialectic
Usage
# Import Atomic class
from dialectic import Atomic
# Build Atomic objects
a = Atomic('a')
b = Atomic('b')
# Invert
invert = ~a
# Conjunction
conjunction = (a & b)
# Disjunction
disjunction = (a | b)
# Implication
implication = (a > b)
# Equality (iff)
equality = (a == b)
# Validation with given sentence set
disjunction.validate({a})
# Parsing a sentence list
from dialectic import parse_sentences
parsed_set = parse_sentences([implication, a])
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
dialectic-0.3.0a3.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file dialectic-0.3.0a3.tar.gz
.
File metadata
- Download URL: dialectic-0.3.0a3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ab270f667a41687e5b461c749611c784446e90b725cd8852409c46f10b905e5 |
|
MD5 | 9e4f237b9bd3f607c93e733495675509 |
|
BLAKE2b-256 | df139184d5e3b2785738bec3e027d6d0b1a99df78fcf66a61a0df4852c36292a |
File details
Details for the file dialectic-0.3.0a3-py3-none-any.whl
.
File metadata
- Download URL: dialectic-0.3.0a3-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d51629b085a880e0e6f37a49c081b2690dfdbe66188021212a1d3dedcf99e57 |
|
MD5 | e5a66ab77f31c02abad171ca76c2e6e5 |
|
BLAKE2b-256 | 8d8945ebd2662c35c7ebf92cb70450f4f1a36658cd00e5447ed7e1abaab4b8bb |