Faculty of Computer Science Chair of Automata Theory
FUZZY LOGIC
Felix Distel
FUZZY LOGIC Felix Distel Dresden, WS 2012/13 About the Course - - PowerPoint PPT Presentation
Faculty of Computer Science Chair of Automata Theory FUZZY LOGIC Felix Distel Dresden, WS 2012/13 About the Course Course Material Metamathematics of Fuzzy Logic by Petr Hjek available on course website: Slides Lecture Notes
Faculty of Computer Science Chair of Automata Theory
Felix Distel
– Slides – Lecture Notes (from a previous semester) – Exercise Sheets
Oral exams at the end of the semester or during semester break
TU Dresden, WS 2012/13 Fuzzy Logic Slide 2
– identifiable, – distinct, – clear-cut.
– days of the week, – marital status, – . . .
TU Dresden, WS 2012/13 Fuzzy Logic Slide 3
Is Italy a small country?
TU Dresden, WS 2012/13 Fuzzy Logic Slide 4
Is Italy a small country? Depends.
TU Dresden, WS 2012/13 Fuzzy Logic Slide 4
Is Italy a small country? Depends. Other examples for fuzzy proper- ties
TU Dresden, WS 2012/13 Fuzzy Logic Slide 4
2 4 6 8 10 12 14 16 0.2 0.4 0.6 0.8 1 area in 106 km2 truth degree
TU Dresden, WS 2012/13 Fuzzy Logic Slide 5
5 10 15 20 25 30 0.2 0.4 0.6 0.8 1 temperature in ◦C truth degree
TU Dresden, WS 2012/13 Fuzzy Logic Slide 6
= ⇒ characteristic function
= ⇒ membership function
TU Dresden, WS 2012/13 Fuzzy Logic Slide 7
Both use truth values
– statement is neither completely true nor false – e.g. “The Dresden TV Tower is a tall building. ”
– statement is either true nor false, but outcome unknown – e.g. “Tomorrow it will rain. ”
TU Dresden, WS 2012/13 Fuzzy Logic Slide 8
For the country of Turkey we might have:
What is the membership degree of Turkey in Huge ⊓ Asian?
TU Dresden, WS 2012/13 Fuzzy Logic Slide 9
For the country of Turkey we might have:
What is the membership degree of Turkey in Huge ⊓ Asian?
= ⇒ There is not just one fuzzy logic!
TU Dresden, WS 2012/13 Fuzzy Logic Slide 9
Classical logical operators, such as
need to be generalized. Generalizations should be
etc.)
TU Dresden, WS 2012/13 Fuzzy Logic Slide 10
Binary operator ⊗: [0, 1] × [0, 1] → [0, 1]
TU Dresden, WS 2012/13 Fuzzy Logic Slide 11
Gödel: x ⊗ y = min(x, y)
0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 x ⊗ y x y TU Dresden, WS 2012/13 Fuzzy Logic Slide 12
Gödel: x ⊗ y = min(x, y) Product: x ⊗ y = x · y
0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 x ⊗ y x y TU Dresden, WS 2012/13 Fuzzy Logic Slide 12
Gödel: x ⊗ y = min(x, y) Product: x ⊗ y = x · y Łukasiewicz: x ⊗ y = max(0, x + y − 1)
0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 x y x ⊗ y TU Dresden, WS 2012/13 Fuzzy Logic Slide 12
Connective Truth Function Definition conjunction (&) t-norm (⊗) associative, commutative, monotone, unit 1, (usually also continuous) implication (→) ? negation (¬) ? disjunction (∨) ?
TU Dresden, WS 2012/13 Fuzzy Logic Slide 13
φ ∧ (φ → ψ) then ψ.
x ⊗ (x ⇒ y)
≤ y
Choose z maximal with this property: x ⇒ y = max{z | x ⊗ z ≤ y}
TU Dresden, WS 2012/13 Fuzzy Logic Slide 14
For every continous t-norm ⊗ x ⇒ y = max{z | x ⊗ z ≤ y} is the unique operator satisfying z ≤ x ⇒ y iff x ⊗ z ≤ y
TU Dresden, WS 2012/13 Fuzzy Logic Slide 15
Connective Truth Function Definition conjunction (&) t-norm (⊗) associative, commutative, monotone, unit 1, (usually also continuous) implication (→) residuum (⇒) x ⊗ y ≤ z iff y ≤ x ⇒ z negation (¬) precomplement ⊖ x ⇒ 0 disjunction (∨) ?
TU Dresden, WS 2012/13 Fuzzy Logic Slide 16
Given (ai, bi), i ∈ I family disjoint open intervals, ⊗i, i ∈ I family of t-norms x ⊗ y =
i
min{x, y}
where si(x) = x − ai bi − ai is the ordinal sum
i∈I(⊗i, ai, bi). TU Dresden, WS 2012/13 Fuzzy Logic Slide 17
x 0.3 0.7 1
TU Dresden, WS 2012/13 Fuzzy Logic Slide 18
x 0.3 0.7 1 0.3 0.7 1 y
TU Dresden, WS 2012/13 Fuzzy Logic Slide 18
x 0.3 0.7 1 0.3 0.7 1 y
TU Dresden, WS 2012/13 Fuzzy Logic Slide 18
x 0.3 0.7 1 0.3 0.7 1 y Product Łukasiewicz Gödel
TU Dresden, WS 2012/13 Fuzzy Logic Slide 18
x 0.3 0.7 1 0.3 0.7 1 y Product Łukasiewicz Gödel Gödel Gödel
TU Dresden, WS 2012/13 Fuzzy Logic Slide 18
0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 x y x ⊗ y TU Dresden, WS 2012/13 Fuzzy Logic Slide 18
If there is s is a bijective, monotone function s: [0, 1] → [0, 1] satisfying x ⊗1 y = s−1 s(x) ⊗2 s(y)
TU Dresden, WS 2012/13 Fuzzy Logic Slide 19
0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 x y x ⊗ y
Łukasiewicz t-norm (aka 1st Schweizer-Sklar t-norm) x ⊗ y = max{x + y − 1, 0}
TU Dresden, WS 2012/13 Fuzzy Logic Slide 20
0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 x ⊗ y x y
2nd Schweizer-Sklar t-norm x ⊗ y =
TU Dresden, WS 2012/13 Fuzzy Logic Slide 20
P countable set of propositional variables, ⊗ continuous t-norm. Formulas of PC(⊗) are
Valuation V : P → [0, 1] Zero V(0) = 0, Strong Conjunction V(φ & ψ) = V(φ) ⊗ V(ψ), Implication V(φ → ψ) = V(φ) ⇒ V(ψ).
TU Dresden, WS 2012/13 Fuzzy Logic Slide 21
Weak Conjunction φ ∧ ψ := φ &(φ → ψ), Weak Disjunction φ ∨ ψ :=
¬φ := φ → 0 Equivalence φ ≡ ψ := (φ → ψ) &(ψ → φ) One 1 := 0 → 0.
TU Dresden, WS 2012/13 Fuzzy Logic Slide 22
Formula φ such that V(φ) = 1 for every valuation V.
TU Dresden, WS 2012/13 Fuzzy Logic Slide 23
¬¬φ → φ
TU Dresden, WS 2012/13 Fuzzy Logic Slide 24
¬¬φ → φ
V(¬¬φ → φ) = ⊖ ⊖ V(φ) ⇒ V(φ) = 1 −
= V(φ) ⇒ V(φ) = 1 1-tautology for Łukasiewicz
TU Dresden, WS 2012/13 Fuzzy Logic Slide 24
¬¬φ → φ
V(¬¬φ → φ) = ⊖ ⊖ V(φ) ⇒ V(φ) = 1 −
= V(φ) ⇒ V(φ) = 1 1-tautology for Łukasiewicz
V(¬¬φ → φ) = ⊖ ⊖ V(φ) ⇒ V(φ) = ⊖0 ⇒ V(φ) = 1 ⇒ 0.5 = 0.5
TU Dresden, WS 2012/13 Fuzzy Logic Slide 24
1-tautologies for ⊗Ł 1-tautologies for ⊗min 1-tautologies for ⊗Π
TU Dresden, WS 2012/13 Fuzzy Logic Slide 25
1-tautologies for ⊗Ł 1-tautologies for ⊗min 1-tautologies for ⊗Π We are interested in 1-tautologies for all t-norms.
TU Dresden, WS 2012/13 Fuzzy Logic Slide 25
(A1) (φ → ψ) →
(A3) φ & ψ → ψ & φ (A4) φ &(φ → ψ) → ψ &(ψ → φ) (A5)
(A6) (φ & ψ → χ) →
TU Dresden, WS 2012/13 Fuzzy Logic Slide 26
Substitution arbitrary formulae for variable names, e.g. (ρ → σ) & ψ → (ρ → σ) is obtained from φ & ψ → φ by substituting ρ → σ for φ.
TU Dresden, WS 2012/13 Fuzzy Logic Slide 27
Substitution arbitrary formulae for variable names, e.g. (ρ → σ) & ψ → (ρ → σ) is obtained from φ & ψ → φ by substituting ρ → σ for φ.
BL ⊢ ρ & σ → σ & ρ Instance of (A3) BL ⊢ (ρ & σ → σ & ρ) →
BL ⊢ (σ & ρ → σ) → (ρ & σ → σ) modus ponens BL ⊢ σ & ρ → σ Instance of (A2) BL ⊢ ρ & σ → σ modus ponens
TU Dresden, WS 2012/13 Fuzzy Logic Slide 27
1-tautologies for ⊗Ł 1-tautologies for ⊗min 1-tautologies for ⊗Π
TU Dresden, WS 2012/13 Fuzzy Logic Slide 28
1-tautologies for ⊗Ł 1-tautologies for ⊗min 1-tautologies for ⊗Π = BL?
TU Dresden, WS 2012/13 Fuzzy Logic Slide 28