Key ideas
Knowledge is not information. In the DIKW pyramid, data are raw symbols, information is interpreted data, knowledge is information actively integrated into our model of the world, and wisdom is knowing when to use it1. Top-down (symbolic) AI rests on representing knowledge and reasoning with it.
Representations form a spectrum1. At the simple end is algorithmic knowledge (a program: directly usable by a computer, but inflexible); at the other end natural language (most expressive, unusable for automatic reasoning). In between: network representations (semantic nets, stored as object–attribute–value triples), hierarchical ones (frames with slots, default values and inheritance; a scenario is a frame for a situation that unfolds in time), procedural ones (production rules) and logic (predicate logic, Horn clauses in Prolog, description logics).
Propositional semantics (truth tables)2,7:
| Concept | Definition | One good row is enough to show… |
|---|---|---|
| tautology | true on every valuation | …that it is not a tautology |
| contradiction | false on every valuation | …that it is not a contradiction |
| jointly satisfiable | some valuation makes all true | …that they are satisfiable |
| valid argument / | no valuation makes premises true and conclusion false | …that it is invalid |
Key equivalences: iff is a tautology iff is unsatisfiable; unsatisfiable premises entail everything2. Also (contrapositive), but is not equivalent to .
Normal forms and completeness. Every sentence has an equivalent CNF (a conjunction of clauses); the truth-table method writes one clause per false row7. , and NAND alone are functionally complete; is not, because every sentence built from them is true when all letters are true, so it cannot express 7. Formulas without express exactly the monotone conditions — making one more letter true can never make them false8. So "at least of true" is expressible, while "exactly " and parity are not.
Resolution works on CNF clauses: from and infer . To prove , add and derive the empty clause. It is sound and refutation-complete; in first-order logic it needs unification (a substitution making two literals identical, ideally the most general one)3.
First-order logic. Truth is relative to an interpretation (domain + meanings). There is no truth-table test for FOL validity: a sentence has infinitely many interpretations, though one counter-interpretation refutes it7. Quantifier order matters7. Useful facts: but not conversely; 7; if is not free in , and . does not entail , since the domain may contain unnamed objects7.
Rule-based (expert) systems have a working memory of facts, a knowledge base of IF–THEN rules and an inference engine1. Forward chaining is data-driven: fire rules whose conditions hold until nothing new (or the goal) is added. Backward chaining is goal-driven: pick rules that conclude the goal and recursively prove their conditions — natural for diagnosis 1. The engine loops match → resolve conflicts → act; matching is the expensive phase, and the Rete algorithm keeps partial matches between cycles and only processes changes to working memory4. Conflict resolution picks one instantiation from the conflict set: rule order, salience, recency (newest fact), specificity (most conditions); refraction stops the same instantiation firing twice4.
Near-miss (arch) learning (Winston) updates a model from one example at a time5:
| Seen | Heuristic | Effect |
|---|---|---|
| near miss (differs in exactly one feature) | require-link, forbid-link | specialise |
| positive example | drop-link, extend-set, climb-tree, close-interval | generalise |
Example: the model allows only red; a yellow positive example → extend-set to {red, yellow}. Positive examples with incandescent and with fluorescent bulbs → climb-tree to "light source". A near miss that differs only by an orange colour → forbid-link orange5.
Knowledge-graph embeddings score triples 6: TransE wants (small distance = plausible fact); DistMult uses a diagonal bilinear score, which is symmetric in and ; ComplEx uses complex vectors and the conjugate of the object, so it can model antisymmetric relations; RotatE rotates element-wise by unit-modulus .
Formulas
RotatE: ; a symmetric relation needs , i.e. every . ComplEx with a purely real is symmetric again.
Worked example
. Does ? Add and resolve: ; ; ; empty clause. So . Check by truth table: only 1 of the 16 valuations satisfies ( false; true), and is true on it.
Common pitfalls
- Knowledge ≠ information: knowledge is information integrated into a world model1.
- Entailment vs implication: is a claim about sentences; it holds iff is a tautology2. And does not give .
- Contradictory premises make any argument valid — validity is not truth2.
- Quantifier order matters: "someone is loved by everyone" entails "everyone loves someone", not the reverse7.
- Forward = data-driven, backward = goal-driven, not the other way round1.
- Drop-link generalises. It removes a requirement because positive examples showed it does not matter; only near misses specialise (require/forbid)5.
- A near miss differs from the model in exactly one way; an example differing in two ways teaches nothing5.
- DistMult cannot model antisymmetric relations: swapping and leaves its score unchanged6.
References
- AI for Beginners — Lesson 2: Knowledge Representation; Classifying Computer Knowledge Representations; Expert Systems; Forward vs. Backward Inference
- forall x: Calgary — An Introduction to Formal Logic — Ch. 12 Semantic concepts (§12.1–12.6)
- Wikipedia: Resolution (logic) — Resolution in propositional logic (A resolution technique); Resolution in first-order logic
- Wikipedia: Rete algorithm — Overview; Description (Conflict resolution)
- MIT OpenCourseWare 6.034 Artificial Intelligence (Fall 2010) — quizzes, finals and tutorial notes — Mega-Recitation 7: Near Misses, Arch Learning (transcript)
- Wikipedia: Knowledge graph embedding — Models (Tensor decomposition models — bilinear; Geometric models — translational, roto-translational)
- forall x: Calgary — An Introduction to Formal Logic — Ch. 15 Partial truth tables (closing summary table); Ch. 25.3 The order of quantifiers; Ch. 31 Truth in FOL; Ch. 34 Reasoning about interpretations; Ch. 38 Conversion of quantifiers; Ch. 45.3 Conjunctive normal form; Ch. 46 Functional completeness (46.1, 46.2)
- Wikipedia: Monotonic function — In Boolean functions