Logique mathématique Examen 1 1 - Study Notes
Exercise 1: Formula Analysis and Properties
Formula Definition: The formula subject to analysis is .
Equivalence Deduction:
ssPremise: It is given that .
Inference: By substituting with and with , we obtain .
Principle: Utilizing the property that if and only if , we deduce that .
Structure Tree of F:
The root of the tree is the negation operator .
The level below the root is the equivalence operator .
The left child of is the implication , which branches into a conjunction and the variable .
The right child of is a conjunction , which branches into two implications: and .
Transformation to Disjunctive Normal Form (FND):
Let notation be simplified where represents and represents .
.
Applying the property , the transformation yields:
.
Further reduction: .
Final FND: .
Satisfiability and Validity:
Satisfiability: The formula is satisfiable. It possesses exactly two models: and .
Validity: The formula is not valid because is also satisfiable.
Proof for : .
Exercise 2: Validity Proofs
Conjunction Validity Proof:
Objective: Show that if and only if and .
Direction (): Suppose . For every assignment , , meaning . Therefore, for every assignment , and . Thus, and are valid.
Direction (): Reciprocally, suppose and . For an arbitrary assignment , and . It follows that . Thus, is valid.
Disjunction Validity Proof (No Common Variables):
Objective: Show that if and only if or , given .
Direction (): By contraposition: Suppose . There exists an assignment such that , which means . Thus, and , meaning neither nor is valid.
Direction (): By contraposition: Suppose is not valid and is not valid. Then there exists such that and there exists such that . Define assignment such that:
if .
otherwise.
Because and coincide on , .
Because , for any , , meaning . Thus .
Consequently, . Thus, is not valid.
Exercise 3: Transformation to CNF and Semantic Tree Study
CNF Transformation:
Formula: .
Constraint: Distribution of the product relative to the sum is prohibited.
Negation of F (): Using the equivalence , we find:
.
Final CNF: .
Semantic Tree Study:
Let be the set of clauses equivalent to : .
Enumeration Order: .
Tree Execution:
Root branches on .
The branch for is closed immediately by the clause .
On the branch for , we look at clauses containing : becomes , so the branch for is closed.
On the branch , becomes , so the branch is closed.
On the branch , becomes .
From , was present, but since is false on this branch, it contradicts.
Conclusion: The semantic tree is closed. Therefore, the set is contradictory, and the original formula is valid.
Exercise 4: Positive Resolution Strategy
Problem 1: Prove or ìnfirm .
This is true if and only if .
Resolution Steps:
(Hyp)
(Hyp)
(Hyp)
(Hyp)
(Hyp)
(Hyp)
(Hyp)
(Res 2, 4)
(Res 6, 8)
(Res 9, 3)
(Res 7, 10)
(Res 11, 1)
(Res 12, 5)
Conclusion: Since is reached using the positive strategy, the affirmation is proven by the correctness theorem of the positive strategy.
Problem 2: Prove or infirm .
This reduces to checking if the set of clauses is contradictory.
Analysis: In this set, there is no positive clause (a clause containing only positive literals).
Conclusion: Without a positive clause, positive resolution cannot begin. Since positive resolution is complete for refutation, the set is not contradictory. The affirmation is infirmed.
Exercise 5: Functional Completeness of Connectors
Connector Definition: Binary connector is defined as .
System {0, *}:
.
For any formula written using only the constant and the connector , the value will always be under the constant 0 assignment.
Conclusion: The system is incomplete because it cannot express the constant .
System {1, *}:
Negation: (since ).
Conjunction: .
Disjunction: .
Conclusion: Because it can express the complete set , the system is complete.
Derived Systems:
System {\iff, *}: Complete, because , and is complete.
System {\implies, *}: Complete, because , and is complete.
System {\neg, *}: Complete, because , making the system reachable, which is complete.
Exercise 6: Logic Formalization and Davis-Putnam
Formalization of Propositions:
: "He is rich"
: "He is poor"
: "He is in good health"
: "He does sport"
: "He is happy"
Question 1: Sentential Logic Translations:
"If he is poor, then he is not rich": .
"Doing sport is a necessary condition for being in good health": .
"He is happy if and only if he is in good health or he is rich": .
"He is happy and poor implies that he does sport": .
Question 2: Logical Consequence Verification:
Hypotheses: .
Conclusion: .
The affirmation is true if .
Clause Transformation: .
Davis-Putnam (Unit Resolution):
Using unit literals :
From and , we get .
From and , we get .
From and , we get .
The current set simplifies to .
Resolving with gives .
Resolving with gives the empty clause .
Conclusion: The set is contradictory. The final statement is indeed a logical consequence of the first three statements.