Abductive reasoning: which assumptions explain the observations?
溯因推理
Enumerate minimal explanations for a small device diagnosis, separate consistency from entailment, and compare size, cost and evidence.
abductive-reasoningA dark screen does not identify a failed board
A hypothetical portable recorder has a dark screen and sends no radio beacon. A damaged controller board could explain both observations. A failed display and a failed radio module could also explain them together. Which assumptions should a diagnostic assistant return?
Abduction searches for assumptions that would explain an observation under a supplied model. Deduction starts with the board fault and derives its predicted symptoms. Induction would use examples of devices and outcomes to learn or revise a general rule. Here the rules are fixed; the missing information concerns this recorder. An explanation is a candidate to investigate, not a finding that its assumed cause actually occurred. Kakas, Kowalski and Toni, author copy, section 1
The following fixture is deliberately small. Fault names describe conditions at one inspection, and each rule states what must follow in this hypothetical model. They are not measured failure statistics or claims about commercial recorders.
| Permitted assumption | Predicted observations | Assigned cost |
|---|---|---|
| board_fault | screen_dark, beacon_absent | 7 |
| display_fault | screen_dark, display_test_fails | 2 |
| radio_fault | beacon_absent | 1 |
| battery_empty | screen_dark, beacon_absent | 4 |
A verified background fact says battery_full. A separate integrity constraint forbids battery_full and battery_empty together. This excludes the empty-battery explanation without treating a full battery as proof that every component works.
For the two original observations, the remaining subset-minimal explanations are {board_fault} and {display_fault, radio_fault}. The first uses fewer assumptions; the second has lower assigned cost, 3 instead of 7. These costs are a chosen preference scale, not probabilities or validated repair prices.
An explanation must imply the observations and remain possible
Let F be background facts, R a finite collection of positive definite rules, H the explicitly allowed hypothesis atoms, O the positive atoms to explain, and I a collection of denials. Every name denotes a proposition; there are no variables or function symbols. A rule has one positive head. A denial says that its entire body cannot hold simultaneously:
An empty rule body is true and therefore asserts its head. An empty denial forbids true itself, so it makes the background inconsistent. Names such as beacon_absent are ordinary positive atoms. The interpreter does not infer them merely because a beacon fact is missing, and it does not parse the word not as negation.
For a candidate assumption set Δ, write TΔ for F, R, I and the atoms in Δ taken together. The explanation family is:
The conjunction of no observations is true. Satisfiability is still required: an inconsistent background must not win by implying everything. Observations are targets, not extra input facts. Adding screen_dark and beacon_absent to F before explaining them would make the empty assumption set look successful. Poole and Mackworth, section 5.8
This definition adopts a consistency view of integrity constraints: the expanded theory must have a model satisfying the denials. It does not require F, R and Δ alone to entail every denial. The ALP literature discusses these as different choices; for example, a theory that says nothing about wet and powered can be consistent with forbidding their conjunction without proving that they cannot coexist. Kakas, Kowalski and Toni, section 1.2
The hypothesis vocabulary also limits what counts as an explanation. Allowing the observation itself as a hypothesis produces a valid but often uninformative answer. This API allows an assumable to also occur as a rule head or an already known fact; redundant assumptions will be removed by minimality. An application that wants hypotheses to name only basic fault conditions must enforce that modelling policy when choosing H. Unselected hypotheses are not asserted false.
Three different preferences
A subset-minimal explanation has no strictly smaller explaining subset:
“Minimal” does not mean the smallest size among all explanations. Neither member of the recorder’s two-answer family contains the other. Removing either member of the two-fault explanation loses one of the observations, so that explanation is minimal despite having two assumptions.
With a specified nonnegative cost per hypothesis, two further selections are possible:
Every minimum-cardinality explanation is subset-minimal. When explanations exist and costs are nonnegative and additive, at least one global cheapest explanation is subset-minimal: repeatedly discard redundant assumptions, never increasing cost. Zero costs require care. If {a} explains an observation and an irrelevant z costs zero, {a,z} can tie on cost while failing subset minimality. The program’s minimum_cost field returns all cheapest minimal explanations; it deliberately omits such redundant ties. With strictly positive costs, every globally cheapest explanation is minimal. Negative weights are rejected because adding irrelevant assumptions could then improve cost.
Try assumption sets, then check their consequences
For each candidate, compute the least positive consequence set. Starting with the facts and that candidate, repeatedly apply rules until no new atom appears:
Every atom added this way is a consequence. Conversely, any model of the facts and rules must contain every stage by induction. The fixed point M is therefore their least model. The implementation uses in-place scans, which can apply several successive implications in one pass; it reaches the same fixed point, although its intermediate passes need not equal these simultaneous stages.
A denial fails exactly when its body is contained in M. If that happens, every model of the positive rules contains the forbidden body, so no acceptable model exists. Otherwise M itself satisfies all denials and witnesses consistency. In this consistent case, a positive observation is entailed exactly when it belongs to M: if absent, M is a countermodel. This equivalence justifies checking denials and observations against the same closure.
The complete Python 3.10+ program accepts lists or tuples of atom names. Each rule is (head, body); each constraint is a forbidden body. Duplicate atoms, body entries, rules and denials have set semantics. Inputs are copied and normalized into a deterministic order. If supplied, costs must be a dictionary with exactly the distinct assumable names as keys and nonnegative integer values; booleans and floating-point values are rejected. Omitted costs default to 1.
The program first checks the background without assumptions. If consistent, it enumerates every subset of H in increasing cardinality, including the empty set. A successful candidate is retained only if it contains no previously retained explanation. Every strict subset was considered at a smaller size. Any successful strict subset contains a minimal one, which would already be retained. Thus the filter removes all and only nonminimal explanations; it does not confuse minimality with whichever answer was encountered first.
from itertools import combinations
def atom(value):
if type(value) is not str or not value:
raise ValueError('atoms must be nonempty strings')
return value
def atoms(value):
if type(value) not in (list, tuple):
raise ValueError('expected a list or tuple of atoms')
return frozenset(atom(x) for x in value)
def abduce(facts, rules, assumables, observations, constraints=(), costs=None):
facts, allowed, observed = atoms(facts), atoms(assumables), atoms(observations)
if type(rules) not in (list, tuple):
raise ValueError('rules must be a list or tuple')
normalized = set()
for rule in rules:
if type(rule) not in (list, tuple) or len(rule) != 2:
raise ValueError('each rule is (head, body)')
normalized.add((atom(rule[0]), atoms(rule[1])))
rules = tuple(sorted(normalized, key=lambda r: (r[0], tuple(sorted(r[1])))))
if type(constraints) not in (list, tuple):
raise ValueError('constraints must be a list or tuple of forbidden bodies')
denials = tuple(sorted({atoms(c) for c in constraints},
key=lambda c: (len(c), tuple(sorted(c)))))
names = tuple(sorted(allowed))
if costs is None:
weights = {a: 1 for a in names}
else:
if type(costs) is not dict or set(costs) != allowed:
raise ValueError('costs must have exactly the assumable keys')
if any(type(v) is not int or v < 0 for v in costs.values()):
raise ValueError('costs must be nonnegative integers')
weights = dict(costs)
stats = {'candidates': 0, 'consistent': 0, 'explaining': 0, 'rule_checks': 0}
def close(seed):
known = set(seed)
while True:
before = len(known)
for head, body in rules:
stats['rule_checks'] += 1
if body <= known:
known.add(head)
if len(known) == before:
return frozenset(known)
def consistent(known):
return not any(body <= known for body in denials)
def result(status, minimal):
explanations = tuple(tuple(sorted(e)) for e in minimal)
totals = tuple(sum(weights[a] for a in e) for e in explanations)
if explanations:
size, cost = min(map(len, explanations)), min(totals)
small = tuple(e for e in explanations if len(e) == size)
cheap = tuple(e for e, c in zip(explanations, totals) if c == cost)
else:
small = cheap = ()
return dict(status=status, explanations=explanations, costs=totals,
minimum_cardinality=small, minimum_cost=cheap, **stats)
if not consistent(close(facts)):
return result('background-inconsistent', [])
minimal = []
for size in range(len(names) + 1):
for chosen in combinations(names, size):
candidate = frozenset(chosen)
stats['candidates'] += 1
known = close(facts | candidate)
if not consistent(known):
continue
stats['consistent'] += 1
if not observed <= known:
continue
stats['explaining'] += 1
if not any(previous <= candidate for previous in minimal):
minimal.append(candidate)
return result('explained' if minimal else 'no-explanation', minimal)
FACTS = ('battery_full',)
RULES = (
('screen_dark', ('board_fault',)),
('beacon_absent', ('board_fault',)),
('screen_dark', ('display_fault',)),
('beacon_absent', ('radio_fault',)),
('screen_dark', ('battery_empty',)),
('beacon_absent', ('battery_empty',)),
('display_test_fails', ('display_fault',)),
)
ASSUMABLES = ('board_fault', 'display_fault', 'radio_fault', 'battery_empty')
OBSERVED = ('screen_dark', 'beacon_absent')
DENIALS = (('battery_empty', 'battery_full'),)
COSTS = {'board_fault': 7, 'display_fault': 2, 'radio_fault': 1, 'battery_empty': 4}
def main():
r = abduce(FACTS, RULES, ASSUMABLES, OBSERVED, DENIALS, COSTS)
print('status:', r['status'])
print('minimal:', r['explanations'])
print('costs:', r['costs'])
print('fewest:', r['minimum_cardinality'])
print('cheapest minimal:', r['minimum_cost'])
print('work:', tuple(r[k] for k in ('candidates', 'consistent', 'explaining', 'rule_checks')))
extra = abduce(FACTS, RULES, ASSUMABLES,
OBSERVED + ('display_test_fails',), DENIALS, COSTS)
print('with display test:', extra['explanations'])
loose = abduce(FACTS, RULES, ASSUMABLES, OBSERVED, (), COSTS)
print('without denial:', loose['explanations'])
known = abduce(FACTS, RULES, ASSUMABLES, ('battery_full',), DENIALS, COSTS)
print('already explained:', known['explanations'])
missing = abduce(FACTS, RULES, ASSUMABLES, ('water_inside',), DENIALS, COSTS)
print('outside model:', missing['status'])
if __name__ == '__main__':
main()
Running the file prints:
status: explained
minimal: (('board_fault',), ('display_fault', 'radio_fault'))
costs: (7, 3)
fewest: (('board_fault',),)
cheapest minimal: (('display_fault', 'radio_fault'),)
work: (16, 8, 5, 224)
with display test: (('board_fault', 'display_fault'), ('display_fault', 'radio_fault'))
without denial: (('battery_empty',), ('board_fault',), ('display_fault', 'radio_fault'))
already explained: ((),)
outside model: no-explanation
work gives generated candidates, consistent candidates, explaining candidates before minimal filtering, and rule checks. Here 16 subsets are generated; the 8 containing battery_empty violate the denial. Five of the remaining subsets explain both observations, and two survive minimal filtering. A rule check is one visit to a normalized rule, whether or not its body holds; it is not a count of individual body-atom tests. The 224 checks include the initial background closure and the repeated empty-candidate closure.
The result ((),) is a family containing the empty explanation. The result () is an empty family. background-inconsistent identifies an invalid starting theory; no-explanation means a consistent background has no explaining subset within H. Neither is an unsupported choice of the “closest” diagnosis. The routine has no budget or partial-result mode: its counts and answer family describe a completed finite run.
What completeness costs
Let h be the number of distinct assumables, u the number of distinct atoms anywhere in the input, n one plus the raw row and atom-occurrence count, and s the analogous size after duplicate removal. Let m be the number of returned minimal explanations. Atom comparison/hashing and integer arithmetic are counted at unit cost, with expected constant-time hash operations.
There are exactly 2 to the power h candidates after a successful background check. Each closure needs at most u productive scans plus one final scan. Checking denials and observations is linear in their total encoded size. A candidate may also be compared with all retained explanations, each containing at most h atoms. A deliberately loose bound for this implementation, including canonical sorting of tuple keys, is:
Space includes the normalized model, current closure and retained answer sets, tuples and costs. Character lengths and the bit cost of large integer sums/counters require additional accounting. This is an exhaustive teaching baseline, not a polynomial-time abduction algorithm. Its output alone can be exponential: for k independent observations, each explained by either of two private assumptions, every choice of one assumption per pair is minimal. That gives 2 to the power k answers from a model of size proportional to k.
The model can miss the actual fault
The returned sets prove conditional statements about the encoded recorder. They do not show which components actually failed. The absence of battery_empty relies on treating the battery inspection and its denial as reliable. A bad inspection, omitted symptom mechanism or mistaken implication changes the answer. Checking causal claims requires justified causal modelling and evidence about the device; propositional explanatory adequacy alone does not provide that evidence.
Adding the positive observation display_test_fails changes the minimal family to {board_fault,display_fault} and {display_fault,radio_fault}. The old one-fault board explanation no longer covers everything. The new family is not a subset of the old minimal family, even though every explanation of the enlarged observation set still explains the original observations. More generally, stronger observations can require additional assumptions or leave no explanation.
This implementation has no probabilities, noisy sensors, time, repair actions, first-order terms, negation as failure or general integrity formulas. The fact that a hypothesis is absent from every returned minimal set does not prove it false: a consistent, nonminimal explanation may contain it. Even occurrence in every minimal explanation is conditional on this H and rule model, rather than an empirical discovery.
Abductive diagnosis also differs from consistency-based diagnosis. A consistency test asks whether assumptions and observations can coexist; this chapter additionally requires the assumptions to imply the observations. If all rules predicting a dark screen were absent, merely allowing a world with a dark screen would not explain it. The book’s comparison of the two diagnostic tasks is useful when deciding what fault behaviour a model must represent. Poole and Mackworth, section 5.8
A practical next step is to compare predicted test outcomes under the remaining explanations and obtain discriminating evidence. Choosing a test requires its reliability and cost model. Picking the cheapest explanation and announcing it as the confirmed cause skips that step.
Change the evidence before choosing an explanation
1. Count assumptions, then price them
For the original recorder, why is {display_fault,radio_fault} minimal? Which explanation has minimum cardinality, and which has minimum assigned cost?
Answer: Removing the display fault loses screen_dark; removing the radio fault loses beacon_absent. The two-fault set therefore has no explaining strict subset. {board_fault} has minimum cardinality 1. The pair costs 2 + 1 = 3, below the board’s 7, so it has minimum cost. None of these preference statements confirms a fault.
2. Explain nothing, or find no explanation
Predict the result when the sole observation is battery_full, when it is water_inside, and when an empty denial is added. Why not put the observations into F first?
Answer: battery_full already follows, so the family is ((),). No allowed candidate derives water_inside, giving no-explanation and (). An empty denial rejects every interpretation, giving background-inconsistent with zero generated candidates. Inserting observations as facts would make them follow without explaining how they arose; the original symptom pair would incorrectly appear to need no assumptions.
3. Strengthen the observation or remove a constraint
Add display_test_fails to the original observations. Then, in a separate run with the original observations, remove the battery denial. List the minimal explanations for both runs.
Answer: The additional test requires display_fault, yielding {board_fault,display_fault} and {display_fault,radio_fault}. Removing the denial instead admits {battery_empty} alongside {board_fault} and {display_fault,radio_fault}. The second run demonstrates what the encoded constraint contributes; it is not evidence that a battery can be physically full and empty at once.
4. Make a redundant assumption free
Suppose a alone implies o, z affects no rule, and both are allowed. Set their costs to 1 and 0. Does minimum_cost return every globally cheapest explaining set? What changes if z costs −2?
Answer: The only minimal explanation is {a}, but {a,z} is also a valid explanation of cost 1. minimum_cost reports only {a} because it selects among minimal explanations. With weight −2, the redundant pair would cost −1 and beat {a}; that breaks the justification for restricting cost selection to minimal sets. The program rejects negative costs.
Compare definitions before comparing solvers
Poole and Mackworth give a propositional account using assumables, consistency and implication. Kakas, Kowalski and Toni’s survey separates the allowed hypotheses, preferences, integrity-constraint semantics and proof procedures. Its section 1 is enough to see why “an abduction solver” does not identify one universal input language or one universal meaning of a preferred answer. The code here selects a finite positive fragment and the consistency view explicitly; it implements neither the survey’s full logic-programming framework nor its treatments of negation and argumentation.
For bibliographic accuracy, the author-hosted paper’s title-page footnote says 1993, whereas Kowalski’s publication list identifies Journal of Logic and Computation 2(6), pages 719–770, as 1992. The source entry uses that author bibliography and records the discrepancy; the internal pages cited here are the author copy’s page numbers. Author publication list
Forward chaining supplies the positive consequence computation. SAT provides another way to check models, while nonmonotonic reasoning studies how conclusions may change when information changes. None of those components decides what the device’s allowed hypotheses should mean.
The independent tests interpret complete Boolean assignments and ask whether every compatible model satisfies the observations; they do not reuse the program’s closure. They cover 65,536 two-atom frameworks and 240 seeded larger cases, with duplicate/reordered inputs, inconsistent backgrounds, unseeded cycles, zero-cost ties and changes of observation. An additional deliberate mistake inserts the observations into the facts and produces the wrong empty explanation. These are AI technical checks of the stated finite model, not a human diagnosis study or a verification of real hardware.
Make a prediction, then check
Two observations are explained by {board fault} and by {display fault, radio fault}; deleting any assumption from either makes it insufficient. Their costs are 7 and 3. Which statement is correct?
Learning objectives
- Distinguish deduction, abduction and induction; check explanatory entailment and consistency within a declared hypothesis vocabulary without treating a formal explanation as a confirmed cause.
- Use least-model reasoning to justify explanation checks for finite positive rules and denials; enumerate all subset-minimal explanations including empty/no-explanation and inconsistent-background cases.
- Compare minimality, minimum cardinality and minimum cost; explain zero-cost redundant ties, stronger observations and exponential output, and test the program against classical model enumeration.
Prerequisites & connections
Explore related knowledge →References
- Artificial Intelligence: Foundations of Computational Agents, 3rd edition — 5.8 Abduction
David L. Poole; Alan K. Mackworth · 2023 - Abductive Logic Programming
A. C. Kakas; R. A. Kowalski; F. Toni · 1992 - Robert Kowalski — Abductive Logic Programming bibliography
Robert A. Kowalski
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.
- Original device model, complete bilingual prose with6 stable anchors,6 displays, identical complete Python and4 answered exercises. Reread roles of facts/rules/allowed hypotheses/target observations/denials; observations are not facts, unselected assumptions are not default false, beacon_absent is not syntactic negation, and missing mechanisms are not invented. An independent AI reviewer suggested avoiding the technical default-logic term extension; changed one limitations phrase from nonminimal extension to nonminimal explanation in both locales, with no mathematical or code change.
- All9 tests executed and passed. Independent reference enumerates complete Boolean interpretations, without implementation closure/repeated rule scans. It checks facts, implications and denials directly, filters worlds by a hypothesis set and requires every remaining world to contain observations. Exhausted256 two-atom rule sets×4facts×4assumable sets×4observations×4denial profiles=65,536 frameworks; complete semantic result fields match, with rule-work counts tested separately.
- Another240 seeded frameworks on1–7 atoms compare with complete models, covering up to11raw rules,3denials and costs0–5. Each also checks input preservation and full-result invariance including rule_checks after duplicate facts/bodies/rules/constraints and reversal. Whenever explanations exist, returned cheapest minimal explanations agree with the global minimum cost over all explaining sets.
- Main actually prints10lines: minimal board_fault and display_fault+radio_fault, costs7/3,16candidates/8consistent/5explaining/224rule checks. Adding display_test_fails yields two pairs; removing the battery denial adds the battery_empty singleton. Already entailed/empty observations return((),), outside-model observations no-explanation, and empty denials/derived contradictions background-inconsistent without candidates.
- Separately verified unseeded cycles, assumables overlapping heads/known facts, empty-body rules, nonempty atom names with spaces/newlines/Chinese, and37invalid input cases. Redundant zero-cost explanations may tie with minimal ones; minimum_cost returns only the minimal ones and rejects negative costs. Executed the deliberate observation-as-fact mutant: it wrongly returns the empty explanation for the main fixture, unlike the implementation.
- Mathematical self-review: finite positive closure is included in every rule model; a denial body contained in it makes consistency impossible, otherwise that least model witnesses satisfiability and refutes absent positive observations. Cardinality-ordered candidates and retained-subset filtering yield all and only minimal explanations. Nonnegative additive costs preserve at least one global optimum, but zero costs need not make every optimum minimal. Exponential candidates/output family, stored-answer space, character/integer-bit costs and expected hashing are explicit.
- Individual strict MDX/remark-math/repository math plugins/KaTeX and actual React static HTML pass, each6displays/6headings/4strong answers, without emphasis remnants outside code or math errors. Stock-phrase scan has no matches; prose review clarified the Chinese positive-definite-rule phrase and replaced a nonexistent truth-maintenance catalogue link with the valid nonmonotonic-reasoning entry. No whole-site build, browser or actual-device experiment; AI technical self-check only, review remainswritten.
- Read both complete articles, formulas, fullPython, allnine author tests andmetadata without edits. F/R/H/O/I roles are clear; observations are not premises, unselected hypotheses are not asserted false, and absent/not within positive atom names is not syntactic negation. Head/fact overlap is allowed and distinguished from a modelling policy requiring basic hypotheses.
- The least-positive-model proof is correct: it lies in every positive-theory model; a contained denial body forces every model to violate integrity, otherwise the least model satisfies all denials and refutes missing positive observations. Consistency-based integrity is distinguished from entailing each denial, and inconsistent classical explosion cannot produce an explanation. Checked empty rule bodies, empty denials and unsupported cycles.
- Allnine final author tests actually passed, including the author’s65,536 full-model frameworks,240 random cases,37 invalid inputs, main fixture andinput preservation. The added independent semantic oracle neither enumerates complete Boolean models nor computes positive closure per candidate: it derives minimal hypothesis-support families for all atoms at once, from empty fact supports or singleton permitted hypotheses, joins body supports to head supports, removes strict supersets, then constructs observation-conjunction and denial support families.
- Compared67,956 complete return values, including status, every minimal explanation, costs, minimum cardinality, cheapest minimal explanations andall statistics. The65,536 exhaustive cases are all256 two-atom rule collections×fourfact sets×fourobservation sets×all16denial collections, withboth atoms assumable, systematically covering head overlap andderived assumptions. This differs from the author’s65,536 frameworks usingfourdenial profiles while varying the hypothesis vocabulary.
- New seed563093 generated1,200 cases withzero toeight atoms,zero to14raw rules,zero tothreedenials andcosts0–4, plus each duplicate/reversed variant for2,400 runs, checking deep-copied input preservation. Another12 independent paired-choice observation families verify2^k outputs fork=0..6 andexact exclusions by a cross-first/last choice conflict. Eight main/stronger-observation/omitted-constraint/empty-or-known/outside-model/zero-cost/opaque-Chinese-atom cases pass.
- Consistent/explaining candidate counts use Shannon-cofactor recursion on hypothesis-support families, without candidate closures or classical-world filtering. rule_checks are independently reconstructed from earliest proof times on AND hyperedges and a min-heap: facts at timezero and each normalized rule firing only at its position in a scan, followed by the final unchanged scan.113,629 nonzero-rule event computations and888,671 total rule visits match; the67,956 results collectively generate46,815 candidates andreturn6,807 minimal explanations.
- Main16candidates/8consistent/5explaining/224rule checks match exactly, withboard singleton versusdisplay+radio pair,costs7/3 anddifferent cardinality/cost selections. Stronger observations require display failure; removing the battery denial adds empty battery. No-explanation differs from a family containing the empty explanation; inconsistent background returns before candidates, andabsence is relative to fixedH. The API hasno budget/partial-list mode anddoesnotlabel aninterruption complete.
- Subset-minimality filtering, existence ofa minimal global optimum undernonnegative costs, zero-cost redundant ties intentionally omitted byminimum_cost, andthe negative-cost counterexample arecorrect. The loose timeO(n²log(2+n)+2^h((u+1)s+(m+1)(h+1))) includes normalization, closure andminimal-set comparisons; spaceO(n+m(h+1)) includesanswers. Unit atom/integer andexpected-hash assumptions, withadditional character/large-integer bit costs, areexplicit.
- Suggested replacing one nonminimal extension phrase withnonminimal explanation inboth locales to avoidconfusion withdefault-logic extensions. Reread the final prose/metadata change; mathematics/code/tests unchanged andno remaining issue. Verifiedfive files againstfinalsha manifest, actualstdout equals bothtext blocks byte-for-byte, andformulas/fullcode/sixanchors/fouranswers match.
- Final independent strictMDX/KaTeX andactualReact staticHTML passed, eachlocale withsixdisplays/sixheadings/fourstronganswers andnomath/emphasis errors outsidecode. Review renders saved separately as/tmp/aiwiki-abduction-reviewed-en.html andzh.html withoutediting authorHTML, drafts orrepository. AI technical cross-review only; nohuman expert approval, whole-site build, browser ordevice experiment.
- Promoted the full prose, equations, code and exercises. Tests read formal MDX only; removed temporary fallbacks/draft skips and updated review assertion to checked. Algorithm and independent references are unchanged; final record binds both locale hashes.
- Publication test migration found the main stdout still referenced a temporary BASE file. Verified that fixture exactly equals the full published text fence, then read the expectation from formal MDX. Retained exact complete-output equality without changing program results or removing the assertion.
- Publication copy check: restored normal English spacing around numbers and punctuation in the knowledge check. The technical meaning of the question, options, answer and explanation is unchanged; no article algorithm or equation was changed.
- Post-migration navigation check: both locales now link to the published nonmonotonic-reasoning chapter, removing obsolete planned labels and future wording. Other article content is unchanged; final hashes are rebound.
Source locations checked:
- Artificial Intelligence: Foundations of Computational Agents, 3rd edition — 5.8 Abduction · Actually read the complete86-line returned prose of canonical university3e §5.8: lines17–19 deduction/induction/abduction and rejection of contradictions;21–37 Horn clauses, assumables, target observations, scenario/implication/minimality;60–79 diagnostic comparison and method pointers;82–85 generation/copyright/licence. Several MathML formulas were missing from extracted text; use the separately visually read Kakas author pp3–4 for formal conditions rather than claim those omitted formulas were visible. Text ©2023, generated2025-06-28; no replication of source applications.
- Abductive Logic Programming · Opened author PDF with web tool (77pages), but returned text was visibly corrupted. Default sandbox curl failed DNS; authorized read-only network escalation downloaded the PDF to /tmp/aiwiki-next-abductive-reasoning/abdsurv.pdf. Rendered internalpp1–7 as kakas-01.png through kakas-07.png and actually viewed every one. p1 verifies title/authors and footnote1993; p2 reasoning distinctions and explanatory hypothesis versus truth; p3 §1.1 conditions(1) entailment/(2) consistency and given abducibles; p4 preferences/minimality; p5 minimal versus nonminimal examples, proof procedures and usual basic-abducible convention; p6 semantic/procedural distinction; p7 §1.2 consistency versus theoremhood interpretations. The teaching API explicitly permits assumables among heads, unlike the convenient basic convention discussed on pp5–6, and chooses denial-consistency semantics. No implementation/source example copied, and no remaining pages claimed read.
- Robert Kowalski — Abductive Logic Programming bibliography · Actually opened https://www.doc.ic.ac.uk/~rak/ and found Abductive Logic Programming, web lines274–278: A.C.Kakas, R.Kowalski, F.Toni, Journal of Logic and Computation2(6),719–770(1992). This author bibliography resolves which year is recorded, without hiding that PDF p1 says1993. DOI open returned a non-retryable safe-open error; no publisher page was claimed read.
- Artificial Intelligence: Foundations of Computational Agents, 3rd edition — 5.8 Abduction · Independently opened official university §5.8 and read returned lines17–37 on abduction versus deduction/induction, consistency, allowed hypotheses, observation targets and subset minimality; lines60–79 on abductive versus consistency-based diagnosis and proof-based approaches; lines82–85 for copyright2023 and HTML generation2025. Extractor omits several MathML formulas, so formal entailment/consistency conditions were independently checked on visible Kakas pp3/7 instead. No unavailable equations claimed seen and no source diagnostic examples adopted.
- Abductive Logic Programming · Independently viewed all seven retained source-page images kakas-01.png through kakas-07.png, rendered from the author’s Imperial-hosted abdsurv.pdf. Internal p1 title/authors and1993 footnote; p2 reasoning distinctions and provisional explanatory hypothesis; p3 §1.1 entails-observation plus consistency and domain-specific abducibles; p4 preferences and subset minimality; p5 redundant explanations, proof procedures and the convenient convention excluding rule-head predicates from abducibles; p6 semantics/procedure distinction; p7 §1.2 explicit consistency versus theoremhood views. The article intentionally allows head/assumable overlap and uses denials with consistency semantics. No full77-page review, renewed PDF download or use of its garbled native text claimed.
- Robert Kowalski — Abductive Logic Programming bibliography · Independently opened official Imperial author bibliography and read lines274–278: A.C.Kakas, R.Kowalski, F.Toni, Abductive logic programming, Journal of Logic and Computation2(6),719–770(1992). Visually confirmed the retained author PDF’s internal p1 footnote instead says1993; the article reports rather than hides this discrepancy. No publisher-page verification claimed.
Related topics