<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>ORCID:</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Method for Solving Quantifier Linear Equations for Formation of Optimal Queries to Databases</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Igor Shubin</string-name>
          <email>igor.shubin@nure.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrii Kozyriev</string-name>
          <email>andrii.kozyriev@nure.ua</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Kharkiv National University of Radio Electronics</institution>
          ,
          <addr-line>Nauky ave. 14, Kharkiv, 61166</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0002</lpage>
      <abstract>
        <p>This paper is devoted to the study and development of a logical model that implements the method of solving quantifier linear equations. The model created on the basis of the theory of linear logical operators and the method of solving the quantifier predicate equation, can be used to solve the problem of logical results in databases, that is, to process and store information in databases, as well as to create natural language interfaces in computer systems. Equations, quantifier linear equations, logical equations, logical methods, predicates, predicate algebra, predicate operations, databases, database queries, knowledge bases.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Widespread use of computer technology and its rapid development led to high rates of development
of methods for creating intelligent systems (IS) for various purposes. This led to the expansion of the
range of problems solved by computers, to the increase of their role in human life. However, all this
progress is purely quantitative in nature. Simple expansion of the computer's functionality is effective
only if people are able to maintain it, and if not, then such expansion becomes pointless. At this time,
methodological and technical approaches to the creation and use of information systems have already
been developed. Currently available intelligent information systems are able to perform functions that
were previously considered the exclusive prerogative of humans: prove mathematical theorems,
translate texts from one language to another, diagnose diseases and perform many other functions.
However, in the future, an ideal computing machine should surpass the human ability to think logically,
analyze the information received, solve the most complex problems, and interact with the environment.</p>
      <p>Relational and logical methods of knowledge representation play an important role in the
development of mathematical support for information systems. One of the effective universal
mathematical methods for describing information is the algebra of predicates and predicate operations.
This language of algebra is easy and convenient to describe various formalized information, form
queries in databases and model human activity [1].</p>
      <p>In various computerized industries, there is a need to process information displayed in natural
language. In automated computer system (ACS), which includes a person as its organic link, the main
form of information transfer is served by documents containing a significant amount of textual
information. Computer modeling of text processing will allow automating many types of human
intellectual activity, expanding its capabilities. The basis of ACS is automated information systems
(AIS), the purpose of which is to automate the processes of information accumulation, search, and
generalization. The effectiveness of AIS is recognized by their ability to process unformalized or
weakly formalized information.</p>
      <p>2023 Copyright for this paper by its authors.</p>
      <p>The goal of the work is the algorithmic implementation of the method of solving quantifier linear
equations based on the algebra of linear predicate operations, the formal apparatus of linear logical
operators and methods of solving logical equations.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Analysis of the subject field and statement of the problem</title>
      <p>The form of presentation of information in the computer systems has a great influence on the speed
and quality of information processing by intelligent systems [2]. Generally speaking, different
information systems use different ways of presenting knowledge depending on the specific fields of
application of the systems.</p>
      <p>Representation of knowledge is a formalization of inherent beliefs with the help of figures, records
or languages. Of special interest are the formalizations perceived by the computer. In this regard, formal
languages are being developed that allow displaying knowledge in computer memory.</p>
      <p>A characteristic feature of the operation of modern intelligent systems is that the data processing is
based on the necessary knowledge of the problem industry, entered in advance in the knowledge base
of the system, while previously created systems worked with data that were simply processed by various
programs. A rather huge number of works have been devoted to the study of the difference between
data and knowledge, the main idea of which can be formulated as follows: knowledge is a complexly
organized type of data that differs from traditional ideas about data in four main features:
• Knowledge placed in the record contains not only the information part, but also the descriptive
part – it stores all the data about the information unit that may be needed in the user's work with the
system
• Knowledge in the knowledge base creates complex hierarchical structures, which is achieved
by introducing various relations between information units entered in the knowledge base
• Informational units reflecting knowledge can be composed into more complex organized units
and decomposed into simpler ones
• Attached or built-in procedures can act as parts of information units characterizing some
knowledge, which allows these procedures to be activated as a result of the appearance of various
information units or connections between them in the knowledge base</p>
      <p>The peculiarity of systems of knowledge representations is that they model human activity, which
is often carried out in an atypical variety. Thus, an important stage in the development of intelligent
systems is the creation of an optimal model of representations of knowledge about the subject branch
of the systems application [3]. It is obvious that the choice of a certain type of knowledge representation
depends on the fields of formalization. In recent years, a large number of different models of knowledge
representation have been proposed.</p>
      <p>However, among the different ways of presenting knowledge, aroused from the specificity of the
variety of knowledge structures, it is possible to single out a logical model, frame and production
system, and semantic grids. Each method of presentation has its advantages and disadvantages, and is
associated with a certain structure and fields of application of knowledge.</p>
      <p>The logical model of knowledge representation uses the logic of first order predicates and the results
derivation using the syllogism method. The predicate difference used in the logical model can be easily
combined with a fairly effective result mechanism, such as a resolution. The advantages of logical
models are the unity of the theoretical justification and the possibility of implementing a system of
formally precise definitions and results. This is the reason why intelligent systems using a logical model
of knowledge have become quite widespread.</p>
      <p>The disadvantages of using the logical construction of systems include unconstructiveness and
semantic limitations. At the same time, human logic is often not limited by the usual formalism of
logical languages and is an intellectual model with a vague structure. However, the framework of formal
logic is expanding more, which is the reason of appearance of modal, multi-valued and probabilistic
logics. This makes it possible to expand the possibilities of applying logic in information systems.</p>
      <p>When the volume of knowledge increases, it is reasonable to apply various methods of preliminary
grouping and structuring of knowledge. The production system can be applied with a frame model,
which gives good results.</p>
      <p>In production models, knowledge appears to be a series of “how-to” rules. Such systems can produce
direct or reverse results. The carriers of these models are the MYCIN system, designed to solve
problems of a diagnostic nature, and the OPS system, designed to solve design problems.</p>
      <p>Advantages of production systems are:
•
•
•
•
•
•
•
The disadvantages of such systems include:</p>
      <p>Simplicity of creation and understanding of the rules
Simplicity of replenishment and modification
Ease of implementation of the mechanism of a logical result
Ambiguity of mutual differences between the rules
Comprehension of the wholesome improvement of knowledge
Difference from the human structure of knowledge</p>
      <p>Flexibility in a logical result
2.1.</p>
    </sec>
    <sec id="sec-3">
      <title>Overview of application branches of algebraic methods in automated systems</title>
      <p>The recent practical additions to modern abstract algebra in databases and intelligent systems have
led to increased interest in the possibility of algebraic description of information. At the same time,
practice suggests unexpected new structures that enrich algebra. Based on the application of algebraic
methods in programming theory, various translators from high-level languages and various algorithmic
algebras were developed.</p>
      <p>Automation of the development of software systems and computer design is an important and urgent
problem of computer technology, which requires the development of a utilitarian theory of algorithms.
One of the main problems of this theory is the problem of an optimal translator from one language to
another, which is described in the next problem: there are two algorithmic languages and some
algorithm implemented in one of them. It is necessary to find the optimal implementation of this
algorithm in another language according to the given criteria. When performing applied tasks, as a rule,
the first language is a high-level language focused on a certain range of tasks, and the second is the
internal language of the machine [4].</p>
      <p>Thus, it is necessary to translate from programming language to machine language with
simultaneous optimization of the source program. The process of solving such a problem is divided into
a number of intermediate stages, at each of which a partial optimization of the algorithm and translation
into an intermediate language corresponding to this stage is carried out.</p>
      <p>Say  = { } – the set of languages, and  = { ′,  ",  a set of translators, each representing a
program in the language  and translates programs from the input language  ′ to output language  ′′.
The translator can be considered as a unary operation, with a branch of definition represented by the

language  ′ and a field of values  ′′.</p>
      <p>
        We can define translators (
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
And the transcoding operation (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) as follows
A composition operation (
        <xref ref-type="bibr" rid="ref3">3</xref>
        ) takes place over translators  1,  2,  1
and  2,  3,  as follows

The following operations can be used to formalize processes often used in programming.
      </p>
      <p>To implement equivalent transformations of algorithms, it is necessary to build an algebra of
algorithms that would allow to do transformations using a clear algebraic language.</p>
      <p>We consider a database as an information system that stores and processes information and is able
to provide answers to queries. Moreover, it should be possible to obtain not only information directly
{</p>
      <p>1
 ′,  ",  1
and {</p>
      <p>2
 1′,  2", 
 2</p>
      <p>[
 1,  2,   ′,  ",  1</p>
      <p>] =
 1,  2,  1
×
 2,  3,  =
 1</p>
      <p>1
 ′,  ",  2</p>
      <p>
        1,  3, 

(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
(
        <xref ref-type="bibr" rid="ref2">2</xref>
        )
(
        <xref ref-type="bibr" rid="ref3">3</xref>
        )
stored in the database, but also derivative information obtained on the basis of basic information. The
task of obtaining derivative information is directly related to the task of the result in intelligent systems.
      </p>
      <p>In the case of applying an algebraic approach to the description of derived information, a certain
algebraic system is distinguished – the algebra of queries, in terms of which the derived information is
written through the basic one. We will display the database in the form of some mathematical model.
Suppose that the system of a set of data – domains is represented as  = ( ,  ∈  ), where  is the set
of domains.</p>
      <p>For each set system  = ( ,  ∈  ) the symbol  ∈  of type  is implemented as a subset of the
relation in the Cartesian multiplication   1 ×. . .×    , where type  characterizes placing of variables.
Say  :  →  which splits set  into categories:  =  1 ∪  2 …   , where  is cardinality of sets  .
The set  has a sufficient number of variables to implement different queries. We will consider the
system of indicators  = ( ,  ∈  ) and the relations entered on it as a model. The rule by which every
symbol  of the relation  is realized is denoted by  . Thus, the position of the database in the
considered scheme with a given data system can be interpreted as a function  that compares each  ∈
 of type  which is some subset of   1 ×. . .×    . Defining such model of database as ( ,  ,  ) the
symbols of relations to be implemented in certain moments.</p>
      <p>Next, it is necessary to implement the possibility of a query in the database. Query  in the state 
defined as  ∗  . The corresponding query responses are given as a subset of  . The set  ∗  is defined
for the base queries  , and an arbitrary query is expressed in terms of the base queries.</p>
      <p>Define the set of all subsets of  as  , and the set of all possible queries as  . For each query 
of  and each position  , the answer to the query is an element in  . In order for an arbitrary query
to be expressed in any form through basic queries, it is necessary to include algebraic operations on the
set of queries  that allow operating with queries. Likewise, similar algebraic operations should be
introduced on the set of answers. In this case, using samples of existing algebraic operations, the answer
to an arbitrary query can be calculated in accordance with the structure of the query, written down
through queries, the answers to which are already known. The sets of requests and responses considered
below are algebras of requests and responses.</p>
      <p>Database queries can be written using the formulas of some logical languages, for example, using
the language of the difference of statements or the difference of predicates of different orders, and the
expressive possibilities of these differences are different [5]. There are all sorts of differences between
classical and non-classical logic. Boolean algebras, for example, correspond to the classical difference
of statements, and special Heiting algebras correspond to the intuitionistic difference of statements.
2.2.</p>
    </sec>
    <sec id="sec-4">
      <title>Review of logic algebraization methods</title>
      <p>At different times, various algebraic structures were introduced, related to the difference in order
usually connecting cylindrical Tarsky algebras and polyadic Halmosh algebras. A Halmosh algebra is
denoted by adding operations to a quantifier algebra, which in turn is a Boolean algebra with certain
additional quantifier operations given on this algebra. Taking the quantifier can be represented in the
form of some operation defined in the corresponding algebra. Next, various ways of defining such
operations are considered, but first we will study the geometric meaning of quantifiers as operations.</p>
      <p>Say the variables  and  given on the set  . Suppose that  is a subset of the set  , which is the
Cartesian product of the set  times itself. The set  can be interpreted as a binary predicate  ( ,  ),
defined on  2 and equal to one on all pairs ( ,  ) ∈  . Say sets  and  as the corresponding
projections of the set  2. According to the definition of the existence quantifier, the expression
∃   ( ,  ) means that a unary predicate from variable  is defined on the set  , which defines some
subset in the set  consisting of elements   ∈  , for which there exist   ∈  such that
(  ,   ) ∈  . Thus, the application of the existence quantifier to the binary predicate  ( ,  ) gives a
unary predicate on the variable  on the set  , which determines the set of elements of  .
Geometrically, ∃   ( ,  ) is the projection of the set  onto  .</p>
      <p>
        Likewise, the application of the existence quantifier by the variable  to the predicate В( ,  )
determines the projection of the set  onto  . The quantifier of generality is denoted by a dual form.
Geometrically, ∃   ( ,  ) is the projection of the largest cylinder lying in  on the set  .
operation (
        <xref ref-type="bibr" rid="ref5">5</xref>
        )
      </p>
      <p>0 = 0
 &gt; ∃
∃(а1 ∧ ∃а2) = ∃а1 ∧ ∃ 2, ⋯  ,  1,  2 ∈ 
 =1
 −
∃ 1, … ,   −1  ( 1, …   ) ∧  1( 1) ∧ … ∧   −1(  −1) =  (  )</p>
      <p>when  1( 1) = 1, … ,   −1(  −1) = 1</p>
      <p>
        Thus, the existence quantifier can be calculated as an operator linear with respect to the disjunction
operation with the additional condition (
        <xref ref-type="bibr" rid="ref5">5</xref>
        ). Accordingly, the generality quantifier is denoted by its dual
form as a logical operator linear with respect to the conjunction operation with an additional condition.
      </p>
      <p>Defining  as a Boolean algebra. The quantifier of the existence of this algebra is called an arbitrary
mapping ∃:</p>
      <p>→  , which satisfies these conditions:</p>
      <p>The quantifier of generality is denoted by a dual form and is related to the quantifier of existence by
means of the negation operation ∀ = ∃ .</p>
      <p>However, the difference of first-order predicates is characterized by essential limitations, due to the
fact that the regularity of first-order predicates, contains “theoretically inviolable frameworks of
description, which are unconditionally delineated and strictly limited.” [6] The requirements proposed
for modern information systems make it necessary to spread the descriptive capabilities of the logical
languages used by them. It is possible to extend the syntactic rules of the first-order predicate logic
language to allow the use of mutable predicate symbols. As a result of this extension of language syntax,
we have obtained a system called second-order predicate logic. The constructed system can include as
arguments of predicates not only terms, but also predicate sentences of the first order. It is obvious that
such a system of differences has much greater descriptive possibilities, why the logic of predicates of
the first order.</p>
      <p>
        In the case of multiple relations, the application of the existence quantifier by  variables ( &lt;  ),
where  is the local predicate  ( 1, … ,   ), given on the set   =  1 × … ×   , can be interpreted as
the projection of some subset of the set   on the set   − = ×    . Thus, on the set   − , an  − 
local predicate is defined by the application of the existence quantifier on the  variables of the predicate
 (х1, … ,   ). This expression is equivalent to the following equation (
        <xref ref-type="bibr" rid="ref4">4</xref>
        ):
∃  1, . . . ,     ( 1, . . .   ) =  ( 

 − , . . . ,   )
When  =  − 1, this equality is a partial case of a linear disjunction operator with respect to the
From the difference of predicates of the second order, it is possible to connect the algebra of
predicates and predicate operations, described in work [7]. Thus, depending on which difference to base
the databases or knowledge bases discussed earlier, it is necessary to proceed from advantageous query
and response algebras. In each case, the database in the main approximation can be considered as a
automaton of type (
        <xref ref-type="bibr" rid="ref6">6</xref>
        )
( ,  
,  
)
where  is the set of automaton states,  
is the set of queries,  
is the set of results. Next is
defined the operation  ×  
−
      </p>
      <p>the meaning of which lies in the second. If 1 ∈  – the state
∈  
– some query, then 1 ∗  
=  
is the answer to the noted request
of database,</p>
      <p>in the proper state of the database.</p>
      <p>Representation of the database in the form of an algebraic structure is shown to be useful in various
cases. For example, in cases where it is necessary to determine the deviation of compositions and
decompositions of databases, as well as from isomorphism and equivalence.</p>
      <p>
        In the theory of databases, the relational data model has gained wide application. Based on the
relational model of databases, it is possible to show the advantages of the algebraic approach to
information description [8]. They were shown how to formulate relational database queries in relational
algebra languages. The operations of selection, projection, set-theoretic union and conjugation were
introduced as operations of relational algebra. The main advantage of relational algebra is that it is
closed with respect to all relational operations. This means that the result of any operation is a new
relation that has exactly the same status as the original one, in the sense that all algebraic operations are
applicable to the resulting relation. No algebraic operation can create an object that goes beyond
algebra, while in languages based on the difference, in order to formulate some complex queries, it is
(
        <xref ref-type="bibr" rid="ref4">4</xref>
        )
(
        <xref ref-type="bibr" rid="ref5">5</xref>
        )
(
        <xref ref-type="bibr" rid="ref6">6</xref>
        )
necessary to formulate auxiliary subqueries, to create new constructions. With applied algebra, there is
no need to create new structures when describing new relations, so it is possible to create queries of any
complexity.
      </p>
      <p>When designing relational databases, the knowledge about the subject area is presented in the form
of relations of some groundless arity, this way of demonstrating knowledge is also effective when
designing expert systems for various purposes [9]. Each relation can be mutually uniquely assigned a
finite predicate, which, in turn, is encoded by a sequence of zeros and ones. Thus, a transition from
relations on finite sets to binary codes of finite length is possible.</p>
      <p>The information that remains in a fairly large set of binary codes suggests the existence of significant
logical dependencies between the codes. Thus, some codes can be expressed through each other using
logical operations, which indicates the necessity of the available information. The analysis of such
dependencies requires the development of effective mathematical methods that allow describing the
relationship between codes in the correct logical-algebraic language.</p>
      <p>As operations in the algebra of binary codes, the functions of the algebra of logic applied to the
elements of the algebra of bitwise codes. The concept of base codes is also used [10], which are the
elements that can be used to obtain an arbitrary code by applying various available operations.
Irreducible with respect to some operations of the system of binary codes are considered, when no
element of the system can be obtained by applying to other superpositions of these operations. Based
on a number of heuristic ideas about information processing, among a large class of all kinds of
transformations of information represented by binary codes, it is natural to single out a class of
transformations of codes that are linear with respect to disjunction or conjunction.</p>
      <p>
        When a transformation linear with respect to the disjunction operation, defined on a set of binary
codes, there is the operator  that transfers one code to another and satisfies the following two
conditions (
        <xref ref-type="bibr" rid="ref7">7</xref>
        )
where 0 = (0, … ,0),
      </p>
      <p>
        = ( 1, … ,   ). Accordingly, an operator that is linear with respect to a
conjunction is denoted by a dual form. The corresponding conditions are written in the second form (
        <xref ref-type="bibr" rid="ref8">8</xref>
        )
      </p>
      <p>As a result of adding linear operators to the already existing operations of the algebra of binary
codes, we obtained an algebraic system that possesses a number of fascinating properties. The resulting
algebra, along with the disjunctive, conjunctive algebra, and the algebra of propositional operations,
makes it possible to use a convenient algebraic language to formally write down the conditions that the
described system of relations must satisfy. In particular, it is convenient when the information
represented by binary codes has properties of linearity and homogeneity.</p>
    </sec>
    <sec id="sec-5">
      <title>3. Description of the object model, methods and algorithms 3.1. The model of solving a quantifier linear equation</title>
      <p>{
{</p>
      <p>(0) = 0 
 ( ∨  ) =  ( ) ∨  ( )</p>
      <p>
        (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) = 0 
 ( ∧  ) =  ( ) ∧  ( )
(
        <xref ref-type="bibr" rid="ref7">7</xref>
        )
(
        <xref ref-type="bibr" rid="ref8">8</xref>
        )
(
        <xref ref-type="bibr" rid="ref9">9</xref>
        )
(
        <xref ref-type="bibr" rid="ref10">10</xref>
        )
      </p>
      <p>Based on the theory of linear logical operators mentioned in the previous section, we will build an
algorithm for solving the equation.</p>
      <p>
        Suppose the problem is to find a solution to the following predicate equation (
        <xref ref-type="bibr" rid="ref9">9</xref>
        )
      </p>
      <p>( ) = ∃  ( ( ) ∧  ( ,  ))
The predicates  ( ) and  ( ) are defined on the set 
= ( 1, … ,   ), which consists of  elements,
and the binary predicate  ( ,  ), which is defined on the set 
×  . The problem is to calculate the
predicate  ( ), considering the predicates  ( ) and  ( ,  ) are to be known.</p>
      <p>
        Considering that the predicate variable  is connected by the existence quantifier, equation (
        <xref ref-type="bibr" rid="ref9">9</xref>
        ) will
be rewritten in the form of (
        <xref ref-type="bibr" rid="ref10">10</xref>
        )
 =1

 ( ) = ∨ ( (  ) ∧  ( ,   ))
      </p>
      <p>
        Equality (
        <xref ref-type="bibr" rid="ref10">10</xref>
        ) is fulfilled only if it is true for any value of the predicate variable  that spans the set
 . Thus, we have the following  equalities (11)
for any  ∈ 1, … ,  .
      </p>
      <p>Defining the values of predicates  (  ) and ( (  ) by   and   , respectively, where   ,   ∈ {0,1}
and  ,  ∈ 1, … ,  . We define the value of the binary predicate  (  ,   ) by   ∈ {0,1},  ,  ∈ 1, … ,  .
Taking into account the following notations, equality (11) will take the form of (12)</p>
      <p>It is known that if for arbitrary predicates  ( ) and  ( ) exists relation  :  ( ) →  , than the
relation  : ( ( ) ∨  ( )) →  ∨  is also true. From here we obtain an operator equation of the form
where  is linear logical operator defined on the space  ∨ , with the operator matrix (14)
|
 = |   1
 =  −1

=</p>
      <p>∗ 
 =1
 =1

 =1


∨ ( 1 ∧   ) =  1
∨ (  ∧   ) =  
{ ∨ (</p>
      <p>∧   ) =  
  = ∨ (  ∧   )</p>
      <p>
        Thus, the predicate equation (
        <xref ref-type="bibr" rid="ref9">9</xref>
        ) is equivalent to the operator equation (13) defined on the logical
space  ∨ . According to the idea of a continuous matrix type of a linear-logical constant operator acting
from space  ∨ in itself, for reversibility it is also necessary that in each row and column of the matrix
of such an operator there should be one and only one element equal to one. If the matrix (14) satisfies
the above conditions of the idea, then the solution of the equation (13) will be as (15)
      </p>
      <p>The matrix of the inverse operator coincides with the transposed matrix of the operator  . Thus, the
solution of the operator equation (15) in the matrix type will be as (16)</p>
      <p>
        As a result of solving the predicate equation (
        <xref ref-type="bibr" rid="ref9">9</xref>
        ), it can be written in the form of (17)
 ( ) = ∃ ( ( ) ∧  ( ,  ))
      </p>
      <p>
        If the operator  is not regular, the solution of the predicate equation cannot be written in the form
(17), however, using the algebraic notation of the predicate equation (
        <xref ref-type="bibr" rid="ref9">9</xref>
        ), we will look for the solution
of the equation in the way defined.
      </p>
      <p>Let's write the operator equation (13) in the form of a system of logical equations (18), assuming
that the vector  is not singular</p>
      <p>The algorithm is as follows:
1. Init  =  1
3. Init  = 1
4. If  [ ,  ] = 1, then   =  1
5. Loop indexes  from 0 to</p>
      <p>Form the set consisting of zero coordinates of the vector 
Symbols ∗ stand in places ( 1, . . . ,   (∗)) =  .</p>
      <p>
        Let the ones be worth in  at places ( 1, . . . ,   (
        <xref ref-type="bibr" rid="ref1">1</xref>
        )) =  , and zeros at places ( 1, . . . ,   (
        <xref ref-type="bibr" rid="ref1">1</xref>
        )) =  ,  ∩
 = ∅, 
∪  =  ,
      </p>
      <p>
        = (1, … ,  ). The set of places where the zeros of the vector  are valued will be
denoted as  = ( 1, . . . ,   (
        <xref ref-type="bibr" rid="ref1">1</xref>
        )). The symbol ∗ will mark the places where there can be zeros or ones.
6. The index  is set to the next element from the set  and the transition to clause (
        <xref ref-type="bibr" rid="ref9">9</xref>
        ) until all the
elements of the set  are selected
7. Form the set  . Get some logical vector  consisting of zeros and symbols ∗.
      </p>
      <p>Check the system (18) for consistency
9. Substitute the found vector into the system
10. Get the solution of the obtained system according to the formula (19)
 =1

∨ (  ∧   ) =   .
11. If the system is not consistent, then the vector is not a solution of the system
12. Substitute 1 instead of the first symbol ∗ In the vector  (∗), and zeros instead of the other
symbols.
13. Go to step 8
step 8
16.
14. If the formed logical vector is a solution of the system, we store it in the array of solutions
15. Set various substitutions of 0 and 1 instead of ∗ symbols, with each new combination going to</p>
      <p>Write out all the obtained solutions of the system, if the array of solutions is not empty. And if
not, then the result is the inconsistency of the system
(19)
(20)
(21)
(22)
(23)
(24)
(25)
3.2.</p>
    </sec>
    <sec id="sec-6">
      <title>Solving logical result problems in databases</title>
      <p>The example given in this section illustrates the possibility of using the theory of linear logical
operators and the method of solving the quantifier predicate equation for processing and storing
information in databases.
described by the following binary predicate (20)</p>
      <p>Suppose that the database contains information about four factories that produce parts for cars.</p>
      <p>Assume factory  1 produces parts  1 and  2, factory  2 produces parts  2 and  3, factory  3 produce
parts  1 and  4, factory  4 produce parts  3 and  4. The existing “factory-part” relationship is easily
 1( ,  ) = {
1, if factory  produces parts</p>
      <p>0, in opposite case
second form (21)</p>
      <p>where  ∈ { 1, …  4, } and  ∈ { 1, …  4, }. Thus, information about factories can be stored in the
form of a formula record of the predicate  1( ,  ). The next problem is to obtain information about
which factory produce part  1. The corresponding predicate revealing this requirement is written in the
 2( ) = {</p>
      <p>1, if  =  1
0, in opposite case
∃  1( ,  ) ∧  2( ) =  3( )
 3( ) = {
1, if factory  produces parts  1
0, in</p>
      <p>opposite case
[
1
0
1
0
1
1
0
0
0
1
0
1
0
0
1
1
]
equation of the form (22)
and sets the following relation (23)</p>
      <sec id="sec-6-1">
        <title>As a result, the predicate  3( ) corresponding to the sought information is denoted by a quantifier</title>
        <p>form (24)</p>
        <p>
          The solution of this quantifier predicate equation is obtained from the solution of the corresponding
operator equation  ∗  =  in the linear logical space  ∨ . The matrix of operator A has the following
and vector  = (
          <xref ref-type="bibr" rid="ref1">1,0,0,0</xref>
          ). As a result of the action of the operator  on the vector  , we get the
vector
        </p>
        <p>
          = (
          <xref ref-type="bibr" rid="ref1 ref1">1,0,1,0</xref>
          ) and meaning that the part  1 is served by factories  1 and  3. Thus, the operation
of searching for information of interest in the database is replaced by the operation of operator
multiplication. Now the problem is to calculate which factories produce parts  1 or  3. Using the
additive property of the linear logical operator  , we have (25)
        </p>
        <p>
          Vectors  1 and  3 are created by predicates that formulate the parts  1 and  3, respectively. Thus,
the answers to more complex queries in the database also come from the solution of the operator
 ∗  1   ∗  3 =  ( 1 3
) =  ∗  4
equation. Using the algorithm for solving the operator equation, described in the previous subsection,
it is possible to search for the parts that they manufacture by given factories. For example, assuming
the problem is to calculate which parts are manufactured by factory  2. Therefore, the logical vector
 = (
          <xref ref-type="bibr" rid="ref1">0,1,0,0</xref>
          ). As a result of solving the operator equation of the form of (26)
1 1 0 0  1 0
|0 1 1 0| ∗ | 32| = |1| (26)
1 0 0 1 0
0 0 1 1  4 0
relative to  , we get the vectors (
          <xref ref-type="bibr" rid="ref1">0,1,0,0</xref>
          ) and (
          <xref ref-type="bibr" rid="ref1">0,0,1,0</xref>
          ). So that, factory  2 produces parts  2 and
 3.
        </p>
        <p>Next, assume that the database contains information about which parts are used in certain cars.
Suppose car  1 uses part  2, car  2 uses parts  2 and  3, car  3 uses parts  2 and  3, car  4 uses parts
 3 and  4. This relationship "car-part" corresponds to the binary predicate  1( ,  ), defined as (27)
1, if car  uses parts 
 1( ,  ) = { 0, in opposite case (27)
where  { 1, . . . ,  4} and  { 1, . . . ,  4}. Similarly, to the previously considered case, it is easy to
extract information about which cars and which parts are used from the database by solving the
corresponding quantifier predicate equation, replacing it with an operator equation. We have the
following equation (28)</p>
        <p>∃  1( ,  ) ∧  2( ) =  3( ) (28)
where the unary predicates  2( ) and  3( ) define a specific car and a specific part, respectively.
Solving this equation with respect to predicate  2( ) or predicate  3( ), we will fetch the necessary
information from the database. Suppose that now it is necessary to solve a more complex problem,
namely: to calculate which factories produce parts for a specific car. The following system of quantifier
predicate equations (29) corresponds to this condition
∃   1( ,  ) ∧  2( ) =  3( )
{ (29)
∃   1( ,  ) ∧  2( ) =  2( )
Display this system in the form of single equation (30)</p>
        <p>∃   1( ,  ) ∧ (∃   1( ,  ) ∧  2( )) =  3( ) (30)
The quantifier predicate equation (28) corresponds to an operator equation of the form (31)
 ∗  =  (31)
in linear logical space  ∨ . The logical vectors  and  are constructed, respectively, from the binary
predicates  2( ) and  3( ). The linear logical operator  has the form matrix (32)
0 1 0 0
|1 0 1 0| (32)
0 1 1 1
0 0 0 1
built on the binary predicate  1( ,  ). Therefore, the predicate equation (30) corresponds to the
operator equation of the form (33)</p>
        <p>1 1 0 0 0 1 0 0 1 1 1 0
 = |0 1 1 0| ∗ |1 0 1 0| = |1 1 1 1| (35)
1 0 0 1 0 1 1 1 0 1 0 1
0 0 1 1 0 0 0 1 0 1 1 1</p>
        <p>In this way, a rather large search in the database is reduced to the calculation of the matrix of the
operator   using the operation of multiplying the matrices of the operators  and  .</p>
      </sec>
      <sec id="sec-6-2">
        <title>For example, if we calculate which factories manufacture parts for car  1. The corresponding logical</title>
        <p>
          vector  has the form (
          <xref ref-type="bibr" rid="ref1">1,0,0,0</xref>
          ).
        </p>
      </sec>
      <sec id="sec-6-3">
        <title>As a result, we get that the manufacturers of parts for car  1 are factories  1 and  2.</title>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>4. Analysis of possible results</title>
      <p>The constant increase in the degree of informatization has created an urgent need for the
development of a new theoretical and practical base in the field of formal description of excellent
physical information objects. The rapid growth of data volumes in computers, their structural
complexity, rapidly progressing computerization, and informatization require a constant increase in the
productivity of electronic computing machines, an increase in speed.</p>
      <p>Expectations that the role of a universal information mediator will be done by programming
languages were not fulfilled, as it became clear that in terms of convenience and flexibility, any artificial
language cannot compare with a natural one. At this time, methodological and technical approaches to
the creation and use of information systems have already been developed. Currently available intelligent
information systems are able to perform functions that were previously considered the exclusive
prerogative of humans: prove mathematical theorems, translate texts from one language to another,
diagnose diseases and perform many other functions.</p>
      <p>Another direction in informatization is the creation of systems of integrated knowledge and the
development of methods of active, mental navigation through these systems, including through global
computer networks. At this time, the issue of software and hardware methods that effectively
manipulate natural language information has turned into such a necessity that the effectiveness of public
institutions and production systems begins to depend on. It is no coincidence that among the most
popular software tools are programs focused on processing natural language objects: text and linguistic
editors and processors, programs for automatic correction of grammatical errors, automatic editing,
natural language indexing and searching, as well as machine translation programs, optical text
recognition, etc. And recently, natural language modules are increasingly being introduced into the
operating systems themselves.</p>
      <p>All these problems cannot be solved without the involvement of a universal mathematical language.
Developments in this field have been underway for several decades, work on the algebraization of logic
has been carried out, and a special mathematical apparatus has been developed for the formula
representation of relations and operations on them, which is called the algebra of finite predicates. The
central place in the algebra of predicates is occupied by relations, they reflect the properties of objects
and the connections between them. But until now, there is no convenient method of formulaic
declaration of arbitrary relations, which allows them to be implemented programmatically. The
possibility of software implementation of formulas that describe predicates or relations is important
when designing an automatic control system, when developing a natural-language intelligent interface.</p>
      <p>The results of this work, aimed precisely at the creation of modern principled solutions in the
construction of methods for the formal presentation of relations using the algebra apparatus of finite
predicates, focused on the real calculation of the capabilities of the modern computer and computing
base and new requirements for information technologies, can be applied to modeling any logical
structures that require a large range of calculations in real time.</p>
      <p>The following results were obtained:
• A comparative analysis of methods for solving logical equations was carried out
• Designed and developed a software system that implements the method of solving quantifier
linear equations
• The method of solving quantifier linear equations is used to solve the problem of logical results
in databases</p>
      <p>Although, the work was focused on the modeling of natural language structures, the resulting
algorithms have good prospects for application in other fields as well. To describe a given subject area
using a system of predicate equations, it is necessary to correctly select a set of semantic features and
their values. Semantic signs can be obtained based on the analysis of objects and their properties within
the framework of this subject area. By assigning a given object some semantic distinction, we match it
with a certain meaning of this attribute.</p>
      <p>Based on the work done, it can be concluded that the obtained results can be used in the production
of linguistic support for automated information systems, in information search systems, in solving
problems of logical results in databases and expert systems, as well as in solving problems of object
recognition and classification.</p>
    </sec>
    <sec id="sec-8">
      <title>5. Conclusion</title>
      <p>Formal methods of intelligent systems were studied and analyzed in the work: methods of displaying
knowledge depending on specific fields of application of systems; formal languages that allow
representing knowledge in computer memory. Considered areas of application of algebraic methods in
automated systems. Found computational practical applications of modern abstract algebra in databases
and intelligent systems. Based on the application of algebraic methods in theoretical programming,
various translators from high-level languages and various algorithmic algebras were developed.</p>
      <p>In order for an arbitrary query to be expressed in any form through basic queries, algebraic
operations are introduced on the sets of queries, allowing to operate with queries. Likewise, similar
algebraic operations should be introduced on answer sets.</p>
      <p>Shown the perspective of using the considered method of solving logical equations in information
systems, in particular, in databases. It provides the possibility of obtaining not only information directly
stored in the database, but also derivative information obtained on the basis of basic information. The
problem of obtaining derivative information is directly related to the problem of the result in intelligent
systems, while in the case of applying an algebraic approach to the description of derivative
information, a certain algebraic system is distinguished – the algebra of queries, in terms of which
derivative information is written through the basic one.</p>
    </sec>
    <sec id="sec-9">
      <title>6. References</title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>M.</given-names>
            <surname>Bur</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Stirewalt</surname>
          </string-name>
          ,
          <article-title>ORM ontologies with executable derivation rules to support semantic search in large-scale data applications</article-title>
          ,
          <source>Proceedings - ACM/IEEE 25th International Conference on Model Driven Engineering Languages and Systems, MODELS 2022: Companion Proceedings</source>
          , p.
          <fpage>81</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>A.</given-names>
            <surname>Kulik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Chukhray</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Havrylenko</surname>
          </string-name>
          ,
          <article-title>Information Technology for Creating Intelligent Computer Programs for Training in Algorithmic Tasks</article-title>
          .
          <source>Part</source>
          <volume>1</volume>
          :
          <string-name>
            <given-names>Mathematical</given-names>
            <surname>Foundations</surname>
          </string-name>
          .
          <source>System Research and Information Technologies</source>
          ,
          <year>2022</year>
          (4),
          <fpage>27</fpage>
          -
          <lpage>41</lpage>
          . doi:
          <volume>10</volume>
          .20535/SRIT.2308-
          <fpage>8893</fpage>
          .
          <year>2021</year>
          .
          <volume>4</volume>
          .
          <fpage>02</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Wu</given-names>
            <surname>Aiyan</surname>
          </string-name>
          , Zhang Yongmei,
          <string-name>
            <surname>Yang Shang</surname>
          </string-name>
          ,
          <article-title>A Method for Scientific Cultivation Analysis Based on Knowledge Graphs</article-title>
          , in: 12th International Conference on Electronics,
          <source>Communications and Networks</source>
          ,
          <source>CECNet</source>
          <year>2022</year>
          , p.
          <fpage>13</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Sharonova</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kyrychenko</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gruzdo</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tereshchenko</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <source>“Generalized Semantic Analysis Algorithm of Natural Language Texts for Various Functional Style Types”</source>
          ,
          <source>2022 6th International Conference on Computational Linguistics and Intelligent Systems (COLINS-2022)</source>
          ,
          <year>2022</year>
          . - CEUR-WS
          <volume>3171</volume>
          ,
          <year>2022</year>
          , ISSN 16130073.
          <string-name>
            <surname>- Volume</surname>
            <given-names>I: Main</given-names>
          </string-name>
          , РР.
          <fpage>16</fpage>
          -
          <lpage>26</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J.</given-names>
            <surname>Smith</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Bansal</surname>
          </string-name>
          ,
          <article-title>A Predicate Construct for Declarative Programming in Imperative Languages</article-title>
          ,
          <source>in: PPDP</source>
          <year>2022</year>
          , ACM International Conference Proceeding Series,
          <year>2022</year>
          , article 3551379.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>T.</given-names>
            <surname>Place</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Zeitoun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A Generic</given-names>
            <surname>Polynomial</surname>
          </string-name>
          <article-title>Time Approach to Separation by First-Order Logic Without Quantifier Alternation</article-title>
          ,
          <source>in: FSTTCS</source>
          <year>2022</year>
          , Leibniz International Proceedings in Informatics, LIPIcs, article
          <volume>43</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>I.</given-names>
            <surname>Shubin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kozyriev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Liashik</surname>
          </string-name>
          , G. Chetverykov,
          <article-title>Methods of adaptive knowledge testing based on the theory of logical networks</article-title>
          ,
          <source>in: Proceedings of the 5th International Conference on Computational Linguistics and Intelligent Systems, COLINS</source>
          <year>2021</year>
          , Lviv, Ukraine,
          <year>2021</year>
          , pp.
          <fpage>1184</fpage>
          -
          <lpage>1193</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>L.</given-names>
            <surname>Bozzato</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Eiter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Kiesel</surname>
          </string-name>
          ,
          <article-title>Reasoning on Multi-Relational Contextual Hierarchies via Answer Set Programming with Algebraic Measures</article-title>
          ,
          <source>in: 37th International Conference on Logic Programming (ICLP</source>
          <year>2021</year>
          ), doi: 10.1017/S1471068421000284.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>H.</given-names>
            <surname>Falatiuk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Shirokopetleva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Dudar</surname>
          </string-name>
          ,
          <article-title>Investigation of architecture and technology stack for e-archive system</article-title>
          ,
          <source>in: 2019 IEEE International Scientific-Practical Conference: Problems of Infocommunications Science and Technology, PIC S and T 2019 - Proceedings</source>
          , p.
          <fpage>229</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>K.</given-names>
            <surname>Herud</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J</given-names>
            <surname>Baumeister</surname>
          </string-name>
          ,
          <article-title>Testing Product Configuration Knowledge Bases Declaratively</article-title>
          , in: LWDA 2022 - Workshops: Special Interest Group on
          <article-title>Knowledge Management (FGWM), Knowledge Discovery, Data Mining, and Machine Learning (FGKD) and Special Interest Group on Database Systems (FGDB)</article-title>
          ,
          <source>CEUR Workshop Proceedings</source>
          , vol.
          <volume>3341</volume>
          , pp.
          <fpage>173</fpage>
          -
          <lpage>186</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>