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.0a4.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for dialectic-0.3.0a4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb500a1eb2e5ed9a30012471b8ac26fce93a2ffecb769776caddade0639d838d |
|
MD5 | 849fa864b89c94413e00b1b265863527 |
|
BLAKE2b-256 | d27c917172ce05405300b47d747074cfe1d766b7373e749e30d4f63433afb45c |