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.0a2.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file dialectic-0.3.0a2.tar.gz
.
File metadata
- Download URL: dialectic-0.3.0a2.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 | 8f4f99f04557fb5a761efceeeb515df4c8c7e5004d23e48358271e2f6d359813 |
|
MD5 | e8744a4a4efd2ff6001e104f32e6b0be |
|
BLAKE2b-256 | 841f540618c96cb21e765349a82de4da251beee1faa454c0252727d611705b40 |
File details
Details for the file dialectic-0.3.0a2-py3-none-any.whl
.
File metadata
- Download URL: dialectic-0.3.0a2-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 | 28b5abe079220eac836f81446a513c191160aebc8ae2658fb19065fe39db7f6e |
|
MD5 | 04ca02381bc79e35878ec835d3a15d98 |
|
BLAKE2b-256 | 9c22ff95da6add0048247533de72935d7e9f244921cabc9461013c53e8e3880c |