CN117311678A - Equivalent embedding method for synthesizing program module sequencing group function of AI system - Google Patents

Equivalent embedding method for synthesizing program module sequencing group function of AI system Download PDF

Info

Publication number
CN117311678A
CN117311678A CN202310991958.0A CN202310991958A CN117311678A CN 117311678 A CN117311678 A CN 117311678A CN 202310991958 A CN202310991958 A CN 202310991958A CN 117311678 A CN117311678 A CN 117311678A
Authority
CN
China
Prior art keywords
sequence
program
tight
order
program module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310991958.0A
Other languages
Chinese (zh)
Other versions
CN117311678B (en
Inventor
张霄
黄虹银
马程
邓科
梁倩云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan University
Original Assignee
Sichuan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan University filed Critical Sichuan University
Priority to CN202310991958.0A priority Critical patent/CN117311678B/en
Publication of CN117311678A publication Critical patent/CN117311678A/en
Application granted granted Critical
Publication of CN117311678B publication Critical patent/CN117311678B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an equivalent embedding method for synthesizing a program module sequencing group function of an AI system, which comprises the following steps: according to the structure of the AI system flow graph, establishing a program topology space and a program module class topology space, carrying out sequence classification on the program modules by establishing a sequence classification operator and a sequence point judgment operator, and establishing sequence relations among the program modules according to the sequence classification; obtaining the maximum tight sequence of the sequence relation among the program modules according to the tight sequence, and carrying out function synthesis extraction of the sequential assembly of the program modules on the AI system function modules according to the maximum tight sequence; and carrying out formal semanteme on language components of the program language by using formal semanteme to obtain a program flow diagram, obtaining a maximum tight sequence according to the program flow diagram, and obtaining a formal semantic module of an output result of a corresponding functional module according to the maximum tight sequence to complete equivalent embedding of program module sequencing assembly function synthesis of the AI system.

Description

Equivalent embedding method for synthesizing program module sequencing group function of AI system
Technical Field
The invention relates to the field of computers, in particular to an equivalent embedding method for synthesizing a program module sequencing group connection function of an AI system.
Background
For a certain determined AI system, how to split the AI system automatically according to the function size of the AI system can be divided into a plurality of functional modules, so that the local and the whole functions of the AI system are better and objectively described, a user in the non-AI related professional field can objectively and directly understand the AI system, and therefore, the user can propose the suggestion and the requirement of the user for the function and the operation of the AI system by combining the professional knowledge of the user, and the AI system cannot be split automatically according to the function size of the user in the prior art.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides an equivalent embedding method for synthesizing a program module sequencing group function of an AI system, which comprises the following steps:
step one, establishing a program topology space and a program module class topology space according to the structure of an AI system flow graph, carrying out order classification on program modules by establishing an order classification operator and an order point judgment operator, and establishing an order relation among the program modules according to the order classification;
step two, based on the sequence relation among the program modules, obtaining the maximum sequence of the sequence relation among the program modules according to the sequence, and carrying out function synthesis extraction of the sequence assembly of the program modules on the AI system function modules according to the maximum sequence;
And thirdly, carrying out formal semanteme on language components of the program language by using formal semanteme to obtain a program flow diagram, obtaining a maximum tight sequence according to the program flow diagram, obtaining formal semantic modules of output results of corresponding functional modules according to the maximum tight sequence, and completing equivalent embedding of program module sequencing and assembly function synthesis of the AI system.
Further, the establishing a program topology space and a program module class topology space according to the structure of the AI system flow diagram includes:
the set of program modules is called a program set, any of which program modules X i Referred to as element X in a program set i For any program setBy->Is a set of elements:
called asPower set of->Is>Called->Is a subset family of (a);
the program topology space is as follows:
is a collection->Called a topological space, if the set +.>The method meets the following conditions:
(i)
(ii) AggregationAny two of which are open>Satisfy->
(iii)Is>
The open set of program topology space is a set of a plurality of program modules, and the program topology space isI.e.
The program module class topology space is as follows: if Y is a finite set of n program module classes, then the order of Y is called n, and is expressed as |Y|=n or Y n The method comprises the steps of carrying out a first treatment on the surface of the The open set of the program module class topology space is a set of a plurality of program module classes, and the program module class topology space is thatI.e. < ->
Further, the step of establishing the sequence relation between the program modules by establishing the sequence classification operator and the sequence point judgment operator to perform sequence classification on the program modules comprises the following steps:
the sequence classification operator T i The method comprises the following steps: x is to be i Mapping to space-like pseudo-substrate Y j :T i X i =Y j Wherein X is i Y is a pseudo substrate in program space j The method is characterized in that the method is a pseudo substrate in a class space, and the pseudo substrate is a program module and a program module class which are irrelevant in characteristics in a program space and a program module class space; obtaining the type of the program module through the sequence classification operator;
the sequence point judgment operator M is as follows: the method is used for judging and classifying the sequence starting point, the sequence ending point and the residual points; the sequence starting point is a sequence starting point of a first program module of a program with a complete function module, and the sequence ending point is a sequence ending point of a last program module of a program with a complete function module; the residual points are program modules which are neither sequence starting points nor sequence ending points; and judging the classification of the program modules and the tight sequence relation among the program modules through a sequence point judging operator.
Further, the tightening sequence is as follows: is provided withFor n in program topology space (n.gtoreq.1 and +.>) Program modules, if the n program modules->After execution in sequence, the program can run, +.>Sequentially form a tight sequence relationship, which is marked as +.>
Further, the maximum tight sequence is as follows: no extremely small tight sequence is used as a subsequent tight sequence of the tight sequence, and no extremely small tight sequence takes the tight sequence as the subsequent tight sequence, and the extremely large tight sequence is obtained;
the minimum tight sequence is a tight sequence without a true tight sequence, and the true tight sequence is as follows: is provided withFor n program modules in the program topology space, and +.>Is a tight order, if s is present (s is not less than 1 and not more than n and +.>) Personal program module->Satisfy the tight order relation->Then call->Is that Is a sub-tight sequence of (2); if it also holds s<n is->Is->Is a true sequence of the seeds;
the subsequent tight sequence is as follows: is provided withFor n+m program modules in the program topology space, and +.>Are all in tight order, if Also in tight order, called->Is->Is a subsequent order of the sequence.
Further, the function synthesis extraction for performing program module sequential assembly on the AI system function module according to the maximum tight sequence includes:
according to the program modules of the AI system and the tight sequence relation of the program modules, traversing all the extremely tight sequences to complete the function synthesis extraction of the program module ordered assembly.
The beneficial effects of the invention are as follows: the method comprises the steps of firstly establishing a program topological space and a program module class topological space, and completing order classification of program modules by establishing a classification operator and an order point judgment operator. After completing the order classification, we define a new order relation, i.e. a tight order, thus determining the ordered set of "granularity program modules". Based on order classification and order assembly, we provide a method for functional synthesis and extraction of program module order assembly by searching for a very tight order.
Drawings
FIG. 1 is a flow chart of an equivalent embedding method for program module sequencing batch function synthesis of an AI system;
FIG. 2 is a schematic diagram of example 1 in close-order;
FIG. 3 is a schematic diagram of example 2 in close-order;
FIG. 4 is a schematic diagram of a tight sequence and sub-tight sequence;
FIG. 5 is a schematic diagram of a tight sequence and a subsequent tight sequence;
FIG. 6 is a schematic diagram of tight and maximum tight sequences;
FIG. 7 is a schematic diagram of a tight sequence and nodes thereof;
FIG. 8 is a schematic diagram of a sequential convergence example 1;
FIG. 9 is a schematic diagram of a sequential convergence example 2;
FIG. 10 is a schematic diagram of an example tight sequence set error;
FIG. 11 is a schematic diagram of an example tight sequence of program modules;
FIG. 12 is a schematic diagram of an example tight sequence of program modules;
FIG. 13 is a schematic diagram of an example program code;
fig. 14 is a program flow diagram example schematic.
Detailed Description
The technical solution of the present invention will be described in further detail with reference to the accompanying drawings, but the scope of the present invention is not limited to the following description.
For the purpose of making the technical solution and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the particular embodiments described herein are illustrative only and are not intended to limit the invention, i.e., the embodiments described are merely some, but not all, of the embodiments of the invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present invention. It is noted that relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The features and capabilities of the present invention are described in further detail below in connection with the examples.
As shown in fig. 1, the equivalent embedding method for synthesizing the program module sequencing batch function of the AI system is characterized by comprising the following steps:
step one, establishing a program topology space and a program module class topology space according to the structure of an AI system flow graph, carrying out order classification on program modules by establishing an order classification operator and an order point judgment operator, and establishing an order relation among the program modules according to the order classification;
step two, based on the sequence relation among the program modules, obtaining the maximum sequence of the sequence relation among the program modules according to the sequence, and carrying out function synthesis extraction of the sequence assembly of the program modules on the AI system function modules according to the maximum sequence;
And thirdly, carrying out formal semanteme on language components of the program language by using formal semanteme to obtain a program flow diagram, obtaining a maximum tight sequence according to the program flow diagram, obtaining formal semantic modules of output results of corresponding functional modules according to the maximum tight sequence, and completing equivalent embedding of program module sequencing and assembly function synthesis of the AI system.
The establishing a program topology space and a program module class topology space according to the structure of the AI system flow graph comprises the following steps:
the set of program modules is called a program set, any of which program modules X i Referred to as element X in a program set i For any program setBy->Is a set of elements:
called asPower set of->Is>Called->Is a subset family of (a);
the program topology space is as follows:
is a collection->Called a topological space, if the set +.>The method meets the following conditions:
(i)
(ii) AggregationAny two of which are open>Satisfy->
(iii)Is>
The open set of program topology space is a set of a plurality of program modules, and the program topology space isI.e.
The program module class topology space is as follows: if Y is a finite set of n program module classes, then the order of Y is called n, and is expressed as |Y|=n or Y n The method comprises the steps of carrying out a first treatment on the surface of the The open set of the program module class topology space is a set of a plurality of program module classes, and the program module class topology space is that I.e. < ->
The program modules are classified in sequence by establishing a sequence classification operator and a sequence point judgment operator, and the sequence relation among the program modules is established according to the sequence classification, comprising the following steps:
the sequence classification operator T i The method comprises the following steps: x is to be i Mapping to space-like pseudo-substrate Y j :T i X i =Y j Wherein X is i Y is a pseudo substrate in program space j The method is characterized in that the method is a pseudo substrate in a class space, and the pseudo substrate is a program module and a program module class which are irrelevant in characteristics in a program space and a program module class space; obtaining the type of the program module through the sequence classification operator;
the sequence point judgment operator M is as follows: the method is used for judging and classifying the sequence starting point, the sequence ending point and the residual points; the sequence starting point is a sequence starting point of a first program module of a program with a complete function module, and the sequence ending point is a sequence ending point of a last program module of a program with a complete function module; the residual points are program modules which are neither sequence starting points nor sequence ending points; and judging the classification of the program modules and the tight sequence relation among the program modules through a sequence point judging operator.
The tight sequence is as follows: is provided withFor n in program topology space (n.gtoreq.1 and +.>) Program modules, if the n program modules- >After execution in sequence, the program can run, +.>Sequentially form a tight sequence relationship, which is marked as +.>
The maximum tight sequence is as follows: no extremely small tight sequence is used as a subsequent tight sequence of the tight sequence, and no extremely small tight sequence takes the tight sequence as the subsequent tight sequence, and the extremely large tight sequence is obtained;
the minimum tight sequence is a tight sequence without a true tight sequence, and the true tight sequence is as follows: is provided withFor n program modules in the program topology space, and +.>Is a tight order, if s is present (s is not less than 1 and not more than n and +.>) Personal program module->Satisfy the tight order relation->Then call->Is that Is a sub-tight sequence of (2); if it also holds s<n is->Is->Is a true sequence of the seeds;
the subsequent tight sequence is as follows: is provided withFor n+m program modules in the program topology space, and +.> Are all in tight order, if-> Also in tight order, called->Is->Is a subsequent order of the sequence.
The function synthesis extraction of program module sequential assembly is carried out on the AI system function module according to the maximum tight sequence, and the method comprises the following steps:
according to the program modules of the AI system and the tight sequence relation of the program modules, traversing all the extremely tight sequences to complete the function synthesis extraction of the program module ordered assembly.
The method comprises the steps of firstly establishing a program topological space and a program module class topological space, and completing order classification of program modules by establishing a classification operator and an order point judgment operator. After completing the order classification, we define a new order relation, i.e. a tight order, thus determining the ordered set of "granularity program modules". Based on order classification and order assembly, we provide a method for functional synthesis and extraction of program module order assembly by searching for a very tight order. On the basis of the above work, we complete the equivalent embedding work of the program module sequential assembling function synthesis, give the equivalent embedding method of the program module sequential assembling function synthesis, and select a more representative illustration to show and explain the equivalent embedding method.
2. Determining order classification of granularity program modules
In order to enable the sequence classification operator and the sequence point judgment operator to better perform corresponding sequence classification and judgment on the program modules, a program topology space and a program module class topology space are established, and the sequence classification operator and the sequence point judgment operator are defined on the basis.
Program topology space
Introducing a concept of a program module, namely researching abstract commonalities after the individuality of the program is removed and dividing intervals in order to examine the overall characteristics and the structure of the program; secondly, the language of the program is very simple, various connotations of the study objects can be distinguished more carefully, and the method has strong generalization when the possibility of various combinations is examined.
To order to sort program modules sequentially, we consider building a program topology space and analyzing the nature of the program topology space. To build a program topology space we first need to define a program collection and further build the program topology space on its basis and analyze its properties.
1. Program set
Whereas we have divided programs into modules, these modules imply a specific variety of implementation code. We then define the program set as follows:
Definition 1 (program set) the set of all program modules is called program set, any of which program modules X i Referred to as element X in a program set i .
Definition 2 (power set) for any program setBy->Is a set of elements:
called asA power set of (a).Is>Called->Is a subset family of (a).
In order to discover the implicit rules among program modules, the program modules are better classified by utilizing mathematical abstract languages, and a program topology space is further defined on the basis of a program set.
2. Program topology space
In order to discover the implicit rules among program modules, the program modules are better classified by utilizing mathematical abstract languages, and a program topology space is further defined on the basis of a program set.
To define a program topology space, we first give its topology definition as follows:
is a collection->Called a topological space, if the set +.>The following axiom is satisfied:
(i)
(ii) AggregationAny two of which are open>Satisfy->
(iii)Is>
On the basis of the definition above, we give the program topology space definition as follows:
definition 3 (program topology space) we define an open set of program topology space as a set of program modules, the program topology space being I.e. < ->
For this newly defined open set and program topology space, we verify three properties of the topology space below, thus explaining that the program topology space we define as such is well defined.
(i) Since the total number of program modules is a plurality of, we can obtain the program module set
(ii) Let A and B be as defined aboveIf a n B is also a set of program modules, and contains a plurality of program modules, so as to meet the definition of the open set;
(iii) Arbitrary to subset of program topology space Is also a collection of program modules, and +.>The number of program modules in the program topology space is not more than the number of program modules in the program topology space, thereby +.>Or a collection of program modules, thereby
Thus, we demonstrate that the program topology space in definition 3 does have a topology, and is thus a topology space.
3. Program topology spatial properties
After the program topology space is established, we further explore the nature of the space in order to better sort the program modules therein.
3.1, connectivity and first countability
Connectivity: if it isThere is no pair of non-empty subsets without crossing +.>And->Make- >We call->Is communicated.
Theorem 1 program topology space is connected.
The first number: in the program topology spaceIn any program module X, selecting a countable cluster of the neighborhood of X as:so that each neighborhood of X contains at least +.>Is an element of the group. In program topology space->Each point of (2) has a countable neighborhood base, so the program topology space is called +.>Is a first countable.
3.2 algorithm in program topology space
To better represent any complete program in program space, we need to define the algorithm between program modules:
definition 4 (program topology space operator) setFor serial operation of two programs in the topology space of the program, < > the two programs are operated in parallel>The two programs are operated in parallel.
It can be found that in the program topology spaceIn (I)>Satisfy exchange law, bond law, < >>And->Satisfy left distribution law, but->The switching law and the combining law are not satisfied.
(i)Not meeting the law of exchange
And (3) proving:indicating that run a is performed before run B,
indicating that run B is performed before run a,
indicating that the results of running A and then running B are the same as those of running B and then running A,
in actual operation, however, the order of execution of the two programs interchangeably does not always hold,
thereby making itThe switching law is not satisfied.
(ii)Not satisfy the law of binding
And (3) proving:representing that run a then run B, last run C,
representing that run B followed by run C, run a last,
indicating that run-in-order A, B, C and run-in-order B, C, A result are the same,
however, in actual operation, sequential operation A, B, C and sequential operation B, C, A are not always the same.
Thereby making itThe binding law is not satisfied.
(iii)The switching law is satisfied:
And (3) proving:representing the parallel operation of a and B,
representing running B and a in parallel,
indicating that parallel operation A, B and parallel operation B, A result are identical,
this is clearly true.
Thereby making itSatisfying the switching law.
(iv)The binding law is satisfied:
And (3) proving:representing that after parallel operation A and B, parallel operation is performed with C,
representing that the parallel operation B and C are performed, and then the parallel operation with the A is performed,
indicating that the two operation sequences have the same operation result,
this is clearly true.
Thereby making itSatisfying the binding law.
(v)And->The left allocation law is satisfied:
And (3) proving:indicating that the results after running C in parallel with A, B are run serially,
representing that C is run in parallel with the results of serial runs a and B respectively,
indicating that the results of the two sequences of operations described above are the same,
this is clearly true.
Thereby making itAnd->Satisfying the left allocation law.
We can also find out according to the characteristics of the procedure, And->The right allocation law is not satisfied. In fact, there is no +.>Such a representation.
(II) program module class topology space
The topological space of the program module class displays the trend or rule of the data structure of the program module class, associates the program module class which seems to be irrelevant, is helpful for understanding the functions and purposes of the complete program, and the structural relationship among the program module classes also has the property of keeping unchanged under the subsequent processing. We present mathematical definitions and related inferences of program module class space that facilitate our comparison when considering the whole and part of the program, and which visual representations to use.
The generalization of thinking is represented by its discarding of non-essential attributes of a class of things and its reflection of common essential features. Depending on the nature and purpose of the function, the classes of program modules may be divided into a limited number, and we can deduce the following:
definition 5 (program module class set) if Y is a finite set of n program module classes, then the order of Y is called n, noted |y|=n, or Y n .
Based on the topology space definition, we can give a detailed definition of the topology space of the program module class.
Definition 6 (program module class topology space) we define an open set of program module class topology spaces as a set of several program module classes, the program module class topology spaces beingI.e. < ->
For this newly defined open set and program topology space, we verify the three properties of the topology space below, thus explaining that the program module class topology space we define as such is well defined.
(i) Since the total number of program module classes is a plurality, we can obtain the set of program module classesIs defined as->
(ii) Let A and B be as defined aboveIf a n B is also a set of program module classes, and contains a plurality of program module classes, so as to meet the definition of the open set;
(iii) Subset of class topology space for arbitrary program modules Is also a collection of program module classes, and +.>The number of program module classes in the program topology space is not more than the number of program module classes, thereby +.>Or a collection of several classes of program modules, whereby +.>
Thus, we demonstrate that the program module class topology space in definition 3 does have a topology, and is thus a topology space.
Definition 7 (base of topology) set (Y n τ) is a class space, and, If for->May be represented as a sum of some program module classes in δ, then δ is referred to as a base of topology τ.
The definition of program module class and class space is obvious; each program moduleThe corresponding class of program modules may be found. However, the complete program is often an orderly combination of a plurality of programs, and the whole things are reproduced in thinking according to the internal connection of the programs. Without integration, the information materials of program thinking are fragmented and segmented, cannot be unified into a whole, and are difficult to know exactly about each part, side and attribute. If consider program module class Y n Classification and synthesis, we have the following definitions:
definition 8 (division) set Y n Is a class set, n is more than or equal to 2, if A, B is a non-empty program module class set of Y, and the following conditions are satisfied:
then { A, B } is referred to as Y n Is defined as a segment of the set of segments. Y is set to n The number of all possible segmentations is noted as y (n). From the meaning of the segmentation we can derive the following deductions:
deducing: if τ is Y n The topology above, it consists of four sets:
a and B are Y n If the non-space classification sets of (a) and (B) are not equal, then a and B must satisfy the condition:
or the collection { A, B } is Y n Is a partition of (a); or τ is a full ordered set of per-set inclusion relationships: Or->
One feature of class space is that there is no notion of program module class distance, whereas point-to-point relationships are to be built on the basis of other principles. The class space uses program module classes themselves as sets and thus exhibit various characteristics, which are useful in describing problems.
In designing a program's thinking, it is important to have the ability to evaluate the number of features of the program and to evaluate quantitative features related to its transformations and other programs. Class space is the space that destroys some of the thought logic and builds new thought logic. If the logic does not change, there is no transition from a mathematical topological point of view. It is possible to use class space to study program ideas, evaluate the complexity of programs, build new relationships between programs, and the topology of the programs determines their actual nature. It is also useful to use class space when studying program specific functions.
(III) order classification operator and order point judgment operator
1. Sequence classification operator
On the basis of the topological space, the convenience provided by the topological space is utilized, and the sequence classification is carried out on the programs, so that the programs are converted from all the programs into the categories, and a valuable structure is provided.
We need to determine the type of a program, and build a mapping of program space to class space, i.e. knownFor the program topology space, Y is the program module class topology space, X i Y is a pseudo substrate in program space j Is a pseudo base under a class space, and on the basis of the pseudo base and the sequence classification operator, the definition of the pseudo base and the sequence classification operator is given as follows:
definition 9 (pseudo-base) is a program module and a class of program modules that are required to be feature independent under program space and program module class space.
Wherein,
{Y j and } represents: { judgment; identifying; setting; acquiring; creating; modifying; conversion; calculating; searching; preserving; loading; ....;
{X i and } represents: { program modules }.
Definition 10 (order sort operator) T i Representing X i Mapping to space-like pseudo-substrate Y j :T i X i =Y j .
The procedure of program module sequence classification cannot be described by a simple mathematical procedure, one part of the program module sequence classification has a standard, the other part of the module sequence classification has a standard, the standards cannot be expressed by mathematical operators, and the standards exceed the definition of general operators and need to redefine and create new operators.
Assuming that we consider operators as a set, i.e. construct an operator space, we study the properties of the space made up of operators, and we can get a transformation from local to global consideration.
Definition 11 (order classification operator space) the order classification operator is regarded as an element to form a new operator space:representing from->An overall sequence classification operator to Y for any given +.>It does not satisfy:
(A+B)(X)=AX+BX;
(αA)(X)=αAx.
namely, a nonlinear operator space. Also here we present a representation of the total subset of calculations.
2. Sequence point judgment operator
While sorting program modules sequentially, we need to make special decisions about program modules that help us find out which program modules can be the start or end of a piece of program, and for such program modules we define as follows:
definition 12 (sequence starting point) for a program with complete functional modules, we define its first program module as the sequence starting point.
Definition 13 (sequence end point) for a segment of program with complete functional modules, we define its last program module as the sequence end point.
The presence of sequence start points and sequence end points, collectively referred to as sequence points, can help us extract program function modules more quickly and quickly because a complete function module must start with a sequence start point and end with a sequence end point. In this regard, we consider building a sequence point judgment operator to help us judge a program module as a sequence point.
First, general operators are discussed in the excipient space, however, the properties of the previously defined space do not give uniform metrics nor linear space. Thus, the operator defined herein does not have linearity. Meanwhile, the operators herein are unbounded, nonlinear, discontinuous. An operator as defined herein may be referred to as a "pseudo operator," or a "generalized operator. It has the functions of mapping operators, etc., and is discussed in non-linear space.
Definition 14 (sequence point judgment operator) definition operator M is used to judge and classify sequence start point, sequence end point, and remainder (program module which is neither sequence start point nor sequence end point is called remainder). Specifically: the operator M acts on the element X to be judged respectively, wherein X is any module in the set; the operator M acts on an element, and if the element meets any sequence point in three types, the output is 1.
For example: m (X) = (1, 0, 1) T Then it is determined that the element X can be either the order start or the order end, M (Y) = (1, 0) T Then it is determined that the element X can be the order start point but not the order end point, M (Z) = (0, 1, 0) T It is determined that the element X can be neither an order start nor an order end, where the output form is represented by a vector. It follows that the operator acts on any element and that the result is linear, which is a feature.
Here we can see that a program module is likely to be both an order start point and an order end point. By observing the vector output by the sequence point judgment operator, we can analyze the values of the different components to judge whether the corresponding program module is the sequence (final) point.
3. Determining ordered set of granularity program modules
On the basis of a program module topological space and a program module class topological space, the program modules in the program module topological space are sequentially classified by adopting a sequence classification operator, so that a sequence relation among the program modules can be better established; based on the sequence relation among the program modules, the sequence assembly of the granularity program modules can be determined, so that the aim of grading and extracting the function modules of the whole AI system according to a certain granularity is fulfilled.
By order relation we are familiar with a set that is "completely ordered in sequence" like an integer, rational number, real number, in which the relation between any two members is "ordered", i.e. can be relatively large. However, in objective practice, such "fully ordered" ordered sets are too ideal, and less than such "perfect" and "partially ordered" sets are more common. This is as follows:
And (3) partial sequence: if P is a set, the binary relation on P is called a partial order relation, if:
(i) Autoreactivity:
(ii) Antisymmetry:
(iii) Transmissibility:this time (P, <) is a partial sequence set. For any a, b e P, if a < b, then reading "a is contained in b" or "a is less than or equal to b">
As can be seen from the above definition, the partial order retains the "autoreactivity", "antisymmetry" and "transitivity" commonly used in the whole order, and removes the "completeness" of "any two objects can be compared in size". Although partial sequences have greater inclusion than full sequences, there are many contradictions and problems with partial sequences as the sequence relationships between program modules. For this, we assume that all program module groupsA partial sequence set P with binary relation (P, <) is formed, wherein < represents the running sequence of the program, and for any X i ,X j E P, we handle X i <X j Reading as "run first X j Rerun X i Next we will prove that the partial order relationship on set P is not true, specifically as follows:
(i) Does not satisfy the autoreactivity
And (3) proving: we optionally determine any program module X in the class i ,X i E P is made by autoreactivity
It can be seen that X i <X i X is true i <X i Representing two successive determinations
The operation is true.
In actual operation, however, it is meaningless to perform the judgment operation twice in succession,
so X is i <X i And is not true in practical applications.
The sequence relationships between program modules do not satisfy the autoreactivity.
(ii) Not meeting the antisymmetry
And (3) proving: we optionally program module X i And X is j ,X i ,X j ∈P,
As can be seen from the anti-symmetry,
then X is i <X j Representing "run first X j Re-execution of X i The word "is true,
X j <X i representing "run first X i Re-execution of X j The word "is true,
in actual operation, however, the order of execution of the two programs interchangeably does not represent
The two procedures have the same function as each other,
so X is i =X j This is not always true in practical applications.
The order relationship between program modules does not satisfy the antisymmetry.
(iii) Not meeting the transmissibility
And (3) proving: we optionally program module X i ,X j ,X k ,X i ,X j ,X k ∈P,
As can be seen from the transitivity,
then X is i <X j Representing "run first X j Re-execution of X i The word "is true,
X j <X k representing "run first X k Re-execution of X j "true.
At this time, however, "run X first k Re-execution of X i By way of example only, the program may report errors,
so X is i <X k This is not always true in practical applications.
The order relationship between program modules does not satisfy transitivity.
From the above, it can be seen that the partial sequence relationship is difficult to apply to the operation process of a section of program. Thus, we have tried to consider a higher degree of inclusion of a pre-order, but from the definition of pre-order it is known that pre-order, although not satisfying anti-symmetry, still needs to satisfy Self-reflexibilityAndtransmissibility ofThis indicates that there are also contradictions and problems with pre-ordering as an order relationship between program modules. So far, we note that the conventional sequence relationships are hardly used to characterize the running of programs.
For this, we consider the characteristics of the program at run time: firstly, program modules must be executed in sequence, and different execution sequences may have different functions; secondly, each program module is indispensable in the running process of the program, and if a certain program module is absent, errors may occur even if the rest of the program modules are executed in sequence. Based on this we have established a new order relation, defined as follows:
definition 15 (tight order) setFor n in program topology space (n.gtoreq.1 and +.>) Program modules, if the n program modules->After execution in order, the program can be run, we call +.>Sequentially form a tight sequence relationship, which is marked as +.>
For example: set X 1 ,X 2 ,X 3 The following sequence may be performed:
FIG. 2 compact example 1
Then X is 1 ,X 2 ,X 3 Can satisfy the tight sequence relation X 1 →X 2 →X 3 The method comprises the steps of carrying out a first treatment on the surface of the At the same time if X 1 ,X 2 ,X 3 The following may be performed in another order:
FIG. 3 compact example 2
Then X is 1 ,X 2 ,X 3 Can also satisfy the tight order relation X 2 →X 3 →X 1 Note that the two sequences are completely different sequences.
Based on the definition of the tight sequence, the mathematical conclusion of the tight sequence is more widely extended, and necessary mathematical definitions are provided, so that the tight sequence can be more finely characterized in running of the program. This allows us to build a ordered set of corresponding granularity program modules, thereby obtaining more accurately the function modules we want when extracting them. Thus, these necessary mathematical definitions we give the following:
Definition 16 (sub-tight order) setFor n program modules in program topology spaceAnd (2) andis a tight order, if s is present (s is not less than 1 and not more than n and +.>) Personal program module->Satisfy the tight order relation Then call->Is->Is a sub-tight sequence of (c). In addition, if also holds s<n is called->Is->Is a true sequence of the sequence.
For example: the method is provided with the following tight sequences:
(i)X 1 →X 2 →X 3 →X 4 →X 5
FIG. 4 order and sub-order
Then get X 1 ,X 2 ,X 3 ,X 4 ,X 5 ,X 1 →X 2 ,X 2 →X 3 ,X 3 →X 4 ,X 4 →X 5 ,X 1 →X 2 →X 3 ,X 2 →X 3 →X 4 ,X 3 →X 4 →X 5 ,X 1 →X 2 →X 3 →X 4 ,X 2 →X 3 →X 4 →X 5 Is X 1 →X 2 →X 3 →X 4 →X 5 Is a sub-tight sequence of (c).
From the above example, it is noted that the sub-sequences of a sequence are not unique, and if there are n program modules in a sequence, we can find that it has n very small sequences, n-1 sequences containing two program modules, and so on, that it has a sub-sequence ofAnd each. Thus we have illustrated a sub-compact ordering of a compact sequence of n program modulesAnd each.
Definition 17 (very little tight) tight sequences the tight sequences of no true sub tight sequences are called very little tight sequences (in fact, very little tight sequences are one program module).
Definition 18 (subsequent order) setFor n+m program modules in the program topology space, and +.> Are all in tight order, if Also in tight order, called->Is->Is a subsequent order of the sequence.
For example: the method is provided with the following tight sequences:
(i)X 1 →X 2 →X 3 →X 4 →X 5
FIG. 5 order and subsequent order
Then get X 2 →X 3 ,X 2 →X 3 →X 4 ,X 2 →X 3 →X 4 →X 5 Is X 1 →X 2 →X 3 →X 4 →X 5 Is a subsequent order of the sequence.
It is noted from the above examples that the following sequence of one sequence is not unique. At the same time, however, we can observe that since the elements contained in each individual tight order are deterministic and the order relationship between these elements is also deterministic, the subsequent minimal tight order is unique for each individual tight order. If we replace the subsequent minimal tight sequence, the resulting tight sequence is independent of the original tight sequence.
Definition 19 (extremely large compact) there is no extremely small compact as its subsequent compact nor is there any extremely small compact as it is the subsequent compact.
For example: the method is provided with the following tight sequences:
FIG. 6 tight sequence and maximum tight sequence
Then X is 1 →X 2 →X 3 →X 5 →X 7 ,X 1 →X 2 →X 3 →X 6 ,X 1 →X 2 →X 4 Is a very tight order.
Definition 20 (tight order node) if a very small tight order has more than one subsequent tight order, then the very small tight order is referred to as a tight order node.
For example: the method is provided with the following tight sequences:
FIG. 7 compact and node thereof
Then get X 2 ,X 3 Is a tight sequence node.
Furthermore, the existence of the order can help us find a possible relationship between two program modules, and for this, we give a definition of convergence of the order, specifically as follows:
definition 21 (convergence in order) for two program modules X in program topology space i ,X j If we can find a tight orderThen call X i In order of->Converging to X j .
Note that X can be made to be i Converging to X j More than one may be possible, as exemplified below:
for example: the method is provided with the following two tight sequences:
(i)X 1 →X 2 →X 3
FIG. 8 Convergence example 1 in order
(ii)X 1 →X 4 →X 3 As shown in FIG. 9
Then X is 1 Not only in order X 1 →X 2 →X 3 Converging to X 3 Also in order X 1 →X 4 →X 3
Converging to X 3 .
4. Functional synthesis extraction of program module ordered assembly
After the ordered assembly of the granularity program modules is established and determined by adopting the tight order, the functional synthesis of the ordered assembly of the program modules can be extracted on the basis, and a corresponding basis is established for the subsequent equivalent embedding method.
The function synthesis of the program module sequential assembly is extracted, so that the extremely tight sequence is required to be searched; for any program, to find the maximum order in the program, we consider all program modules in the program and the order relation relationship between them as a set with the order relation, called an order set. In connection with the definition of program modules and a tight sequence, we know that a tight sequence set is a "tree", i.e. it is not possible to appear as shown in FIG. 10;
for any one tight sequence setWe can prove +.>There must be a very tight order, which means thatIn any program, there must be a complete functional module, on the basis of which we can also prove stronger conclusions.
Theorem 2 given a tight sequence setThen->Any one of the sequences must be in +.>Is expanded into a very tight sequence, namely,any one of the sequences is necessarily contained in +.>In a very tight order.
And (3) proving: taking at willIn (1)/(4)>
If it isWith subsequent tightening->
According to the definition of the following tight sequence,
is available in the form ofAlso->In the order of the steps,
due toThe number of program modules in (a) is limited,
by means of a mathematical induction method,
we can get a new oneThe tightening sequence without subsequent tightening sequence is
And is also provided withIs a sub-sequence of the method,
similarly, ifIs->Is a certain order->Is used for the subsequent tight sequence of the (a),
is available in the form ofAlso->In the order of the steps,
by means of a mathematical induction method,
we can get a new oneTightening sequence without subsequent tightening sequence
To sum up we getIs extremely tight in (a)
And it usesIs a sub-sequence.
Thereby, theorem is proved.
The above theorem states that there must be a very large order in the tight order set in which there is a tight order, whereas since we define a tight order in the tight order set there must be a tight order (not considered hereIs an empty set) so that there must be a very high order in any one of the sequences, which also means that for any one of the programs that can run independently we can find at least one complete functional module from it. Note that although only the presence of a very large order in the tight order set is illustrated in the text of theorem, the specific form and the number of the presence are not pointed out. However, we present a method for constructing a very tight order by using a mathematical induction method in the proving process of theorem, which helps us to screen out a program module with complete functions from one program, namely, the very tight order.
It is desirable to organically combine program modules to form functional modules. By the division criteria of the functional modules and the program modules, the problem is transformed into finding the maximum tight order in the tight order set, and in the following we will give corresponding methods for different situations.
When facing a program flow diagram with a simpler structure and lower overall complexity, a mathematical induction method can be adopted to search out a maximum tight sequence step by step, the process can help us to analyze the geometric structure of the whole program flow diagram more accurately, understand the geometric operation logic of the program, and finally obtain a plurality of maximum tight sequences, which are also the required maximum tight sequences, and the specific mathematical induction method is given in theorem 2, and the general idea is as follows:
in order to find a very tight order with mathematical induction, we first give the following definition.
Definition 22 (tight sequence set cutoff point) in a tight sequence set, if a very small tight sequence has no subsequent tight sequence, the very small tight sequence is defined as tight sequence set cutoff point.
Definition 23 (starting point of tight sequence) if a very small tight sequence does not have a tight sequence with it as the subsequent tight sequence, the very small tight sequence is defined as the starting point of tight sequence.
Particularly, in practical situations, the input of the starting point of the tight sequence is the input of the whole program, and the output of the cut-off point of the tight sequence is the output of the whole program.
For a tight sequence set formed by a plurality of limited program modules and sequence relations thereof, a mathematical induction method is considered, but node choosing and sorting problems easily occur from a tight sequence starting point to a tight sequence cut-off point in a one-by-one manner according to the tight sequence relations, so that the tight sequence starting point is considered from the tight sequence cut-off point to the tight sequence starting point in a one-by-one manner. As will be seen from the following theorem, such an order is the very large order we need to find.
Theorem 3. A compact is a very large compact, the constraint that the compact converges from a compact starting point to a compact cut-off point.
And (3) proving: one tight order is a very large tight order;
the method has no subsequent tight sequence, and has no tight sequence and takes the subsequent tight sequence as the subsequent tight sequence;
the method comprises a tight sequence set starting point and a tight sequence set intercepting point;
it converges from a tight sequence starting point to a tight sequence cut-off point.
Thereby theorem is complete.
For example: let a, b, c, d, e, f, g, h, i, j, k be the program module in the program topology space and have the following example of a tight sequence of program modules of flowchart 11;
considering the above flowchart as a tight sequence set, we can know that a is the tight sequence set start point and e, h, k, j is the tight sequence set cut-off point.
e is the subsequent tight sequence of d, d is the subsequent tight sequence of c, c is the subsequent tight sequence of b, b is the subsequent tight sequence of a, so that we get a tight sequence a- →b- →c- →d- > e converging from a to e in order, i.e. a maximal tight sequence.
h is the subsequent tight sequence of g, g is the subsequent tight sequence of f, f is the subsequent tight sequence of b, and b is the subsequent tight sequence of a, so that we obtain a tight sequence a- & gtb- & gtf- & gtg- & gth converging from a to h in order, i.e. a maximum tight sequence.
k is the subsequent order of i, i is the subsequent order of g, g is the subsequent order of f, f is the subsequent order of b, b is the subsequent order of a, so we get a order a- & gtb- & gtf- & gtg- & gti- & gtk converging from a to k in order, i.e. a maximum order.
j is the subsequent order of i, i is the subsequent order of g, g is the subsequent order of f, f is the subsequent order of b, b is the subsequent order of a, so we get a order a- & gtb- & gtf- & gtg- & gti- & gtj converging from a to k in order, i.e. a maximum order.
Looking at the above mathematical induction method, we can find that the mathematical induction method has extremely strong regularity when searching for extremely tight sequences, and many operations are highly repeated, which can be completely realized by using a computer instead, and the mathematical induction method can be well algorithmic.
Meanwhile, the geometric limitation can be jumped out, and the maximum tight sequence can be found out from the algebraic point of view through the operation relation existing between the tight sequences, and the specific method is as follows:
reviewing the definition we give in the program topology space and its properties:
is provided withSerial operation for program topology space program module>And (5) performing parallel operation on the program modules. Wherein (1)>Satisfy exchange law, bond law, < >>And->Satisfy left distribution law, but->The switching law and the combining law are not satisfied.
With the above definition and properties, we can express the program modules and their tight sequences by these two operations. So we get the expression about the program module and reuse And->Spread it to obtain one arbitrary +.>Expressions that are not in any brackets. And these->Only +.>The expression of (2) is the extremely tight order we want to find.
For example: let a, b, c, d, e, f, g, h, i, j, k be the program module in the program topology space and have the following flowchart 12;
we can map the program into program topology spaceAnd->The expression is as follows: />
The above method comprises the steps of:
thereby four extremely tight sequences are obtained:
a→b→c→d→e
a→b→f→g→h
a→b→f→g→i→k
a→b→f→g→i→j
we can find that both algorithms can traverse all possible very tight sequences.
Based on the two methods, according to different situations, different algorithms can be selected to find the needed maximum tight sequence, and after finding the maximum tight sequence, the function synthesis extraction of the corresponding program module ordered assembly is completed. On this basis, we can further study the equivalent embedding of program module sequential group function synthesis.
5. Equivalent embedding for program module sequencing and assembling function synthesis
Equivalent embedding method for functional synthesis
In order to complete the equivalent embedding of the program module sequencing group function synthesis, we first observe the structure of the whole AI system flow graph, construct a set of program modules and program module classes, discuss the nature of the set, and then further define a new special topology space on the basis of the set. By researching the special structure and the related property of the topological spaces, definition of a sequence classification operator and a sequence point judgment operator is given on the basis of the topological spaces, and finally the sequence classification of the granularity program modules is determined, a regular space is constructed for the sequence assembly of the program modules, so that the sequence relation can be prevented from being deconstructed from a plurality of disordered program modules.
After the program modules are subjected to corresponding sequence classification and judgment by adopting the sequence classification operator and the sequence point judgment operator, the sequence relation among the program modules is further constructed. Firstly, we consider the traditional sequence relations of full sequence, partial sequence, pre-sequence and the like, but the traditional sequence relations have a plurality of intrinsic contradictions when describing program operation, so, aiming at the characteristic that program modules need to operate according to specific logic sequence, we develop the definition of 'tight sequence' specially used for describing the sequence relations among the program modules based on the partial theory of the traditional sequence relations, and research and analysis are carried out on the relevant properties of the definition. Finally, the structural relation of the whole AI system is analyzed and abstracted through tight sequence, and the function synthesis and extraction of the program module sequence assembly are completed.
After the function synthesis and extraction of the program module sequential assembly are completed, the equivalent embedding of the program module sequential assembly function synthesis is performed by taking formal semantics as a theoretical basis. First, we abstract the language components of the program language using formal semantics. Secondly, after the formal semanticalization of the program language is completed, we present a formal language that can describe the program language completely. Here, we not only provide the algorithm and mapping rule of calculation, transfer and reduction among expressions, states and sentences by mathematical methods such as abstract summary, inductive summary and analog deduction, but also prove the terminacy, max, reachability and Church-Rosser property, and form corresponding propositions, theorem, definition and deduction. By utilizing the properties, an equivalent embedding method for synthesizing the program module sequencing and assembling functions is provided.
(II) equivalent embedding instantiation of functional Synthesis
After obtaining the equivalent embedding method of the functional synthesis, in order to further verify the correctness and show the superiority of the method, we need to select a code with a representative form and proper complexity as an example, and use the equivalent embedding method to perform equivalent embedding on the code, the specific code is shown in figure 13,
for the above code, it represents data, variables, and objects with Name; s represents a sentence; bloch i Representing the code blocks. The code defines a class and initializes the class, and defines a method of the class. For this code we give a more specific explanation as follows:
(i) If the input data format is assumed to be 280×280×3, the number of channels (in_channels) of the input convolution layer is 3.
(ii) For convolution: conv2d (in_channels, 32,3, stride=1, pad=0, bias=false), the contents in brackets are in order: the number of channels (scalar) of input convolutional layer data, the number of channels of convolutional layer output data is 32 (scalar), the size of convolutional kernel is 3 (scalar), step size (stride) is 2, and padding (padding) is 0 offset (bias) is unbiased.
(iii) For maximum pooling: maxpool2d (3, stride=2, pad=0), the contents in parentheses are in order: the pooling core size of the pooling layer is 3 (scalar), the stride (stride) is 2, and the padding (padding) is 0.
(iv) For ordered containers: nn. sequential (Conv 2d (160, 64,1, stride=1, pad=0, bias=false)), conv2d (64, 96,3, stride=1, pad=0, bias=false)), the internal conditions of this container are as follows:
class name1():
def__init__():
super(name1,self).__init__()
self.name2=Conv2d(160,64,1,stride=1,padding=0,bias=False)
self.name3=Conv2d(64,96,3,stride=1,padding=0,bias=False)
def forward(self,input):
input=self.name2(input)
input=self.name3(input)
return input
wherein, name1, name1, name3 represent objects named by us themselves, and input represents data named and input by us themselves
(v) For tensor stitching: the contents in brackets are, in order, the cat ((x 0, x 1), dim=1): x0, x1 are the two tensors to be stitched, dim=1 means that the two tensors are stitched in dimension 1. Note that in the currently prevailing language, programs start counting from 0.
For the above code we formally semantically apply to it. To semantically formalize it, the system state is s, we first assume that
Name 0 ≡Stem,Name 1 ≡input_channels,Name 3 ≡x,
Name 3,0 ≡x 0 ,Name 3,1 ≡x 1 .
(i) Structural statement
class Name 0 (nn.Module):Block 1 Let B be 1
def__init__(self,Name 1 ):Block 2 Let B be 2
def forward(self,Name 3 ):Block 3 Let B be 3
return Name 3 Let B be 4 .
Wherein Block 1 =B 2 ;B 3 .
(ii) Atomic statements
super(Name 0 Self). __ init __ (), set to A 1
self.conv_name i =Conv2d(parameters i ) Let A be conv,i
self.pool_name i =nn.Maxpool2d(parameters i ) Let A be pool,i
self.mixed_name i =nn.Sequential(parameters i ) Let A be seq,i .
(iii) Arithmetic expression
value_name_i=self.conv_name i (value_name) set to a conv,i
value_name_i=self.pool_name i (value_name) set to a pool,i
value_name_i=self.mixed_name i (value_name) set to a seq,i
value_name=torch.cat((value_name 1 ,value_name 2 ) Dim=n), n∈n, is set to a 4 .
Then, the operation transfer process of the running process of the code expressed by the formal semantic expression is as follows:
the reduction method is as follows:
<B 1 ,s>→<B 2 ;B 3 ,s 1 >.
next, we can get the program flow diagram 14, after getting the program flow diagram, we can find its maximum order, since this code is only an example, its program flow diagram complexity is low, we can observe that two maximum orders are:
and
thus, a program can be divided into two functional blocks: and constructing an output result of the network node and the functional module corresponding to the defined thinking type.
First, a network node module is defined
And (3) reduction:
the network then completes the inheritance of the method, next due to:
Block 2 =A conv,1 ;A conv,2 ;A conv,3 ;A pool,1 ;A conv,4 ;A seq,1 ;A seq,2 ;A conv,5 ;A pool,2 ,
thereby obtaining
And (3) reduction:
in summary, the program function module operation of the construction network node is converted into formal semantic operation:
and reduced to formal semantic modules:
<B 2 ,s 1 >→ * s 4 .
such formal semantic modules are formalizes that construct network node thought types.
Second, the network operation module, due to
And
<B 1 ,s>→<B 2 ;B 3 ,s 1 >→ * <B 3 ,s 4 >,
Therefore, we only need to discuss:
Block 2 =a conv,1 ;a conv,2 ;a conv,3 ;a pool,1 ;a conv,4 ;a 4 ;a seq,1 ;a seq,2 ;a 4 ;a conv,5 ;a pool,2 ;a 4 ;B 4 .
thus have a transfer relation
Reduction relationship:
thereby forming a formal semantic module defining the output result of the functional module corresponding to the thinking type.
The foregoing is merely a preferred embodiment of the invention, and it is to be understood that the invention is not limited to the form disclosed herein but is not to be construed as excluding other embodiments, but is capable of numerous other combinations, modifications and environments and is capable of modifications within the scope of the inventive concept, either as taught or as a matter of routine skill or knowledge in the relevant art. And that modifications and variations which do not depart from the spirit and scope of the invention are intended to be within the scope of the appended claims.

Claims (6)

1. The equivalent embedding method for synthesizing the program module sequencing group function of the AI system is characterized by comprising the following steps:
step one, establishing a program topology space and a program module class topology space according to the structure of an AI system flow graph, carrying out order classification on program modules by establishing an order classification operator and an order point judgment operator, and establishing an order relation among the program modules according to the order classification;
step two, based on the sequence relation among the program modules, obtaining the maximum sequence of the sequence relation among the program modules according to the sequence, and carrying out function synthesis extraction of the sequence assembly of the program modules on the AI system function modules according to the maximum sequence;
And thirdly, carrying out formal semanteme on language components of the program language by using formal semanteme to obtain a program flow diagram, obtaining a maximum tight sequence according to the program flow diagram, obtaining formal semantic modules of output results of corresponding functional modules according to the maximum tight sequence, and completing equivalent embedding of program module sequencing and assembly function synthesis of the AI system.
2. The method for equivalent embedding for synthesis of program module ordered group function of AI system according to claim 1, wherein said creating a program topology space and a program module class topology space according to the structure of AI system flow graph comprises:
the set of program modules is called a program set, any of which program modules X i Referred to as element X in a program set i For any program setBy->Is a set of elements:
called asPower set of->Is>Called->Is a subset family of (a);
the program topology space is as follows:
is a collection->Called a topological space, if the set +.>The method meets the following conditions:
(i)
(ii) AggregationAny two of the opening sets U and the opening sets U are in the interior>Satisfy->
(iii)Is>
The open set of program topology space is a set of a plurality of program modules, and the program topology space isI.e.
The program module class topology space is as follows: if Y is a finite set of n program module classes, then the order of Y is called n, and is expressed as |Y|=n or Y n The method comprises the steps of carrying out a first treatment on the surface of the The open set of the program module class topology space is a set of a plurality of program module classes, and the program module class topology space is thatI.e. < ->
3. The equivalent embedding method for synthesizing a program module sequencing batch function of an AI system of claim 2, wherein the step of performing the sequence classification on the program modules by establishing the sequence classification operator and the sequence point judgment operator, and establishing the sequence relationship between the program modules according to the sequence classification comprises:
the sequence classification operator T i The method comprises the following steps: x is to be i Mapping to space-like pseudo-substrate Y j :T i X i =Y j Wherein X is i Y is a pseudo substrate in program space j The method is characterized in that the method is a pseudo substrate in a class space, and the pseudo substrate is a program module and a program module class which are irrelevant in characteristics in a program space and a program module class space; obtaining the type of the program module through the sequence classification operator;
the sequence point judgment operator M is as follows: the method is used for judging and classifying the sequence starting point, the sequence ending point and the residual points; the sequence starting point is a sequence starting point of a first program module of a program with a complete function module, and the sequence ending point is a sequence ending point of a last program module of a program with a complete function module; the residual points are program modules which are neither sequence starting points nor sequence ending points; and judging the classification of the program modules and the tight sequence relation among the program modules through a sequence point judging operator.
4. The equivalent embedding method for synthesis of program module ordered assembly function of AI system of claim 3, wherein the tight order is: is provided withFor n in program topology space (n.gtoreq.1 and +.>) Program modules, if the n program modules->After execution in sequence, the program can run, +.>Sequentially form a tight sequence relationship, which is marked as +.>
5. The method for equivalent embedding for synthesis of program module ordered assembly function of AI system of claim 4, wherein said maximum order is: no extremely small tight sequence is used as a subsequent tight sequence of the tight sequence, and no extremely small tight sequence takes the tight sequence as the subsequent tight sequence, and the extremely large tight sequence is obtained;
the minimum tight sequence is a tight sequence without a true tight sequence, and the true tight sequence is as follows: is provided withFor n program modules in the program topology space, and +.>Is a tight order, if s is present (s is not less than 1 and not more than n and +.>) Personal program moduleSatisfy the tight order relation->Then call->Is-> Is a sub-tight sequence of (2); if it also holds s<n is->Is->Is a true sequence of the seeds;
the subsequent tight sequence is as follows: is provided withFor n+m program modules in the program topology space, and +.>Are all in tight order, if-> Also in tight order, called->Is->Is a subsequent order of the sequence.
6. The method for equivalent embedding of program module ordering and assembling function synthesis of AI system according to claim 5, wherein the performing function synthesis and extraction of program module ordering and assembling of AI system function modules according to the maximum tight order comprises:
according to the program modules of the AI system and the tight sequence relation of the program modules, traversing all the extremely tight sequences to complete the function synthesis extraction of the program module ordered assembly.
CN202310991958.0A 2023-08-04 2023-08-04 Equivalent embedding method for synthesizing program module sequencing group function of AI system Active CN117311678B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310991958.0A CN117311678B (en) 2023-08-04 2023-08-04 Equivalent embedding method for synthesizing program module sequencing group function of AI system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310991958.0A CN117311678B (en) 2023-08-04 2023-08-04 Equivalent embedding method for synthesizing program module sequencing group function of AI system

Publications (2)

Publication Number Publication Date
CN117311678A true CN117311678A (en) 2023-12-29
CN117311678B CN117311678B (en) 2024-06-04

Family

ID=89236147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310991958.0A Active CN117311678B (en) 2023-08-04 2023-08-04 Equivalent embedding method for synthesizing program module sequencing group function of AI system

Country Status (1)

Country Link
CN (1) CN117311678B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040143817A1 (en) * 2003-01-17 2004-07-22 Kunii Tosiyasu L. Information managing apparatus
JP2005115498A (en) * 2003-10-06 2005-04-28 Catena Corp Software development pre-processing method, software control method, software development method, and software developing device
WO2006030809A1 (en) * 2004-09-17 2006-03-23 Catena Corporation Software generating method
WO2006038303A1 (en) * 2004-10-07 2006-04-13 Catena Corporation Software creating method
CN102298681A (en) * 2011-06-22 2011-12-28 西北大学 Software identification method based on data stream sliced sheet
CN103646194A (en) * 2013-11-29 2014-03-19 北京广利核系统工程有限公司 Credible sorting method of synchronous data flow procedures based on formal verification
CN108287711A (en) * 2018-03-07 2018-07-17 北京理工大学 A kind of algebraically component representation method and apparatus of software systems
CN109408034A (en) * 2018-03-17 2019-03-01 东南大学 A kind of controlling stream graph building method of object-oriented program
CN111208991A (en) * 2020-01-03 2020-05-29 北京龙归科技有限公司 Workflow-based program development method, electronic device, and storage medium
CN113792008A (en) * 2021-08-31 2021-12-14 北京百度网讯科技有限公司 Method and device for acquiring network topology structure, electronic equipment and storage medium
CN114610297A (en) * 2022-01-27 2022-06-10 新疆品宣生物科技有限责任公司 Automatic programming method for multi-language program codes
CN114675830A (en) * 2022-03-08 2022-06-28 南京南瑞继保电气有限公司 Method and device for deploying edge AI (Artificial Intelligence) and constructing visual AI programming platform and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040143817A1 (en) * 2003-01-17 2004-07-22 Kunii Tosiyasu L. Information managing apparatus
JP2005115498A (en) * 2003-10-06 2005-04-28 Catena Corp Software development pre-processing method, software control method, software development method, and software developing device
WO2006030809A1 (en) * 2004-09-17 2006-03-23 Catena Corporation Software generating method
WO2006038303A1 (en) * 2004-10-07 2006-04-13 Catena Corporation Software creating method
CN102298681A (en) * 2011-06-22 2011-12-28 西北大学 Software identification method based on data stream sliced sheet
CN103646194A (en) * 2013-11-29 2014-03-19 北京广利核系统工程有限公司 Credible sorting method of synchronous data flow procedures based on formal verification
CN108287711A (en) * 2018-03-07 2018-07-17 北京理工大学 A kind of algebraically component representation method and apparatus of software systems
CN109408034A (en) * 2018-03-17 2019-03-01 东南大学 A kind of controlling stream graph building method of object-oriented program
CN111208991A (en) * 2020-01-03 2020-05-29 北京龙归科技有限公司 Workflow-based program development method, electronic device, and storage medium
CN113792008A (en) * 2021-08-31 2021-12-14 北京百度网讯科技有限公司 Method and device for acquiring network topology structure, electronic equipment and storage medium
CN114610297A (en) * 2022-01-27 2022-06-10 新疆品宣生物科技有限责任公司 Automatic programming method for multi-language program codes
CN114675830A (en) * 2022-03-08 2022-06-28 南京南瑞继保电气有限公司 Method and device for deploying edge AI (Artificial Intelligence) and constructing visual AI programming platform and electronic equipment

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
H.M. SNEED: "Extracting business logic from existing COBOL programs as a basis for redevelopment", 《PROCEEDINGS 9TH INTERNATIONAL WORKSHOP ON PROGRAM COMPREHENSION.IWPC 2001》, 7 August 2002 (2002-08-07) *
J.MITOLA: "Software radio architecture:a mathematical perspective", 《IEEE JOURNAL ON SELECTED AREAS IN COMMUNICATIONS》, vol. 17, no. 4, 30 April 1999 (1999-04-30), XP011054941 *
孙禹铭: "面向深度学习的低代码开发平台的设计与实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, no. 2, 15 February 2023 (2023-02-15) *
朱怡健: "抽取程序模块功能的计算机辅助系统", 《小型微型计算机系统》, no. 9, 8 September 1994 (1994-09-08) *
李招文: "广义近似空间的拓扑结构", 《应用数学学报》, vol. 33, no. 4, 15 December 2009 (2009-12-15) *

Also Published As

Publication number Publication date
CN117311678B (en) 2024-06-04

Similar Documents

Publication Publication Date Title
Arnborg et al. Easy problems for tree-decomposable graphs
US10438120B2 (en) Plugin interface and framework for integrating external algorithms with sample data analysis software
Geiger et al. Causal abstraction for faithful model interpretation
Kadkhodaei et al. Big data classification using heterogeneous ensemble classifiers in Apache Spark based on MapReduce paradigm
Braud et al. Generalization effect of quantifiers in a classification based on relational concept analysis
Borandag et al. Majority vote feature selection algorithm in software fault prediction
Sreedevi et al. A comparative study on new classification algorithm using NASA MDP datasets for software defect detection
Lesta et al. Detecting and explaining conflicts in attributed feature models
Zhang et al. OIM-SM: A method for ontology integration based on semantic mapping
Basto-Fernandes et al. A survey of diversity oriented optimization: Problems, indicators, and algorithms
CN112052177A (en) MC/DC test case set generation method for multi-value coupling signal
CN115080587A (en) Electronic component replacing method, device and medium based on knowledge graph
Yang et al. Any-k: Anytime top-k tree pattern retrieval in labeled graphs
CN117311678B (en) Equivalent embedding method for synthesizing program module sequencing group function of AI system
CN117472766A (en) Method and device for generating test case, electronic equipment and medium
Sánchez-Charles et al. Process model comparison based on cophenetic distance
Chaudhuri A visual technique to analyze flow of information in a machine learning system
Schmidt et al. Dynamic complexity meets parameterised algorithms
White et al. Variant generation of software-defined mechatronic systems in model-based systems engineering
Apers Expansion testing using quantum fast-forwarding and seed sets
Yan et al. Detecting data errors with statistical constraints
Zhang et al. Membership testing in markov equivalence classes via independence queries
Shi et al. Feature selection
Chen et al. Braiding drive data processing through rote learning
Sher The Enumeration of Minimum Path Covers of Trees

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant