1. Introduction
Finite tree-programs, including decision trees [
1,
2,
3,
4] and computation trees [
5,
6,
7,
8], are explored in various fields of computer science. Decision trees are employed as classifiers and predictors in data analysis, while both decision and computation trees serve as algorithms for solving problems in areas such as combinatorial optimization and computational geometry.
Finite tree-programs represent a simple class of programs that implement functions defined everywhere. However, in certain cases, all programs from sufficiently broad classes that implement functions defined everywhere are equivalent to finite tree-programs. This paper focuses on exploring these situations.
In this paper, a program is a pair , where S denotes the scheme of the program of a signature and U denotes a structure of the signature . The signature consists of a finite or countable set of predicate and function symbols, along with their arity and constant symbols. The structure U is a pair , where A is a nonempty set called the universe of U, and I is an interpretation function that maps the symbols of to predicates, functions, and constants in A. The schemes of the programs under consideration may have cycles and finite or countable sets of nodes. Of particular interest are program schemes that are finite trees, with the corresponding programs referred to as finite tree-programs.
Let K be a nonempty class of structures of the signature . A scheme of program S is called total relative to K if, for any structure , the function implemented by the program is defined everywhere. The class K is called program-saturated if any scheme of the program of signature that is total relative to K is equivalent to a scheme of the program that is a finite tree.
This study begins with the general case, where schemes of programs may use arbitrary terms of a given signature
in function nodes and arbitrary formulas of that signature in predicate nodes. A discussion of these schemes of programs can be found in
Section 2.
Section 3 studies program-saturated classes of structures. A necessary and sufficient condition for a class of structures to be program-saturated is its compactness: any finitely satisfiable in
K set of formulas with free variables from a finite set is satisfiable in
K. In particular, any axiomatizable class of structures possesses the property of compactness and is, therefore, a program-saturated class.
Section 4 is devoted to the study of individual structures, each of which forms a class that is program-saturated. Such structures include, in particular, all models of cardinality
of
-categorical theories. An example of such a model is the field of complex numbers.
In
Section 5, the possibility of an elementary extension of a structure to a program-saturated structure is examined. It is shown that such an extension is always possible, and the minimum cardinality of such an extension is determined.
Section 6 is devoted to the transfer of the obtained results to programs that are essentially close to the computation trees: if the scheme of such a program is a finite tree, then the program is an ordinary computation tree. Some results in this direction were published earlier without proofs in [
9].
To the best of the author’s knowledge, studies similar to those presented in this paper have not been conducted previously. However, decision trees and computations trees that are special cases of finite tree-programs have been studied intensively. We mention only the literature related to the consideration of decision and computation trees as algorithms. Linear decision trees and algebraic decision and computation trees have been studied most intensively in this regard.
Lower bounds on the complexity were obtained in [
10,
11,
12] for linear decision trees, in [
4,
13,
14] for algebraic decision trees, in [
5,
6] for algebraic computation trees, and in [
7] for Pfaffian computation trees. Upper bounds on the complexity were obtained in [
2,
15,
16] for linear decision trees and in [
3] for quasilinear decision trees, which include linear decision trees and some types of algebraic decision trees. Nondeterministic linear decision and computation trees were studied in [
3,
17,
18].
The complexity of deterministic decision trees over arbitrary infinite sets of
k-valued attributes,
, was studied in [
3,
19]. The relations between deterministic and various kinds of nondeterministic decision trees over arbitrary infinite sets of
k-valued attributes were investigated in [
20,
21,
22]. The complexity of computation trees over arbitrary structures was studied in [
8].
The proposed paper continues the line of research introduced by the works mentioned in the last paragraph: we do not concentrate on specific types of finite tree-programs, such as linear or algebraic, but study them over arbitrary structures.
2. Schemes of Programs and Programs
The study begins with the general case, where schemes of programs may use arbitrary terms of a given signature in function nodes and arbitrary formulas of that signature in predicate nodes.
Let
and
be the set of variables. Let
be a finite or countable
signature: a set of predicate and function symbols with their arity and constant symbols. The concept of a formula of signature
is defined in a standard way. First, the concept of a
term is defined, and then the concept of an
atomic formula using, in particular, the equality symbol =, and finally the concept of a
formula using additionally the logical symbols ∧, ¬, and ∀ (see definitions on pp. 22 and 23 [
23]). For
, we denote
and
as the set of formulas of the signature
with free variables from the set
. Since
is finite or countable, for any
, the set
is countable.
Definition 1. A scheme of program (scheme in short) of the signature σ is a pair , where and G is a nonempty directed graph with a finite or countable set of nodes. The nodes of the graph G are divided into three types: function, predicate, and terminal. A function node is labeled with an expression of the form , where t is a term of the signature σ. Only one edge leaves this node and this edge is not labeled. A predicate node is labeled with a formula of the signature σ. Two edges leave this node. One edge is labeled with the number 1 and another one is labeled with the number 0. A terminal node is labeled with a number from ω. This node has no leaving edges. In addition, some node of the graph is selected as the initial one and marked with the * sign. The set will be called the set of input variables of the scheme S. Usually, we will not distinguish between a scheme and its graph.
Definition 2. Let be a scheme of the signature σ. A complete path of the scheme S is a directed path that starts at the initial node of the scheme S and is either infinite or ends at a terminal node of the scheme S.
Let be a complete path of the scheme S. For , we correspond to the node of the path a sequence of terms of the signature with variables from . Set . Let the sequences already be defined. We now define the sequence associated with the node . If is a predicate node, then . Let be a functional node labeled with the expression . Then, .
A formula from the set is associated with each predicate node of the path . Let be a predicate node that is labeled with a formula and let the edge of the path leaving the node be labeled with the number c. Then, we correspond to the formula if and the formula if .
Denote by the set of formulas corresponding to the predicate nodes of the complete path . If is a finite path, then denote by the number attached to the terminal node of this path.
A structure of the signature is a pair , where A is a nonempty set called the universe of the structure and I is an interpretation function mapping the symbols of to appropriate predicates, functions, and constants in A. The cardinal is called the cardinality of the structure U. Let and . The expression means that the formula is true in the structure U for the tuple . We will say that the formula is satisfiable in the structure U if for some . A set of formulas is referred to as satisfiable in the structure U if there is a tuple such that for any formula . Let be a sentence of the signature , i.e., a formula of the signature without free variables. The expression means that the sentence is true in the structure U.
Definition 3. Let be a scheme of the signature σ. The pair will be called a program over the structure U with the set of input variables .
The scheme S will be called the scheme of the program . A complete path of the scheme S will be called satisfiable in U on the tuple if, for any formula , . One can show that there exists exactly one complete path of S that is satisfiable in U on the tuple .
The program is associated with a possibly partial function . Let and be a complete path of S that is satisfiable in U on the tuple . If is a finite path, then . If is an infinite path, then the value is undefined. We will say that the program implements the function .
Definition 4. A scheme of the signature σ will be called a tree-scheme of the signature σ if G is a tree with the root that coincides with the initial node of G. A tree-scheme of the signature σ will be called finite if G is a finite tree.
Definition 5. Let S be a finite tree-scheme of the signature σ and U be a structure of the signature σ. Then, the program will be called a finite tree-program over the structure U.
3. Program-Saturated Classes of Structures
This section studies classes of structures that are program-saturated. It is proven that a necessary and sufficient condition for a class of structures to be program-saturated is its compactness. In particular, any axiomatizable class of structures has the property of compactness.
Definition 6. Let K be a nonempty class of structures of the signature σ. We will say that a scheme S of the signature σ is total relative to K if, for any structure U from K, the program implements a total (everywhere defined) function.
Let and be schemes of the signature . We will say that complete paths and of schemes and are isomorphic if they have the same length and, for , the nodes and are labeled with the same expressions or numbers if they are terminal and either the edges and are not labeled or they are labeled with the same numbers. We will say that the schemes and are strongly equivalent relative to the class K if and, for any structure U from K and for any tuple , where A is the universe of the structure U, the complete paths of the schemes and satisfiable in U on the tuple are isomorphic.
Definition 7. The class K will be called program-saturated if any total relative to the K scheme of the signature σ is strongly equivalent relative to K to a finite tree-scheme of the signature σ.
Let . We will say that the set of formulas is satisfiable in the class K if there exists a structure in which this set of formulas is satisfiable. We will say that the set is finitely satisfiable in the class K if any finite subset of is satisfiable in the class K.
Definition 8. We will say that the class K has the property of compactness if, for any , any set of formulas finitely satisfiable in K is satisfiable in K.
A complete path of the scheme S will be called satisfiable in the class K if the set of formulas is satisfiable in the class K.
Let be a scheme of the signature . We denote by a tree-scheme of the signature , which has the following property: there exists a one-to-one correspondence between the set of complete paths of S and the set of complete paths of for which the corresponding paths are isomorphic. Denote by C a subgraph of the graph induced by the set of nodes that belong to the complete paths of the scheme , which are satisfiable in the class K. For each predicate node of the graph C with one leaving edge, we add to C a new terminal node labeled with the number 0 into which we draw the missing edge. We denote the obtained graph . Denote . Evidently, is a tree-scheme of the signature .
Lemma 1. Let K be a nonempty class of structures of the signature σ, which has the property of compactness, and S be a scheme of the signature σ that is total relative to K. Then, all complete paths of the scheme S that are satisfiable in the class K are finite and the set of complete paths of the scheme S that are satisfiable in the class K is finite.
Proof. Evidently, all complete paths of the scheme
S that are satisfiable in the class
K are finite. Let us assume that the set of complete paths of the scheme
S that are satisfiable in the class
K is infinite. Similar to the proof of Kënig’s lemma [
24], one can show that there is an infinite complete path
of the scheme
such that each node of the path
belongs to a complete path of the scheme
that is satisfiable in the class
K. Therefore, the set of formulas
is finitely satisfiable in
K. Taking into account that the class
K has the property of compactness, we obtain that the set of formulas
is satisfiable in
K. Thus, there is an infinite complete path in
S that is satisfiable in the set
K, but this is impossible. □
Theorem 1. A nonempty class K of structures of the signature σ is program-saturated if and only if it has the property of compactness.
Proof. Let K have the property of compactness and S be a total relative to K scheme of the signature . Using Lemma 1, we obtain that is a finite tree-scheme of the signature . Evidently, the scheme S is strongly equivalent relative to the class K to the scheme . Therefore K is a program-saturated class.
Let
K not have the property of compactness. Then there exists a number
and a finitely satisfiable in the class
K set of formulas
, which is not satisfiable in the class
K. Let
. We denote by
a scheme of the signature
, where
G is the graph depicted in
Figure 1. Since the set
is not satisfiable in the class
K, the scheme
S is total relative to
K. Taking into account that the set
is finitely satisfiable in the class
K, one can show that the set of complete paths of
S that are satisfiable in the class
K is infinite. Therefore, there is no finite tree-scheme of the signature
, which is strongly equivalent relative to the class
K to the scheme
S. Thus, the class
K is not program-saturated. □
A theory of the signature is a nonempty set T of sentences of the signature . A model of the theory T is a structure of the signature for which all sentences from T are true. The theory T is called complete if, for any sentence of the signature , either or
Definition 9. A class K of structures of the signature σ is called axiomatizable if there exists a theory T of the signature σ such that the set of models of T coincides with the class K.
The next lemma follows directly from Proposition 2.2.7 [
23].
Lemma 2. Let T be a theory of the signature σ and . Then, the following statements are equivalent:
(a) T has a model in which Φ is satisfiable.
(b) Every finite subset of Φ is satisfiable in some model of T.
Theorem 2. Any nonempty axiomatizable class K of structures of the signature σ is program-saturated.
Proof. Let K be a nonempty axiomatizable class of structures of the signature , , , and the set of formulas be finitely satisfiable in the class K. Using Lemma 2, we obtain that the set is satisfiable in the class K. Therefore, the class K has the property of compactness. By Theorem 1, the class K is program-saturated. □
We now consider examples of axiomatizable classes of structures (see (pp. 38–41, [
23])):
Classes of Boolean algebras, atomic Boolean algebras, and atomless Boolean algebras.
Classes of groups; abelian groups; abelian groups with all elements of order p, where p is a prime; and torsion-free abelian groups.
Classes of commutative rings with unit; fields; fields of characteristic p, where p is a prime; fields of characteristic zero; algebraically closed fields; and real closed fields.
4. Program-Saturated Structures
This section is devoted to the study of individual structures, each of which forms a class that has the property of compactness. Such structures include, in particular, all models of cardinality of -categorical theories. An example of such a model is the field of complex numbers.
Definition 10. Let U be a structure of the signature σ. The structure U will be called program-saturated if the class is program-saturated.
We denote by the theory of the structure U: the set of all sentences of the signature that are true in U. It is clear that the theory is complete. Let and .
Definition 11. We will say that the set Φ is consistent with the theory if there exists a model of the theory in which the set Φ is satisfiable.
Lemma 3. A set is consistent with the theory if and only if the set Φ is finitely satisfiable in the class .
Proof. Let be finitely satisfiable in the class . Using Lemma 2, we obtain that is consistent with the theory .
Let be consistent with the theory . Let . Using the completeness of the theory , we obtain that the sentence belongs to the theory . Therefore, the set of formulas is satisfiable in U. Thus, the set is finitely satisfiable in the class . □
Let U be a structure of the signature with the universe A and . We denote by the signature obtained from by adding constant symbol for any element . We denote by the expansion of the structure U to the signature such that each new constant symbol is interpreted as the element a.
Definition 12. Let α be a cardinal. The structure U is called α-saturated if, for any set with cardinality less than α, for any set of formulas , which is consistent with the theory , the set Φ is satisfiable in . The structure U is called saturated if it is -saturated.
Definition 13. Let α be a cardinal. A theory T of the signature σ is called α-categorical if T has a model of cardinality α and every two models of T of the cardinality α are isomorphic.
The next lemma follows directly from Proposition 2.3.6 [
23].
Lemma 4. Let U be an ω-saturated structure of the signature σ with the universe A and . Then, for each finite , each set of formulas consistent with the theory is satisfiable in .
Using statement (b) from the proof of Theorem 2.3.13 [
23], we obtain the following lemma.
Lemma 5. Let T be a complete ω-categorical theory of the signature σ. Then, T has a countable ω-saturated model.
The next lemma follows directly from Corollary 7.1.8 [
23].
Lemma 6. Let α be an uncountable cardinal and T be a complete theory of the signature σ, which has infinite models. Then, T is α-categorical if and only if every model of T of cardinality α is saturated.
Theorem 3. Let U be a structure of the signature σ and α be a cardinal.
(a) If U is an ω-saturated structure, then U is a program-saturated structure.
(b) If U is a model of the cardinality α of an α-categorical theory T, then U is a program-saturated structure.
Proof. (a) Let U be an -saturated structure. Using Lemma 4, we obtain that, for any , any set of formulas consistent with the theory is satisfiable in U. Using Lemma 3, we obtain that the class has the property of compactness. From here and from Theorem 1, it follows that U is a program-saturated structure.
(b) Let U be a model of the cardinality of an -categorical theory T. If U is a finite structure, then, evidently, U is a program-saturated structure.
Let be an infinite cardinal. Evidently, is an -categorical complete theory. If U is a countable structure, then using Lemma 5 and the completeness of the theory , we obtain that U is an -saturated structure. If is an uncountable cardinal, then using Lemma 6 and the completeness of the theory , we obtain that U is a saturated and consequently -saturated structure. Using statement (a) of the theorem, we obtain that U is a program-saturated structure. □
Corollary 1. The following structures (see definitions in [23]), each of which, for some cardinal α, is a model of the cardinality α of an α-categorical theory, are program-saturated: Countable atomless Boolean algebra (see Proposition 1.4.5 [23]). Abelian group with all elements of order p, where p is a prime number (see Proposition 1.4.7 [23]). Uncountable divisible torsion-free abelian group (see Proposition 1.4.8 [23]), in particular, the additive group of real numbers . Uncountable algebraically closed field of the characteristic zero or p, where p is a prime number (see Proposition 1.4.10 [23]), in particular, the field of complex numbers .
5. Elementary Extensions
In this section, we study the possibility of elementary extension of the structure to a structure that is program-saturated. We show that this is always possible and find the minimum cardinality of such an extension.
Definition 14. Let and . The n-type of the structure U of the signature σ is any finitely satisfiable in set of formulas of the form , where, for any , and , .
Lemma 7. A structure U of the signature σ is program-saturated if and only if, for any , any n-type of the structure U is satisfiable in U.
Proof. Let the structure U be program-saturated. Using Theorem 1, we obtain that, for any , any n-type of the structure U is satisfiable in U.
Let, for any , any n-type of the structure U be satisfiable in U. Let and the set be finitely satisfiable in . Using Lemma 3, we obtain that is satisfiable in some model of the theory on some tuple , where is the universe of the structure . Denote , where, for any , and . Using Lemma 3, we obtain that H is an n-type of the structure U. Hence, the set H is satisfiable in U. Taking into account that , we obtain that is satisfiable in U. Thus, the class has the property of compactness. Using Theorem 1, we obtain that U is a program-saturated structure. □
Let and be structures of the signature with universes and , respectively.
Definition 15. The structure is an extension of the structure if , each predicate of is the restriction of corresponding predicate of to , each function of is the restriction of corresponding function of to , and each constant of is the corresponding constant of . The notation means that is an extension of . If , we will say that is a substructure of .
Definition 16. We will say that is an elementary extension of if is an extension of and, for any formula and any n-tuple , if and only if . The notation means that is an elementary extension of . If , we will say that is an elementary substructure of .
Definition 17. The structures an are called elementary equivalent if, for any sentence φ of the signature σ, if and only if . The notation means that the structures an are elementary equivalent.
The next lemma follows directly from Proposition 3.1.1 [
23].
Lemma 8. (a) If , then .
(b) If , , and , then .
Let U be a structure of the signature and . We denote by the set of all n-types of the structure U.
Lemma 9. If a structure is an elementary extension of a structure , then .
Proof. Let . Using statement (a) of Lemma 8, we obtain that . From here and from Lemma 3 it follows that, for any , . □
The next lemma follows directly from Lemma 3.4 [
25].
Lemma 10. If Y is a set of cardinals, then is a cardinal.
Let be a cardinal. We denote by the successor of the cardinal , i.e., the least cardinal that is greater than . Denote .
The next lemma follows directly from Lemma 5.1.4 [
23].
Lemma 11. Let U be a structure of the signature σ with the universe A and α be a cardinal such that and . Then, there is an -saturated elementary extension of U of the cardinality .
The next lemma follows directly from Theorem 3.1.6 [
23].
Lemma 12. Let U be a structure of the signature σ with the universe A, and . Then, for any set with cardinality at most β, the structure U has an elementary substructure of cardinality β for which the universe contains B.
The next lemma follows directly from Lemma 5.2 [
25].
Lemma 13. Let S be a family of sets. Then, .
Let U be a structure of the signature with the universe A. For , we denote . If the set A is a finite set, we denote . If A is an infinite set, then denote . By Lemma 10, is a cardinal.
Theorem 4. Let be a structure of the signature σ.
(a) The cardinality of any program-saturated structure, which is an elementary extension of the structure , is greater than or equal to .
(b) There exists a program-saturated structure , which is an elementary extension of the structure and for which the cardinality is equal to .
Proof. Let be the universe of the structure .
(a) Let be a program-saturated elementary extension of the structure and be the universe of the structure . Evidently, . Therefore, if is a finite set, then . Let be an infinite set. Let . Since is a program-saturated structure, by Lemma 7, any n-type from is satisfiable in . Evidently, different n-types from are satisfiable on different n-tuples from . Therefore, . Since and is an infinite set, . Using Lemma 9, we obtain . Therefore, . Thus, .
(b) Let be a finite set. Evidently, is a program-saturated structure, , and the cardinality of is equal to . Therefore, in the capacity of , we can take .
Let be an infinite set. From Lemma 11 it follows that there exists an -saturated elementary extension of the structure . From Theorem 3 it follows that is a program-saturated structure. Using Lemma 7, we obtain that, for any , any n-type is satisfiable on some n-tuple , where is the universe of .
For an arbitrary , we denote and the set of all elements from belonging to the n-tuples from . If is a finite set, then . If is an infinite set, then, as it is not difficult to check, . Evidently, . Using Lemma 9, we obtain . Hence, . Denote . Taking into account that is an infinite cardinal and, for any , , and using Lemma 13, we obtain .
Denote , , and . Evidently, . Therefore, . Using Lemma 12, we obtain that there exists an elementary substructure of the structure such that and , where is the universe of . Using Lemma 9, we obtain that, for any , . Let . Since , , and any n-type is satisfiable on some tuple from , we obtain that any n-type is satisfiable on some tuple from . Using Lemma 7, we obtain that is a program-saturated structure. Evidently, and . Taking into account that , it is not difficult to show that is a substructure of the structure , i.e., . Using statement (b) of Lemma 8, we obtain . It is easy to show that . Using statement (a) of the theorem, we obtain that the cardinality of the structure is equal to . □
6. Computation Programs and Computation Trees
This section is devoted to the transfer of the obtained results to programs that are essentially close to the computation trees: if the scheme of such a program is a finite tree-scheme, then the program is an ordinary computation tree.
Let be a finite or countable signature. We now define the notions of primitive term and primitive formula of the signature .
A primitive term of the signature is a term of the signature of the following form:
A variable from the set X.
A constant symbol from the signature .
A term , where f is a function symbol of arity m from and .
A primitive formula of the signature is a formula of the signature of the following form:
The formula , where = is the equality symbol and .
The formula , where p is a predicate symbol of arity m from and .
Definition 18. Let be a scheme of the signature σ. This scheme will be called a computation scheme if each of its function nodes is labeled with an expression of the form , where t is a primitive term of the signature σ and , and each its predicate nodes is labeled with a primitive formula of the signature σ.
Definition 19. Let U be a structure of the signature σ and be a program over the structure U. The program Γ will be called a computation program over the structure U if S is a computation scheme.
Definition 20. A computation scheme of the signature σ will be called a computation tree-scheme of the signature σ if G is a tree with the root that coincides with the initial node of G. A computation tree-scheme of the signature σ will be called finite if G is a finite tree.
Definition 21. Let U be a structure of the signature σ and be a program over the structure U. The program Γ will be called a computation tree over the structure U if S is a finite computation tree-scheme.
6.1. Computation-Program-Saturated Classes of Structures
In this section, some results related to computation-program-saturated classes of structures are considered.
Definition 22. A nonempty class K of structures of the signature σ will be called computation-program-saturated if any total relative to K computation scheme of the signature σ is strongly equivalent relative to K to a finite computation tree-scheme of the signature σ.
It is clear that any program-saturated class K is a computation-program-saturated class. Using Theorem 1, we obtain the following statement.
Proposition 1. If a nonempty class K of structures of the signature σ has the property of compactness, then it is computation-program-saturated.
The next statement follows from Theorem 2.
Proposition 2. Any nonempty axiomatizable class K of structures of the signature σ is computation-program-saturated.
The following examples of axiomatizable classes of structures have already been considered:
Classes of Boolean algebras, atomic Boolean algebras, and atomless Boolean algebras.
Classes of groups; abelian groups; abelian groups with all elements of order p, where p is a prime; and torsion-free abelian groups.
Classes of commutative rings with unit; fields; fields of characteristic p, where p is a prime; fields of characteristic zero; algebraically closed fields; and real closed fields.
6.2. Computation-Program-Saturated Structures
In this section, some results related to computation-program-saturated structures are considered.
Definition 23. Let U be a structure of the signature σ. The structure U will be called computation-program-saturated if the class is computation-program-saturated.
The next statement follows from Theorem 3.
Proposition 3. Let U be a structure of the signature σ and α be a cardinal.
(a) If U is an ω-saturated structure, then U is a computation-program-saturated structure.
(b) If U is a model of the cardinality α of an α-categorical theory, then U is a computation-program-saturated structure.
It has already been mentioned that each of the following structures is, for some cardinal , a model of the cardinality of an -categorical theory:
Countable atomless Boolean algebra.
Abelian group with all elements of order p, where p is a prime number.
Uncountable divisible torsion-free abelian group, in particular, an additive group of real numbers .
Uncountable algebraically closed field of the characteristic zero or p, where p is a prime number, in particular, the field of complex numbers .
Each of these structures is a computation-program-saturated structure.
6.3. Elementary Extensions
In this section, we consider the possibility of elementary extension of the structure to a structure that is computation-program-saturated. In
Section 5, for any structure
U, we defined a cardinal
. The next statement follows from Theorem 4.
Proposition 4. Let be a structure of the signature σ. Then, there exists a computation-program-saturated structure , which is an elementary extension of the structure and of which cardinality is equal to .
7. Conclusions
In this paper, program-saturated classes of structures were studied. It was proven that a necessary and sufficient condition for a class to be program-saturated is its compactness. It was also shown that any axiomatizable class of structures is program-saturated. Additionally, individual structures were examined, with each forming a class that is program-saturated. It was demonstrated that such structures include all models of the cardinality of -categorical theories.
The possibility of an elementary extension of a structure to one for which the corresponding singleton class of structures is program-saturated was studied. It was shown that such an extension is always possible, and the minimum cardinality of such an extension was determined. Finally, the obtained results were applied to programs that are essentially close to computation trees.
These results are of interest for applications. For instance, the field of complex numbers is a computation-program-saturated structure. As a result, when constructing a total computation program over this structure to solve a task, it is sufficient to consider only computation trees over . This significantly simplifies the problem.