AI Wiki中文/EN

Backward chaining: prove a goal without mistaking a failed branch for a false claim

后向链推理

Build an auditable propositional proof tree, prune ancestor cycles, backtrack across rules, and distinguish non-entailment from a rule-attempt budget.

On this pageIntuitionMathematics & methodImplementationLimitationsExercisesResearch connections

Start with the claim you need to prove

A symbolic checklist says that entry requires both approved and cleared. Approval can come from clearance or from a badge. Clearance can come from approval. The only given fact is badge.

Rule IDRequired premisesConclusion
0approved and clearedentry
1clearedapproved
2badgeapproved
3approvedcleared

Backward chaining starts with a query and searches for a proof. To prove entry, choose rule 0 and prove both its premises. To prove approved, choose among rules 1 and 2. The first kind of choice is AND: every premise is needed. The second is OR: any applicable rule whose premises can be proved is enough.

Following the listed order first produces entry → approved → cleared → approved. That last approval would depend on the very approval currently being sought. The solver cuts this branch, then tries the badge rule. Later, it must prove cleared again in a different context. It succeeds this time. Recording the earlier failure as “cleared can never be proved” would lose a valid proof.

The complete example below visits nine goals, tries seven rules and returns a six-node proof. It is a finite propositional system: atom names are indivisible symbols, and no rule contains logic variables. Poole and Mackworth, third edition, top-down proof procedure

A failed branch is smaller than a failed query

Let F be the given facts and R the rules. A propositional definite clause has one positive conclusion and a conjunction of positive premises:

b1∧⋯∧bk⇒h.b_1\land\cdots\land b_k\Rightarrow h.

The case k = 0 is unconditional. This chapter has no negation, disjunctive heads, integrity constraints, side effects or consumption of facts. A premise may be used in several proofs. The broader Horn-clause topic also covers clauses with no positive literal; this program does not.

A proof tree either ends at a given fact or uses a rule and supplies a proof for each premise:

KB⊢b1⋯KB⊢bkKB⊢hwhen (b1∧⋯∧bk⇒h)∈R.\frac{KB\vdash b_1\quad\cdots\quad KB\vdash b_k}{KB\vdash h}\quad\text{when }(b_1\land\cdots\land b_k\Rightarrow h)\in R.

An unconditional rule has no child proofs. The tree is evidence about the query, not a list of every fact the knowledge base implies. This goal-directed organization differs from the closure built by forward chaining.

For a recursive call, let A contain the goal’s ancestors: the still-active goals whose chosen rules led to this goal. Facts succeed immediately. Revisiting a non-fact already in A cuts that branch. Otherwise, try the rules for the goal and require all premises of one of them to succeed. Ignoring the optional budget, this can be written as:

P(g,A)={⊤g∈F,⊥g∉F and g∈A,⋁(B⇒g)∈R ⋀b∈BP(b,A∪{g})otherwise.P(g,A)=\begin{cases}\top&g\in F,\\\bot&g\notin F\text{ and }g\in A,\\\displaystyle\bigvee_{(B\Rightarrow g)\in R}\ \bigwedge_{b\in B}P(b,A\cup\{g\})&\text{otherwise}.\end{cases}

An empty OR is false: no rule can support that goal. An empty AND is true: an unconditional rule needs no premise. Siblings receive the same parent ancestry. A successful earlier premise is not an ancestor of the next premise. Poole and Mackworth’s first-edition treatment assigns each subgoal its own ancestor set, extended only by its parent goal. Section 5.3.4.3, “Infinite Loops”

In the example, cleared first fails with ancestors (entry, approved): its only rule would revisit approved. After rule 2 proves approval from the badge, rule 0 next asks for cleared with ancestors (entry). This time rule 3 may ask for approval; that approval can use rule 2. The goal’s name stayed the same, but the search restriction changed.

The internal result failed therefore means “no proof under this ancestor restriction.” It is not a general theorem about the atom. Only the fully searched root call, whose ancestor list is empty, can turn that failure into NOT_ENTAILED. A budget interruption is a separate result, UNKNOWN.

Return the chosen proof and retain rule identities

The complete Python 3.10+ program accepts facts, rules and one atomic query. Facts, rules and rule bodies must be lists or tuples; atoms must be nonempty strings. Strings are atomic IDs, not parsed logical expressions. Booleans are not accepted as atoms or budgets. Each rule is (body, head), matching the forward-chaining example. Repeated atoms within a body are removed while preserving their first order; duplicate rule rows remain separate alternatives with separate zero-based IDs.

The program copies and normalizes its inputs, then indexes rules by head. It tests given facts before searching rules, tries rules in input order and premises from left to right. Ancestors are immutable tuples. Each recursive branch receives its own extended ancestry and builds its own list of successful premise proofs. Failed attempts discard that local proof list; they do not mark an atom globally false.

When one premise fails, the chosen rule cannot prove its head, so the solver tries the next rule for that head. It need not revisit alternative successful proofs of an earlier premise: in this propositional, side-effect-free system, a different proof of that same atom cannot change another premise’s truth or its ancestor restriction. With shared first-order variables, earlier answers could bind variables differently; that is a different search problem. Pfenning’s goal-stack notes make the distinction between selecting a rule and continuing through remaining conjunctive goals explicit. Lecture 20, sections 1 and 2

max_rules limits rule attempts, including failed attempts and empty-body rules. A given fact costs no rule attempt. Neither ancestor checks nor goal visits consume this budget. The cap is checked only immediately before another rule would be tried. Reaching it does not cancel a proof already completed or prevent concluding failure after all alternatives were exhausted.

Status / stopMeaning
ENTAILED / proofThe query has the returned finite proof.
NOT_ENTAILED / exhaustedRoot search finished without a proof under the stated finite-definite-rule assumptions.
UNKNOWN / budgetAnother rule attempt was needed after the cap was reached.

Only ENTAILED includes a proof. A fact node is ('fact', atom); a rule node is ('rule', atom, rule_id, children). An auditor can check the stated fact or rule ID, the conclusion, and every child against the normalized body. The event trace includes unsuccessful exploration, whereas the returned proof contains only the successful derivation.

def backward_chain(facts, rules, query, max_rules=None, trace=False):
    def atom(value):
        if type(value) is not str or not value:
            raise ValueError('atoms must be nonempty strings')
        return value

    def sequence(value):
        if type(value) not in (list, tuple):
            raise ValueError('use a list or tuple')
        return value

    atom(query)
    if max_rules is not None and (type(max_rules) is not int or max_rules < 0):
        raise ValueError('max_rules must be None or a nonnegative integer')
    if type(trace) is not bool:
        raise ValueError('trace must be Boolean')
    known = frozenset(atom(p) for p in sequence(facts))
    normalized, by_head = [], {}
    for row in sequence(rules):
        if len(sequence(row)) != 2:
            raise ValueError('a rule is (body, head)')
        body, head = row
        body = tuple(dict.fromkeys(atom(p) for p in sequence(body)))
        head = atom(head)
        by_head.setdefault(head, []).append(len(normalized))
        normalized.append((body, head))
    stats = dict(goals=0, rule_attempts=0, fact_hits=0, cycle_cuts=0, failed_rules=0)
    events = []

    def emit(*event):
        if trace:
            events.append(event)

    def prove(goal, ancestors):
        stats['goals'] += 1
        emit('enter', goal, ancestors)

        def finish(status, proof=None):
            emit('return', goal, status)
            return status, proof

        if goal in known:
            stats['fact_hits'] += 1
            emit('fact', goal)
            return finish('proved', ('fact', goal))
        if goal in ancestors:
            stats['cycle_cuts'] += 1
            emit('cycle', goal)
            return finish('failed')
        child_ancestors = ancestors + (goal,)
        for rule_id in by_head.get(goal, ()):
            if max_rules is not None and stats['rule_attempts'] >= max_rules:
                return finish('unknown')
            stats['rule_attempts'] += 1
            emit('try', goal, rule_id)
            body, _ = normalized[rule_id]
            children = []
            for subgoal in body:
                status, proof = prove(subgoal, child_ancestors)
                if status == 'unknown':
                    return finish('unknown')
                if status == 'failed':
                    stats['failed_rules'] += 1
                    emit('reject', goal, rule_id)
                    break
                children.append(proof)
            else:
                emit('rule', goal, rule_id)
                return finish('proved', ('rule', goal, rule_id, tuple(children)))
        return finish('failed')

    status, proof = prove(query, ())
    verdict, stop = {'proved': ('ENTAILED', 'proof'),
                     'failed': ('NOT_ENTAILED', 'exhausted'),
                     'unknown': ('UNKNOWN', 'budget')}[status]
    return dict(status=verdict, stop=stop, proof=proof, **stats, events=tuple(events))


def proof_size(proof):
    if proof is None:
        return 0
    return 1 + (sum(proof_size(child) for child in proof[3]) if proof[0] == 'rule' else 0)


FACTS = ('badge',)
RULES = (
    (('approved', 'cleared'), 'entry'),
    (('cleared',), 'approved'),
    (('badge',), 'approved'),
    (('approved',), 'cleared'),
)
result = backward_chain(FACTS, RULES, 'entry', trace=True)
print('main:', result['status'], {k: result[k] for k in ('goals', 'rule_attempts', 'fact_hits', 'cycle_cuts', 'failed_rules')})
print('proof:', result['proof'])
for cap in (0, 3, 4, 6, 7):
    r = backward_chain(FACTS, RULES, 'entry', max_rules=cap)
    print('cap', cap, r['status'], r['rule_attempts'], proof_size(r['proof']))
print('seedless cycle:', backward_chain((), ((('a',), 'b'), (('b',), 'a')), 'a')['status'])
print('fact at zero:', backward_chain(('a',), (), 'a', max_rules=0)['status'])
print('empty body at zero:', backward_chain((), (((), 'a'),), 'a', max_rules=0)['status'])

The first result has goals=9, rule_attempts=7, fact_hits=2, cycle_cuts=2 and failed_rules=3. A goal visit includes a fact hit or an immediately cut cycle. failed_rules counts an attempted rule rejected because a premise returned failed; it excludes budget interruptions and untried alternatives. It does not say that those rules are logically invalid.

The returned proof has this shape:

entry [rule 0]
├─ approved [rule 2]
│  └─ badge [fact]
└─ cleared [rule 3]
   └─ approved [rule 2]
      └─ badge [fact]

The badge occurs twice because this is a proof tree without shared subproofs. It does not mean that the fact is consumed twice. Rule 1 appears in the unsuccessful search but not in the final proof.

Caps 0 through 6 return UNKNOWN; cap 7 already completes the proof, with six proof nodes. A given fact succeeds at cap 0. An unmentioned goal with no rules returns NOT_ENTAILED at cap 0. The same proposition represented as an empty-body rule instead needs one rule attempt, so cap 0 returns UNKNOWN and cap 1 succeeds. These representations are logically equivalent but have different costs under this explicit counting convention. The forward-chaining chapter’s queue-pop budget is another unit, so their raw cap values are not comparable measures of time.

Why this cycle check terminates, and what failure cannot tell you

For a fixed finite propositional knowledge base, ancestor pruning makes this search finite. Every expanding call adds a new atom to the active path; a repeated non-fact is rejected immediately. There are finitely many atoms and rule alternatives. Without that pruning, ordinary depth-first backward chaining can loop even here: trying a ← a before a usable alternative keeps asking for a again. The third-edition text explicitly distinguishes a top-down proof method from a depth-first strategy that can become stuck in a cycle. Example 5.13

Pruning must also preserve completeness. To see why it does for positive finite rules, consider the usual derivation layers:

C0=F,Ci+1=Ci∪{h:(B⇒h)∈R, B⊆Ci}.C_0=F,\qquad C_{i+1}=C_i\cup\{h:(B\Rightarrow h)\in R,\ B\subseteq C_i\}.

An entailed atom has a first layer where it appears. Choose a rule that first produced it; each premise appears in an earlier layer. Recursively choose those earlier justifications. Layer numbers strictly decrease toward leaves, so no atom repeats along a path. Thus every entailed query has a proof that ancestor pruning retains. Exhaustive rule alternatives and independent conjunctive subgoals can find such a proof. This establishes completeness at the root without a budget; it does not turn a restricted internal failure into a global negative fact.

For rules a ← b and b ← a with no facts or other seed, neither atom has a finite proof. The program returns NOT_ENTAILED. This is not a proof of ¬a: the interpretation making both atoms true is also a model. In fact, every positive definite-rule knowledge base has the all-true model. Missing a derivation must not silently become negation as failure.

The example exposes a subtler mistake than simply forgetting the cycle check. The tests execute a deliberately modified version that caches every fully failed recursive goal by name. It records the first failure of cleared, then reuses that failure when cleared is requested later with fewer ancestors. The modified program incorrectly returns NOT_ENTAILED for entry, although the returned proof from the correct program can be checked directly. A failed search result needs its restrictions and stopping reason; this chapter uses no global failure cache. Tabling requires a fuller treatment of dependencies and pending cyclic calls, rather than this one-bit cache.

Ancestor pruning does not make the implementation fast. It can re-prove the same subgoal in many branches. Let N count input facts, rule headers and body occurrences, plus 1; let U be the number of distinct atoms including the query, G the goal visits, T the rule attempts, and H the total size of retained trace data, including ancestry tuples. With atomic symbol costs and expected constant-time hash operations, time is O(N + G(1+U) + T + H). Ancestry membership and extension each cost up to O(U); building proof tuples is charged to the visited premises. The counters alone omit those per-visit costs.

A conservative space bound is O(N + U² + S + H), where S is the largest total number of proof nodes retained in current successful-premise lists or in the returned proof. The active stack holds at most U+1 goal calls, counting the final repeated-goal check, and its copied ancestry tuples account for U². Both repeated search and an explicitly expanded proof tree can grow rapidly; the bounds do not promise polynomial time or a small certificate. trace=False avoids retaining events but still returns a proof on success. Python recursion depth and available memory remain limits.

The implementation has no first-order terms, unification, fresh rule variables, answer substitutions, negation, cuts or side effects. Extending an atom from a string to a variable-bearing term is not enough to implement Prolog. Rule instances, substitutions, backtracking over alternative answers and termination all need new invariants.

Audit success, restricted failure and interruption

  1. Check the six-node proof. Why does it contain two badge leaves and no use of rule 1?

    Answer: Rule 0 requires separate proofs of approved and cleared. Approval uses rule 2 with the badge fact. Clearance uses rule 3, whose approval premise again uses rule 2 and badge. That gives one entry node, two approved nodes, one cleared node and two badge leaves. Rule 1 was tried but its cyclic branches failed. A proof tree records the successful justification; the search trace also records discarded attempts.

  2. Explain the unsafe cache. Why does the first failure of cleared not settle its second call?

    Answer: The first call has ancestors (entry, approved), so cleared’s only rule revisits an active approval and is cut. The second has only (entry), allowing approval to be explored and proved from badge. Caching the first failure by atom name removes this distinction. The executed faulty variant returns NOT_ENTAILED; the correct solver returns the displayed proof. Siblings must not inherit completed siblings as ancestors.

  3. Use the exact budget units. What do cap 6 and cap 7 mean for the main example? At cap 0, compare a given fact, an empty-body rule and an atom with no supporting rule.

    Answer: Cap 6 interrupts before the seventh necessary rule attempt and returns UNKNOWN with no complete query proof. Cap 7 returns ENTAILED. A given fact succeeds at zero; an empty-body rule requires an attempt, so it reports UNKNOWN at zero; an unsupported atom exhausts zero alternatives and reports NOT_ENTAILED. Reaching a cap does not by itself mean interruption: a self-rule a ← a with no alternative finishes as NOT_ENTAILED after one attempt and one cycle cut.

  4. Separate entailment from truth in a model. With no facts and only a ← b and b ← a, why is a not entailed? Is ¬a entailed? Would a depth-first solver without cycle pruning necessarily stop?

    Answer: Setting both atoms false satisfies both implications, so a is not true in every model. Setting both true also satisfies them, so ¬a is not entailed either. The unpruned search can alternate a, b, a, b indefinitely. Our finite ancestor check terminates this branch, and the root can report non-entailment after exhausting its alternatives.

Separate proof rules from the search strategy

Poole and Mackworth’s Artificial Intelligence: Foundations of Computational Agents, third edition, section 5.3, presents propositional definite clauses, the meaning of a negative query answer and top-down proof construction. The first edition’s section 5.3.4.3 gives the per-subgoal ancestor update used to motivate our pruning policy. These are different editions of the same textbook, not independent experimental replications. Third edition, first-edition cycle discussion.

Frank Pfenning’s Goal Stacks, CMU 15-317 Lecture 20, is dated April 4, 2023. It separates clause choice, subgoal ordering and unification, then makes remaining goals explicit through a continuation stack. This chapter borrows that conceptual separation; its Python uses ordinary recursive calls, and it does not reproduce the notes’ quantified Horn calculus or Prolog metainterpreter. Sections 1 to 4

For validation, the tests evaluate all truth assignments of small original knowledge bases rather than trusting the search’s own recursion. They independently verify every returned proof against the facts and raw rule IDs, check the trace’s active ancestry and rule order, and exercise exact budget boundaries. The main example is also tried under every permutation of its four rules. Changing the order can change the cost and selected proof; it must not change unbudgeted entailment. No historical implementation, performance table or source code was copied.

Make a prediction, then check

In the example, cleared fails under ancestors (entry, approved). It is later requested under (entry). What should the solver do?

Choose one answer

Learning objectives

  • Construct auditable proofs from positive propositional rules, distinguish AND goals from OR rules, and recover from failed rule attempts.
  • Explain completeness-preserving ancestor pruning in the finite propositional setting, distinguishing restricted failure, non-entailment, negation and budget uncertainty.

Prerequisites & connections

Explore related knowledge →

References

  1. Artificial Intelligence: Foundations of Computational Agents, 3e — 5.3 Propositional Definite Clauses
    David L. Poole; Alan K. Mackworth · 2023
  2. Artificial Intelligence: Foundations of Computational Agents, 1e — 5.3.4.3 Infinite Loops
    David L. Poole; Alan K. Mackworth · 2010
  3. Lecture Notes on Goal Stacks — 15-317 Constructive Logic, Lecture 20
    Frank Pfenning · 2023

Version1 · Editorial status: Recorded technical checks completed

View technical check record (AI)

Codex · 2026-09-05 · Codex technical check: primary-source locations, original runnable models, independent finite-state oracles, bilingual review and second-agent cross-checks; not independent human peer review.

  • Reread both complete locales: six stable anchors, four displays, four answered exercises, identical complete Python and the six-node tree. Defines positive propositional definite rules, reusable facts, empty AND/OR, conjunctive goals and alternative rules, with no first-order variables, answer substitutions or Prolog effects.
  • All eight author tests passed: 256 two-atom rule sets × four fact sets × three queries × five caps = 15,360 runs; 450 random programs with duplicate bodies/facts/rules, each at five caps plus reversed rule/body order = 2,700 runs. Direct original-rule Boolean models are independent of search recursion; proof trees are checked against facts and raw rule IDs, and traces independently replay active ancestry, rule order and all five counters.
  • Verified the main example’s 9 goal visits, 7 rule attempts, 2 fact hits, 2 cycle cuts, 3 failed rules and 6 proof nodes; all 24 rule permutations preserve unbudgeted entailment. An executed mutant globally caches exhausted recursive failures by atom name and incorrectly reports NOT_ENTAILED when cleared’s ancestry changes from (entry, approved) to (entry). The counterexample was run, not merely asserted.
  • Exact boundaries cover main caps 0–8, a given fact or unsupported goal finishing at zero, an empty-body rule costing one attempt, a self-cycle exhausting exactly at its cap, a useful rule after a cycle requiring another attempt, a failed later AND premise followed by another OR rule, duplicate-body normalization, input preservation and invalid containers/empty or Boolean atoms and budgets. Interruption has no complete root proof and does not certify non-entailment.
  • Separately checked guarantees: fact/rule-tree induction gives soundness; finite atoms and ancestor nonrepetition give termination for this search; decreasing first-derivation layers supply a retained proof and root completeness. Restricted failures are not globally cached; accepting an earlier premise’s first proof uses propositional, side-effect-free independence and is not extended to shared first-order variables. Time/space explicitly count atomic costs, expected hashing, ancestry copies, traces and expanded proof nodes, without linear or polynomial worst-case claims.
  • Individually compiled using repository display-math plugins, remark-math and strict KaTeX, then actually rendered both React static HTML files: four displays, six headings and four strong answers per locale, no math errors or emphasis remnants outside code. Targeted prose scan followed by rereading; this is AI author technical self-checking, review remains written, and independent review is recorded separately. No human expert review, whole-site build or browser acceptance is claimed.
  • Read both complete articles, implementation, metadata and all8 author tests; reran all successfully. Six anchors,4 formulas,4 answered exercises and full Python correspond.
  • Independent oracle enumerates absence or a chosen support rule for each nonfact atom, requires the query and all selected premises present, and checks an acyclic support graph via topological ranks. It neither enumerates truth models nor performs forward Horn closure or recursive backward goal search. A graph provides a finite proof by rank; conversely first-derivation ranks select such supports for finite positive propositional rules.
  • Checked13,888 semantic queries and104,306 support assignments, with6,376 support witnesses and7,297 iteratively audited certificate nodes. Covers all two-atom rule/fact subsets plus fresh queries, all301 three-atom programs of at most2 rules with fact subsets,500 random models,160 denser recursive models without empty-rule shortcuts and24 main-rule permutations.
  • Budget oracle does not rerun author recursion: truncate the unlimited event stream before the cap+1-th try, append unknown returns in reverse active-call order, and independently count that prefix. All56,421 complete budget results matched;13,888 trace-free runs also matched. Unlimited runs totaled8,130 rule attempts and21,758 goal visits.
  • Verified main counts9/7/2/2/3 and6-node proof; cleared fails under(entry,approved) and succeeds under(entry). The author-executed global name-only failure cache mutant is wrong. Siblings do not inherit completed siblings. Unseeded cycles prove nothing; later AND failure requires another OR rule, while pure ground, effect-free semantics permit the earlier subgoal first successful proof.
  • Checked soundness by proof-tree induction, decreasing first-derivation ranks for a retained proof, finite branch depth/alternatives and root completeness; restricted failed does not certify global non-entailment. Facts/unsupported goals can finish at zero; empty rules need an attempt. Exact budget exhaustion can still complete failure or a proof. Non-entailment is not classical negation.
  • Reviewed time/space accounting for tuple ancestor membership/copying, input normalization, proof children and retained trace. N contains the empty-input constant; U includes the query and is at least1; S/H cover retained proofs and trace history. Atomic/expected-hash assumptions and Python recursion/memory limits are explicit; no false linear/polynomial total-search guarantee.
  • Independent strict MDX/remark-math/repository math plugins/KaTeX and actual React static HTML passed:4 displays,6 headings,4 strong answers each, no math errors or emphasis remnants outside code. No whole-site build or browser acceptance performed.
  • Promotion preserves full prose, equations, program and exercises. Tests load published articles only, with draft fallback/skip paths removed and the Prolog review assertion updated to checked, with real-engine tests separated; algorithm and independent oracle logic are unchanged. Final review binds both MDX SHA-256 hashes.
  • Navigation-only reread: linked the completed Horn and forward/backward chaining articles directly. All claims, code, formulas, exercises, prior source checks and evidence remain unchanged.

Source locations checked:

  • Artificial Intelligence: Foundations of Computational Agents, 3e — 5.3 Propositional Definite Clauses · Actually read canonical artint.info 3e §5.3 and the author UBC mirror: lines 25–59 definite syntax/empty bodies; 86–109 query entailment and no versus false; 177–197 least-model soundness/completeness; 198–270 top-down answer clauses and rule selection; 288–315 choice/selection, repeated goals, proof-method equivalence and Example 5.13. Canonical page reread through line 322, copyright 2023 and generated 2025-06-28 distinguished. Our finite ancestor-pruning proof and budget convention are independently derived, not a copied source implementation.
  • Artificial Intelligence: Foundations of Computational Agents, 1e — 5.3.4.3 Infinite Loops · Actually read the full 41-line author-hosted first-edition page: lines 15–23 cyclic versus well-founded rules, 24–33 separate ancestor set per subgoal and child=parent ancestry plus parent atom, 34–36 well-founded ordering and bottom-up comparison, 39–40 copyright 2010 and CC BY-NC-ND 2.5 Canada. Source is link/reference only, with no copied code/figures/paragraphs.
  • Lecture Notes on Goal Stacks — 15-317 Constructive Logic, Lecture 20 · Actually read the official 8-page author PDF: page 1 cover gives Lecture 20 and Tuesday 2023-04-04; §1 lines 12–23 lists subgoal order, clause choice and unification; Figure 1 on page 2 states the more general quantified Horn system; §2 pages 3–4 lines 88–193 makes remaining goals a continuation and empty stack success; §3 Theorem 1 pages 4–5 and §4 Theorem 3 pages 6–7 concern translation correctness. The page-8 Prolog listing was seen but not run or copied. No claim that the source implements our finite ancestor-check/budget algorithm.
  • Artificial Intelligence: Foundations of Computational Agents, 3e — 5.3 Propositional Definite Clauses · Independently reread canonical3e §5.3: lines25–59 definite clauses and empty bodies;86–109 no answer versus falsity;177–197 least model;198–270 top-down answer-clause construction;288–315 rule choice, proof-method equivalence and depth-first cycling in Example5.13. Copyright2023 distinct from HTML generation2025. Generalized all-consequences wording is not adopted beyond the article positive-atom scope.
  • Artificial Intelligence: Foundations of Computational Agents, 1e — 5.3.4.3 Infinite Loops · Independently read the full41-line author-hosted page, especially15–23 cyclic/acyclic rule relations,24–33 per-subgoal ancestry and child=parent ancestry plus parent,34–36 well-foundedness,39–40 copyright2010/license. A separate edition of the same book, not an independent empirical replication.
  • Lecture Notes on Goal Stacks — 15-317 Constructive Logic, Lecture 20 · Independently read official8-page PDF: cover identifies Pfenning, Lecture20, TuesdayApril4,2023. §1 lines12–23 distinguishes subgoal order, clause choice and unification; §2 PDFpp2–4 includes quantified syntax and continuation goals; §3 Theorem1 and §4 Theorem3 PDFpp4–7 concern the transformed calculus. These support conceptual separation only, not our ancestor-pruning theorem. PDF text/mathematics was read, but this review did not execute the source Prolog listing or claim a line-by-line verification of its whole quantified calculus.

Related topics

No matches. Try a synonym or acronym.

0 results shown

Wrap the whole query in double quotes for a phrase match.