



























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
this is a lecture about logic the first lecture introductionary lecture
Typology: Summaries
1 / 35
This page cannot be seen from the preview
Don't miss anything!




























Dr.Nermeen Kame Cairo University Fall 2022
Syntax of Propositional Logic Propositional Constants Logical Operators Semantics Truth Assignments for propositional constants Meaning of logical operators Evaluation Truth Assignments to values of compound sentences Satisfaction Values of compound sentences to truth assignments Truth Tables
By convention (in this course), proposition constants are written as strings of alphanumeric characters beginning with a lower case letter. Examples: raining r 32 aining rAiNiNg rainingorsnowing Non-Examples: 324567 raining.or.snowing
Negations: ¬ raining The argument of a negation is called the target. Conjunctions: ( raining Ù snowing ) The arguments of a conjunction are called conjuncts. Disjunctions: ( raining Ú snowing ) The arguments of a disjunction are called disjuncts.
¬ raining ( raining Ù snowing ) ( raining Ú snowing ) ( raining Þ cloudy ) ( cloudy Û raining ) ¬( raining Ù snowing ) (( raining Ù snowing ) Þ cloudy ) ( cloudy Þ ( raining Ù snowing )) (( cloudy Ù wet ) Û ( raining Ú snowing )) (¬ raining Þ ( cloudy Þ snowing ))
Dropping Parentheses is good: ( p Ù q ) ® p Ù q But it can lead to ambiguities: (( p Ú q ) Ù r ) ® p Ú q Ù r ( p Ú ( q Ù r )) ® p Ú q Ù r
If surrounded by two occurrences of Ù or Ú, the operand associates with the operator to the left. p Ù q Ù r ® (( p Ù q ) Ù r ) p Ú q Ú r ® (( p Ú q ) Ú r ) If surrounded by two occurrences of Þ or Û, the operand associates with the operator to the right. p Þ q Þ r ® ( p Þ ( q Þ r )) p Û q Û r ® ( p Û ( q Û r ))
Vocabulary: purple , mushroom , poisonous Purple mushrooms are poisonous. mushroom Ù purple Þ poisonous mushroom Þ ( purple Þ poisonous )
Vocabulary: purple , mushroom , poisonous A mushroom is poisonous only if it is purple. mushroom Þ (¬ purple Þ ¬ poisonous ) mushroom Þ ( poisonous Þ purple ) mushroom Ù poisonous Þ purple
Vocabulary: purple , mushroom , poisonous No purple mushroom is poisonous ¬( mushroom Ù poisonous Ù purple ) mushroom Ù poisonous Þ ¬ purple
A propositional interpretation is an association between the propositional constants in a propositional language and the values T or F. (Later, written as 1 and 0.) We sometimes view an interpretation as a Boolean vector of values for the items in the signature of the language (when the signature is ordered). i = TFT
Negation: For example, if the interpretation of p is F, then the interpretation of ¬ p is T. For example, if the interpretation of ( p Ù q ) is T, then the interpretation of ¬( p Ù q ) is F.
Conjunction: Disjunction: NB: The type of disjunction here is called inclusive or , which says that a disjunction is true if and only if at least one of its disjuncts is true. This contrasts with exclusive or , which says that a disjunction is true if and only if an odd number of its disjuncts is true.