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

Theorem ralcom2 3104
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 3098. (Contributed by NM, 24-Nov-1994.) (Proof shortened by Mario Carneiro, 17-Oct-2016.)
Assertion
Ref Expression
ralcom2 (∀𝑥𝐴𝑦𝐴 𝜑 → ∀𝑦𝐴𝑥𝐴 𝜑)
Distinct variable groups:   𝑦,𝐴   𝑥,𝐴
Allowed substitution hints:   𝜑(𝑥,𝑦)

Proof of Theorem ralcom2
StepHypRef Expression
1 eleq1 2689 . . . . . . 7 (𝑥 = 𝑦 → (𝑥𝐴𝑦𝐴))
21sps 2055 . . . . . 6 (∀𝑥 𝑥 = 𝑦 → (𝑥𝐴𝑦𝐴))
32imbi1d 331 . . . . . . . . 9 (∀𝑥 𝑥 = 𝑦 → ((𝑥𝐴𝜑) ↔ (𝑦𝐴𝜑)))
43dral1 2325 . . . . . . . 8 (∀𝑥 𝑥 = 𝑦 → (∀𝑥(𝑥𝐴𝜑) ↔ ∀𝑦(𝑦𝐴𝜑)))
54bicomd 213 . . . . . . 7 (∀𝑥 𝑥 = 𝑦 → (∀𝑦(𝑦𝐴𝜑) ↔ ∀𝑥(𝑥𝐴𝜑)))
6 df-ral 2917 . . . . . . 7 (∀𝑦𝐴 𝜑 ↔ ∀𝑦(𝑦𝐴𝜑))
7 df-ral 2917 . . . . . . 7 (∀𝑥𝐴 𝜑 ↔ ∀𝑥(𝑥𝐴𝜑))
85, 6, 73bitr4g 303 . . . . . 6 (∀𝑥 𝑥 = 𝑦 → (∀𝑦𝐴 𝜑 ↔ ∀𝑥𝐴 𝜑))
92, 8imbi12d 334 . . . . 5 (∀𝑥 𝑥 = 𝑦 → ((𝑥𝐴 → ∀𝑦𝐴 𝜑) ↔ (𝑦𝐴 → ∀𝑥𝐴 𝜑)))
109dral1 2325 . . . 4 (∀𝑥 𝑥 = 𝑦 → (∀𝑥(𝑥𝐴 → ∀𝑦𝐴 𝜑) ↔ ∀𝑦(𝑦𝐴 → ∀𝑥𝐴 𝜑)))
11 df-ral 2917 . . . 4 (∀𝑥𝐴𝑦𝐴 𝜑 ↔ ∀𝑥(𝑥𝐴 → ∀𝑦𝐴 𝜑))
12 df-ral 2917 . . . 4 (∀𝑦𝐴𝑥𝐴 𝜑 ↔ ∀𝑦(𝑦𝐴 → ∀𝑥𝐴 𝜑))
1310, 11, 123bitr4g 303 . . 3 (∀𝑥 𝑥 = 𝑦 → (∀𝑥𝐴𝑦𝐴 𝜑 ↔ ∀𝑦𝐴𝑥𝐴 𝜑))
1413biimpd 219 . 2 (∀𝑥 𝑥 = 𝑦 → (∀𝑥𝐴𝑦𝐴 𝜑 → ∀𝑦𝐴𝑥𝐴 𝜑))
15 nfnae 2318 . . . . 5 𝑦 ¬ ∀𝑥 𝑥 = 𝑦
16 nfra2 2946 . . . . 5 𝑦𝑥𝐴𝑦𝐴 𝜑
1715, 16nfan 1828 . . . 4 𝑦(¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑)
18 nfnae 2318 . . . . . . . 8 𝑥 ¬ ∀𝑥 𝑥 = 𝑦
19 nfra1 2941 . . . . . . . 8 𝑥𝑥𝐴𝑦𝐴 𝜑
2018, 19nfan 1828 . . . . . . 7 𝑥(¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑)
21 nfcvf 2788 . . . . . . . . 9 (¬ ∀𝑥 𝑥 = 𝑦𝑥𝑦)
2221adantr 481 . . . . . . . 8 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → 𝑥𝑦)
23 nfcvd 2765 . . . . . . . 8 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → 𝑥𝐴)
2422, 23nfeld 2773 . . . . . . 7 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → Ⅎ𝑥 𝑦𝐴)
2520, 24nfan1 2068 . . . . . 6 𝑥((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) ∧ 𝑦𝐴)
26 rsp2 2936 . . . . . . . . 9 (∀𝑥𝐴𝑦𝐴 𝜑 → ((𝑥𝐴𝑦𝐴) → 𝜑))
2726ancomsd 470 . . . . . . . 8 (∀𝑥𝐴𝑦𝐴 𝜑 → ((𝑦𝐴𝑥𝐴) → 𝜑))
2827expdimp 453 . . . . . . 7 ((∀𝑥𝐴𝑦𝐴 𝜑𝑦𝐴) → (𝑥𝐴𝜑))
2928adantll 750 . . . . . 6 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) ∧ 𝑦𝐴) → (𝑥𝐴𝜑))
3025, 29ralrimi 2957 . . . . 5 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) ∧ 𝑦𝐴) → ∀𝑥𝐴 𝜑)
3130ex 450 . . . 4 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → (𝑦𝐴 → ∀𝑥𝐴 𝜑))
3217, 31ralrimi 2957 . . 3 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → ∀𝑦𝐴𝑥𝐴 𝜑)
3332ex 450 . 2 (¬ ∀𝑥 𝑥 = 𝑦 → (∀𝑥𝐴𝑦𝐴 𝜑 → ∀𝑦𝐴𝑥𝐴 𝜑))
3414, 33pm2.61i 176 1 (∀𝑥𝐴𝑦𝐴 𝜑 → ∀𝑦𝐴𝑥𝐴 𝜑)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wa 384  wal 1481  wcel 1990  wnfc 2751  wral 2912
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1486  df-ex 1705  df-nf 1710  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ral 2917
This theorem is referenced by:  tz7.48lem  7536  imo72b2  38475  tratrb  38746  tratrbVD  39097
  Copyright terms: Public domain W3C validator