Skip to main content

A tool for models and formulas in Paraconsistent Gödel Modal Logic.

Project description

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)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

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]

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

kg2-1.0.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

kg2-1.0.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file kg2-1.0.0.tar.gz.

File metadata

  • Download URL: kg2-1.0.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for kg2-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4701d9d7d4ab1fb09457f4516a5d2b2ff1e7146cce4047e39c02983d8d62798c
MD5 497439601897ea1b8fb7ac2a4eda3fcd
BLAKE2b-256 ef5b53f6338686b133ee06c5cad505af340753de689528dcd9888361dfac6474

See more details on using hashes here.

File details

Details for the file kg2-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: kg2-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for kg2-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3deaf02e588f3b5b0cbd8113d6f725093f94ae4cb26d2ddaa191d8365413757
MD5 cb61c4ff9d8cc2e569402feee78a79b3
BLAKE2b-256 c0de41a745399084d7b003df23ea617b10b6952afca6fe14cb9fb01b7da51711

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