JPH0279123A - Structure expression inferring system - Google Patents

Structure expression inferring system

Info

Publication number
JPH0279123A
JPH0279123A JP63231703A JP23170388A JPH0279123A JP H0279123 A JPH0279123 A JP H0279123A JP 63231703 A JP63231703 A JP 63231703A JP 23170388 A JP23170388 A JP 23170388A JP H0279123 A JPH0279123 A JP H0279123A
Authority
JP
Japan
Prior art keywords
inference
rules
goal
backward
oriented
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.)
Pending
Application number
JP63231703A
Other languages
Japanese (ja)
Inventor
Hiroyasu Kondo
浩康 近藤
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP63231703A priority Critical patent/JPH0279123A/en
Publication of JPH0279123A publication Critical patent/JPH0279123A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To prevent a decline in the inferring ability of the title system and, at the same time, to eliminate the necessity of a large storing capacity and an increase in calculating quantity by excluding loops chained to rules used for inference without limiting the rules, and performing inference by a depth- preferential retrieval strategy. CONSTITUTION:Oriented flags expressing structure descriptions are held at a structure description holding section 101 as initial data and plural rules expressed in sets of three each are stored in an inference rule holding section 102. While inference controlling means 103 manages sequences of paired elements and natures of the oriented flags, an empty sequence appears in the initial state and whether or not an oriented flag is contained in the sequence managed by a given goal can be discriminated. Control of inference by means of the inference control means 103 is added to the basic inference by a backward depth-preferential retrieval strategy having a back track mechanism of a backward inference means 104. Therefore, necessity of a large storing capacity and an increase in calculating quantity can be eliminated without lowering the inferring capacity.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は構造表現推論方式、特にプログラムの入出力機
能仕様を構造的に表現し当該表現の性質を推論すること
により検証等を行なうシステムにおいて使用される構造
表現推論方式に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a structural representation inference method, particularly to a system that structurally represents the input/output functional specifications of a program and performs verification by inferring the properties of the representation. It concerns the structural representation inference method used.

〔従来の技術〕[Conventional technology]

ルールを用いた推論を行なう場合に、ルールの連鎖がル
ープをなしている場合の推論方法が問題となる。従来は
、■ループを作らないルールのみで推論を行なう、0幅
優先(breadth−first)探索戦略で推論を
行なう、という方法が知られている。
When performing inference using rules, a problem arises in the inference method when the chain of rules forms a loop. Conventionally, a method is known in which (1) inference is performed using only rules that do not create loops, and inference is performed using a 0 breadth-first search strategy.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、従来方法■では推論に使用するルールを
制限するため推論能力が低下する、従来方法■では幅優
先探索のため多大な記憶容量を必要としループをなすル
ールの連鎖を許容しているため計算量が増大する、とい
う不便をもたらしている。
However, the conventional method ■ limits the rules used for inference, which reduces inference ability, and the conventional method ■ requires a large amount of storage capacity due to breadth-first search, and it requires a large amount of calculation because it allows a chain of rules that form a loop. This brings about the inconvenience of increasing numbers of people.

本発明の目的は、この問題点を解決した構造表現推論方
式を提供することにある。
An object of the present invention is to provide a structure representation inference method that solves this problem.

〔課題を解決するための手段〕[Means to solve the problem]

本発明によれば、構造記述を保持する構造記述保持部と
、構造記述に対して当該構造記述内の記述要素の推論可
能な性質を対応付けているルールを複数個保持している
推論ルール保持部と、前記構造記述保持部に保持された
構造記述の記述要素の性質の推論過程を管理する推論制
御手段と、前記構造記述保持部に保持された構造記述に
対して当該構造記述内の記述要素の性質を前記推論ルー
ル保持部に保持されたルールを用いて前記推論制御手段
で推論過程を管理しつつ後向きに推論を行なう後向推論
手段とよりなることを特徴とする構造表現推論方式が得
られる。
According to the present invention, a structural description holding unit holds a structural description, and an inference rule holding unit holds a plurality of rules that associate inferable properties of description elements in the structural description with the structural description. an inference control means for managing an inference process of the nature of the description element of the structural description held in the structural description holding unit, and a description in the structural description for the structural description held in the structural description holding unit; A structural representation inference method characterized by comprising a backward inference means for backward inference while controlling the inference process by the inference control means using the rules held in the inference rule holding unit to determine the properties of the elements. can get.

〔作用〕[Effect]

本発明における構造記述は、構造をノートとし関係をリ
ンクとする有向グラフで表わされる。
A structure description in the present invention is expressed as a directed graph in which structures are notes and relationships are links.

第1図は本発明の構造表現推論方式の原理を示すブロッ
ク図である。図において、101は構造記述保持部、1
02は推論ルール保持部、103は推論制御手段、10
4は後向推論手段である。
FIG. 1 is a block diagram showing the principle of the structural representation inference method of the present invention. In the figure, 101 is a structure description holding unit;
02 is an inference rule holding unit, 103 is an inference control means, 10
4 is a backward inference means.

初期データとして、構造記述保持部101には構造記述
を表現した有向グラフGが保持されている。推論ルール
保持部102には3つ組で表わされるルールが複数個<
G+ 、 T’+ 、 C+ >  (1=1、・・・
、N)格納されている。G1はルールが適用され得るコ
ンチクストを表わす有向グラフ、T、は当該ルールで推
論可能な有向グラフG+の要素とその性質のベア(<g
+ 、 p+ >、g+已G+ ) 、 C,+はT1
を推論するために溝なすべき条件で有向グラフG、の要
素とその性質のベアの並び((<g+’、p+’>)、
g+’EG+。
As initial data, the structural description holding unit 101 holds a directed graph G representing a structural description. The inference rule holding unit 102 has a plurality of rules represented by triplet<
G+, T'+, C+ > (1=1,...
, N) are stored. G1 is a digraph representing contics to which the rule can be applied, and T is the element of the digraph G+ that can be inferred by the rule and its property bare (<g
+, p+ >, g+G+), C,+ is T1
In order to infer the condition, the bare arrangement of the elements of the directed graph G and their properties ((<g+', p+'>),
g+'EG+.

j=1.・・・、Ml)である。推論制御手段103に
は、有向グラフGの要素とその性質のベアの系列が管理
されるが、初期状態では空の系列になっている。
j=1. ..., Ml). The inference control means 103 manages a bare series of elements of the digraph G and their properties, but in the initial state, the series is empty.

推論制御手段103は、あるゴール<gC,pC>を推
論しようとする時点において、ゴール<g。
The inference control means 103 infers a certain goal <gC, pC> at a time when it attempts to infer a certain goal <gC, pC>.

p〉を頂点とするAND−OR証明本においてゴール−
<g、p>とゴール<g’ 、po>を結ぶバスに存在
する全てのゴールの系列を常に保持管理しており、ある
与えられたゴールが管理しているゴールの系列の中に含
まれるか否かを判断できる手段である。
In the AND-OR proof book with p〉 as the vertex, the goal -
It always maintains and manages all the goal series existing on the bus connecting <g, p> and goal <g', po>, and a given goal is included in the managed goal series. It is a means of determining whether or not.

後向推論手段104は、プログラミング言語PROLO
Gの処理系と同様のバックトラック機構をもった後向き
深さ優先(depth−first)探索戦略による推
論を基本として、推論制御手段103による推論の制御
を付加したものである。
The backward inference means 104 uses the programming language PROLO.
This system is based on inference based on a backward depth-first search strategy with a backtrack mechanism similar to that of the G processing system, and inference control by an inference control means 103 is added.

即ち、最初のゴールを<g、p>とじて推論を開始する
が、 ■あるゴール<g’ 、p’ >を推論するときには推
論制御手段103を用いて当該ゴール<g’。
That is, inference is started with the first goal <g, p>, but when inferring a certain goal <g', p'>, the inference control means 103 is used to set the goal <g'.

p 〉が推論制御手段103により保持管理されている
ゴールの系列に含まれているか否かを判断し、含まれて
いればそこでルールの連鎖によるループが起きていると
判断して、当該ゴール<g d。
It is determined whether or not p 〉 is included in the series of goals maintained and managed by the inference control means 103, and if it is included, it is determined that a loop due to a chain of rules has occurred, and the goal g d.

p 〉の推論はフェイルしたものとすることにより、ル
ープを排除する。
The loop is eliminated by assuming that the inference of p > has failed.

■ゴール< g d 、 p d >が推論制御手段1
03により保持管理されているゴールの系列に含まれて
いないときは、適用可能なルール<G K、T K、 
Cx>としてTにが< g d 、 p d >とマツ
チしGKがGの部分有向グラフとなるルールについて、
その条件部分CKというゴールの並びを推論する。ルー
ルはバックトラックする毎に次の候補が選ばれる。
■The goal < g d , p d > is the inference control means 1
03, the applicable rules <G K, T K,
Regarding the rule that T matches < g d , p d > as Cx> and GK becomes a partially directed graph of G,
The sequence of goals called the condition part CK is inferred. Each time the rule is backtracked, the next candidate is selected.

を繰り返す。repeat.

〔実施例〕〔Example〕

第2図は構造記述保持部101における有向グラフのノ
ードとリンクの表現例である。構造記述保持部101に
は有向グラフが保持されるが、本実施例では有向グラフ
のノードとリンクの集合で表現している。
FIG. 2 is an example of representation of nodes and links of a directed graph in the structure description holding unit 101. A directed graph is held in the structure description holding unit 101, and in this embodiment, it is expressed as a set of nodes and links of the directed graph.

第2図(a>がノードのフレーム表現であり、識別子ス
ロットと構造の種類を示す構造タイプスロットからなっ
ている。第2図(b)がリンクのフレーム表現であり、
識別子スロットと関係の種類を示す関係タイプスロット
と関係の源のノートの識別子を保持する関係源ノートス
ロットと関係の先のノードの識別子を保持する関係先ノ
ードスロットからなっている。
Figure 2 (a) is a frame representation of a node, consisting of an identifier slot and a structure type slot indicating the type of structure. Figure 2 (b) is a frame representation of a link,
It consists of an identifier slot, a relationship type slot that indicates the type of relationship, a relationship source note slot that holds the identifier of the source note of the relationship, and a relationship destination node slot that holds the identifier of the destination node of the relationship.

第3図は本実施例で用いた推論ルール保持部102に格
納されるルールの表現である。ルール適用のコンチクス
トである有向グラフをノードとリンクの集合としてコン
チクストスロットに格納し、条件から結論を導くルール
をルールスロットに格納している。
FIG. 3 is a representation of the rules stored in the inference rule holding unit 102 used in this embodiment. A directed graph, which is a consequent for rule application, is stored in a concise slot as a set of nodes and links, and a rule for deriving a conclusion from conditions is stored in a rule slot.

本実施例での推論制御手段103と後向推論手段1.0
4とはプログラミング言語P ROT−OGの叫理系が
サポートしているバックトラック機構を利用している。
Inference control means 103 and backward inference means 1.0 in this embodiment
4 uses the backtrack mechanism supported by the logic system of the programming language PROT-OG.

以下に示すフローチャートはバックトラック機構の存在
を前提としている。
The flow chart shown below assumes the existence of a backtrack mechanism.

第4図は本発明の実施例で用いた推論制御手段1、03
のフローチャートである。入力は推論しようとするゴー
ルAとゴール系列B、出力は更新されたゴール系列Cで
ある。
FIG. 4 shows inference control means 1 and 03 used in the embodiment of the present invention.
This is a flowchart. The input is the goal A and the goal sequence B to be inferred, and the output is the updated goal sequence C.

ステップ401は、開始ステップであり、ステップ40
2へ進む。ステップ402は、ゴールAがゴール系列B
に含まれているかどうかをチエツクし、含まれていれば
°ステップ403へ、含まれていなければ、ステップ4
04へ進む。ステップ403は、フェイルする。必然的
に、本推論制御手段そのものもフェイルする。
Step 401 is a starting step, step 40
Proceed to step 2. In step 402, goal A is goal series B.
If it is included, go to step 403; if not, go to step 4.
Proceed to 04. Step 403 fails. Inevitably, this inference control means itself also fails.

ステップ404は、ゴール系列BにゴールAを追加して
新たなゴール系列Cとし、ステップ405へ進む。ステ
ップ405は、サクセスして終了するステップである。
In step 404, goal A is added to goal series B to create a new goal series C, and the process proceeds to step 405. Step 405 is a step that ends with success.

第5図は本発明の実施例で用いた後向推論手段104の
フローチャートである。入力は推論しようとするゴール
あるいはゴールの並びXとゴールの系列りである。
FIG. 5 is a flowchart of the backward inference means 104 used in the embodiment of the present invention. The input is a goal or a sequence of goals X and a series of goals to be inferred.

ステップ501は、開始ステップであり、ステップ50
2へ進む。ステップ502は、入力Xが単一のゴールな
らばステップ506へ進み、入力Xがゴールの並びなら
ばステップ503へ進み、人力Xが空の並びならばステ
ップ510へ進む。
Step 501 is a starting step, step 50
Proceed to step 2. In step 502, if the input X is a single goal, the process proceeds to step 506, if the input X is a line of goals, the process proceeds to step 503, and if the human power X is an empty line, the process proceeds to step 510.

ステップ503は、入力であるゴールの並びXの最初の
ゴールとゴールの系列りを入力として本後向推論手段1
04を再帰的にコールするステップである。ステップ5
04は、入力であるゴールの並びXの最初のゴールを除
いた残りのゴール列とゴールの系列りを入力とし本後向
推論手段104を再帰的にコールするステップである。
In step 503, the backward inference means 1 inputs the first goal and the series of goals of the input goal sequence X.
This step is to recursively call 04. Step 5
04 is a step in which the backward inference means 104 is recursively called by inputting the remaining goal sequence and the goal series excluding the first goal of the input goal sequence X.

ステップ505は、サクセスして終了するステップであ
る。
Step 505 is a step that ends with success.

ステップ506は、ゴールXとゴール系列りを入力とし
て推論制御手段103をコールするステップであり、そ
の出力ゴール系列をEとする。ステップ507は、ゴー
ルXについて、適用可能なルールを得るステップである
。このステップはバックトラックする毎に適用可能なル
ールを順次与える。ステップ508は、得られたルール
についてその条件部分のゴールの並びとゴール系列Eを
入力として本後向推論手段104を再帰的にコールする
ステップである。ステップ509は、サクセスして終了
するステップである。
Step 506 is a step of calling the inference control means 103 with the goal X and the goal series as input, and the output goal series is set as E. Step 507 is a step of obtaining applicable rules for goal X. This step sequentially provides applicable rules each time you backtrack. Step 508 is a step of recursively calling the present backward inference means 104 by inputting the goal sequence of the condition part and the goal series E for the obtained rule. Step 509 is a step that ends with success.

ステップ510は、サクセスして終了するステップであ
る。
Step 510 is a step that ends with success.

〔発明の効果〕〔Effect of the invention〕

以上、本発明はプログラムの入出力機能仕様を構造的に
表現し当該表現の性質を推論することにより検証等を行
なうシステムにおいて使用することが出来る構造表現推
論方式で、推論に使用するルールを制限することなくル
ールの連鎖のループを排除し深さ優先探索戦略で推論を
行なうため、推論能力を低下させることがなく、また多
大な記憶容量や計算量の増大を不要にするという効果を
もたらす。
As described above, the present invention is a structural representation inference method that can be used in a system that performs verification etc. by structurally expressing the input/output functional specifications of a program and inferring the properties of the representation, and restricts the rules used for inference. Since loops in the chain of rules are eliminated and inference is performed using a depth-first search strategy, there is no reduction in inference ability and there is no need for a large increase in memory capacity or calculation amount.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の構造表現推論方式の原理を示すブロッ
ク図、第2図は本発明の実施例で用いた構造記述保持部
におけるノード及びリンクの表現を示す図、第3図は本
発明の実施例で用いた推論ルール保持部に格納されるル
ールの表現を示す図、第4図は本発明の実施例で用いた
推論制御手段のフローチャート、第5図は本発明の実施
例で用いた後向推論手段のフローチャートである。 図において、101は構造記述保持部、102は推論ル
ール保持部、103は推論制御手段、104は後向推論
手段である。
FIG. 1 is a block diagram showing the principle of the structure representation inference method of the present invention, FIG. 2 is a diagram showing the representation of nodes and links in the structure description holding unit used in the embodiment of the present invention, and FIG. 3 is a block diagram showing the principle of the structure representation inference method of the present invention. FIG. 4 is a flowchart of the inference control means used in the embodiment of the present invention, and FIG. 5 is a flowchart of the inference control means used in the embodiment of the present invention. 3 is a flowchart of backward inference means. In the figure, 101 is a structure description holding section, 102 is an inference rule holding section, 103 is an inference control means, and 104 is a backward inference means.

Claims (1)

【特許請求の範囲】[Claims] 構造及び構造間の関係を記述要素とした構造記述を保持
する構造記述保持部と、前記構造記述に対して当該構造
記述内の記述要素の推論可能な性質を対応付けているル
ールを複数個保持している推論ルール保持部と、前記構
造記述保持部に保持された構造記述の記述要素の性質の
推論過程を管理する推論制御手段と、前記構造記述保持
部に保持された構造記述に対して当該構造記述内の記述
要素の性質を前記推論ルール保持部に保持されたルール
を用いて前記推論制御手段で推論過程を管理しつつ後向
きに推論を行なう後向推論手段とよりなることを特徴と
する構造表現推論方式。
A structural description holding unit that holds a structural description with structures and relationships between structures as descriptive elements, and a plurality of rules that associate inferable properties of descriptive elements in the structural description with the structural description. an inference rule holding unit for controlling the structure description held in the structural description holding unit; It is characterized by comprising a backward inference means that performs inference backwards while controlling the inference process with the inference control means using the rules held in the inference rule holding unit to determine the properties of the descriptive elements in the structural description. A structural representation inference method.
JP63231703A 1988-09-14 1988-09-14 Structure expression inferring system Pending JPH0279123A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63231703A JPH0279123A (en) 1988-09-14 1988-09-14 Structure expression inferring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63231703A JPH0279123A (en) 1988-09-14 1988-09-14 Structure expression inferring system

Publications (1)

Publication Number Publication Date
JPH0279123A true JPH0279123A (en) 1990-03-19

Family

ID=16927680

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63231703A Pending JPH0279123A (en) 1988-09-14 1988-09-14 Structure expression inferring system

Country Status (1)

Country Link
JP (1) JPH0279123A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4927313A (en) * 1989-02-21 1990-05-22 Westinghouse Electric Corp. Nuclear fuel pellet sintering boat unloading apparatus and method
JP2013097594A (en) * 2011-11-01 2013-05-20 Bank Of Tokyo-Mitsubishi Ufj Ltd Inference device and inference method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4927313A (en) * 1989-02-21 1990-05-22 Westinghouse Electric Corp. Nuclear fuel pellet sintering boat unloading apparatus and method
JP2013097594A (en) * 2011-11-01 2013-05-20 Bank Of Tokyo-Mitsubishi Ufj Ltd Inference device and inference method
US8856059B2 (en) 2011-11-01 2014-10-07 The Bank of Tokyo—Mitsubishi UFJ, Ltd. Inference device and inference method

Similar Documents

Publication Publication Date Title
US7433854B2 (en) Backward chaining with extended knowledge base network
Jixin et al. A general temporal theory
Finkbeiner et al. Petri games: Synthesis of distributed systems with causal memory
US20130080366A1 (en) Enhanced Artificial Intelligence Language
JP2006059364A (en) Database useful for configuring and/or optimizing system, and method for generating the database
JPH0424826A (en) Production system
JPH0279123A (en) Structure expression inferring system
WO2005072351A2 (en) Rule selection engine
JPH02195434A (en) Rapid inference system for compile type knowledge processing tool
JP3549608B2 (en) Method and apparatus for determining structure of hierarchical data based on identifier
Thomas et al. Insertion sequence variables for hybrid routing and scheduling problems
Shibata et al. Partial gathering of mobile agents in arbitrary networks
US7337157B2 (en) System, method, and product of manufacture for implementing an EAIL (enhanced artificial intelligence language) engine
Kozachinskiy Infinite separation between general and chromatic memory
Kalles et al. Stable decision trees: Using local anarchy for efficient incremental learning
JPH01134630A (en) Inference system
Modanese et al. Shrinking and expanding cellular automata
JP3945144B2 (en) Inductive reasoning system
Kim et al. Classification and retrieval of knowledge on a parallel marker-passing architecture
WO2023108860A1 (en) Cnf generation method for multi-output instance, equivalence verification method, and storage medium
Cheng Complexity results for model checking
JPH0377167A (en) Hypothesis selecting device
JP4992260B2 (en) Buffer device and buffer control method
CN115967667A (en) Link determination method, device, controller and storage medium
JPH04225470A (en) Searching method and apparatus for restricting and replenishing problem