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

Theorem ralrnmpo 7559
Description: A restricted quantifier over an image set. (Contributed by Mario Carneiro, 1-Sep-2015.)
Hypotheses
Ref Expression
rngop.1 𝐹 = (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐶)
ralrnmpo.2 (𝑧 = 𝐶 → (𝜑 ↔ 𝜓))
Assertion
Ref Expression
ralrnmpo (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝐶 ∈ 𝑉 → (∀𝑧 ∈ ran 𝐹𝜑 ↔ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝜓))
Distinct variable groups:   𝑦,𝑧,𝐴   𝑧,𝐵   𝑧,𝐶   𝑧,𝐹   𝜓,𝑧   𝑥,𝑦,𝑧   𝜑,𝑥,𝑦
Allowed substitution hints:   𝜑(𝑧)   𝜓(𝑥, 𝑦)   𝐴(𝑥)   𝐵(𝑥, 𝑦)   𝐶(𝑥, 𝑦)   𝐹(𝑥, 𝑦)   𝑉(𝑥, 𝑦, 𝑧)

Proof of Theorem ralrnmpo
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 rngop.1 . . . . 5 𝐹 = (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐶)
21rnmpo 7553 . . . 4 ran 𝐹 = {𝑤 ∣ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝑤 = 𝐶}
32raleqi 3317 . . 3 (∀𝑧 ∈ ran 𝐹𝜑 ↔ ∀𝑧 ∈ {𝑤 ∣ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝑤 = 𝐶}𝜑)
4 eqeq1 2764 . . . . 5 (𝑤 = 𝑧 → (𝑤 = 𝐶 ↔ 𝑧 = 𝐶))
542rexbidv 3227 . . . 4 (𝑤 = 𝑧 → (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝑤 = 𝐶 ↔ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝑧 = 𝐶))
65ralab 3650 . . 3 (∀𝑧 ∈ {𝑤 ∣ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝑤 = 𝐶}𝜑 ↔ ∀𝑧(∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑))
7 ralcom4 3288 . . . 4 (∀𝑥 ∈ 𝐴 ∀𝑧(∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑) ↔ ∀𝑧∀𝑥 ∈ 𝐴 (∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑))
8 r19.23v 3189 . . . . 5 (∀𝑥 ∈ 𝐴 (∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑) ↔ (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑))
98albii 1851 . . . 4 (∀𝑧∀𝑥 ∈ 𝐴 (∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑) ↔ ∀𝑧(∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑))
107, 9bitr2i 279 . . 3 (∀𝑧(∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑) ↔ ∀𝑥 ∈ 𝐴 ∀𝑧(∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑))
113, 6, 103bitri 300 . 2 (∀𝑧 ∈ ran 𝐹𝜑 ↔ ∀𝑥 ∈ 𝐴 ∀𝑧(∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑))
12 ralcom4 3288 . . . . . 6 (∀𝑦 ∈ 𝐵 ∀𝑧(𝑧 = 𝐶 → 𝜑) ↔ ∀𝑧∀𝑦 ∈ 𝐵 (𝑧 = 𝐶 → 𝜑))
13 r19.23v 3189 . . . . . . 7 (∀𝑦 ∈ 𝐵 (𝑧 = 𝐶 → 𝜑) ↔ (∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑))
1413albii 1851 . . . . . 6 (∀𝑧∀𝑦 ∈ 𝐵 (𝑧 = 𝐶 → 𝜑) ↔ ∀𝑧(∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑))
1512, 14bitri 278 . . . . 5 (∀𝑦 ∈ 𝐵 ∀𝑧(𝑧 = 𝐶 → 𝜑) ↔ ∀𝑧(∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑))
16 nfv 1946 . . . . . . . 8 Ⅎ𝑧𝜓
17 ralrnmpo.2 . . . . . . . 8 (𝑧 = 𝐶 → (𝜑 ↔ 𝜓))
1816, 17ceqsalg 3485 . . . . . . 7 (𝐶 ∈ 𝑉 → (∀𝑧(𝑧 = 𝐶 → 𝜑) ↔ 𝜓))
1918ralimi 3099 . . . . . 6 (∀𝑦 ∈ 𝐵 𝐶 ∈ 𝑉 → ∀𝑦 ∈ 𝐵 (∀𝑧(𝑧 = 𝐶 → 𝜑) ↔ 𝜓))
20 ralbi 3117 . . . . . 6 (∀𝑦 ∈ 𝐵 (∀𝑧(𝑧 = 𝐶 → 𝜑) ↔ 𝜓) → (∀𝑦 ∈ 𝐵 ∀𝑧(𝑧 = 𝐶 → 𝜑) ↔ ∀𝑦 ∈ 𝐵 𝜓))
2119, 20syl 18 . . . . 5 (∀𝑦 ∈ 𝐵 𝐶 ∈ 𝑉 → (∀𝑦 ∈ 𝐵 ∀𝑧(𝑧 = 𝐶 → 𝜑) ↔ ∀𝑦 ∈ 𝐵 𝜓))
2215, 21bitr3id 288 . . . 4 (∀𝑦 ∈ 𝐵 𝐶 ∈ 𝑉 → (∀𝑧(∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑) ↔ ∀𝑦 ∈ 𝐵 𝜓))
2322ralimi 3099 . . 3 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝐶 ∈ 𝑉 → ∀𝑥 ∈ 𝐴 (∀𝑧(∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑) ↔ ∀𝑦 ∈ 𝐵 𝜓))
24 ralbi 3117 . . 3 (∀𝑥 ∈ 𝐴 (∀𝑧(∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑) ↔ ∀𝑦 ∈ 𝐵 𝜓) → (∀𝑥 ∈ 𝐴 ∀𝑧(∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑) ↔ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝜓))
2523, 24syl 18 . 2 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝐶 ∈ 𝑉 → (∀𝑥 ∈ 𝐴 ∀𝑧(∃𝑦 ∈ 𝐵 𝑧 = 𝐶 → 𝜑) ↔ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝜓))
2611, 25bitrid 286 1 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝐶 ∈ 𝑉 → (∀𝑧 ∈ ran 𝐹𝜑 ↔ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝜓))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209  ∀wal 1567   = wceq 1569   ∈ wcel 2144  {cab 2738  ∀wral 3076  ∃wrex 3086  ran crn 5651   ∈ cmpo 7422
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-pr 5390
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4584  df-pr 4586  df-op 4590  df-br 5103  df-opab 5167  df-cnv 5658  df-dm 5660  df-rn 5661  df-oprab 7424  df-mpo 7425
This theorem is used by:  rexrnmpo  7560  efgval2  19938  txcnp  23939  txcnmpt  23943  txflf  24325
  Copyright terms: Public domain W3C validator