MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  ralcom2 Structured version   Visualization version   GIF version

Theorem ralcom2 3265
Description: Commutation of restricted universal quantifiers. Note that 𝑥 and 𝑦 need not be disjoint (this makes the proof longer). This theorem relies on the full set of axioms up to ax-ext 2708 and it should no longer be used. Usage of ralcom 3257 is highly encouraged. (Contributed by NM, 24-Nov-1994.) (Proof shortened by Mario Carneiro, 17-Oct-2016.) (New usage is discouraged.)
Assertion
Ref Expression
ralcom2 (∀𝑥𝐴𝑦𝐴 𝜑 → ∀𝑦𝐴𝑥𝐴 𝜑)
Distinct variable groups:   𝑦,𝐴   𝑥,𝐴
Allowed substitution hints:   𝜑(𝑥,𝑦)

Proof of Theorem ralcom2
StepHypRef Expression
1 eleq1w 2813 . . . . . . 7 (𝑥 = 𝑦 → (𝑥𝐴𝑦𝐴))
21sps 2184 . . . . . 6 (∀𝑥 𝑥 = 𝑦 → (𝑥𝐴𝑦𝐴))
32imbi1d 345 . . . . . . . . 9 (∀𝑥 𝑥 = 𝑦 → ((𝑥𝐴𝜑) ↔ (𝑦𝐴𝜑)))
43dral1 2438 . . . . . . . 8 (∀𝑥 𝑥 = 𝑦 → (∀𝑥(𝑥𝐴𝜑) ↔ ∀𝑦(𝑦𝐴𝜑)))
54bicomd 226 . . . . . . 7 (∀𝑥 𝑥 = 𝑦 → (∀𝑦(𝑦𝐴𝜑) ↔ ∀𝑥(𝑥𝐴𝜑)))
6 df-ral 3056 . . . . . . 7 (∀𝑦𝐴 𝜑 ↔ ∀𝑦(𝑦𝐴𝜑))
7 df-ral 3056 . . . . . . 7 (∀𝑥𝐴 𝜑 ↔ ∀𝑥(𝑥𝐴𝜑))
85, 6, 73bitr4g 317 . . . . . 6 (∀𝑥 𝑥 = 𝑦 → (∀𝑦𝐴 𝜑 ↔ ∀𝑥𝐴 𝜑))
92, 8imbi12d 348 . . . . 5 (∀𝑥 𝑥 = 𝑦 → ((𝑥𝐴 → ∀𝑦𝐴 𝜑) ↔ (𝑦𝐴 → ∀𝑥𝐴 𝜑)))
109dral1 2438 . . . 4 (∀𝑥 𝑥 = 𝑦 → (∀𝑥(𝑥𝐴 → ∀𝑦𝐴 𝜑) ↔ ∀𝑦(𝑦𝐴 → ∀𝑥𝐴 𝜑)))
11 df-ral 3056 . . . 4 (∀𝑥𝐴𝑦𝐴 𝜑 ↔ ∀𝑥(𝑥𝐴 → ∀𝑦𝐴 𝜑))
12 df-ral 3056 . . . 4 (∀𝑦𝐴𝑥𝐴 𝜑 ↔ ∀𝑦(𝑦𝐴 → ∀𝑥𝐴 𝜑))
1310, 11, 123bitr4g 317 . . 3 (∀𝑥 𝑥 = 𝑦 → (∀𝑥𝐴𝑦𝐴 𝜑 ↔ ∀𝑦𝐴𝑥𝐴 𝜑))
1413biimpd 232 . 2 (∀𝑥 𝑥 = 𝑦 → (∀𝑥𝐴𝑦𝐴 𝜑 → ∀𝑦𝐴𝑥𝐴 𝜑))
15 nfnae 2433 . . . . 5 𝑦 ¬ ∀𝑥 𝑥 = 𝑦
16 nfra2 3141 . . . . 5 𝑦𝑥𝐴𝑦𝐴 𝜑
1715, 16nfan 1907 . . . 4 𝑦(¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑)
18 nfnae 2433 . . . . . . . 8 𝑥 ¬ ∀𝑥 𝑥 = 𝑦
19 nfra1 3130 . . . . . . . 8 𝑥𝑥𝐴𝑦𝐴 𝜑
2018, 19nfan 1907 . . . . . . 7 𝑥(¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑)
21 nfcvf 2926 . . . . . . . . 9 (¬ ∀𝑥 𝑥 = 𝑦𝑥𝑦)
2221adantr 484 . . . . . . . 8 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → 𝑥𝑦)
23 nfcvd 2898 . . . . . . . 8 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → 𝑥𝐴)
2422, 23nfeld 2908 . . . . . . 7 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → Ⅎ𝑥 𝑦𝐴)
2520, 24nfan1 2200 . . . . . 6 𝑥((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) ∧ 𝑦𝐴)
26 rsp2 3124 . . . . . . . . 9 (∀𝑥𝐴𝑦𝐴 𝜑 → ((𝑥𝐴𝑦𝐴) → 𝜑))
2726ancomsd 469 . . . . . . . 8 (∀𝑥𝐴𝑦𝐴 𝜑 → ((𝑦𝐴𝑥𝐴) → 𝜑))
2827expdimp 456 . . . . . . 7 ((∀𝑥𝐴𝑦𝐴 𝜑𝑦𝐴) → (𝑥𝐴𝜑))
2928adantll 714 . . . . . 6 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) ∧ 𝑦𝐴) → (𝑥𝐴𝜑))
3025, 29ralrimi 3127 . . . . 5 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) ∧ 𝑦𝐴) → ∀𝑥𝐴 𝜑)
3130ex 416 . . . 4 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → (𝑦𝐴 → ∀𝑥𝐴 𝜑))
3217, 31ralrimi 3127 . . 3 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → ∀𝑦𝐴𝑥𝐴 𝜑)
3332ex 416 . 2 (¬ ∀𝑥 𝑥 = 𝑦 → (∀𝑥𝐴𝑦𝐴 𝜑 → ∀𝑦𝐴𝑥𝐴 𝜑))
3414, 33pm2.61i 185 1 (∀𝑥𝐴𝑦𝐴 𝜑 → ∀𝑦𝐴𝑥𝐴 𝜑)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wal 1541  wcel 2112  wnfc 2877  wral 3051
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2018  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2160  ax-12 2177  ax-13 2371  ax-ext 2708
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-tru 1546  df-ex 1788  df-nf 1792  df-cleq 2728  df-clel 2809  df-nfc 2879  df-ral 3056
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator