Users' Mathboxes Mathbox for Glauco Siliprandi < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  rnmptpr Structured version   Visualization version   GIF version

Theorem rnmptpr 38863
Description: Range of a function defined on an unordered pair. (Contributed by Glauco Siliprandi, 17-Aug-2020.)
Hypotheses
Ref Expression
rnmptpr.a (𝜑𝐴𝑉)
rnmptpr.b (𝜑𝐵𝑊)
rnmptpr.f 𝐹 = (𝑥 ∈ {𝐴, 𝐵} ↦ 𝐶)
rnmptpr.d (𝑥 = 𝐴𝐶 = 𝐷)
rnmptpr.e (𝑥 = 𝐵𝐶 = 𝐸)
Assertion
Ref Expression
rnmptpr (𝜑 → ran 𝐹 = {𝐷, 𝐸})
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐷   𝑥,𝐸
Allowed substitution hints:   𝜑(𝑥)   𝐶(𝑥)   𝐹(𝑥)   𝑉(𝑥)   𝑊(𝑥)

Proof of Theorem rnmptpr
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 vex 3192 . . . . . 6 𝑦 ∈ V
2 rnmptpr.f . . . . . . 7 𝐹 = (𝑥 ∈ {𝐴, 𝐵} ↦ 𝐶)
32elrnmpt 5337 . . . . . 6 (𝑦 ∈ V → (𝑦 ∈ ran 𝐹 ↔ ∃𝑥 ∈ {𝐴, 𝐵}𝑦 = 𝐶))
41, 3ax-mp 5 . . . . 5 (𝑦 ∈ ran 𝐹 ↔ ∃𝑥 ∈ {𝐴, 𝐵}𝑦 = 𝐶)
54a1i 11 . . . 4 (𝜑 → (𝑦 ∈ ran 𝐹 ↔ ∃𝑥 ∈ {𝐴, 𝐵}𝑦 = 𝐶))
6 rnmptpr.a . . . . 5 (𝜑𝐴𝑉)
7 rnmptpr.b . . . . 5 (𝜑𝐵𝑊)
8 rnmptpr.d . . . . . . 7 (𝑥 = 𝐴𝐶 = 𝐷)
98eqeq2d 2631 . . . . . 6 (𝑥 = 𝐴 → (𝑦 = 𝐶𝑦 = 𝐷))
10 rnmptpr.e . . . . . . 7 (𝑥 = 𝐵𝐶 = 𝐸)
1110eqeq2d 2631 . . . . . 6 (𝑥 = 𝐵 → (𝑦 = 𝐶𝑦 = 𝐸))
129, 11rexprg 4211 . . . . 5 ((𝐴𝑉𝐵𝑊) → (∃𝑥 ∈ {𝐴, 𝐵}𝑦 = 𝐶 ↔ (𝑦 = 𝐷𝑦 = 𝐸)))
136, 7, 12syl2anc 692 . . . 4 (𝜑 → (∃𝑥 ∈ {𝐴, 𝐵}𝑦 = 𝐶 ↔ (𝑦 = 𝐷𝑦 = 𝐸)))
141elpr 4174 . . . . . 6 (𝑦 ∈ {𝐷, 𝐸} ↔ (𝑦 = 𝐷𝑦 = 𝐸))
1514bicomi 214 . . . . 5 ((𝑦 = 𝐷𝑦 = 𝐸) ↔ 𝑦 ∈ {𝐷, 𝐸})
1615a1i 11 . . . 4 (𝜑 → ((𝑦 = 𝐷𝑦 = 𝐸) ↔ 𝑦 ∈ {𝐷, 𝐸}))
175, 13, 163bitrd 294 . . 3 (𝜑 → (𝑦 ∈ ran 𝐹𝑦 ∈ {𝐷, 𝐸}))
1817alrimiv 1852 . 2 (𝜑 → ∀𝑦(𝑦 ∈ ran 𝐹𝑦 ∈ {𝐷, 𝐸}))
19 dfcleq 2615 . 2 (ran 𝐹 = {𝐷, 𝐸} ↔ ∀𝑦(𝑦 ∈ ran 𝐹𝑦 ∈ {𝐷, 𝐸}))
2018, 19sylibr 224 1 (𝜑 → ran 𝐹 = {𝐷, 𝐸})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wo 383  wal 1478   = wceq 1480  wcel 1987  wrex 2908  Vcvv 3189  {cpr 4155  cmpt 4678  ran crn 5080
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4746  ax-nul 4754  ax-pr 4872
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-rex 2913  df-rab 2916  df-v 3191  df-sbc 3422  df-dif 3562  df-un 3564  df-in 3566  df-ss 3573  df-nul 3897  df-if 4064  df-sn 4154  df-pr 4156  df-op 4160  df-br 4619  df-opab 4679  df-mpt 4680  df-cnv 5087  df-dm 5089  df-rn 5090
This theorem is referenced by:  sge0pr  39944
  Copyright terms: Public domain W3C validator