命題論理における解決規則が何であるかを理解することができませんでした。決議は、文を拡張して別の形式で書くことができるいくつかの規則を単に述べていますか?
以下は、命題論理の単純な解決アルゴリズムです。この関数は、2つの入力を解決することによって取得されたすべての可能な句のセットを返します。アルゴリズムの動作が理解できません。誰かが説明してもらえますか?
function PL-RESOLUTION(KB,α) returns true or false
inputs: KB, the knowledge base, a sentence α in propositional logic, the query, a
sentence in propositional logic
clauses <--- the set of clauses in the CNF representation of KB ∧ ¬α
new <--- {}
loop do
for each Ci, Cj in clauses do
resolvents <----- PL-RESOLVE(Ci, Cj)
if resolvents contains the empty clause then return true
new <--- new ∪ resolvents
if new ⊆ clauses then return false
clauses <---- clauses ∪ new