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

Theorem ralcom2 3362
Description: Commutation of restricted universal quantifiers. Note that 𝑥 and 𝑦 need not be disjoint (this makes the proof longer). If 𝑥 and 𝑦 are disjoint, then one may use ralcom 3352. Usage of this theorem is discouraged because it depends on ax-13 2384. Use the weaker ralcom2w 3361 when possible. (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 2893 . . . . . . 7 (𝑥 = 𝑦 → (𝑥𝐴𝑦𝐴))
21sps 2177 . . . . . 6 (∀𝑥 𝑥 = 𝑦 → (𝑥𝐴𝑦𝐴))
32imbi1d 344 . . . . . . . . 9 (∀𝑥 𝑥 = 𝑦 → ((𝑥𝐴𝜑) ↔ (𝑦𝐴𝜑)))
43dral1 2455 . . . . . . . 8 (∀𝑥 𝑥 = 𝑦 → (∀𝑥(𝑥𝐴𝜑) ↔ ∀𝑦(𝑦𝐴𝜑)))
54bicomd 225 . . . . . . 7 (∀𝑥 𝑥 = 𝑦 → (∀𝑦(𝑦𝐴𝜑) ↔ ∀𝑥(𝑥𝐴𝜑)))
6 df-ral 3141 . . . . . . 7 (∀𝑦𝐴 𝜑 ↔ ∀𝑦(𝑦𝐴𝜑))
7 df-ral 3141 . . . . . . 7 (∀𝑥𝐴 𝜑 ↔ ∀𝑥(𝑥𝐴𝜑))
85, 6, 73bitr4g 316 . . . . . 6 (∀𝑥 𝑥 = 𝑦 → (∀𝑦𝐴 𝜑 ↔ ∀𝑥𝐴 𝜑))
92, 8imbi12d 347 . . . . 5 (∀𝑥 𝑥 = 𝑦 → ((𝑥𝐴 → ∀𝑦𝐴 𝜑) ↔ (𝑦𝐴 → ∀𝑥𝐴 𝜑)))
109dral1 2455 . . . 4 (∀𝑥 𝑥 = 𝑦 → (∀𝑥(𝑥𝐴 → ∀𝑦𝐴 𝜑) ↔ ∀𝑦(𝑦𝐴 → ∀𝑥𝐴 𝜑)))
11 df-ral 3141 . . . 4 (∀𝑥𝐴𝑦𝐴 𝜑 ↔ ∀𝑥(𝑥𝐴 → ∀𝑦𝐴 𝜑))
12 df-ral 3141 . . . 4 (∀𝑦𝐴𝑥𝐴 𝜑 ↔ ∀𝑦(𝑦𝐴 → ∀𝑥𝐴 𝜑))
1310, 11, 123bitr4g 316 . . 3 (∀𝑥 𝑥 = 𝑦 → (∀𝑥𝐴𝑦𝐴 𝜑 ↔ ∀𝑦𝐴𝑥𝐴 𝜑))
1413biimpd 231 . 2 (∀𝑥 𝑥 = 𝑦 → (∀𝑥𝐴𝑦𝐴 𝜑 → ∀𝑦𝐴𝑥𝐴 𝜑))
15 nfnae 2450 . . . . 5 𝑦 ¬ ∀𝑥 𝑥 = 𝑦
16 nfra2 3226 . . . . 5 𝑦𝑥𝐴𝑦𝐴 𝜑
1715, 16nfan 1894 . . . 4 𝑦(¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑)
18 nfnae 2450 . . . . . . . 8 𝑥 ¬ ∀𝑥 𝑥 = 𝑦
19 nfra1 3217 . . . . . . . 8 𝑥𝑥𝐴𝑦𝐴 𝜑
2018, 19nfan 1894 . . . . . . 7 𝑥(¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑)
21 nfcvf 3005 . . . . . . . . 9 (¬ ∀𝑥 𝑥 = 𝑦𝑥𝑦)
2221adantr 483 . . . . . . . 8 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → 𝑥𝑦)
23 nfcvd 2976 . . . . . . . 8 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → 𝑥𝐴)
2422, 23nfeld 2987 . . . . . . 7 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → Ⅎ𝑥 𝑦𝐴)
2520, 24nfan1 2193 . . . . . 6 𝑥((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) ∧ 𝑦𝐴)
26 rsp2 3211 . . . . . . . . 9 (∀𝑥𝐴𝑦𝐴 𝜑 → ((𝑥𝐴𝑦𝐴) → 𝜑))
2726ancomsd 468 . . . . . . . 8 (∀𝑥𝐴𝑦𝐴 𝜑 → ((𝑦𝐴𝑥𝐴) → 𝜑))
2827expdimp 455 . . . . . . 7 ((∀𝑥𝐴𝑦𝐴 𝜑𝑦𝐴) → (𝑥𝐴𝜑))
2928adantll 712 . . . . . 6 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) ∧ 𝑦𝐴) → (𝑥𝐴𝜑))
3025, 29ralrimi 3214 . . . . 5 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) ∧ 𝑦𝐴) → ∀𝑥𝐴 𝜑)
3130ex 415 . . . 4 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → (𝑦𝐴 → ∀𝑥𝐴 𝜑))
3217, 31ralrimi 3214 . . 3 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → ∀𝑦𝐴𝑥𝐴 𝜑)
3332ex 415 . 2 (¬ ∀𝑥 𝑥 = 𝑦 → (∀𝑥𝐴𝑦𝐴 𝜑 → ∀𝑦𝐴𝑥𝐴 𝜑))
3414, 33pm2.61i 184 1 (∀𝑥𝐴𝑦𝐴 𝜑 → ∀𝑦𝐴𝑥𝐴 𝜑)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wal 1529  wcel 2108  wnfc 2959  wral 3136
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1790  ax-4 1804  ax-5 1905  ax-6 1964  ax-7 2009  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2154  ax-12 2170  ax-13 2384  ax-ext 2791
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-tru 1534  df-ex 1775  df-nf 1779  df-cleq 2812  df-clel 2891  df-nfc 2961  df-ral 3141
This theorem is referenced by:  tratrbVD  41186
  Copyright terms: Public domain W3C validator