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

Theorem opabiota 6997
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 6915 . . 3 (𝑥 = 𝐵 → (𝐹‘𝑥) = (𝐹‘𝐵))
2 opabiota.2 . . . 4 (𝑥 = 𝐵 → (𝜑 ↔ 𝜓))
32iotabidv 6548 . . 3 (𝑥 = 𝐵 → (℩𝑦𝜑) = (℩𝑦𝜓))
41, 3eqeq12d 2782 . 2 (𝑥 = 𝐵 → ((𝐹‘𝑥) = (℩𝑦𝜑) ↔ (𝐹‘𝐵) = (℩𝑦𝜓)))
5 vex 3457 . . . 4 𝑥 ∈ V
65eldm 5893 . . 3 (𝑥 ∈ dom 𝐹 ↔ ∃𝑦 𝑥𝐹𝑦)
7 nfiota1 6521 . . . . 5 Ⅎ𝑦(℩𝑦𝜑)
87nfeq2 2946 . . . 4 Ⅎ𝑦(𝐹‘𝑥) = (℩𝑦𝜑)
9 opabiota.1 . . . . . . 7 𝐹 = {⟨𝑥, 𝑦⟩ ∣ {𝑦 ∣ 𝜑} = {𝑦}}
109opabiotafun 6995 . . . . . 6 Fun 𝐹
11 funbrfv 6963 . . . . . 6 (Fun 𝐹 → (𝑥𝐹𝑦 → (𝐹‘𝑥) = 𝑦))
1210, 11ax-mp 5 . . . . 5 (𝑥𝐹𝑦 → (𝐹‘𝑥) = 𝑦)
13 df-br 5108 . . . . . . . 8 (𝑥𝐹𝑦 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐹)
149eleq2i 2859 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ {𝑦 ∣ 𝜑} = {𝑦}})
15 opabidw 5504 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ {𝑦 ∣ 𝜑} = {𝑦}} ↔ {𝑦 ∣ 𝜑} = {𝑦})
1613, 14, 153bitri 300 . . . . . . 7 (𝑥𝐹𝑦 ↔ {𝑦 ∣ 𝜑} = {𝑦})
17 vsnid 4624 . . . . . . . . 9 𝑦 ∈ {𝑦}
18 id 23 . . . . . . . . 9 ({𝑦 ∣ 𝜑} = {𝑦} → {𝑦 ∣ 𝜑} = {𝑦})
1917, 18eleqtrrid 2874 . . . . . . . 8 ({𝑦 ∣ 𝜑} = {𝑦} → 𝑦 ∈ {𝑦 ∣ 𝜑})
20 abid 2748 . . . . . . . 8 (𝑦 ∈ {𝑦 ∣ 𝜑} ↔ 𝜑)
2119, 20sylib 221 . . . . . . 7 ({𝑦 ∣ 𝜑} = {𝑦} → 𝜑)
2216, 21sylbi 220 . . . . . 6 (𝑥𝐹𝑦 → 𝜑)
23 vex 3457 . . . . . . . . 9 𝑦 ∈ V
245, 23breldm 5901 . . . . . . . 8 (𝑥𝐹𝑦 → 𝑥 ∈ dom 𝐹)
259opabiotadm 6996 . . . . . . . . 9 dom 𝐹 = {𝑥 ∣ ∃!𝑦𝜑}
2625eqabri 2909 . . . . . . . 8 (𝑥 ∈ dom 𝐹 ↔ ∃!𝑦𝜑)
2724, 26sylib 221 . . . . . . 7 (𝑥𝐹𝑦 → ∃!𝑦𝜑)
28 iota1 6543 . . . . . . 7 (∃!𝑦𝜑 → (𝜑 ↔ (℩𝑦𝜑) = 𝑦))
2927, 28syl 18 . . . . . 6 (𝑥𝐹𝑦 → (𝜑 ↔ (℩𝑦𝜑) = 𝑦))
3022, 29mpbid 235 . . . . 5 (𝑥𝐹𝑦 → (℩𝑦𝜑) = 𝑦)
3112, 30eqtr4d 2804 . . . 4 (𝑥𝐹𝑦 → (𝐹‘𝑥) = (℩𝑦𝜑))
328, 31exlimi 2260 . . 3 (∃𝑦 𝑥𝐹𝑦 → (𝐹‘𝑥) = (℩𝑦𝜑))
336, 32sylbi 220 . 2 (𝑥 ∈ dom 𝐹 → (𝐹‘𝑥) = (℩𝑦𝜑))
344, 33vtoclga 3539 1 (𝐵 ∈ dom 𝐹 → (𝐹‘𝐵) = (℩𝑦𝜓))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   = wceq 1572  ∃wex 1814   ∈ wcel 2150  ∃!weu 2599  {cab 2744  {csn 4587  ⟨cop 4839   class class class wbr 5107  {copab 5172  dom cdm 5657  ℩cio 6517  Fun wfun 6559  ‘cfv 6565
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-sep 5254  ax-pr 5397
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ral 3084  df-rex 3094  df-rab 3416  df-v 3455  df-ss 3900  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-sn 4588  df-pr 4590  df-op 4840  df-uni 4872  df-br 5108  df-opab 5173  df-id 5552  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-iota 6519  df-fun 6567  df-fv 6573
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator