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

Theorem ralcom2 3363
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 2733 and it should no longer be used. Usage of ralcom 3291 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 2844 . . . . . . 7 (𝑥 = 𝑦 → (𝑥 ∈ 𝐴 ↔ 𝑦 ∈ 𝐴))
21sps 2222 . . . . . 6 (∀𝑥 𝑥 = 𝑦 → (𝑥 ∈ 𝐴 ↔ 𝑦 ∈ 𝐴))
32imbi1d 344 . . . . . . . . 9 (∀𝑥 𝑥 = 𝑦 → ((𝑥 ∈ 𝐴 → 𝜑) ↔ (𝑦 ∈ 𝐴 → 𝜑)))
43dral1 2469 . . . . . . . 8 (∀𝑥 𝑥 = 𝑦 → (∀𝑥(𝑥 ∈ 𝐴 → 𝜑) ↔ ∀𝑦(𝑦 ∈ 𝐴 → 𝜑)))
54bicomd 226 . . . . . . 7 (∀𝑥 𝑥 = 𝑦 → (∀𝑦(𝑦 ∈ 𝐴 → 𝜑) ↔ ∀𝑥(𝑥 ∈ 𝐴 → 𝜑)))
6 df-ral 3078 . . . . . . 7 (∀𝑦 ∈ 𝐴 𝜑 ↔ ∀𝑦(𝑦 ∈ 𝐴 → 𝜑))
7 df-ral 3078 . . . . . . 7 (∀𝑥 ∈ 𝐴 𝜑 ↔ ∀𝑥(𝑥 ∈ 𝐴 → 𝜑))
85, 6, 73bitr4g 317 . . . . . 6 (∀𝑥 𝑥 = 𝑦 → (∀𝑦 ∈ 𝐴 𝜑 ↔ ∀𝑥 ∈ 𝐴 𝜑))
92, 8imbi12d 347 . . . . 5 (∀𝑥 𝑥 = 𝑦 → ((𝑥 ∈ 𝐴 → ∀𝑦 ∈ 𝐴 𝜑) ↔ (𝑦 ∈ 𝐴 → ∀𝑥 ∈ 𝐴 𝜑)))
109dral1 2469 . . . 4 (∀𝑥 𝑥 = 𝑦 → (∀𝑥(𝑥 ∈ 𝐴 → ∀𝑦 ∈ 𝐴 𝜑) ↔ ∀𝑦(𝑦 ∈ 𝐴 → ∀𝑥 ∈ 𝐴 𝜑)))
11 df-ral 3078 . . . 4 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑 ↔ ∀𝑥(𝑥 ∈ 𝐴 → ∀𝑦 ∈ 𝐴 𝜑))
12 df-ral 3078 . . . 4 (∀𝑦 ∈ 𝐴 ∀𝑥 ∈ 𝐴 𝜑 ↔ ∀𝑦(𝑦 ∈ 𝐴 → ∀𝑥 ∈ 𝐴 𝜑))
1310, 11, 123bitr4g 317 . . 3 (∀𝑥 𝑥 = 𝑦 → (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑 ↔ ∀𝑦 ∈ 𝐴 ∀𝑥 ∈ 𝐴 𝜑))
1413biimpd 232 . 2 (∀𝑥 𝑥 = 𝑦 → (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑 → ∀𝑦 ∈ 𝐴 ∀𝑥 ∈ 𝐴 𝜑))
15 nfnae 2464 . . . . 5 Ⅎ𝑦 ¬ ∀𝑥 𝑥 = 𝑦
16 nfra2 3362 . . . . 5 Ⅎ𝑦∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑
1715, 16nfan 1932 . . . 4 Ⅎ𝑦(¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑)
18 nfnae 2464 . . . . . . . 8 Ⅎ𝑥 ¬ ∀𝑥 𝑥 = 𝑦
19 nfra1 3287 . . . . . . . 8 Ⅎ𝑥∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑
2018, 19nfan 1932 . . . . . . 7 Ⅎ𝑥(¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑)
21 nfcvf 2949 . . . . . . . . 9 (¬ ∀𝑥 𝑥 = 𝑦 → Ⅎ𝑥𝑦)
2221adantr 486 . . . . . . . 8 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑) → Ⅎ𝑥𝑦)
23 nfcvd 2924 . . . . . . . 8 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑) → Ⅎ𝑥𝐴)
2422, 23nfeld 2934 . . . . . . 7 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑) → Ⅎ𝑥 𝑦 ∈ 𝐴)
2520, 24nfan1 2237 . . . . . 6 Ⅎ𝑥((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑) ∧ 𝑦 ∈ 𝐴)
26 rsp2 3280 . . . . . . . . 9 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑 → ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐴) → 𝜑))
2726ancomsd 471 . . . . . . . 8 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑 → ((𝑦 ∈ 𝐴 ∧ 𝑥 ∈ 𝐴) → 𝜑))
2827expdimp 458 . . . . . . 7 ((∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑 ∧ 𝑦 ∈ 𝐴) → (𝑥 ∈ 𝐴 → 𝜑))
2928adantll 727 . . . . . 6 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑) ∧ 𝑦 ∈ 𝐴) → (𝑥 ∈ 𝐴 → 𝜑))
3025, 29ralrimi 3261 . . . . 5 (((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑) ∧ 𝑦 ∈ 𝐴) → ∀𝑥 ∈ 𝐴 𝜑)
3130ex 418 . . . 4 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑) → (𝑦 ∈ 𝐴 → ∀𝑥 ∈ 𝐴 𝜑))
3217, 31ralrimi 3261 . . 3 ((¬ ∀𝑥 𝑥 = 𝑦 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑) → ∀𝑦 ∈ 𝐴 ∀𝑥 ∈ 𝐴 𝜑)
3332ex 418 . 2 (¬ ∀𝑥 𝑥 = 𝑦 → (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑 → ∀𝑦 ∈ 𝐴 ∀𝑥 ∈ 𝐴 𝜑))
3414, 33pm2.61i 184 1 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝜑 → ∀𝑦 ∈ 𝐴 ∀𝑥 ∈ 𝐴 𝜑)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1568   ∈ wcel 2145  Ⅎwnfc 2908  ∀wral 3077
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-13 2402  ax-ext 2733
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-ex 1813  df-nf 1817  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ral 3078
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator