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.0a6.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file dialectic-0.3.0a6.tar.gz
.
File metadata
- Download URL: dialectic-0.3.0a6.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 | 2e6a6c8de7c00162bf4f34d6f2a7240074c6777c396d00c281c7128b3ce42577 |
|
MD5 | fadc441ee1d81c71226c83b0ab4984a8 |
|
BLAKE2b-256 | 25f3ff552d1dbbc3e351fa5787cb94eb364ec0aca7d2f445938a4db62234d3cd |
File details
Details for the file dialectic-0.3.0a6-py3-none-any.whl
.
File metadata
- Download URL: dialectic-0.3.0a6-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 | bf08bafa40b8422909523a5e42ecb69a7a4bad4e7db57632c37a201e388d8219 |
|
MD5 | 3a962a87e7c87dd8fd786deba8b08911 |
|
BLAKE2b-256 | 784556909ffbf8a5aa062af464df724574e092a64645d6d9efe38e2b848e91f1 |