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
parsed_set = parse([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.2.0.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for dialectic-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ef9b864bdaf4ca45fc405f6a5f34ced444cfe1d189d64e4fdf04c6099f0dedf |
|
MD5 | 811432005d068d4b31e51e97e0232634 |
|
BLAKE2b-256 | 658f6dc0461771377b2b26e5f4b887a5daa35fc59d19193d48f11a83667635e0 |