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

Theorem ralcom2 3288
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 2709 and it should no longer be used. Usage of ralcom 3280 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 2821 . . . . . . 7 (𝑥 = 𝑦 → (𝑥𝐴𝑦𝐴))
21sps 2180 . . . . . 6 (∀𝑥 𝑥 = 𝑦 → (𝑥𝐴𝑦𝐴))
32imbi1d 341 . . . . . . . . 9 (∀𝑥 𝑥 = 𝑦 → ((𝑥𝐴𝜑) ↔ (𝑦𝐴𝜑)))
43dral1 2439 . . . . . . . 8 (∀𝑥 𝑥 = 𝑦 → (∀𝑥(𝑥𝐴𝜑) ↔ ∀𝑦(𝑦𝐴𝜑)))
54bicomd 222 . . . . . . 7 (∀𝑥 𝑥 = 𝑦 → (∀𝑦(𝑦𝐴𝜑) ↔ ∀𝑥(𝑥𝐴𝜑)))
6 df-ral 3068 . . . . . . 7 (∀𝑦𝐴 𝜑 ↔ ∀𝑦(𝑦𝐴𝜑))
7 df-ral 3068 . . . . . . 7 (∀𝑥𝐴 𝜑 ↔ ∀𝑥(𝑥𝐴𝜑))
85, 6, 73bitr4g 313 . . . . . 6 (∀𝑥 𝑥 = 𝑦 → (∀𝑦𝐴 𝜑 ↔ ∀𝑥𝐴 𝜑))
92, 8imbi12d 344 . . . . 5 (∀𝑥 𝑥 = 𝑦 → ((𝑥𝐴 → ∀𝑦𝐴 𝜑) ↔ (𝑦𝐴 → ∀𝑥𝐴 𝜑)))
109dral1 2439 . . . 4 (∀𝑥 𝑥 = 𝑦 → (∀𝑥(𝑥𝐴 → ∀𝑦𝐴 𝜑) ↔ ∀𝑦(𝑦𝐴 → ∀𝑥𝐴 𝜑)))
11 df-ral 3068 . . . 4 (∀𝑥𝐴𝑦𝐴 𝜑 ↔ ∀𝑥(𝑥𝐴 → ∀𝑦𝐴 𝜑))
12 df-ral 3068 . . . 4 (∀𝑦𝐴𝑥𝐴 𝜑 ↔ ∀𝑦(𝑦𝐴 → ∀𝑥𝐴 𝜑))
1310, 11, 123bitr4g 313 . . 3 (∀𝑥 𝑥 = 𝑦 → (∀𝑥𝐴𝑦𝐴 𝜑 ↔ ∀𝑦𝐴𝑥𝐴 𝜑))
1413biimpd 228 . 2 (∀𝑥 𝑥 = 𝑦 → (∀𝑥𝐴𝑦𝐴 𝜑 → ∀𝑦𝐴𝑥𝐴 𝜑))
15 nfnae 2434 . . . . 5 𝑦 ¬ ∀𝑥 𝑥 = 𝑦
16 nfra2 3154 . . . . 5 𝑦𝑥𝐴𝑦𝐴 𝜑
1715, 16nfan 1903 . . . 4 𝑦(¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑)
18 nfnae 2434 . . . . . . . 8 𝑥 ¬ ∀𝑥 𝑥 = 𝑦
19 nfra1 3142 . . . . . . . 8 𝑥𝑥𝐴𝑦𝐴 𝜑
2018, 19nfan 1903 . . . . . . 7 𝑥(¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑)
21 nfcvf 2935 . . . . . . . . 9 (¬ ∀𝑥 𝑥 = 𝑦𝑥𝑦)
2221adantr 480 . . . . . . . 8 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → 𝑥𝑦)
23 nfcvd 2907 . . . . . . . 8 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → 𝑥𝐴)
2422, 23nfeld 2917 . . . . . . 7 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → Ⅎ𝑥 𝑦𝐴)
2520, 24nfan1 2196 . . . . . 6 𝑥((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) ∧ 𝑦𝐴)
26 rsp2 3136 . . . . . . . . 9 (∀𝑥𝐴𝑦𝐴 𝜑 → ((𝑥𝐴𝑦𝐴) → 𝜑))
2726ancomsd 465 . . . . . . . 8 (∀𝑥𝐴𝑦𝐴 𝜑 → ((𝑦𝐴𝑥𝐴) → 𝜑))
2827expdimp 452 . . . . . . 7 ((∀𝑥𝐴𝑦𝐴 𝜑𝑦𝐴) → (𝑥𝐴𝜑))
2928adantll 710 . . . . . 6 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) ∧ 𝑦𝐴) → (𝑥𝐴𝜑))
3025, 29ralrimi 3139 . . . . 5 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) ∧ 𝑦𝐴) → ∀𝑥𝐴 𝜑)
3130ex 412 . . . 4 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → (𝑦𝐴 → ∀𝑥𝐴 𝜑))
3217, 31ralrimi 3139 . . 3 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥𝐴𝑦𝐴 𝜑) → ∀𝑦𝐴𝑥𝐴 𝜑)
3332ex 412 . 2 (¬ ∀𝑥 𝑥 = 𝑦 → (∀𝑥𝐴𝑦𝐴 𝜑 → ∀𝑦𝐴𝑥𝐴 𝜑))
3414, 33pm2.61i 182 1 (∀𝑥𝐴𝑦𝐴 𝜑 → ∀𝑦𝐴𝑥𝐴 𝜑)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wal 1537  wcel 2108  wnfc 2886  wral 3063
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-13 2372  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1542  df-ex 1784  df-nf 1788  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ral 3068
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator