Transcending the Forbidden through Executable Ternary Logic: A Formal Experimental Study
Many mathematical expressions are deemed undefined or forbidden in conventional binary logic—division by zero, the square root of negative numbers, and indeterminate forms like 0⁰ or ∞–∞. These are not necessarily invalid operations, but rather cases that binary logic is not equipped to handle. This paper explores how a computable ternary logic model, previously formalized in [1][2], can reinterpret such expressions as valid, non-fatal logical states. We analyze the limitations of existing logical systems, including three-valued and fuzzy models, and propose a structured ternary system capable of encoding forbidden expressions without contradiction. Using this system, undefined forms are mapped to explicit logical states (e.g., DIV, NROOT, ZEREX) associated with trits, a logic unit with three stable states. A series of executable demonstrations are presented using Python and HTML code snippets, illustrating how each forbidden operation can be processed logically rather than rejected outright. This approach does not discard binary computation, but rather proposes a second-order logic layer that expands its expressive capacity. The study offers a pathway toward error-resilient computation, more realistic AI decision-making, and a foundational reconsideration of the boundary between the computable and the impossible.
Authors
- Abdelkrim Fellouri
- Adjailia Meriem
Institutions
- Badji Mokhtar-Annaba University (DZ)
- University of Skikda (DZ)
Publication Details
- Journal
- International Journal of Scientific Research and Management (IJSRM)
- Published
- 2025-08-04
- DOI
- https://doi.org/10.18535/ijsrm/v13i08.ec01
- Primary Topic
- Computability, Logic, AI Algorithms
- Type
- article
- Field-Weighted Citation Impact
- 0.00