A Python Framework for Neutrosophic Sets and Mappings
Giorgio Nordo, Saeid Jafari, Arif Mehmood, Bhimraj Basumatary
TL;DR
The paper tackles the need for a practical, open-source framework to manipulate neutrosophic sets and their mappings in Python. It presents PYNS, a modular framework with three classes—$NSuniverse$, $NSset$, and $NSmapping$—that support flexible input formats, rich neutrosophic operations, and mapping-based image/counterimage computations, with degrees $\mu$, $\sigma$, $\omega$ in $[0,1]$. Key contributions include comprehensive class implementations, extensive notation and parsing utilities, operator overloads, and documented usage examples that cover interactive and programmatic workflows. The framework enables straightforward integration into scientific workflows and paves the way for advanced neutrosophic analyses, including potential medical applications via hypersoft mappings.
Abstract
In this paper we present an open source framework developed in Python and consisting of three distinct classes designed to manipulate in a simple and intuitive way both symbolic representations of neutrosophic sets over universes of various types as well as mappings between them. The capabilities offered by this framework extend and generalize previous attempts to provide software solutions to the manipulation of neutrosophic sets such as those proposed by Salama et al., Saranya et al., El-Ghareeb, Topal et al. and Sleem. The code is described in detail and many examples and use cases are also provided.
