Revised 15 January 2023
Accepted 29 September 2023
Available Online 29 November 2023
- DOI
- https://doi.org/10.55060/s.atmps.231115.005
- Keywords
- Three-valued Gödel logic
R-functions - Abstract
In this article we introduce a new logic: three-valued Gödel logic with constants and involution using the possibility to represent n-variable R-functions (real functions) such that the number of branches is equal to
instead of in the case of classical (2-valued) logic which increases the expressibility. This many-valued logic is offered for application in the class of R-functions partitioned in branches corresponding to some Gödel logic formulas.- Open Access
- This is an open access article distributed under the CC BY-NC license.
1. INTRODUCTION
An R-function, or Rvachev function, is a real-valued function whose sign does not change if none of the signs of its arguments change; that is, its sign is determined solely by the signs of its arguments. Interpreting positive values as true and negative values as false, an R-function is transformed into a “companion” Boolean function (the two functions are called friends). R-functions are used in computer graphics and geometric modeling in the context of implicit surfaces and function representations. They also appear in certain boundary-valued problems, and are also popular in certain artificial intelligence applications, where they are used in pattern recognition. The Rvachev’s method implies an ability to represent a geometric object “implicitly” by a property Q(x) where
R-function is a real-valued function of real variables having the property that their signs are completely determined by the signs of their arguments, and are independent of the magnitude of the arguments. For example, the following functions satisfy this property:
- •
- •
- •
+
The main idea is to find corresponding R-functions f : Rn → R for some Boolean function φ : {0,1}n → {0,1}. Roughly speaking, the Boolean functions are usually defined using logic operations ∧ (and; minimum of the two arguments), ∨ (or; maximum of two arguments), and ¬ (negation; 1−x) on n logic variables. The Boolean function φ in the above definition is called the companion function of the R-function f. Informally, a real function f is an R-function if it can change its property (sign) only when some of its arguments change the same property (sign). The notion of R-functions is a special case of a more general concept of R-mapping that is associated with qualitative k-partitions of arbitrary domains and multi-valued logic functions [1]. We follow this idea and have proposed multiple-valued logic, namely 3-valued Lukasiewicz logic [2].
The set of all R-functions that have the same logic companion function is called a branch of the set of R-functions. Since the number of distinct logic functions of n arguments is
The set of R-functions is infinite. However, for applications, it is not necessary to know all R-functions; one needs only to be able to construct R-functions that belong to a specified branch. The recipes for such constructions are implied by the general properties of R-functions that follow almost immediately from their definition. Complete proofs, as well as many additional properties, can be found in [1,3].
- 1.
The set of R-functions is closed under composition. In other words, any function obtained by composition of R-functions is also an R-function.
- 2.
If a continuous function
has zeros only on coordinate hyperplanes (i.e. implies that one or more ), then f is an R-function. - 3.
The product of R-functions is an R-function. If the R-function
belongs to some branch, and > 0 is an arbitrary function, then the function also belongs to the same branch. - 4.
If
and are R-functions from the same branch, then the sum is an R-function belonging to the same branch. - 5.
If fφ is an R-function whose logic companion function is φ, and C is some constant, then Cfφ is also an R-function. The logic companion function of Cf is φ if C > 0, or ¬φ if C < 0.
- 6.
If fφ(x1,...,xn) is an R-function whose logic companion function is φ(X1,...,Xn) and f can be integrated with respect to xi, then the function
is an R-function whose logic companion function is Xi ⇔ φ(X1,...,Xn).
The above list of properties is not exhaustive, but it is enough to suggest that more complex R-functions may be constructed from simpler functions. In particular, the closure under composition leads to the notion of sufficiently complete systems of R-functions, i.e. collections of R-functions that can be composed in order to obtain an R-function from any branch.
Theorem 1.
Let H be some system of R-functions and G be the corresponding system of the logic companion functions. The system H is sufficiently complete if the system G is complete. [2]
It is easy to check that the following functions are R-functions (their logic companion function in parentheses):
- •
(logical 1) - •
(logical negation ¬) - •
(logical conjunction ∧) - •
(logical disjunction ∨)
Theorem 1 states that an R-function from any branch can be defined using composition of just these functions. But these functions are not differentiable. For applications where differentiability is important, for example in solutions of boundary value problems, another system is needed. For this one we need suitable R-conjunction and R-disjunction. Let us consider a triangle with two sides of length x1 and x2. The square of the third side is determined by the law of cosines as
In this article we suggest a new logic: 3-valued Gödel Logic with constant and involution for application to R-functions that will be a new companion function for R-functions.
2. THREE-VALUED GÖDEL LOGIC WITH CONSTANTS AND INVOLUTION
Partition
Let
![]() |
The → operation.
For the R-function
![]() |
Logic companion for the R-function x · y.
For the R-function
![]() |
The R-function x · y.
R-function
R-function
R-function
R-function 0 and its Gödel companion is 0.
R-function
R-function
In the study of many-valued logics, one is led to consider a finite algebra (A, o1, ..., on) that generate by composition all functions in
For primal algebras the following theorem holds:
Theorem 2.
An algebra (A, o1, ..., on) is primal iff 2-generated free algebra is isomorphic to A|A|2. [4,5]
Let

Graphical representation of the algebra
Theorem 3.
The algebra
Proof. Let ¬x = x → −1. Let us consider the algebra:
From here we can obtain all elements of the algebra
In the same manner the following is proven:
Theorem 4.
The algebra
From this theorem holds:
Corollary 5.
The algebra
From the above mentioned we conclude:
Theorem 6.
The number of branches of n-ary R-functions is equal to
REFERENCES
Cite This Article
TY - CONF AU - Revaz Grigolia PY - 2023 DA - 2023/11/29 TI - Three-Valued Gödel Logic With Constants and Involution for Application to R-Functions BT - Proceedings of the 1st International Symposium on Square Bamboos and the Geometree (ISSBG 2022) PB - Athena Publishing SP - 47 EP - 51 SN - 2949-9429 UR - https://doi.org/10.55060/s.atmps.231115.005 DO - https://doi.org/10.55060/s.atmps.231115.005 ID - Grigolia2023 ER -