Docsity

Sample Questions for Homework - Propositional Logic | CECS 228, Study notes of Discrete Structures and Graph Theory

Toggle sidebar
bg1
Lecture 1: Propositional Logic
•Associated reading: Rosen, Section 1.1
•Homework: Section 1.1, problems 1-23 odd, 37-42
Ingredients of logic:
•used for expressing rules and rationality within a system; i.e. modeling a system
•rules tend to be expressed using logical formulae which may be viewed in two funda-
mental ways:
–semantics: refers to the meaning behind a string of symbols
–syntax: refers to the structure of a string of symbols and the rules which govern
the creation of strings of symbols
•rationality within a system tends to depend upon a set of axioms and rules of inference
Some different types of logics that are of importance to computer science
•Propositional/Boolean logic: the design of combinatorial electronic circuits; pro-
gram control
•Predicate logic: formal specification, prolog programming language
•Higher-order logic: formal verification of hardware
•Sequential/temporal logic: design of computer memory; program concurrency
•Intensional logic: natural language processing; human-computer interaction
1
pf3
pf4
pf5
pf8

Partial preview of the text

Download Sample Questions for Homework - Propositional Logic | CECS 228 and more Study notes Discrete Structures and Graph Theory in PDF only on Docsity!

Lecture 1: Propositional Logic

  • Associated reading: Rosen, Section 1.
  • Homework: Section 1.1, problems 1-23 odd, 37-

Ingredients of logic:

  • used for expressing rules and rationality within a system; i.e. modeling a system
  • rules tend to be expressed using logical formulae which may be viewed in two funda- mental ways: - semantics: refers to the meaning behind a string of symbols - syntax: refers to the structure of a string of symbols and the rules which govern the creation of strings of symbols
  • rationality within a system tends to depend upon a set of axioms and rules of inference

Some different types of logics that are of importance to computer science

  • Propositional/Boolean logic: the design of combinatorial electronic circuits; pro- gram control
  • Predicate logic: formal specification, prolog programming language
  • Higher-order logic: formal verification of hardware
  • Sequential/temporal logic: design of computer memory; program concurrency
  • Intensional logic: natural language processing; human-computer interaction

Propositional Logic

Intuitively, a proposition represents a statement that evaluates to either true or false.

Example 1. Provide some examples of propositional statements.

Example 2. Provide some examples of non propositions.

compound propositions are propositions that can be expressed using one or more atomic propositions and one or more logical connectives:

  • logical connectives (operators) are used to build more complex propositional statements
    1. NOT- ¬
    2. AND- ∧
    3. OR- ∨
    4. EXOR- ⊕
    5. IF-THEN: →
    6. EQUIVALENCE: ↔
  • lowercase letters p, q, r,... will denote compound propositions
  • compound propositions are also called propositional formulae

Example 4. Provide some examples of compound propositions.

Truth tables provide a means for determining the truth or falsehood of a compound propo- sition based upon the truth or falsehood of its constituent atoms.

Example 5. Make truth tables for each of the logical connectives.

If-Then statements

Propositions of the form p → q are called If-then statements and occur quite often (both explicitly and implicitly) in natural language. Here are a few ways which one may encounter an if-then statement within the natural-language context.

  • “p impies q”: “High taxes imply high unemployment”
  • “if p,q”: (this form is used often as a program statement)
  • “p only if q” : “you will pass this class only if you study”
  • “p is sufficient for q” : “receiving an A on all exams is sufficient for receiving an A in the class”
  • “q if p” : “I will visit Tahiti if the air fares seem low”
  • “q whenever p” : we will go whenever Joe gets here”
  • “q is necessary for p”: “studying is necessary for passing this class”

For the statement p → q

  • p is often called the hypothesis, antecedent, or premise.
  • q is often called the conclusion, conclusion, or consequence.

Given the proposition p → q,

  • q → p is called its converse
  • ¬q → ¬p is called its contrapositive
  • it is called trivially true or vacuouslly true whenever p is false.

Example 7. Given an example of a trivially true statement. Write out its converse and contrapositive.