Dialectic
Mathematical logic implementation using python.
Install
pip install dialectic
Usage
from dialectic import Atomic
# 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
implication.validate({a, b})
# Parsing a sentence list
from dialectic import parse_sentences
parsed_set = parse_sentences([implication, a])
# Inference
from dialectic import Inference
is_valid = Inference((a > b), [b]).is_valid_argument()
is_tautology = Inference((a | ~a)).is_tautology()
is_contradictory = Inference((a & ~a)).is_contradictory()
is_contingent = Inference((a & b)).is_contingent()
Metadata
Release files for dialectic 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dialectic-0.3.2.tar.gz | 2.6 kB | Without provenance | Details for dialectic-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dialectic-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for dialectic-0.3.2-py3-none-any.whl |
Total release size: 6.8 kB
Release files / dialectic-0.3.2.tar.gz
| Download URL | dialectic-0.3.2.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd5e2e7bc1126f6e1a6aff862703bb47e226d620706520731582114b87b3c06a
|
|
BLAKE2b-256 checksum How to use checksums |
a4abf15c34969769539de7fcf2e85de2722a62f7a102fbbf39ef121e42f0366e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / dialectic-0.3.2-py3-none-any.whl
| Download URL | dialectic-0.3.2-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b4255b6332d92dd8ac2a6264df084acbc5aca40f21474ebd176c1384b770ca8
|
|
BLAKE2b-256 checksum How to use checksums |
6746c8a0a74eaff09cd363a19c7e5978d0f8f0a30887e167f30321cc3714d273
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for dialectic 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.