kg2: A Python Tool for Paraconsistent Gödel Modal Logic
This package implements model and evaluation for Paraconsistent Gödel Modal Logic. In this logic, the belief of an agent in a proposition is defined to be a pair of values in the interval $[0, 1]\times[0,1]$, representing the world's truth-value for and against the proposition.Paraconsistent Gödel Modal Logic is valuable for representing nuanced information about evidence, strength of belief, consistency and inconsistency, and certainty and uncertainty.
Installation
Use the package manager pip to install kg2.
pip install kg2
Usage
The full reference of the package can be found in DOCUMENTATION.md.
from kg2 import *
# Number of worlds in the model.
world_size = 4
# Accessibility relation.
relation = [[1, 1, 0.5, 0.5], [1, 1, 0.5, 0.5], [0.5, 0.5, 1, 1], [0.5, 0.5, 1, 1]]
# Valuation 1 for each variable and agent.
valuation1 = {"p": [1, 1, 0.4, 0.4]}
# Valuation 2 for each variable and agent.
valuation2 = {"p": [0, 0, 0.8, 0.8]}
# Model instantiation.
model = Model(4, relation, valuation1, valuation2)
# Define a formula.
formula = Diamond(Diamond(Variable("p")))
# Evaluate formula in the model for world 0.
formula.valuation1(model, 0)
Full example can be found in the Jupyter Notebook example.ipynb.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
References
Bílková, M., Frittella, S., Kozhemiachenko, D. (2022). Paraconsistent Gödel Modal Logic. In: Blanchette, J., Kovács, L., Pattinson, D. (eds) Automated Reasoning. IJCAR 2022. Lecture Notes in Computer Science(), vol 13385. Springer, Cham. [https://doi.org/10.1007/978-3-031-10769-6_26]
Metadata
Release files for kg2 1.1.0
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 |
|---|---|---|---|---|
| kg2-1.1.0.tar.gz | 9.7 kB | Without provenance | Details for kg2-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kg2-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for kg2-1.1.0-py3-none-any.whl |
Total release size: 15.6 kB
Release files / kg2-1.1.0.tar.gz
| Download URL | kg2-1.1.0.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdffa94280769dc5ac1526d83006897170d4ce87c0a102f75f91ec2089aa965f
|
|
BLAKE2b-256 checksum How to use checksums |
a290001653f69011b04a4628171581f48cbbf61a172b98a6908674966bf07483
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / kg2-1.1.0-py3-none-any.whl
| Download URL | kg2-1.1.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59017deac1beff36f5f599bf72a72235c99b68a56fb92ebaa675df1ed49186a6
|
|
BLAKE2b-256 checksum How to use checksums |
5ebf48f90d92e2114ef738085fae1a18a75a2cf7f1d2c09f2ca429d40aee2d33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Security for kg2 1.1.0
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.