Lecture 10
Many-valued Logic
Johannes Korbmacher Lecture slides
Logical methods for AI
Many-valued Logic
Lecture 10
What you’ll be able to do
Bivalence
Every formula has value 0 or 1.
Missing information: no language recorded for Zimbabwe.
Vagueness: is 20°C warm? And 19.999°C?
Missing values
SELECT country FROM LanguageOf
WHERE (language = 'Dutch');
SELECT country FROM LanguageOf
WHERE NOT (language = 'Dutch');Enable JavaScript to edit and run this SQL.
The Kleene functions
| NOT | NOT value |
|---|---|
| 0 | 1 |
| ω | ω |
| 1 | 0 |
| AND | 0 | ω | 1 |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| ω | 0 | ω | ω |
| 1 | 0 | ω | 1 |
| OR | 0 | ω | 1 |
|---|---|---|---|
| 0 | 0 | ω | 1 |
| ω | ω | ω | 1 |
| 1 | 1 | 1 | 1 |
K₃ consequence
1 is the only designated value (glossary, opens in a new tab) here.
3² = 9 information states for SUN and RAIN.
The Kleene model space
The examples in the text give the initial values. Enable JavaScript to change them.
Excluded middle and explosion
v(SUN) = ω:
All ω gives ω: no tautologies in ¬, ∧, ∨.
No model gives A and ¬A both value 1.
Natural deduction for K₃
Conditional introduction
A → A has value ω when A does.
Negation introduction
¬(B ∧ ¬B) has value ω when B does.
Classical reductio
It would prove C ∨ ¬C, even when C is unknown.
K₃ derivations
Countermodels in SQL
Premises IS TRUE, conclusion IS NOT TRUE: a row is a countermodel.
-- SUN → RAIN, RAIN ∴ SUN
SELECT SUN, RAIN FROM Valuations
WHERE (NOT SUN OR RAIN) IS TRUE
AND RAIN IS TRUE
AND SUN IS NOT TRUE;Enable JavaScript to edit and run this SQL.
Fuzzy predicates
⟦IsWarm⟧ : ℝ → [0,1], v(IsWarm(15°C)) = ⟦IsWarm⟧(15°C)
The examples in the text give the initial values. Enable JavaScript to change them.
Combining degrees
The examples in the text give the initial values. Enable JavaScript to change them.
Fuzzy logic
Explosion
v(A) = v(¬A) = 0.5 > 0 = v(B)
Disjunctive syllogism
v(A ∨ B) = v(¬A) = 0.5 > 0 = v(B)
Fuzzy rules
The examples in the text give the initial values. Enable JavaScript to change them.
Sugeno controllers
- IsCold(x) ↦ 1
- IsWarm(x) ↦ 0
- IsHot(x) ↦ 0
Weights 0.4, 0.6, 0: 40% power.
A Sugeno heating controller
The examples in the text give the initial values. Enable JavaScript to change them.
Mamdani controllers
Defuzzification
The examples in the text give the initial values. Enable JavaScript to change them.
Cooling a humid room
The examples in the text give the initial values. Enable JavaScript to change them.
Use ← / →, Page Up / Page Down, or Space to navigate. While you work in an app, only Page Up / Page Down change the slide. Press F for full screen and Esc to exit. Each slide has a shareable URL.
What is on the slidesText of every slide
The text of every slide, in order. Drawings are described in words, and interactive apps are named; the textbook chapter has each of them in full.