Logical connectives
Last updated
Was this helpful?
Last updated
Was this helpful?
Logical connectives are symbols used to connect sentences in a grammatically valid way, such that the value of the compound sentence produced depends only on that of the original sentences and on the meaning of the connective.
Connectives are unary or binary (or n-ary). Binary connectives join two sentences, which can be thought of as the function's operands.
Logical connectives along with quantifiers are the two main types of logical constants used in formal systems such as propositional and predicate logic.
negation
NOT
latex: , glyphs: Β¬
, ~
negated term:
conjunction
AND
latex: , glyphs: β§
, &
, .
terms in conjuction are conjuncts:
disjunction
OR
latex: , glyphs: v
terms in disjuction are disjuncts:
implication
IF...THEN
latex: , , ,
glyphs: β
, β
, β
, βΉ
bigger arrow may denote higher precedence
terms involved in implication, , are called antecedent () and consequent ().
bicondition
IF AND ONLY IF (IFF)
latex: , , , glyphs: β
, β
, β‘
terms in bicondition:
biconditional is a shorthand:
Negation has the highest precedence, followed by conjunction and disjunction, which have the same precedence. Implication has the lowest precedence.
Parenthesis can be used for grouping.
Implication is right-associative: p β q β r
means p β (q β r)
Sometimes, in order to avoid proliferation of parenthesis, symbols, bigger then their relative default size, are used to disambiguate the terms and operators: the bigger the symbol the higher the precedence. For example:
p β q β r
means p β (q β r)
since implication is right-associative. So, to express (p β q) β r
without the parenthesis, we can use bigger symbols: p βΉ q β r
In other cases the overall statement is true:
p=1, q=1:
It was raining, so the streets are wet. Overall truth value: 1.
"Default" case. The premise is observed.
p=1, q=0:
It was raining, but the streets are NOT wet. Overall: 0.
Falsity. The premise was a lie.
p=0, q=1:
It was NOT raining, but the streets are wet. Overall: 1.
p=0, q=0:
It was NOT raining, so the streets are NOT wet. Overall: 1.
Dry streets imply it was NOT raining.
Represents a binary relation
If and only if (iff) is a biconditional logical connective.
In that it is biconditional (a statement of material equivalence), the connective can be likened to the standard material conditional ("only if", equal to "if ... then") combined with its reverse ("if"); hence the name.
The result is that the truth of either one of the connected statements requires the truth of the other (i.e either both statements are true, or both are false).
It is controversial whether the connective thus defined is properly rendered by the English "if and only if", with its pre-existing meaning. There is nothing to stop one from stipulating that we may read this connective as "only if and if", although this may lead to confusion.
In writing, phrases commonly used, with debatable propriety, as alternatives to P "if and only if" Q include:
Q is necessary and sufficient for P
P is equivalent (or materially equivalent) to Q (compare material implication)
P precisely if Q
P precisely (or exactly) when Q
P exactly in case Q
P just in case Q
Conjuction and disjuction are commutative operations, and , so no parenthesis are needed to disambiguate a sequence of conjuncts, e.g.
p β§ q β§ r
β‘ (p β§ q) β§ r
β‘ p β§ (q β§ r)
or disjuncts, e.g.
p v q v r
β‘ (p v q) v r
β‘ p v (q v r)
However, they're needed if conjuncts and disjuncts are mixed, e.g.
If then , , is always true, except if is true and is somehow false, then the overall statement is a falsity (a lie).
If it rains, the streets are wet: p = "raining", q = "wet streets"