Logical Reasoning
Deductive Agent Reasoning: From Facts to Guaranteed Conclusions
An agent may store observations and rules yet still need to decide whether a proposed conclusion is justified. Deductive agent reasoning draws conclusions that follow necessarily from the agent's stated knowledge. You use it when a conclusion must be supported by explicit facts and rules. Here, the setting is finite, two-valued propositional logic: each proposition is true or false in a complete interpretation, even when the agent does not know which.
Knowledge and guaranteed conclusions
Write the agent's knowledge base as K and its query as q. A model represents one possibility compatible with everything stored. Entailment means that the query holds in every such possibility:
This guarantee is relative to the stored knowledge. If an observation or rule misrepresents the environment, a valid deduction need not describe the environment correctly.
For example, let V mean a credential is verified and E mean entry is permitted. From V and V⇒E, the agent can conclude E. From E and V⇒E, however, it cannot conclude V: the implication allows entry permission to be true for another reason.
A countermodel is enough to defeat an entailment claim. You do not need to show that the query is always false; one compatible possibility where it fails is sufficient.
Proofs and their guarantees
A proof procedure applies inference rules to stored sentences. Write K⊢q when that procedure derives q. The symbols ⊢ and ⊨ answer different questions: what can this procedure derive, and what follows in every model?
A procedure's soundness requires:
Its completeness supplies the reverse direction within the procedure's stated scope. Neither property alone promises efficient execution. Also, a search that has merely stopped running is different from a completed decision procedure.
Chaining rules without inventing facts
Many agents use definite Horn rules. For example:
Forward chaining adds C once both A and B are available. It repeats rule applications until no new atom can be added. For a finite propositional definite Horn knowledge base, this completed process derives exactly the entailed positive atoms.
Example: If the facts are A and B, and the rules are A∧B⇒C and C⇒D, chaining derives C and then D. Reapplying a rule does not create a new fact when its conclusion is already stored.
Under an open-world interpretation, an unproved atom is not automatically false. Inferring negation from absence would require an additional assumption beyond classical entailment.
Unknown queries and inconsistent knowledge
For a consistent knowledge base, distinguish three query statuses:
Status of the query | Semantic test | Agent's justified conclusion |
|---|---|---|
Entailed | Every model satisfies q | Accept q |
Refuted | Every model satisfies ¬q | Accept ¬q |
Undetermined | Some models satisfy q and others satisfy ¬q | Preserve uncertainty |
One general test is to add the negated query:
A resolution proof can establish this by deriving the empty clause, which represents contradiction. For example, resolving P∨Q with ¬P yields Q.
What to remember
- Entailment requires truth in every compatible model.
- A sound proof supports a conclusion; an unfinished or incomplete search does not settle failure.
- Missing facts can remain unknown.
- Refutation proves a query by showing that its negation contradicts the knowledge base.
Example: Establishing permission at a secure archive
An archive agent uses four propositions: C means a credential is verified, T means training is complete, E means entry is permitted, and L means a supervisor notification is logged. Initially, its entire knowledge base is:
Use classical propositional logic. Missing observations are not automatically false, and the atom set for the agent's stored state is exactly {C,T,E,L}.
a) Before receiving any training observation, is E entailed, refuted, or undetermined? Justify your answer with compatible assignments.
First, inspect the available facts. The initial forward-chaining closure contains ________ atom, namely C. The entry rule cannot fire because its training premise is unavailable. This failure alone does not establish ¬E.
Next, test both possibilities. Consider these complete assignments, written in the order (C,T,E,L):
Both satisfy C. In both, the premise C∧T is false, so the entry rule is satisfied. The logging rule holds in the first assignment because E is false, and in the second because both E and L are true.
The first assignment makes E false, while the second makes it true. Therefore entry permission is undetermined: K⊨E and K⊨¬E.
b) The agent now receives the observation T. Find the completed positive forward-chaining closure and its number of distinct atoms.
First, update the starting facts. The observed facts are now C and T, giving ________ starting atoms. Each observation is counted once.
Next, apply the entry rule. Both premises are available, so (C∧T)⇒E adds ________ to the closure.
Then, apply the logging rule. Since E is now available, E⇒L adds L. Every rule conclusion is already present after this addition, so further applications add nothing.
The completed closure is {C,T,E,L}, containing 4 distinct atoms. Both entry permission and logging are entailed after the training observation; the new evidence supplies the previously missing premise.
c) Using the updated knowledge base, prove L by resolution refutation.
First, write the rules as clauses and negate the query. Replacing each implication with its equivalent disjunction gives:
For refutation, also assume ¬L. The aim is to show that these clauses cannot all hold together.
Next, resolve backward from the negated query. Resolving ¬L with ¬E∨L produces ________. Resolving that result with the entry clause produces ________.
Finally, use the observed facts. Resolve ¬C∨¬T with C to obtain ¬T, then resolve ¬T with the observed T to obtain the empty clause:
The updated knowledge base together with ¬L is inconsistent. Therefore K∪{T}⊨L. The contradiction refutes the added negated query; the updated knowledge base itself remains consistent, as the all-true assignment demonstrates.
A monitoring agent uses P for a primary sensor alert, Q for a backup sensor alert, and R for a recorded alarm. Its knowledge base is K=(P∨Q)∧(P⇒R). Complete both result columns using T for true and F for false. The final column tests whether a row is a countermodel to the query R.
| P | Q | R | K | K and not R |
| T | T | T | ||
| T | T | F | ||
| T | F | T | ||
| T | F | F | ||
| F | T | T | ||
| F | T | F | ||
| F | F | T | ||
| F | F | F |
A software agent represents a validation pipeline with five Boolean atoms A,B,C,D,E. Its entire knowledge base is (A⇒B)∧(B⇒C)∧D; no sentence mentions E. How many assignments to these five atoms satisfy the knowledge base? Give the exact integer count, to zero decimal places.