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_sentences
parsed_set = parse_sentences([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.3.2a2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

dialectic-0.3.2a2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file dialectic-0.3.2a2.tar.gz.

File metadata

  • Download URL: dialectic-0.3.2a2.tar.gz
  • Upload date:
  • Size: 2.5 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.3.2a2.tar.gz
Algorithm Hash digest
SHA256 196844cfd51fa9cd2a443529757a6253af3fb39aab3e3237a8edd38e7362ae7b
MD5 c88638c59e687c8616f85118eb5dd314
BLAKE2b-256 73f0ca7303a7f8dcc3f5f10fcc9e31d8bd819de389f291554eaa536624dfe2cf

See more details on using hashes here.

File details

Details for the file dialectic-0.3.2a2-py3-none-any.whl.

File metadata

  • Download URL: dialectic-0.3.2a2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.3.2a2-py3-none-any.whl
Algorithm Hash digest
SHA256 db40979b805c53ed6b34a4d6a10cc09e589bf7abab60bdc2444875606cc8f795
MD5 f102d399af0cb88ba980c667281dbf70
BLAKE2b-256 45097ac4d7056200fe6175d994409677022cf9df82f1ad21e1d02019ac0e2997

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