415 lecture note #1


[Ch 1] Logic and Proofs (1)

1.1 Propositions (Propositional Logic)

Connectives (or operators)

Truth Values & Truth Tables

1.2 Conditional Propositions and Logical Equivalence

Conditional Propositions

p

q

p  ®  q

q) ®  (¬p)

 

T

T

T

T

T

F

F

F

 

F

T

T

T

F

F

T

T

Logical Equivalence 

DeMorgan's Laws

 

1.3 Quantifiers (Predicate Logic)

Propositional Function

Definition: Let P(x) be a statement involving a variable x, and let D be the set of values for x. If for each x Î D, P(x) is a proposition then P(x) is a propositional function with respect to D. D is called the domain of discourse.

Example:  P(x): "The xth month of a year has 31 days.", where x is an integer 1 <= x <= 12.

Quantified Statements

1. Universally Quantified Statements (")

2. Existentially Quantified Statements ($)

3. Quantified Statements as Propositions

4. Generalized DeMorgan's Laws

5. Proving Quantified Statements

  1. Proving a universally quantified statement ""x. P(x)"

    Examples:  Prove or disprove

    1. The sum of any two even integers is even.

      Proof:  Suppose m and n are even integers.  We must show that m + n is even.
      By definition of even, m = 2*r and n = 2*s for some integers r and s.  Then,

      m + n = 2*r + 2*s   ... by substitution
                = 2(r + s)      ... by factoring

      Let k = r + s.  Then, k is an integer because it is a sum of integers.  Hence,

      m + n = 2*k, where k is an integer.  It follows by definition of even that m + n is even.

    2. For all real number x, x2 - 1 > 0.

      Proof:  The statement is false.  A counterexample is x = 0.  Here, 0 is a real number, but 02 - 1 = -1 <= 0 [NOTE: the negation of x2 - 1 > 0 is x2 - 1 <= 0].

    3. For all real number x, if x > 1, then x2 - 1 > 0.

       

       

       

       

       

       

       

       

       

       











  1. Proving an existentially quantified statement

    Examples: Prove or disprove

    1. For some real number x, x > 5 and x < 10









    2. For some real number x, x > 5 and x < 4









Multiple Quantifiers and Variables