Statement
A statement (or proposition) is a sentence that is either true or false (but not both)
2+2 = 5 : False → statement
My brother Jonn is a stutdent → statement
Fridays are nice → not a statement
x+y > 0 → not statement
Compound Statement
Logical Connectives :
and ∧ : conjunction
or ∨ : disjunction
xor ⊻,⊕ : exclusive disjunction
not ¬ : negation
e.g.p:x>0,q:x<3,r:x=3, thenp∧q≡0<x<3q∨r≡x≤3p∧(q∨r)≡0<x≤3
Truth Tables
pTTFFqTFTFp∧qTFFFp∨qTTTFp⊕qFTTF
example1:(p∧q)∨¬rpTTFFTTFFqTFTFTFTFrTTTTFFFFp∧qTFFFTFFF¬rFFFFTTTT(p∧q)∨¬rTFFFTTTT
example2:(p∨q)∧¬(p∧q)pTTFFqTFTFp∧qTFFF¬(p∧q)FTTT(p∨q)TTTF(p∨q)∧¬(p∧q)FTTF
so (p∨q)∧¬(p∧q)≡p⊕q