Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Universal generalization
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Rule of inference in predicate logic}} {{more footnotes|date=March 2023}} {{Infobox mathematical statement | name = Universal generalization | type = [[Rule of inference]] | field = [[Predicate logic]] | statement = Suppose <math>P</math> is true of any arbitrarily selected <math>p</math>, then <math>P</math> is true of everything. | symbolic statement = <math>\vdash \!P(x)</math>, <math>\vdash \!\forall x \, P(x)</math> }} {{Transformation rules}} In [[predicate logic]], '''generalization''' (also '''universal generalization''', '''universal introduction''',<ref>Copi and Cohen</ref><ref>Hurley</ref><ref>Moore and Parker</ref> '''GEN''', '''UG''') is a [[Validity (logic)|valid]] [[rule of inference|inference rule]]. It states that if <math>\vdash \!P(x)</math> has been derived, then <math>\vdash \!\forall x \, P(x)</math> can be derived. ==Generalization with hypotheses== The full generalization rule allows for hypotheses to the left of the [[turnstile (symbol)|turnstile]], but with restrictions. Assume <math>\Gamma</math> is a set of formulas, <math>\varphi</math> a formula, and <math>\Gamma \vdash \varphi(y)</math> has been derived. The generalization rule states that <math>\Gamma \vdash \forall x \, \varphi(x)</math> can be derived if <math>y</math> is not mentioned in <math>\Gamma</math> and <math>x</math> does not occur in <math>\varphi</math>. These restrictions are necessary for soundness. Without the first restriction, one could conclude <math>\forall x P(x)</math> from the hypothesis <math>P(y)</math>. Without the second restriction, one could make the following deduction: #<math>\exists z \, \exists w \, ( z \not = w) </math> (Hypothesis) #<math>\exists w \, (y \not = w) </math> (Existential instantiation) #<math>y \not = x</math> (Existential instantiation) #<math>\forall x \, (x \not = x)</math> (Faulty universal generalization) This purports to show that <math>\exists z \, \exists w \, ( z \not = w) \vdash \forall x \, (x \not = x),</math> which is an unsound deduction. Note that <math>\Gamma \vdash \forall y \, \varphi(y)</math> is permissible if <math>y</math> is not mentioned in <math>\Gamma</math> (the second restriction need not apply, as the semantic structure of <math>\varphi(y)</math> is not being changed by the substitution of any variables). ==Example of a proof== '''Prove:''' <math> \forall x \, (P(x) \rightarrow Q(x)) \rightarrow (\forall x \, P(x) \rightarrow \forall x \, Q(x)) </math> is derivable from <math> \forall x \, (P(x) \rightarrow Q(x)) </math> and <math> \forall x \, P(x) </math>. '''Proof:''' {| class="wikitable" ! Step ! Formula ! Justification |- | 1 | <math> \forall x \, (P(x) \rightarrow Q(x)) </math> | Hypothesis |- | 2 | <math> \forall x \, P(x) </math> | Hypothesis |- | 3 | <math> (\forall x \, (P(x) \rightarrow Q(x))) \rightarrow (P(y) \rightarrow Q(y)) </math> | From (1) by [[Universal instantiation]] |- | 4 | <math> P(y) \rightarrow Q(y) </math> | From (1) and (3) by [[Modus ponens]] |- | 5 | <math> (\forall x \, P(x)) \rightarrow P(y) </math> | From (2) by [[Universal instantiation]] |- | 6 | <math> P(y) \ </math> | From (2) and (5) by [[Modus ponens]] |- | 7 | <math> Q(y) \ </math> | From (6) and (4) by [[Modus ponens]] |- | 8 | <math> \forall x \, Q(x) </math> | From (7) by Generalization |- | 9 | <math> \forall x \, (P(x) \rightarrow Q(x)), \forall x \, P(x) \vdash \forall x \, Q(x) </math> | Summary of (1) through (8) |- | 10 | <math> \forall x \, (P(x) \rightarrow Q(x)) \vdash \forall x \, P(x) \rightarrow \forall x \, Q(x) </math> | From (9) by [[Deduction theorem]] |- | 11 | <math> \vdash \forall x \, (P(x) \rightarrow Q(x)) \rightarrow (\forall x \, P(x) \rightarrow \forall x \, Q(x)) </math> | From (10) by [[Deduction theorem]] |} In this proof, universal generalization was used in step 8. The [[deduction theorem]] was applicable in steps 10 and 11 because the formulas being moved have no free variables. ==See also== *[[First-order logic]] *[[Hasty generalization]] *[[Universal instantiation]] *[[Existential generalization]] == References == {{reflist}} {{DEFAULTSORT:Generalization (Logic)}} [[Category:Rules of inference]] [[Category:Predicate logic]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Infobox mathematical statement
(
edit
)
Template:More footnotes
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)
Template:Transformation rules
(
edit
)