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.2a1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for dialectic-0.3.2a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 791b135805551e39806c16eb10a299910eecd5334c6cb7f455750b490f896d4f |
|
MD5 | 2f3cb0b6db5e11f47ce16e89aaba361b |
|
BLAKE2b-256 | 444740071699037c8655473ef94d4abbb2b2e40cd0d3ebe29c41ab981fd05964 |