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

Theorem ralxfrd 5274
Description: Transfer universal quantification from a variable 𝑥 to another variable 𝑦 contained in expression 𝐴. (Contributed by NM, 15-Aug-2014.) (Proof shortened by Mario Carneiro, 19-Nov-2016.) (Proof shortened by JJ, 7-Aug-2021.)
Hypotheses
Ref Expression
ralxfrd.1 ((𝜑𝑦𝐶) → 𝐴𝐵)
ralxfrd.2 ((𝜑𝑥𝐵) → ∃𝑦𝐶 𝑥 = 𝐴)
ralxfrd.3 ((𝜑𝑥 = 𝐴) → (𝜓𝜒))
Assertion
Ref Expression
ralxfrd (𝜑 → (∀𝑥𝐵 𝜓 ↔ ∀𝑦𝐶 𝜒))
Distinct variable groups:   𝑥,𝐴   𝑥,𝑦,𝐵   𝑥,𝐶   𝜒,𝑥   𝜑,𝑥,𝑦   𝜓,𝑦
Allowed substitution hints:   𝜓(𝑥)   𝜒(𝑦)   𝐴(𝑦)   𝐶(𝑦)

Proof of Theorem ralxfrd
StepHypRef Expression
1 ralxfrd.1 . . . 4 ((𝜑𝑦𝐶) → 𝐴𝐵)
2 ralxfrd.3 . . . . 5 ((𝜑𝑥 = 𝐴) → (𝜓𝜒))
32adantlr 714 . . . 4 (((𝜑𝑦𝐶) ∧ 𝑥 = 𝐴) → (𝜓𝜒))
41, 3rspcdv 3563 . . 3 ((𝜑𝑦𝐶) → (∀𝑥𝐵 𝜓𝜒))
54ralrimdva 3154 . 2 (𝜑 → (∀𝑥𝐵 𝜓 → ∀𝑦𝐶 𝜒))
6 ralxfrd.2 . . . 4 ((𝜑𝑥𝐵) → ∃𝑦𝐶 𝑥 = 𝐴)
7 r19.29 3216 . . . . . 6 ((∀𝑦𝐶 𝜒 ∧ ∃𝑦𝐶 𝑥 = 𝐴) → ∃𝑦𝐶 (𝜒𝑥 = 𝐴))
82exbiri 810 . . . . . . . 8 (𝜑 → (𝑥 = 𝐴 → (𝜒𝜓)))
98impcomd 415 . . . . . . 7 (𝜑 → ((𝜒𝑥 = 𝐴) → 𝜓))
109rexlimdvw 3249 . . . . . 6 (𝜑 → (∃𝑦𝐶 (𝜒𝑥 = 𝐴) → 𝜓))
117, 10syl5 34 . . . . 5 (𝜑 → ((∀𝑦𝐶 𝜒 ∧ ∃𝑦𝐶 𝑥 = 𝐴) → 𝜓))
1211adantr 484 . . . 4 ((𝜑𝑥𝐵) → ((∀𝑦𝐶 𝜒 ∧ ∃𝑦𝐶 𝑥 = 𝐴) → 𝜓))
136, 12mpan2d 693 . . 3 ((𝜑𝑥𝐵) → (∀𝑦𝐶 𝜒𝜓))
1413ralrimdva 3154 . 2 (𝜑 → (∀𝑦𝐶 𝜒 → ∀𝑥𝐵 𝜓))
155, 14impbid 215 1 (𝜑 → (∀𝑥𝐵 𝜓 ↔ ∀𝑦𝐶 𝜒))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1538  wcel 2111  wral 3106  wrex 3107
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-ext 2770
This theorem depends on definitions:  df-bi 210  df-an 400  df-ex 1782  df-cleq 2791  df-clel 2870  df-ral 3111  df-rex 3112
This theorem is referenced by:  rexxfrd  5275  ralxfr2d  5276  ralxfr  5280  islindf4  20527  cmpfi  22013  rlimcnp  25551  ispisys2  31522  glbconN  36673  mapdordlem2  38933
  Copyright terms: Public domain W3C validator