930 B
930 B
Logic
Definition: a statement is a sentence that is either true or false, never both.
Definition - Logical operators: let
A
andB
be assertions.
- The assertion
A
andB
(A \land B
) is true, iff bothA
andB
are true.- The assertion
A
orB
(A \lor B
) is true, iff at least one ofA
andB
is true.- The negation of
A
(\neg A
) is true iffA
is false.
Definition - Implies: if
A
andB
are assertions then the assertion ifA
thenB
(A \implies B
) is true iff
A
is true andB
is true,A
is false andB
is true,A
is false andB
is false.This also works the opposite way, if
B
thenA
(A \Longleftarrow B
)
Definition - If and only if: if
A
andB
are assertions then the assertionA
if and only ifB
(A \iff B) is true iff
(A \Longleftarrow B) \land (a \implies B)
.This leads to the following table.