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.2a3.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file dialectic-0.3.2a3.tar.gz
.
File metadata
- Download URL: dialectic-0.3.2a3.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 | e1b1d83808e91497dfb9502b9d6f54513d60bcbb8fb4f3d87e3e1fcbb307a7f5 |
|
MD5 | e0b11f9a9c79b827917b1b03298c2b89 |
|
BLAKE2b-256 | b62de2cc7caa7cd5fc652462ba134f3a10cda70fd792816bbeb8798f93eeccab |
File details
Details for the file dialectic-0.3.2a3-py3-none-any.whl
.
File metadata
- Download URL: dialectic-0.3.2a3-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 | cd9384395f8855f7d6a62250861c3e83278e3979fa44aaac4460d5dea8b07bef |
|
MD5 | 27f83c9e3eaedde21cdb455033565f71 |
|
BLAKE2b-256 | 45ce9444dc5e9d06c1162b162a32c669541facf1c6e9166a4ee670ef0d479aaa |