Skip to main content

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


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 details)

Uploaded Source

Built Distribution

dialectic-0.2.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file dialectic-0.2.0.tar.gz.

File metadata

  • Download URL: dialectic-0.2.0.tar.gz
  • Upload date:
  • Size: 2.2 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

Hashes for dialectic-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6a24e691dd5bd7fc4a7e13524d55550ea9002105cd0675bbcd1478e77ed82961
MD5 c5b8673ec848d47bacb07ea3366c510d
BLAKE2b-256 a0b44538ab79f52278f13f234f022f33a48ce7014d875a72f3720e6d94fdeb14

See more details on using hashes here.

File details

Details for the file dialectic-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: dialectic-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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

Hashes for dialectic-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ef9b864bdaf4ca45fc405f6a5f34ced444cfe1d189d64e4fdf04c6099f0dedf
MD5 811432005d068d4b31e51e97e0232634
BLAKE2b-256 658f6dc0461771377b2b26e5f4b887a5daa35fc59d19193d48f11a83667635e0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page