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

Theorem opabiota 6171
Description: Define a function whose value is "the unique 𝑦 such that 𝜑(𝑥, 𝑦)". (Contributed by NM, 16-Nov-2013.)
Hypotheses
Ref Expression
opabiota.1 𝐹 = {⟨𝑥, 𝑦⟩ ∣ {𝑦𝜑} = {𝑦}}
opabiota.2 (𝑥 = 𝐵 → (𝜑𝜓))
Assertion
Ref Expression
opabiota (𝐵 ∈ dom 𝐹 → (𝐹𝐵) = (℩𝑦𝜓))
Distinct variable groups:   𝑥,𝑦,𝐵   𝑥,𝐹,𝑦   𝜓,𝑥
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝜓(𝑦)

Proof of Theorem opabiota
StepHypRef Expression
1 fveq2 6103 . . 3 (𝑥 = 𝐵 → (𝐹𝑥) = (𝐹𝐵))
2 opabiota.2 . . . 4 (𝑥 = 𝐵 → (𝜑𝜓))
32iotabidv 5789 . . 3 (𝑥 = 𝐵 → (℩𝑦𝜑) = (℩𝑦𝜓))
41, 3eqeq12d 2625 . 2 (𝑥 = 𝐵 → ((𝐹𝑥) = (℩𝑦𝜑) ↔ (𝐹𝐵) = (℩𝑦𝜓)))
5 vex 3176 . . . 4 𝑥 ∈ V
65eldm 5243 . . 3 (𝑥 ∈ dom 𝐹 ↔ ∃𝑦 𝑥𝐹𝑦)
7 nfiota1 5770 . . . . 5 𝑦(℩𝑦𝜑)
87nfeq2 2766 . . . 4 𝑦(𝐹𝑥) = (℩𝑦𝜑)
9 opabiota.1 . . . . . . 7 𝐹 = {⟨𝑥, 𝑦⟩ ∣ {𝑦𝜑} = {𝑦}}
109opabiotafun 6169 . . . . . 6 Fun 𝐹
11 funbrfv 6144 . . . . . 6 (Fun 𝐹 → (𝑥𝐹𝑦 → (𝐹𝑥) = 𝑦))
1210, 11ax-mp 5 . . . . 5 (𝑥𝐹𝑦 → (𝐹𝑥) = 𝑦)
13 df-br 4584 . . . . . . . 8 (𝑥𝐹𝑦 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐹)
149eleq2i 2680 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ {𝑦𝜑} = {𝑦}})
15 opabid 4907 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ {𝑦𝜑} = {𝑦}} ↔ {𝑦𝜑} = {𝑦})
1613, 14, 153bitri 285 . . . . . . 7 (𝑥𝐹𝑦 ↔ {𝑦𝜑} = {𝑦})
17 vsnid 4156 . . . . . . . . 9 𝑦 ∈ {𝑦}
18 id 22 . . . . . . . . 9 ({𝑦𝜑} = {𝑦} → {𝑦𝜑} = {𝑦})
1917, 18syl5eleqr 2695 . . . . . . . 8 ({𝑦𝜑} = {𝑦} → 𝑦 ∈ {𝑦𝜑})
20 abid 2598 . . . . . . . 8 (𝑦 ∈ {𝑦𝜑} ↔ 𝜑)
2119, 20sylib 207 . . . . . . 7 ({𝑦𝜑} = {𝑦} → 𝜑)
2216, 21sylbi 206 . . . . . 6 (𝑥𝐹𝑦𝜑)
23 vex 3176 . . . . . . . . 9 𝑦 ∈ V
245, 23breldm 5251 . . . . . . . 8 (𝑥𝐹𝑦𝑥 ∈ dom 𝐹)
259opabiotadm 6170 . . . . . . . . 9 dom 𝐹 = {𝑥 ∣ ∃!𝑦𝜑}
2625abeq2i 2722 . . . . . . . 8 (𝑥 ∈ dom 𝐹 ↔ ∃!𝑦𝜑)
2724, 26sylib 207 . . . . . . 7 (𝑥𝐹𝑦 → ∃!𝑦𝜑)
28 iota1 5782 . . . . . . 7 (∃!𝑦𝜑 → (𝜑 ↔ (℩𝑦𝜑) = 𝑦))
2927, 28syl 17 . . . . . 6 (𝑥𝐹𝑦 → (𝜑 ↔ (℩𝑦𝜑) = 𝑦))
3022, 29mpbid 221 . . . . 5 (𝑥𝐹𝑦 → (℩𝑦𝜑) = 𝑦)
3112, 30eqtr4d 2647 . . . 4 (𝑥𝐹𝑦 → (𝐹𝑥) = (℩𝑦𝜑))
328, 31exlimi 2073 . . 3 (∃𝑦 𝑥𝐹𝑦 → (𝐹𝑥) = (℩𝑦𝜑))
336, 32sylbi 206 . 2 (𝑥 ∈ dom 𝐹 → (𝐹𝑥) = (℩𝑦𝜑))
344, 33vtoclga 3245 1 (𝐵 ∈ dom 𝐹 → (𝐹𝐵) = (℩𝑦𝜓))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 195   = wceq 1475  wex 1695  wcel 1977  ∃!weu 2458  {cab 2596  {csn 4125  cop 4131   class class class wbr 4583  {copab 4642  dom cdm 5038  cio 5766  Fun wfun 5798  cfv 5804
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pr 4833
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ral 2901  df-rex 2902  df-rab 2905  df-v 3175  df-sbc 3403  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-sn 4126  df-pr 4128  df-op 4132  df-uni 4373  df-br 4584  df-opab 4644  df-id 4953  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-iota 5768  df-fun 5806  df-fv 5812
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator