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.1.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file dialectic-0.3.1.tar.gz
.
File metadata
- Download URL: dialectic-0.3.1.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 | f96124b68eafe2cdb6cafd1b20e1a2fcd256e67d70be0b5934a8e498587aacfe |
|
MD5 | 353ef6eada6d4ee2ae9737fd72307077 |
|
BLAKE2b-256 | d951b881e81c5c3280e2e094c0a773c14063f67913f5b938d2ad5335f7586f4b |
File details
Details for the file dialectic-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: dialectic-0.3.1-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 | 56c921c627bcd3f8a14c4c6db4253449c94438f1ba85777f5fef564218d54fac |
|
MD5 | 5ce88c7238b527eaa17c39a27b63c697 |
|
BLAKE2b-256 | c8227faa7e21457d3b0330d682e68bf4d98a6527be6606423ba3fdddfe1bc8ce |