Next Article in Journal
An Emergency Quantity Discount Contract with Supplier Risk Aversion under the Asymmetric Information of Sales Costs
Previous Article in Journal
Modeling Spheres in Some Paranormed Sequence Spaces
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Polylinear Transformation Method for Solving Systems of Logical Equations

by
Dostonjon Numonjonovich Barotov
1,* and
Ruziboy Numonjonovich Barotov
2
1
Department of Data Analysis and Machine Learning, Financial University under the Government of the Russian Federation, 4-th Veshnyakovsky Passage, 4, 109456 Moscow, Russia
2
Department of Mathematical Analysis, Khujand State University, 1 Mavlonbekova, Khujand 735700, Tajikistan
*
Author to whom correspondence should be addressed.
Mathematics 2022, 10(6), 918; https://doi.org/10.3390/math10060918
Submission received: 30 January 2022 / Revised: 8 March 2022 / Accepted: 10 March 2022 / Published: 13 March 2022

Abstract

:
In connection with applications, the solution of a system of logical equations plays an important role in computational mathematics and in many other areas. As a result, many new directions and algorithms for solving systems of logical equations are being developed. One of these directions is transformation into the real continuous domain. The real continuous domain is a richer domain to work with because it features many algorithms, which are well designed. In this study, firstly, we transformed any system of logical equations in the unit n -dimensional cube K n into a system of polylinear–polynomial equations in a mathematically constructive way. Secondly, we proved that if we slightly modify the system of logical equations, namely, add no more than one special equation to the system, then the resulting system of logical equations and the corresponding system of polylinear–polynomial equations in K n + 1 is equivalent. The paper proposes an algorithm and proves its correctness. Based on these results, further research plans are developed to adapt the proposed method.

1. Introduction

For many decades in the history of digital science, logical variables have been the primary variables used in most computer operations. Currently, there are many theoretical and applied problems associated with logical variables, some of which lack satisfactory solutions, despite the importance of the field. One of the most important and interesting tasks is solving logical equations and systems of logical equations. Solving a system of logical equations has many applications, such as synthesis, output data coding, the state assignment of finite automata, the modeling and testing of digital networks, automatic test pattern generation and the determination of the initial state in circuits, timing analysis, and the generation of delayed failure tests for combinational circuits. The solution of a system of logical equations in the field of cryptography is used to analyze and break block ciphers, since they can be reduced to the problem of solving large-scale systems of logical equations [1,2,3,4,5,6]. This is because, for a specific cipher, algebraic cryptanalysis consists of two stages: the transformation of the cipher into a system of polynomial equations (usually over Boolean ring), and the solution of the resulting system of polynomial equations [7,8,9]. For example, one of the first striking applications of the solution of a system of Boolean algebraic equations in cryptography is the solution of a complex problem, cryptosystems on hidden field mappings (Hidden Fields Equations) in cryptography with a public key. This problem is described by a system of quadratic Boolean polynomials with 80 variables, and its solution was obtained precisely for the first time by solving a system of Boolean algebraic equations with the F5 algorithm, and later with the F4 algorithm [10,11,12,13].
Many of the applied algorithms for solving a system of logical equations or the Boolean satisfiability problem (SAT) that have been developed so far solve the problem in the Boolean domain. However, other areas have recently been developed and improved [11,12,14]. One of these directions is transformation into the real continuous domain. The essence of this direction is that the system of logical equations is transformed into a system in the real domain and the solution is sought in the real continuous domain. The real continuous domain is a richer domain to work with, as it involves many, well developed algorithms. Already in a real continuous domain, the transformed system can be reduced to a numerical optimization problem, making it possible to apply, analyze and combine such methods as the steepest descent algorithm, Newton’s method and the coordinate descent algorithm [1,2,3,4,5,6,14].
More recently, Barotov Dostonjon et al. [14] proposed a new idea with their interesting formulas for solving systems of logical equations. The essence of their proposed method is that systems of logical equations are transformed into systems of harmonic-polynomial equations in a unit n -dimensional cube K n with the usual operations of the addition and multiplication of numbers, and the transformed system in K n is solved by an optimization method.
Since the proposed idea is new and under development, some of its open problems have not been solved [14]. Firstly, the corresponding system of harmonic-polynomial equations was found and the equivalence of the systems was established only when each polynomial of the system of logical equations consisted of pairwise coprime monomials. It was not clear whether there is a corresponding system of harmonic-polynomial equations in K n for an arbitrary system of logical equations. Secondly, the equivalence of systems has not been established for any class of the system of logical equations when the solution of the system of logical equations is not unique. In our opinion, these open problems are extremely interesting and there is a demand for their solution both from the point of view of mathematics and from the point of view of the applicability and constructive improvement of the proposed method.
In this paper, we improve the proposed method from the mathematical point of view and from the point of view of algorithmization. First, we propose a constructive proof, in which for any system of logical equations, there exists in K n a unique corresponding system of polylinear-polynomial equations. Second, we constructively prove that if we slightly modify the system of logical equations, that is, if we add no more than one special fictitious equation to the system, then for the modified system of logical equations there exists in K n + 1 the corresponding unique equivalent system of polylinear-polynomial equations.

2. Methods and Formulas for the Transformation of Any Zhegalkin Polynomial to the Corresponding K n Unique Non-Negative Polylinear Function

First, we define the necessary notation and formulas for further use.
Let K n = {   ( x 1 , x 2 , , x n ) :   0 x 1 , x 2 , , x n 1   } be an n -dimensional unit cube and let B n = {   ( b 1 , b 2 , , b n ) :   b 1 , b 2 , , b n { 0 ,   1 }   } be the vertices of K n .
Let be the logical operation x o r (addition by mod 2), i.e., x o r ( y 1 , y 2 , , y n ) = y 1 y 2 y n ,   y i { 0 , 1 } ,   i { 1 , 2 , , n } .
Let be the logical operation a n d (logical multiplication), i.e., a n d   ( y 1 , y 2 , , y n ) = y 1 y 2 y n ,   y i { 0 , 1 } ,   i { 1 , 2 , , n } .
Let x o r a p p ( x 1 , x 2 , , x n ) = 1 2 1 2 ( 1 2 x 1 ) ( 1 2 x 2 ) ( 1 2 x 3 ) ( 1 2 x n ) ,   ( x 1 , x 2 , , x n ) K n .
Let a n d a p p ( x 1 , x 2 , , x n ) = x 1 x 2 x n ,   ( x 1 , x 2 , , x n ) K n .
In [14], the main properties of polynomials are presented and proved x o r a p p ( x 1 , x 2 , , x n ) and a n d a p p ( x 1 , x 2 , , x n ) .
Definition 1.
A function  f ( x 1 ,   x 2 ,   x 3 ,   .   .   .   ,   x n )  is called a polylinear function in  K n  if 2 x k 2 f ( x 1 , x 2 , , x n ) = 0 ,   k { 1 , , n } .
According to Definition 1, any harmonic function in each of its variables [14] is a polylinear function, and vice versa.
Lemma 1.
For any Zhegalkin polynomial  p ( x 1 , x 2 , x 3 , , x n ) = ( a 1 , a 2 , , a n ) B n g ( a 1 , a 2 , , a n ) x 1 a 1 x 2 a 2 x n a n , there exists a non-negative, polylinear function  f ( x 1 , x 2 , x 3 , , x n )  on  K n  such that  p ( x 1 , x 2 , x 3 , , x n ) = f ( x 1 , x 2 , x 3 , , x n )  at  ( x 1 , x 2 , x 3 , , x n ) B n  and it is unique.
Proof of Lemma 1.
If f ( x 1 , x 2 , x 3 , , x n ) is a polylinear function, then it has the following form
f ( x 1 , x 2 , x 3 , , x n ) = c ( 0 , 0 , 0 , , 0 ) + c ( 1 , 0 , 0 , , 0 ) x 1 + c ( 0 , 1 , 0 , , 0 ) x 2 + + c ( 0 , 0 , 0 , , 1 ) x n + c ( 1 , 1 , 0 , , 0 ) x 1 x 2 + c ( 1 , 0 , 1 , , 0 ) x 1 x 3 + + c ( 0 , 0 , , 1 , 1 ) x n 1 x n + + c ( 1 , 1 , 1 , , 1 ) x 1 x 2 x n = ( a 1 , a 2 , , a n ) B n c ( a 1 , a 2 , , a n ) x 1 a 1 x 2 a 2 x n a n .
The value of the coefficients c ( a 1 , a 2 , , a n ) is determined by the condition p ( x 1 , x 2 , x 3 , , x n ) = f ( x 1 , x 2 , x 3 , , x n ) at ( x 1 , x 2 , x 3 , , x n ) B n .
p ( 0 , 0 , 0 , , 0 ) = c ( 0 , 0 , 0 , , 0 ) + 0 p ( 1 , 0 , 0 , , 0 ) = c ( 0 , 0 , 0 , , 0 ) + c ( 1 , 0 , 0 , , 0 ) + 0 p ( 0 , 1 , 0 , , 0 ) = c ( 0 , 0 , 0 , , 0 ) + c ( 0 , 1 , 0 , , 0 ) + 0 p ( 1 , 1 , 0 , , 0 ) = c ( 0 , 0 , 0 , , 0 ) + c ( 1 , 0 , 0 , , 0 ) + c ( 0 , 1 , 0 , , 0 ) + c ( 1 , 1 , 0 , , 0 ) + 0       p ( 1 , 1 , 1 , , 1 ) = a 1 , a 2 , , a n B n   c a 1 , a 2 , , a n
This lower-triangular system, that is, the corresponding matrix to the system, is lower-triangular, and it has the following unique solution:
c ( 0 , 0 , 0 , , 0 ) = p ( 0 , 0 , 0 , , 0 ) c ( 1 , 0 , 0 , , 0 ) = p ( 1 , 0 , 0 , , 0 ) p ( 0 , 0 , 0 , , 0 ) c ( 0 , 1 , 0 , , 0 ) = p ( 0 , 1 , 0 , , 0 ) p ( 0 , 0 , 0 , , 0 ) c ( 1 , 1 , 0 , , 0 ) = p ( 1 , 1 , 0 , , 0 ) p ( 0 , 1 , 0 , , 0 ) p ( 1 , 0 , 0 , , 0 ) + p ( 0 , 0 , 0 , , 0 )       c ( 1 , 1 , 1 , , 1 ) = a 1 , a 2 , , a n B n   ( 1 ) n a 1 + a 2 + + a n p a 1 , a 2 , , a n
thus, we have proven that for any Zhegalkin polynomial p ( x 1 , x 2 , x 3 , , x n ) = ( a 1 , a 2 , , a n ) B n g ( a 1 , a 2 , , a n ) x 1 a 1 x 2 a 2 x n a n , there is f ( x 1 , x 2 , x 3 , , x n ) polylinear function such that p ( x 1 , x 2 , x 3 , , x n ) = f ( x 1 , x 2 , x 3 , , x n ) for ( x 1 , x 2 , x 3 , , x n ) B n and it is unique, since the system ( 1 ) has a unique solution. Now, it remains to be proven that f ( x 1 , x 2 , x 3 , , x n ) in K n is non-negative. Indeed, since f ( x 1 , x 2 , x 3 , , x n ) polylinear function and p ( x 1 , x 2 , x 3 , , x n ) = f ( x 1 , x 2 , x 3 , , x n ) at ( x 1 , x 2 , x 3 , , x n ) B n , the following is true according to the maximum principle [14,15,16]:
0 min x B n   f ( x 1 , x 2 , x 3 , , x n ) f ( x 1 , x 2 , x 3 , , x n ) max x B n   f ( x 1 , x 2 , x 3 , , x n ) 1 ,  
which was to be proven. □
The solution of system ( 1 ) shows that, in practice, this way of obtaining the function f ( x 1 , x 2 , x 3 , , x n ) is not always optimal. This is because, in order to calculate the value of all coefficients, the values of the polynomial p ( x 1 , x 2 , x 3 , , x n ) on all sets of values of the arguments x 1 , x 2 , x 3 , , x n must be determined and then be summed in a specific way. As a result, we propose another algorithm for obtaining the function f ( x 1 , x 2 , x 3 , , x n ) .
The authors of [14] show that by replacing the functions x o r ( x 1 , x 2 , , x n ) and a n d ( x 1 , x 2 , , x n ) with functions x o r a p p ( x 1 , x 2 , , x n ) and a n d a p p ( x 1 , x 2 , , x n ) with any Zhegalkin polynomial p ( x 1 , x 2 , x 3 , , x n ) = ( a 1 , a 2 , , a n ) B n g ( a 1 , a 2 , , a n ) x 1 a 1 x 2 a 2 x n a n , we can obtain the corresponding function
f o l d ( x 1 , x 2 , , x n ) = 1 2 1 2 ( a 1 , a 2 , , a n ) B n ( 1 2 g ( a 1 , a 2 , , a n ) x 1 a 1 x 2 a 2 x n a n ) .
In this work, we denoted the last function as f o l d ( x 1 , x 2 , , x n ) to emphasize that this has already been obtained in [14]. In the current work, we implement a new modified function.
From the proven properties of the formulas x o r a p p ( x 1 , x 2 , , x n ) and a n d a p p ( x 1 , x 2 , , x n ) it follows [14] that p ( x 1 , x 2 , x 3 , , x n ) = f o l d ( x 1 , x 2 , x 3 , , x n ) at ( x 1 , x 2 , x 3 , , x n ) B n for all Zhegalkin polynomials p ( x 1 , x 2 , x 3 , , x n ) . The authors of [14] prove that if the monomials p ( x 1 , x 2 , x 3 , , x n ) are pairwise coprime, then the function f o l d ( x 1 , x 2 , , x n ) is a polylinear function and p ( x 1 , x 2 , x 3 , , x n ) = f o l d ( x 1 , x 2 , x 3 , , x n ) at ( x 1 , x 2 , x 3 , , x n ) B n .
If the monomials are p ( x 1 , x 2 , x 3 , , x n ) and not pairwise coprime, then we modify the function f o l d ( x 1 , x 2 , , x n ) = 1 2 1 2 ( a 1 , a 2 , , a n ) B n ( 1 2 g ( a 1 , a 2 , , a n ) x 1 a 1 x 2 a 2 x n a n ) and show an algorithm for obtaining a unique, non-negative, polylinear function f n e w ( x 1 , x 2 , x 3 , , x n ) on K n such that p ( x 1 , x 2 , x 3 , , x n ) = f n e w ( x 1 , x 2 , x 3 , , x n ) at ( x 1 , x 2 , x 3 , , x n ) B n .
On this occasion, the first basic idea is that in the expansion of the polynomial
f o l d ( x 1 , x 2 , , x n ) = 1 2 1 2 ( a 1 , a 2 , , a n ) B n ( 1 2 g ( a 1 , a 2 , , a n ) x 1 a 1 x 2 a 2 x n a n )
if all degrees x i k where k = 2 , 3 , 4 , is replaced by x i , then the resulting polynomial is f n e w ( x 1 , x 2 , x 3 , , x n ) or, in other words:
f n e w ( x 1 , x 2 , x 3 , , x n ) = f ( x 1 , x 2 , , x n )   /   < x 1 2 x 1 , x 2 2 x 2 , , x n 2 x n > .
The second main idea is that, without expanding the polynomial mathematically, f o l d ( x 1 , x 2 , , x n ) replaces all degrees x i k where k = 2 , 3 , 4 , on x i and produces f n e w ( x 1 , x 2 , x 3 , , x n ) , since in the expanded form of the polynomial, the f o l d ( x 1 , x 2 , , x n ) number of terms is probably large. If we expand the polynomial f o l d ( x 1 , x 2 , , x n ) and group by degrees x i , then it has the following form:
f o l d ( x 1 , x 2 , , x n ) = a m x i m + a m 1 x i m 1 + + a 2 x i 2 + a 1 x i + a 0 ,
where the coefficients are a j = a j ( x 1 , x 2 , , x i 1 , x i + 1 , , x n ) , with some polynomials depending on x 1 , x 2 , , x i 1 , x i + 1 , , x n and not depending on x i . If all degrees are x i k where k = 2 , 3 , 4 , , m replace with x i , then the resulting polynomial appears as a m x i + a m 1 x i + + a 2 x i + a 1 x i + a 0 , and this polynomial can still be implemented as follows:
a m x i + a m 1 x i + + a 2 x i + a 1 x i + a 0 = ( a m + a m 1 + + a 2 + a 1 + a 0 ) x i a 0 x i + a 0 = f o l d ( x 1 , x 2 , , x i 1 , 1 , x i + 1 , , x n ) x i f o l d ( x 1 , x 2 , , x i 1 , 0 , x i + 1 , , x n ) ( x i 1 ) = f o l d ( x 1 , x 2 , , x i 1 , 1 , x i + 1 , , x n ) x i + f o l d ( x 1 , x 2 , , x i 1 , 0 , x i + 1 , , x n ) ( 1 x i )  
The following algorithm is based on this.
Let X d e g r e e = { x i 1 , x i 2 , , x i k } be the set of all variables such that each variable x i s is included in at least two monomials of the polynomial p ( x 1 , x 2 , x 3 , , x n ) . If another variable occurs in at most one monomial of polynomial p ( x 1 , x 2 , x 3 , , x n ) , then the polynomial f o l d ( x 1 , x 2 , , x n ) is, at most, first-degree in that variable. We are ready to write an algorithm for obtaining f n e w ( x 1 , x 2 , x 3 , , x n ) from the polynomial f o l d ( x 1 , x 2 , x 3 , , x n ) (Algorithm 1).
Algorithm 1: Obtaining f n e w ( x 1 , x 2 , x 3 , , x n ) from the polynomial f o l d ( x 1 , x 2 , x 3 , , x n )
Input: polynomial f o l d ( x 1 , x 2 , x 3 , , x n ) and set { x i 1 , x i 2 , , x i k } .
Output: polynomial f n e w ( x 1 , x 2 , x 3 , , x n )
X d e g r e e : = { x i 1 , x i 2 , , x i k }
f 0 ( x 1 , x 2 , x 3 , , x n ) : = f o l d ( x 1 , x 2 , x 3 , , x n )
for  s  from  1  to  k
do
f s ( x 1 , x 2 , x 3 , , x n ) : = f s 1 ( x 1 , x 2 , , x i s 1 , 1 , x i s + 1 , , x n ) x i s +
f s 1 ( x 1 , x 2 , , x i s 1 , 0 , x i s + 1 , , x n ) ( 1 x i s )
end for
f n e w ( x 1 , x 2 , x 3 , , x n ) : = f k ( x 1 , x 2 , x 3 , , x n )
return   f n e w ( x 1 , x 2 , x 3 , , x n )
Next, we prove that Algorithm 1 is correct:
(i)
  p ( x 1 , x 2 , x 3 , , x n ) = f n e w ( x 1 , x 2 , x 3 , , x n ) at ( x 1 , x 2 , x 3 , , x n ) B n .
(ii)
f n e w ( x 1 , x 2 , x 3 , , x n ) is a polylinear function.
(iii)
If ( x 1 , x 2 , x 3 , , x n ) K n , then 0 f n e w ( x 1 , x 2 , x 3 , , x n ) 1 .
(iv)
f n e w ( x 1 , x 2 , x 3 , , x n ) is unique and polylinear function such that p ( x 1 , x 2 , x 3 , , x n ) = f n e w ( x 1 , x 2 , x 3 , , x n ) at ( x 1 , x 2 , x 3 , , x n ) B n .
Proof of Algorithm 1.
( i ) In this article, we have already established that p ( x 1 , x 2 , x 3 , , x n ) = f o l d ( x 1 , x 2 , x 3 , , x n ) for ( x 1 , x 2 , x 3 , , x n ) B n . Furthermore, it is clear that 0 k = 0 and 1 k = 1 and, therefore, f o l d ( x 1 , x 2 , x 3 , , x n ) = f n e w ( x 1 , x 2 , x 3 , , x n ) for ( x 1 , x 2 , x 3 , , x n ) B n   p ( x 1 , x 2 , x 3 , , x n ) = f n e w ( x 1 , x 2 , x 3 , , x n ) as ( x 1 , x 2 , x 3 , , x n ) B n .
( i i ) To prove this point of the assertion, it suffices to show that 2 x k 2 ( f n e w ( x 1 , x 2 , , x n ) ) = 0   k { 1 , 2 , , n } . If x k { x i 1 , x i 2 , , x i k } , then 2 x k 2 ( f o l d ( x 1 , x 2 , , x n ) ) = 0   2 x k 2 ( f n e w ( x 1 , x 2 , , x n ) ) = 0 , and if x k { x i 1 , x i 2 , , x i k } , then 2 x k 2 ( f n e w ( x 1 , x 2 , , x n ) ) = 2 x k 2 ( f k ( x 1 , x 2 , x 3 , , x n ) ) = 2 x k 2 ( a m x k + a m 1 x k + + a 2 x k + a 1 x k + a 0 ) = 0 .
( i i i ) From the properties ( i ) ( i i ) and from the maximum principle, the following inequality follows [14,17,18,19]:
0 min x B n   f n e w ( x 1 , x 2 , , x n ) f n e w ( x 1 , x 2 , , x n ) max x B n   f n e w ( x 1 , x 2 , , x n ) 1 .
( i v ) Prove by contradiction, let there be another non-negative polylinear function h ( x 1 , x 2 , , x n )   ( h ( x 1 , x 2 , , x n ) f n e w ( x 1 , x 2 , , x n ) ) such that h ( x 1 , x 2 , , x n ) = p ( x 1 , x 2 , x 3 , , x n ) at ( x 1 , x 2 , x 3 , , x n ) B n . Now, let us observe the function d ( x 1 , x 2 , x 3 , , x n ) = f n e w ( x 1 , x 2 , , x n ) h ( x 1 , x 2 , , x n ) . Firstly, it is obvious that if ( x 1 , x 2 , x 3 , , x n ) B n , then d ( x 1 , x 2 , x 3 , , x n ) = f n e w ( x 1 , x 2 , , x n ) h ( x 1 , x 2 , , x n ) = p ( x 1 , x 2 , x 3 , , x n ) p ( x 1 , x 2 , x 3 , , x n ) = 0 . Secondly, the function d ( x 1 , x 2 , x 3 , , x n ) is polylinear, because 2 x k 2 d ( x 1 , x 2 , , x n ) = 2 x k 2 f ( x 1 , x 2 , , x n ) 2 x k 2 h ( x 1 , x 2 , , x n ) = 0 0 = 0   k { 1 , , n } . It now follows from the last argument and from the maximum principle [14,20,21,22] that
0 = min x B n   d ( x 1 , x 2 , x 3 , , x n ) d ( x 1 , x 2 , x 3 , , x n ) max x B n   d ( x 1 , x 2 , x 3 , , x n ) = 0
d ( x 1 , x 2 , x 3 , , x n ) 0     h ( x 1 , x 2 , , x n ) f ( x 1 , x 2 , , x n ) is a contradiction. □

3. Transformation of a System of Logical Equations into a System of Polylinear-Polynomial Equations

After proving the correctness of Algorithm 1, we are ready to transform an arbitrary system of Boolean algebraic equations into a system of polylinear-polynomial equations in a unit n -dimensional cube K n with the usual operations of the addition and multiplication of numbers.
Consider the following arbitrary system of Boolean algebraic equations:
p 1 x 1 , x 2 , , x n = a 1 , a 2 , , a n B n   g 1 a 1 , a 2 , , a n x 1 a 1 x 2 a 2 x n a n = 0 p 2 x 1 , x 2 , , x n = a 1 , a 2 , , a n B n   g 2 a 1 , a 2 , , a n x 1 a 1 x 2 a 2 x n a n = 0 p m x 1 , x 2 , , x n = a 1 , a 2 , , a n B n   g 3 a 1 , a 2 , , a n x 1 a 1 x 2 a 2 x n a n = 0
where is p i ( x 1 , x 2 , , x n ) a Zhegalkin polynomial, i { 1 , 2 , , m } .
Replacing functions x o r ( x 1 , x 2 , , x n ) and a n d ( x 1 , x 2 , , x n ) in system ( 2 ) , we obtain an intermediate transformationed system:
f old 1 x 1 , x 2 , , x n = 1 2 1 2 · a 1 , a 2 , , a n B n 1 2 · g 1 a 1 , a 2 , , a n · x 1 a 1 x 2 a 2 x n a n = 0 f o l d 2 x 1 , x 2 , , x n = 1 2 1 2 · a 1 , a 2 , , a n B n 1 2 · g 2 a 1 , a 2 , , a n · x 1 a 1 x 2 a 2 x n a n = 0 f o l d m x 1 , x 2 , , x n = 1 2 1 2 · a 1 , a 2 , , a n B n 1 2 · g m a 1 , a 2 , , a n · x 1 a 1 x 2 a 2 x n a n = 0
Modifying each polynomial of the f o l d i ( x 1 , x 2 , , x n ) intermediate system ( 3 ) according to Algorithm 1, we obtain the corresponding system of polylinear-polynomial equations:
{ f n e w 1 ( x 1 , x 2 , , x n ) = 0 f n e w 2 ( x 1 , x 2 , , x n ) = 0 f n e w 3 ( x 1 , x 2 , , x n ) = 0 f n e w m ( x 1 , x 2 , , x n ) = 0  
For system ( 4 ) , define the following objective function in K n :
t f ( x 1 , x 2 , , x n ) : = i = 1 m f n e w i ( x 1 , x 2 , , x n )
Below, we formulate and check the main properties of the objective function t f ( x 1 , x 2 , , x n ) .
Proposition 1.
Let  t f ( x 1 , x 2 , , x n ) = i = 1 m f i ( x 1 , x 2 , , x n )  and  ( x 1 , x 2 , , x n ) K n , then:
(i) 
In  K n , the objective function  t f ( x 1 , x 2 , , x n )  is on-negative.
(ii) 
The objective function  t f ( x 1 , x 2 , , x n )  does not have a local extreme inside edges and faces of the  n dimensional cube  K n .
(iii) 
Takes its extreme at the vertices of the  n dimensional cube  K n , that is, on  B n .
(iv) 
If  ( b 1 , b 2 , , b n ) B n  is a solution to the system  ( 2 ) , then  ( b 1 , b 2 , , b n )  is a solution to the system  ( 4 )  and  t f ( b 1 , b 2 , , b n ) = 0 .
(v) 
( s 1 * , s 2 * , . . , s n * ) K n  is the solution to the system  ( 4 )     t f ( s 1 * , s 2 * , . . , s n * ) = 0 .
Proof of Proposition 1.
( i ) It follows from Algorithm 1 that if ( x 1 , x 2 , , x n ) K n , then 0 f n e w i ( x 1 , x 2 , , x n ) 1   i { 1 , 2 , , m } if ( x 1 , x 2 , , x n ) K n , then 0 = i = 1 m 0 i = 1 m f n e w i ( x 1 , x 2 , , x n ) = t f ( x 1 , x 2 , , x n ) i = 1 m 1 = m .
To prove parts ( i i ) and ( i i i ) , it suffices to show that 2 x k 2 t f ( x 1 , x 2 , , x n ) = 0   k { 1 , 2 , , n } is really 2 x k 2 t f ( x 1 , x 2 , , x n ) = 2 x k 2 ( i = 1 m f n e w i ( x 1 , x 2 , , x n ) ) = i = 1 m 2 x k 2 f n e w i ( x 1 , x 2 , , x n ) = i = 1 m 0 = 0 .
( i v ) If ( b 1 , b 2 , , b n ) B n is a solution to system ( 2 ) , then it p i ( b 1 , b 2 , , b n ) = 0   i { 1 , 2 , , m } also follows from Algorithm 1 that f n e w i ( b 1 , b 2 , , b n ) = 0   i { 1 , 2 , , m } . This means that ( b 1 , b 2 , , b n ) B n is a solution to system ( 4 ) and t f ( b 1 , b 2 , , b n ) = i = 1 m f n e w i ( b 1 , b 2 , , b n ) = i = 1 m 0 = 0 .
( v ) If ( s 1 * , s 2 * , . . , s n * ) K n is a solution to system ( 4 ) , then f n e w i ( s 1 * , s 2 * , . . , s n * ) = 0   i { 1 , 2 , , m }   t f ( s 1 * , s 2 * , . . , s n * ) = 0 and if t f ( s 1 * , s 2 * , . . , s n * ) = 0 for ( s 1 * , s 2 * , . . , s n * ) K n , then it follows from Algorithm 1 that f n e w i ( s 1 * , s 2 * , . . , s n * ) = 0   i { 1 , 2 , , m } . This means that ( s 1 * , s 2 * , . . , s n * ) is a solution to system ( 4 ) . □
Theorem 1.
If system ( 2 )  has, at most, one solution, then in  K n  system  ( 4 )  and system  ( 2 )  are equivalent.
Proof of Theorem 1.
Case 1. Let system ( 2 ) have no solution. We prove that system ( 4 ) in K n does not have a solution either. Proof by contradiction: let system ( 4 ) in K n have the following solution ( c 1 , c 2 , , c n ) , because ( c 1 , c 2 , , c n ) K n . Therefore, it follows from Proposition 1 that t f ( c 1 , c 2 , , c n ) = 0 , but, on the other hand, t f ( x 1 , x 2 , , x n ) is a polylinear function and the following inequality follows from Algorithm 1:
0 < min x B n   t f ( x 1 , x 2 , , x n ) t f ( x 1 , x 2 , , x n ) max x B n   t f ( x 1 , x 2 , , x n ) m ,   ( x 1 , x 2 , , x n ) K n . Since system ( 2 ) has no solution, the first inequality on the left is strict. If in the last inequality we substitute ( c 1 , c 2 , , c n ) K n for ( x 1 , x 2 , , x n ) , then we obtain the following inequality: 0 < min x B n   t f ( x 1 , x 2 , , x n ) t f ( c 1 , c 2 , , c n ) = 0 max x B n   t f ( x 1 , x 2 , , x n ) m contradiction, which was to be proven.
Case 2. Let system ( 2 ) have a unique solution ( x 1 * , x 2 * , , x n * ) . In this case, we prove that system ( 4 ) in K n has a unique solution ( x 1 * , x 2 * , , x n * ) . According to Algorithm   1   p i ( x 1 , x 2 , x 3 , , x n ) = f n e w i ( x 1 , x 2 , x 3 , , x n ) at ( x 1 , x 2 , x 3 , , x n ) B n   i { 1 , 2 , , m } . In particular, it follows that p i ( x 1 * , x 2 * , , x n * ) = f n e w i ( x 1 * , x 2 * , , x n * ) = 0   i { 1 , 2 , , m } , which means that ( x 1 * , x 2 * , , x n * ) is a solution to system ( 4 ) . Now, we prove that in K n it is the only solution of the system ( 4 ) . Let us prove by contradiction. Let ( c 1 , c 2 , , c n ) K n be another solution of system ( 4 ) . According to Proposition 1 ( c 1 , c 2 , , c n ) K n is the solution to system ( 4 )   t f ( c 1 , c 2 , , c n ) = 0 . Since the system ( 7 ) has a unique solution and the objective function t f ( x ) = t f ( x 1 , x 2 , , x n ) is polylinear, it follows that ( c 1 , c 2 , , c n ) B n , which means that f n e w i ( c 1 , c 2 , , c n ) = p i ( c 1 , c 2 , , c n ) = 0   i { 1 , 2 , , m } ( c 1 , c 2 , , c n ) is a solution to the system ( 2 ) , since, according to the condition Case 2 of the theorem, system ( 2 ) has a unique solution ( x 1 * , x 2 * , , x n * ) ( x 1 * , x 2 * , , x n * ) = ( c 1 , c 2 , , c n ) is a contradiction, which was proven. □
If the number of solutions to system ( 2 ) is at least two, then, in general, the equivalence of systems ( 2 ) and ( 4 ) is violated. For clarity, consider a few counterexamples:
a )   { x 1 x 2 x 1 = 0 x 1 x 2 1 = 1 ,       b )   { x 1 x 2 x 3 = 0 x 1 x 3 1 = 1 ,       c )   { x 1 x 2 x 1 = 0 x 1 x 3 x 1 = 0 x 1 x 2 1 = 1 ,  
Indeed, we can transform these systems in K n in systems of polylinear-polynomial equations with the usual operations of the addition and multiplication of numbers:
a )   { x 1 x 1 x 2 = 0 x 1 x 2 = 0 ,       b )   { x 1 x 2 + x 3 2 x 1 x 2 x 3 = 0 x 1 + x 3 2 x 1 x 3 = 0 ,       c )   { x 1 x 1 x 2 = 0 x 1 x 1 x 3 = 0 x 1 x 2 = 0 ,
Solving these systems in K n , compare the corresponding solutions:
  • the system ( a ) has solutions ( 0 , 0 )   ( 0 , 1 ) , and the system ( a ) has solutions ( 0 , x 2 ) , where is x 2 any number from the segment [ 0 , 1 ] .
  • the system ( b ) has solutions ( 0 , 0 , 0 )   ( 0 , 1 , 0 )   ( 1 , 1 , 1 ) , and the system ( b ) has solutions ( 0 , x 2 , 0 )   ( 1 , 1 , 1 ) , where is x 2 any number from the segment [ 0 , 1 ] .
  • the system ( c ) has solutions ( 0 , 0 , 0 )   ( 0 , 0 , 1 )   ( 0 , 1 , 0 )   ( 0 , 1 , 1 ) , and the system ( c ) has solutions ( 0 , x 2 , x 3 ) , where x 2 and x 3 are any numbers from the segment [ 0 , 1 ] .

4. Method for Obtaining Equivalent Systems in K n + 1

In this section, we slightly modify system ( 2 ) ; namely, we add one fictitious equation to the system and prove the equivalence of new systems.
Let { x j 1 , x j 2 , , x j l } be the set of all the variables, such that each variable x j s   s = 1 , 2 , , l occurs only in monomials of at least the second degree. In this case, the modified system of Boolean algebraic equations has the following form:
{ p 1 x 1 , x 2 , , x n = a 1 , a 2 , , a n B n g 1 a 1 , a 2 , , a n · x 1 a 1 x 2 a 2 x n a n = 0 p 2 x 1 , x 2 , , x n = a 1 , a 2 , , a n B n g 2 a 1 , a 2 , , a n · x 1 a 1 x 2 a 2 x n a n = 0 p m x 1 , x 2 , , x n = a 1 , a 2 , , a n B n g m a 1 , a 2 , , a n · x 1 a 1 x 2 a 2 x n a n = 0 x j 1 x j 2 x j l x n + 1 = 0
Replacing the functions x o r ( x 1 , x 2 , , x n ) and a n d ( x 1 , x 2 , , x n ) in system ( 5 ) , we obtain an intermediate transformationed system:
{ f o l d 1 x 1 , x 2 , , x n = 1 2 1 2 · a 1 , a 2 , , a n B n 1 2 · g 1 a 1 , a 2 , , a n · x 1 a 1 x 2 a 2 x n a n = 0 f o l d 2 x 1 , x 2 , , x n = 1 2 1 2 · a 1 , a 2 , , a n B n 1 2 · g 2 a 1 , a 2 , , a n · x 1 a 1 x 2 a 2 x n a n = 0 f o l d m x 1 , x 2 , , x n = 1 2 1 2 · a 1 , a 2 , , a n B n 1 2 · g m a 1 , a 2 , , a n · x 1 a 1 x 2 a 2 x n a n = 0 f o l d m + 1 x 1 , x 2 , , x n , x n + 1 = 1 2 1 2 · 1 2 x j 1 1 2 x j 2 · · 1 2 x j l 1 2 x n + 1 = 0
Modifying each polynomial of the f o l d i ( x 1 , x 2 , , x n ) intermediate system ( 6 ) according to Algorithm 1, we obtain the corresponding system of polylinear-polynomial equations:
{ f n e w 1 ( x 1 , x 2 , , x n ) = 0 f n e w 2 ( x 1 , x 2 , , x n ) = 0 f n e w 3 ( x 1 , x 2 , , x n ) = 0 f n e w m ( x 1 , x 2 , , x n ) = 0 f n e w m + 1 ( x 1 , x 2 , , x n , x n + 1 ) = 0  
For system ( 7 ) , define the following objective function in K n + 1 :
t f ( x 1 , x 2 , , x n , x n + 1 ) : = i = 1 m f n e w i ( x 1 , x 2 , , x n ) + f n e w m + 1 ( x 1 , x 2 , , x n , x n + 1 ) .
Now we are ready to formulate and prove the theorem of the equivalence of systems ( 5 ) and ( 7 ) .
Theorem 2.
In  K n + 1 , system  ( 5 )  and system  ( 7 )  are equivalent.
Proof of Theorem 2.
( i ) If ( x 1 * , x 2 * , , x n * , x n + 1 * ) K n + 1 is a solution to system ( 5 ) , then from the Algorithm 1 and from the properties of formulas x o r a p p ( x 1 , x 2 , , x n ) and a n d a p p ( x 1 , x 2 , , x n ) it follows [14] that   ( x 1 * , x 2 * , , x n * , x n + 1 * ) is a solution to system ( 7 ) . Conversely, if ( x 1 * , x 2 * , , x n * , x n + 1 * ) K n + 1 is a solution to system ( 7 ) , then by the form of the last equation of system ( 7 ) and from the properties of the formulas x o r a p p ( x 1 , x 2 , , x n ) and a n d a p p ( x 1 , x 2 , , x n ) , it follows [14] that ( x 1 * , x 2 * , , x n * , x n + 1 * ) B n + 1 . Now, if ( x 1 * , x 2 * , , x n * , x n + 1 * ) B n + 1 , then according to Algorithm 1 and from the properties of the formulas it x o r a p p ( x 1 , x 2 , , x n ) follows that:
f n e w i ( x 1 * , x 2 * , , x n * ) = p i ( x 1 * , x 2 * , , x n * )   i { 1 , 2 , , m } and x n + 1 * = x j 1 * x j 2 * x j l * or ( x 1 * , x 2 * , , x n * , x n + 1 * ) is the solution of system ( 5 ) .
( i i ) If system ( 5 ) has no solution, then Theorem 1 implies that in K n + 1 , system ( 7 ) also has no solution. Conversely, if system ( 7 ) does not have a solution, then system ( 5 ) also does not have a solution, since the last equation added to systems (5)–(7) allows us to say that in K n + 1 , any solution to system ( 7 ) belongs to B n + 1 . □

5. Conclusions

In this paper, firstly, we managed to transform any system of logical equations in K n into a system of polylinear-polynomial equations. Secondly, we proved the correctness of such a transformation, and the corresponding proof was mathematically constructive. Based on this, we proposed a transformation algorithm and proved its correctness.
In addition, we also proved that if we slightly modify the system of logical equations, namely, if we add no more than one special equation to the system, then, firstly, all the solutions of the unmodified system of logical equations are the initial n coordinates of the solutions of the modified system of logical equations, and vice versa. Secondly, the modified system of logical equations and the corresponding system of polylinear-polynomial equations in K n + 1 are equivalent.
In terms of transformation into a real continuous domain and the application of numerical optimization methods to solving a transformed system into a real continuous domain, that is, minimizing the objective function corresponding to the transformed system, then there are many approaches to transformation into a real continuous domain. However, one of the main problems with this is that the objective function in the desired continuous domain can have many local minimums, and this greatly hinders the suitability of the method in practice. Currently, as far as we know, all numerical optimization algorithms find only a local minimum, and, in general, there is no effective method for finding the global minimum of the objective function. As far as we know, our transformation method is the most optimal in terms of reducing the number of local minimums of the objective function t f ( x 1 , x 2 , , x n ) , because the minimized objective function compiled according to the system of logical equations is such that it is polylinear for any system of logical equations. Therefore, in K n , this minimizing objective function does not have a local extremum inside, or on the edges and faces of K n and takes a minimum value at the vertices of K n .
We must also admit that, firstly, it is not clear to what extent these theoretical results will be suitable in practice. Secondly, if we want to solve the transformed system of polylinear-polynomial equations using numerical optimization methods, then the problem of developing, improving and finding the asymptotic complexity of the numerical optimization algorithm used for our particular polylinear objective function remains open. Therefore, based on the results of the current work, in future work, we plan to publish a comparative analysis of the most well-known optimization methods to minimize our specific polylinear function.

Author Contributions

Formal analysis, D.N.B. and R.N.B.; Methodology, D.N.B.; Writing—review and editing, R.N.B. and D.N.B.; Validation, D.N.B. and R.N.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Abdel-Gawad, A.H.; Atiya, A.F.; Darwish, N.M. Solution of systems of Boolean equations via the integer domain. Inform. Sci. 2010, 180, 288–300. [Google Scholar] [CrossRef]
  2. Barotov, D.N.; Muzafarov, D.Z.; Barotov, R.N. On one method for solving systems of Boolean algebraic equations. Mod. Math. Concept Innov. Math. Educ. 2021, 8, 17–23. [Google Scholar]
  3. Gu, J.; Gu, Q.; Du, D. On optimizing the satisfiability (SAT) problem. J. Comput. Sci. Technol. 1999, 14, 1–17. [Google Scholar] [CrossRef]
  4. Gu, J. Global optimization for satisfiability (SAT) problem. IEEE Trans. Knowl. Data Eng. 1994, 6, 361–381. [Google Scholar] [CrossRef]
  5. Gu, J. How to Solve Very Large-Scale Satisfiability (VLSS) Problems; Technical Report UCECETR-90-002; University of Calgary: Calgary, AB, Canada, 1990. [Google Scholar]
  6. Gu, J. On optimizing a search problem. In Artificial Intelligence Methods and Applications; Bourbakis, N.G., Ed.; World Scientific Publishers: Singapore, 1992. [Google Scholar]
  7. Armknecht, F. Improving Fast Algebraic Attacks. In International Workshop on Fast Software Encryption; Springer: Berlin/Heidelberg, Germany, 2004; pp. 65–82. [Google Scholar]
  8. Bardet, M.; Faugèrebcd, J.-C.; Salvye, B.; Spaenlehauer, P.-J. On the complexity of solving quadratic boolean systems. J. Complex. 2013, 29, 53–75. [Google Scholar] [CrossRef]
  9. Courtois, N. Fast Algebraic Attacks on Stream Ciphers with Linear Feedback; CRYPTO 2003, Lecture Notes in Computer Science, 2729; Boneh, D., Ed.; Springer: Berlin/Heidelberg, Germany, 2003; pp. 176–194. [Google Scholar]
  10. Bard, G.V. Algorithms for Solving Linear and Polynomial Systems of Equations over Finite Fields, with Applications to Cryptanalysis; University of Maryland: College Park, MD, USA, 2007. [Google Scholar]
  11. Faugere, J.C. A new efficient algorithm for computing Gröbner bases (F4). J. Pure Appl. Algebra 1999, 139, 61–88. [Google Scholar] [CrossRef]
  12. Faugere, J.C. A new efficient algorithm for computing Gröbner bases without reduction to zero (F5). In Proceedings of the 2002 International Symposium on Symbolic and Algebraic Computation, Lille, France, 7–10 July 2002; pp. 75–83. [Google Scholar]
  13. Liu, M.; Lin, D.; Pei, D. Fast algebraic attacks and decomposition of symmetric Boolean functions. IEEE Trans. Inf. Theory 2011, 57, 4817–4821. [Google Scholar] [CrossRef] [Green Version]
  14. Barotov, D.; Osipov, A.; Korchagin, S.; Pleshakova, E.; Muzafarov, D.; Barotov, R.; Serdechnyy, D. Transformation Method for Solving System of Boolean Algebraic Equations. Mathematics 2021, 9, 3299. [Google Scholar] [CrossRef]
  15. Axler, S.; Bourdon, P.; Wade, R. Harmonic Function Theory, 2nd ed.; Springer: New York, NY, USA, 2001; Volume 137. [Google Scholar]
  16. Kosmodem’yanskii, A.A. A converse of the mean value theorem for harmonic functions. Russ. Math. Surv. 1981, 36, 159. [Google Scholar]
  17. Barotov, D.N.; Barotov, R.N. Representation of a particular solution of a differential equation with singular coefficients. Sci. Notes Khujand State Univ. Named After Acad. B. Gafurov. Ser. Nat. Sci. Econ. 2018, 2, 3–8. [Google Scholar]
  18. Connolly, C.I.; Grupen, R.A. The applications of harmonic functions to robotics. J. Robot. Syst. 1993, 10, 931–946. [Google Scholar] [CrossRef] [Green Version]
  19. Goldstein, M.; Ow, W.H. On the mean-value property of harmonic functions. Proc. Am. Math. Soc. 1971, 29, 341–344. [Google Scholar] [CrossRef]
  20. Epstein, B.; Schiffer, M.M. On the mean-value property of harmonic functions. J. D’Analyse Mathématique 1965, 14, 109–111. [Google Scholar] [CrossRef]
  21. Mukhsinov, A.; Boboev, E.D.; Barotov, D.N. Formula presentation the solutions of the initial-boundary problem for one a many-dimtnsional parabolic equation with singular coefficients. Sci. Notes Khujand State Univ. Named After Acad. B. Gafurov. Ser. Nat. Sci. Econ. 2016, 4, 18–25. [Google Scholar]
  22. Zhang, D.; Zhang, G.; Zheng, E. The harmonic polynomial method for solving the Cauchy problem connected with the Laplace equation. Inverse Probl. 2013, 29, 065008. [Google Scholar] [CrossRef]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Barotov, D.N.; Barotov, R.N. Polylinear Transformation Method for Solving Systems of Logical Equations. Mathematics 2022, 10, 918. https://doi.org/10.3390/math10060918

AMA Style

Barotov DN, Barotov RN. Polylinear Transformation Method for Solving Systems of Logical Equations. Mathematics. 2022; 10(6):918. https://doi.org/10.3390/math10060918

Chicago/Turabian Style

Barotov, Dostonjon Numonjonovich, and Ruziboy Numonjonovich Barotov. 2022. "Polylinear Transformation Method for Solving Systems of Logical Equations" Mathematics 10, no. 6: 918. https://doi.org/10.3390/math10060918

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop