All paper documents are allowed, no electronic devices permitted. Mobile phones must be switched off. This exam has two pages, each having a separate exercise. Understanding the text before the questions is part of the exercise.
In this course, we only considered logics that can express things that are definitely true or false. But in many cases, knowledge is more nuanced: we can say things with varying degrees (something is “somewhat large”, “rather large”, “very large”, “extremely large”, etc.) or things that we are not certain about, yet not completely ignorant about (“I'm pretty sure that Joe is in fact a woman, but I am most definitely certain that Joe is married to a man”). Facts that we ascertain often derive from our imperfect observations. We almost always have varying confidences in what we know or believe. Artificial intelligence is even less reliable in its observations: data mining and machine learning techniques always have a non zero failure rate in identifying truths.
Representing uncertainty in a formal language for computation can be done in many ways. We will focus on a simple formalism that we will call fuzzy-annotated propositional logic (LFP) in the following exercises.
The syntax of fuzzy-annotated propositional logic extends the one of propositional logic in a very straightforward way. Let P be the (infinite) set of all propositions. If φ is a propositional logic formula (as defined in the first year booklet using propositions in P and symbols in {(, ), ¬, ∧, ∨, →}), and v ∈ [0,1] is a real number between 0 and 1, then φ : v is a formula in LFP, and there is no other kind of formulas. To better distinguish formulas, they are always on a gray background.
(A ∨ B) ∧ (B ∨ ¬C) → D : 0.7
In fuzzy logic and fuzzy set theory, the numeric value indicates a degree of truth. It must not be confused with a probability. A formula “The room is loud” : 0.6 does not mean that there is 60 % chance that the room is loud (and therefore 40 % chance that it is not loud). Instead, it means that the room is at least a bit loud. Intuitively, the number given indicates a minimal amount of truth, so the fuzzy-annotated formula indicates that the room may be quite loud, or very loud, or more. At value 1, the statement would be considered entirely true (the room is 100 % loud) and at value 0, the room could be considered not loud or 50 % loud, or 100 % loud, as it has to be interpreted as a minimum. The interpretation of non atomic formulas involves calculations. We formalise this below.
An interpretation in LFP is a function 𝓘 : P ⟶ [0,1].
We extend function 𝓘 to a function 𝓘̃ that assigns a value in [0,1] to all formulas of propositional logic as follows:
An interpretation 𝓘 satisfies a formula φ : v in LFP (written 𝓘 ⊨FP φ : v) if and only if 𝓘̃(φ) ≥ v.
An interpretation could assign value 0.7 to proposition A = “It is raining” (it is raining a little but not completely), and value 0.5 to proposition B = “It is windy” (there is wind but not much). Then, this interpretation would satisfy the formula A ∧ B : 0.4, but would not satisfy the formula ¬A ∨ B : 0.6.
Given a set Φ of formulas in LFP, if 𝓘 ⊨FP φ : v for all φ : v ∈ Φ, then 𝓘 is called a LFP-model of Φ.
In this exercise, we consider a new logic that has a very simple syntax. The objective of the exercise is to understand what can be expressed in this logic and how it compares to propositional logic.
Let us consider an infinite set P whose elements will be called propositions. The set of symbols of L⊕ is P ∪ {[, ], ⊕}. We will use the italicised upper case latin alphabet to denote propositions: A, B, C, etc.
The set of formulas in L⊕ is defined as follows:
[A ⊕ [[B ⊕ A] ⊕ C]]
An interpretation in L⊕ is a function 𝓘 : P ⟶ {⊥, ⊤}.
An interpretation 𝓘 satisfies a formula φ in L⊕ (written 𝓘 ⊨⊕ φ) when:
Given a set Φ of formulas in L⊕, if 𝓘 ⊨⊕ φ for all φ ∈ Φ, then 𝓘 is called a L⊕-model of Φ. In digital electronics, the operator ⊕ corresponds to a NAND gate.
If we consider 𝓘 such that 𝓘(A) = 𝓘(B) = 𝓘(C) = ⊤, then 𝓘 satisfies A and B, so it does not satisfy [B ⊕ A], and consequently, 𝓘 satisfies [[B ⊕ A] ⊕ C]. As a result, the formula from the example above would not be satisfied by 𝓘. However, if instead 𝓘(A) = ⊥, then 𝓘 would satisfy the formula.
φ | ψ | [φ ⊕ ψ] |
---|---|---|
⊥ | ⊥ | ⊤ |
⊥ | ⊤ | ⊤ |
⊤ | ⊥ | ⊤ |
⊤ | ⊤ | ⊥ |