Difference between revisions of "Logic"
(→Logical Notation) |
m (Formatting) |
||
(21 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | '''Logic''' is the systematic use of symbolic and mathematical techniques to determine the forms of valid deductive or inductive argument. it is | + | '''Logic''' is the systematic use of symbolic and mathematical techniques to determine the forms of valid deductive or inductive argument. |
+ | |||
+ | == Statements == | ||
+ | |||
+ | {{main|statement}} | ||
+ | A statement is either true or false, but it will never be both or neither. An example of a statement is "A duck is a bird" which is true. Another example is "A pencil does not exist" which is false. | ||
+ | |||
+ | ===Conditional=== | ||
+ | |||
+ | {{main|conditional}} | ||
+ | If <math>P</math> then <math>Q</math>. For example, "If it is a duck then it is a bird." | ||
+ | |||
+ | ===Inverse=== | ||
+ | |||
+ | {{main|inverse}} | ||
+ | The inverse of the conditional statement is: If not <math>P</math> then not <math>Q</math>. | ||
+ | |||
+ | ===Converse=== | ||
+ | |||
+ | {{main|converse}} | ||
+ | The converse of the conditional statement is: If <math>Q</math> then <math>P</math>. | ||
+ | |||
+ | ===Contrapositive=== | ||
+ | |||
+ | {{main|contrapositive}} | ||
+ | The contrapositive of the conditional statement is: If not <math>Q</math> then not <math>P</math>. | ||
+ | |||
+ | The conditional is equivalent to the contrapositive. The inverse is equivalent to the converse. When both the conditional and the converse are true at the same time, this is equivalent to an [[if and only if]] statement. | ||
+ | |||
+ | ==Logical Notations== | ||
− | |||
{{main|Logical notation}} | {{main|Logical notation}} | ||
+ | '''Logical notation''' is a special syntax that is shorthand for logical statements. | ||
+ | |||
+ | === Implication === | ||
+ | |||
+ | The implication between two statements is <math>p \imples q</math> | ||
+ | |||
+ | ===Negations=== | ||
+ | The negation of <math>p</math>, denoted by <math>\neg p</math>, is the statement that is true when <math>p</math> is false and is false when <math>p</math> is true. This means simply "it is not the case that <math>p</math>." | ||
+ | |||
+ | ===Conjunction=== | ||
+ | The conjunction of two statements basically means "<math>p</math> and <math>q</math>" and is denoted by <math>p \land q</math>. | ||
+ | |||
+ | ===Disjunction=== | ||
+ | The disjunction of two statements basically means "<math>p</math> or <math>q</math>" and is denoted by <math>p \vee q</math>. | ||
+ | |||
+ | ===Implication, Conditional=== | ||
+ | The statement "If <math>p</math> then <math>q</math>" is denoted by <math>p\implies q</math>. For example, <math>x+3=5\implies x=2</math> means "If <math>x+3=5</math> then <math>x=2</math>." | ||
+ | |||
+ | ===Converse=== | ||
+ | The converse of the statement <math>p \implies q</math> is <math>q \implies p</math>. | ||
+ | |||
+ | ===Inverse=== | ||
+ | The inverse of the statement <math>p \implies q</math> is <math>\neg p \implies \neg q</math>. | ||
+ | |||
+ | ===Contrapositive=== | ||
+ | The contrapositive of the statement <math>p \implies q</math> is <math>\neg q \implies \neg p</math>. These statements are logically equivalent. | ||
− | + | ==Truth Tables== | |
+ | A truth table is the list of all possible values of a compound statement. | ||
− | + | ==Quantifiers== | |
− | + | There are two types of quantifiers: A universal Quantifier: "for all" and an existential Quantifier: "there exists". A universal quantifier is denoted by <math>\forall</math> and an existential quantifier is denoted by <math>\exists</math>. | |
==See Also== | ==See Also== | ||
*[[Dual]] | *[[Dual]] | ||
− | |||
− | |||
[[Category:Definition]] | [[Category:Definition]] | ||
[[Category:Logic]] | [[Category:Logic]] | ||
+ | |||
+ | {{stub}} |
Latest revision as of 17:13, 14 February 2025
Logic is the systematic use of symbolic and mathematical techniques to determine the forms of valid deductive or inductive argument.
Contents
Statements
- Main article: statement
A statement is either true or false, but it will never be both or neither. An example of a statement is "A duck is a bird" which is true. Another example is "A pencil does not exist" which is false.
Conditional
- Main article: conditional
If then
. For example, "If it is a duck then it is a bird."
Inverse
- Main article: inverse
The inverse of the conditional statement is: If not then not
.
Converse
- Main article: converse
The converse of the conditional statement is: If then
.
Contrapositive
- Main article: contrapositive
The contrapositive of the conditional statement is: If not then not
.
The conditional is equivalent to the contrapositive. The inverse is equivalent to the converse. When both the conditional and the converse are true at the same time, this is equivalent to an if and only if statement.
Logical Notations
- Main article: Logical notation
Logical notation is a special syntax that is shorthand for logical statements.
Implication
The implication between two statements is $p \imples q$ (Error compiling LaTeX. Unknown error_msg)
Negations
The negation of , denoted by
, is the statement that is true when
is false and is false when
is true. This means simply "it is not the case that
."
Conjunction
The conjunction of two statements basically means " and
" and is denoted by
.
Disjunction
The disjunction of two statements basically means " or
" and is denoted by
.
Implication, Conditional
The statement "If then
" is denoted by
. For example,
means "If
then
."
Converse
The converse of the statement is
.
Inverse
The inverse of the statement is
.
Contrapositive
The contrapositive of the statement is
. These statements are logically equivalent.
Truth Tables
A truth table is the list of all possible values of a compound statement.
Quantifiers
There are two types of quantifiers: A universal Quantifier: "for all" and an existential Quantifier: "there exists". A universal quantifier is denoted by and an existential quantifier is denoted by
.
See Also
This article is a stub. Help us out by expanding it.