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 hashes)
Built Distribution
Close
Hashes for dialectic-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56c921c627bcd3f8a14c4c6db4253449c94438f1ba85777f5fef564218d54fac |
|
MD5 | 5ce88c7238b527eaa17c39a27b63c697 |
|
BLAKE2b-256 | c8227faa7e21457d3b0330d682e68bf4d98a6527be6606423ba3fdddfe1bc8ce |