Template:Short description Template:Use dmy dates {{#invoke:other uses|otheruses}}Template:Distinguish Template:Infobox mathematical statement Template:Transformation rules

In classical propositional logic, material implication<ref name="Hurley2011">Template:Cite book</ref><ref>Template:Cite book</ref> is a valid rule of replacement that allows a conditional statement to be replaced by a disjunction in which the antecedent is negated. The rule states that P implies Q is logically equivalent to not-<math>P</math> or <math>Q</math> and that either form can replace the other in logical proofs. In other words, if <math>P</math> is true, then <math>Q</math> must also be true, while if <math>Q</math> is Template:Em true, then <math>P</math> cannot be true either; additionally, when <math>P</math> is not true, <math>Q</math> may be either true or false.

<math>P \to Q \Leftrightarrow \neg P \lor Q,</math>

where "<math>\Leftrightarrow</math>" is a metalogical symbol representing "can be replaced in a proof with", P and Q are any given logical statements, and <math>\neg P \lor Q</math> can be read as "(not P) or Q". To illustrate this, consider the following statements:

  • <math>P</math>: Sam ate an orange for lunch.
  • <math>Q</math>: Sam ate a fruit for lunch.

Then, to say "Sam ate an orange for lunch" Template:Em "Sam ate a fruit for lunch" (<math>P \to Q</math>). Logically, if Sam did not eat a fruit for lunch, then Sam also cannot have eaten an orange for lunch (by contraposition). However, merely saying that Sam did not eat an orange for lunch provides no information on whether or not Sam ate a fruit (of any kind) for lunch.

Partial proofEdit

Suppose we are given that <math>P \to Q</math>. Then we have <math>\neg P \lor P</math> by the law of excluded middle (i.e. either <math>P</math> must be true, or <math>P</math> must not be true).

Subsequently, since <math>P \to Q</math>, <math>P</math> can be replaced by <math>Q</math> in the statement, and thus it follows that <math>\neg P \lor Q</math> (i.e. either <math>Q</math> must be true, or <math>P</math> must not be true).

Suppose, conversely, we are given <math>\neg P \lor Q</math>. Then if <math>P</math> is true, that rules out the first disjunct, so we have <math>Q</math>. In short, <math>P \to Q</math>.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> However, if <math>P</math> is false, then this entailment fails, because the first disjunct <math>\neg P</math> is true, which puts no constraint on the second disjunct <math>Q</math>. Hence, nothing can be said about <math>P \to Q</math>. In sum, the equivalence in the case of false <math>P</math> is only conventional, and hence the formal proof of equivalence is only partial.

This can also be expressed with a truth table:

P Q ¬P P → Q ¬P ∨ Q
T T F T T
T F F F F
F T T T T
F F T T T

ExampleEdit

An example: we are given the conditional fact that if it is a bear, then it can swim. Then, all 4 possibilities in the truth table are compared to that fact.

  1. If it is a bear, then it can swim — T
  2. If it is a bear, then it can not swim — F
  3. If it is not a bear, then it can swim — T because it doesn’t contradict our initial fact.
  4. If it is not a bear, then it can not swim — T (as above)

Thus, the conditional fact can be converted to <math>\neg P \vee Q</math>, which is "it is not a bear" or "it can swim", where <math>P</math> is the statement "it is a bear" and <math>Q</math> is the statement "it can swim".

The equivalence does not hold in intuitionistic logicEdit

Intuitionistic logic does not treat <math>P \to Q</math> as equivalent to <math>\neg P \vee Q</math> because

<math> P \to Q \cancel{\Rightarrow} \neg P \or Q</math>

Given <math>P \to Q</math>, one can constructively transform a proof of <math>P</math> into a proof of <math>Q</math>. In particular, <math>P \to P</math> holds in intuitionistic logic. If <math> P \to Q \Rightarrow \neg P \or Q</math> would hold, then <math>\neg P \or P</math> could be derived. However, the latter is the law of excluded middle, which is not accepted by intuitionistic logic (one cannot assume <math>\neg P \or P</math> without knowing which case applies).

ReferencesEdit

Template:Reflist

Template:Classical logic