# pyPRUF: Possibilistic Relational Universal Fuzzy
![Read the Docs (version)](https://img.shields.io/readthedocs/pypruf/latest)
![GitHub Release](https://img.shields.io/github/v/release/ashkihotah/pyPRUF)
![GitHub License](https://img.shields.io/github/license/ashkihotah/pyPRUF)
**pyPRUF** is a simple Python library implementation of the **PRUF** (**Possibilistic Relational Universal Fuzzy**) framework proposed by Lotfi A. Zadeh.
PRUF was an informal and incomplete mathematical framework, proposed by Lotfi A. Zadeh in his [paper](https://www2.eecs.berkeley.edu/Pubs/TechRpts/1977/ERL-m-77-61.pdf), which extended classical relational algebra theory of databases to a fuzzy-like relational algebra theory by integrating it with the multi-valued fuzzy logic and fuzzy set theory to handle uncertainty and imprecision in reasoning processes.
This library provides tools and utilities for creating, manipulating, and reasoning with fuzzy sets in the context of possibilistic logic. In addition to **possibility** qualifications, this tool can be used, also, to perform **truth** and **probability** qualifications (as defined in the [paper](https://www2.eecs.berkeley.edu/Pubs/TechRpts/1977/ERL-m-77-61.pdf)).
At the moment, this library provides facilities that manage only discrete fuzzy sets however, it is designed in such a way that it can easily be expanded in the future to also handle continuous fuzzy sets.
> *At present, pyPRUF is still in its intial stages of development. This library could be improved in many ways and, time to time, it will be done!*😊
It is recommended to have or obtain a solid foundation of knowledge in fuzzy logic and fuzzy set theory before reading the [docs](https://pypruf.readthedocs.io/en/latest/).
## Key Features
1. **Fuzzy Logic**
1. t-norms, t-conorms and negations
2. Linguistic Modifiers
2. **Fuzzy Relational Algebra**
1. Discrete Fuzzy Sets as Fuzzy Relations
2. Union, Intersection and Difference
3. Cartesian Product and Natural Join
4. Selection and Particularization
5. Renaming and Projection
6. Extension Principle
7. Reorder and extra methods
3. **Translation Rules**
1. Collapsing DiscreteFuzzySets
2. Type I (Modification): Apply Linguistic Modifiers
3. Type II (Composition): Cylindrical Extension
4. Type III (Quantification): Normal / Mean Cardinality and Proportion
5. Type IV (Qualification): Consistency and Compatibility
4. **Some Continuous Fuzzy Set facilities**:
1. Standard Membership Functions
2. Temporary Implementation of some methods
**WARNING**: *A python version higher than 3.11 is required*.
## Installation
Installing **pyPRUF** is straightforward. You can install it via pip:
```
pip install pyPRUF
```
## License
**pyPRUF** is open-source and distributed under the GNU Lesser General Public License (LGPL) - see the [LICENSE](https://github.com/ashkihotah/pyPRUF/tree/dev?tab=License-1-ov-file) file for details.
## Contributing
We welcome contributions from the community! If you'd like to contribute to pyPRUF, [contact](./about.md#get-in-touch) us.
<!-- check out our Contributing Guide for more information on how to get started. -->
Raw data
{
"_id": null,
"home_page": null,
"name": "pyPRUF",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": "AI, XAI, PRUF, fuzzy relations, fuzzy logic, fuzzy sets, possibilistic logic, approximate reasoning, fuzzy relational algebra",
"author": "Nicol\u00f2 Resta",
"author_email": "nicoloresta02@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/0f/a6/5eb970e505aff9ae0eb41dfed6466f964511650926f893f93cfb7fd78378/pypruf-0.0.3.tar.gz",
"platform": null,
"description": "# pyPRUF: Possibilistic Relational Universal Fuzzy\n\n![Read the Docs (version)](https://img.shields.io/readthedocs/pypruf/latest)\n![GitHub Release](https://img.shields.io/github/v/release/ashkihotah/pyPRUF)\n![GitHub License](https://img.shields.io/github/license/ashkihotah/pyPRUF)\n\n\n**pyPRUF** is a simple Python library implementation of the **PRUF** (**Possibilistic Relational Universal Fuzzy**) framework proposed by Lotfi A. Zadeh.\n\nPRUF was an informal and incomplete mathematical framework, proposed by Lotfi A. Zadeh in his [paper](https://www2.eecs.berkeley.edu/Pubs/TechRpts/1977/ERL-m-77-61.pdf), which extended classical relational algebra theory of databases to a fuzzy-like relational algebra theory by integrating it with the multi-valued fuzzy logic and fuzzy set theory to handle uncertainty and imprecision in reasoning processes.\n\nThis library provides tools and utilities for creating, manipulating, and reasoning with fuzzy sets in the context of possibilistic logic. In addition to **possibility** qualifications, this tool can be used, also, to perform **truth** and **probability** qualifications (as defined in the [paper](https://www2.eecs.berkeley.edu/Pubs/TechRpts/1977/ERL-m-77-61.pdf)).\n\nAt the moment, this library provides facilities that manage only discrete fuzzy sets however, it is designed in such a way that it can easily be expanded in the future to also handle continuous fuzzy sets.\n\n> *At present, pyPRUF is still in its intial stages of development. This library could be improved in many ways and, time to time, it will be done!*\ud83d\ude0a\n\nIt is recommended to have or obtain a solid foundation of knowledge in fuzzy logic and fuzzy set theory before reading the [docs](https://pypruf.readthedocs.io/en/latest/).\n\n## Key Features\n\n1. **Fuzzy Logic**\n 1. t-norms, t-conorms and negations\n 2. Linguistic Modifiers\n2. **Fuzzy Relational Algebra**\n 1. Discrete Fuzzy Sets as Fuzzy Relations\n 2. Union, Intersection and Difference\n 3. Cartesian Product and Natural Join\n 4. Selection and Particularization\n 5. Renaming and Projection\n 6. Extension Principle\n 7. Reorder and extra methods\n3. **Translation Rules**\n 1. Collapsing DiscreteFuzzySets\n 2. Type I (Modification): Apply Linguistic Modifiers\n 3. Type II (Composition): Cylindrical Extension \n 4. Type III (Quantification): Normal / Mean Cardinality and Proportion\n 5. Type IV (Qualification): Consistency and Compatibility\n4. **Some Continuous Fuzzy Set facilities**:\n 1. Standard Membership Functions\n 2. Temporary Implementation of some methods\n \n**WARNING**: *A python version higher than 3.11 is required*.\n\n## Installation\n\nInstalling **pyPRUF** is straightforward. You can install it via pip:\n\n```\npip install pyPRUF\n```\n\n## License\n\n**pyPRUF** is open-source and distributed under the GNU Lesser General Public License (LGPL) - see the [LICENSE](https://github.com/ashkihotah/pyPRUF/tree/dev?tab=License-1-ov-file) file for details.\n\n## Contributing\n\nWe welcome contributions from the community! If you'd like to contribute to pyPRUF, [contact](./about.md#get-in-touch) us.\n\n<!-- check out our Contributing Guide for more information on how to get started. -->\n",
"bugtrack_url": null,
"license": null,
"summary": "A Python library for PRUF, a meaning representation and manipulation language for approximate reasoning purposes, proposed by Zadeh.",
"version": "0.0.3",
"project_urls": {
"Documentation": "https://readthedocs.org",
"Repository": "https://github.com/ashkihotah/pyPRUF"
},
"split_keywords": [
"ai",
" xai",
" pruf",
" fuzzy relations",
" fuzzy logic",
" fuzzy sets",
" possibilistic logic",
" approximate reasoning",
" fuzzy relational algebra"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "256e60c8f686dafd6d9e4b0e91e136ec905b2270b1ad4401d1f3a6dcd0d03b34",
"md5": "4f67283d7305a7fc8204e242de15c1d7",
"sha256": "2f51b3b67fe0e3c2f6efbecc2bd053dd1ba0e70ff5947afc02da0e50fb51493b"
},
"downloads": -1,
"filename": "pyPRUF-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4f67283d7305a7fc8204e242de15c1d7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 23253,
"upload_time": "2025-01-23T15:53:47",
"upload_time_iso_8601": "2025-01-23T15:53:47.596552Z",
"url": "https://files.pythonhosted.org/packages/25/6e/60c8f686dafd6d9e4b0e91e136ec905b2270b1ad4401d1f3a6dcd0d03b34/pyPRUF-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0fa65eb970e505aff9ae0eb41dfed6466f964511650926f893f93cfb7fd78378",
"md5": "b33c765387210471bab1e6dc4c73992c",
"sha256": "752f69fa9643ad70e29d4f14ffbe0a63e0054704fce4ef75a51dacd80640e93a"
},
"downloads": -1,
"filename": "pypruf-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "b33c765387210471bab1e6dc4c73992c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 23826,
"upload_time": "2025-01-23T15:53:48",
"upload_time_iso_8601": "2025-01-23T15:53:48.786227Z",
"url": "https://files.pythonhosted.org/packages/0f/a6/5eb970e505aff9ae0eb41dfed6466f964511650926f893f93cfb7fd78378/pypruf-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-23 15:53:48",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ashkihotah",
"github_project": "pyPRUF",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pypruf"
}