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

Theorem opabiota 6967
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 6885 . . 3 (𝑥 = 𝐵 → (𝐹‘𝑥) = (𝐹‘𝐵))
2 opabiota.2 . . . 4 (𝑥 = 𝐵 → (𝜑 ↔ 𝜓))
32iotabidv 6522 . . 3 (𝑥 = 𝐵 → (℩𝑦𝜑) = (℩𝑦𝜓))
41, 3eqeq12d 2776 . 2 (𝑥 = 𝐵 → ((𝐹‘𝑥) = (℩𝑦𝜑) ↔ (𝐹‘𝐵) = (℩𝑦𝜓)))
5 vex 3454 . . . 4 𝑥 ∈ V
65eldm 5881 . . 3 (𝑥 ∈ dom 𝐹 ↔ ∃𝑦 𝑥𝐹𝑦)
7 nfiota1 6496 . . . . 5 Ⅎ𝑦(℩𝑦𝜑)
87nfeq2 2939 . . . 4 Ⅎ𝑦(𝐹‘𝑥) = (℩𝑦𝜑)
9 opabiota.1 . . . . . . 7 𝐹 = {⟨𝑥, 𝑦⟩ ∣ {𝑦 ∣ 𝜑} = {𝑦}}
109opabiotafun 6965 . . . . . 6 Fun 𝐹
11 funbrfv 6933 . . . . . 6 (Fun 𝐹 → (𝑥𝐹𝑦 → (𝐹‘𝑥) = 𝑦))
1210, 11ax-mp 5 . . . . 5 (𝑥𝐹𝑦 → (𝐹‘𝑥) = 𝑦)
13 df-br 5103 . . . . . . . 8 (𝑥𝐹𝑦 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐹)
149eleq2i 2852 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ {𝑦 ∣ 𝜑} = {𝑦}})
15 opabidw 5497 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ {𝑦 ∣ 𝜑} = {𝑦}} ↔ {𝑦 ∣ 𝜑} = {𝑦})
1613, 14, 153bitri 300 . . . . . . 7 (𝑥𝐹𝑦 ↔ {𝑦 ∣ 𝜑} = {𝑦})
17 vsnid 4623 . . . . . . . . 9 𝑦 ∈ {𝑦}
18 id 23 . . . . . . . . 9 ({𝑦 ∣ 𝜑} = {𝑦} → {𝑦 ∣ 𝜑} = {𝑦})
1917, 18eleqtrrid 2867 . . . . . . . 8 ({𝑦 ∣ 𝜑} = {𝑦} → 𝑦 ∈ {𝑦 ∣ 𝜑})
20 abid 2742 . . . . . . . 8 (𝑦 ∈ {𝑦 ∣ 𝜑} ↔ 𝜑)
2119, 20sylib 221 . . . . . . 7 ({𝑦 ∣ 𝜑} = {𝑦} → 𝜑)
2216, 21sylbi 220 . . . . . 6 (𝑥𝐹𝑦 → 𝜑)
23 vex 3454 . . . . . . . . 9 𝑦 ∈ V
245, 23breldm 5889 . . . . . . . 8 (𝑥𝐹𝑦 → 𝑥 ∈ dom 𝐹)
259opabiotadm 6966 . . . . . . . . 9 dom 𝐹 = {𝑥 ∣ ∃!𝑦𝜑}
2625eqabri 2902 . . . . . . . 8 (𝑥 ∈ dom 𝐹 ↔ ∃!𝑦𝜑)
2724, 26sylib 221 . . . . . . 7 (𝑥𝐹𝑦 → ∃!𝑦𝜑)
28 iota1 6517 . . . . . . 7 (∃!𝑦𝜑 → (𝜑 ↔ (℩𝑦𝜑) = 𝑦))
2927, 28syl 18 . . . . . 6 (𝑥𝐹𝑦 → (𝜑 ↔ (℩𝑦𝜑) = 𝑦))
3022, 29mpbid 235 . . . . 5 (𝑥𝐹𝑦 → (℩𝑦𝜑) = 𝑦)
3112, 30eqtr4d 2798 . . . 4 (𝑥𝐹𝑦 → (𝐹‘𝑥) = (℩𝑦𝜑))
328, 31exlimi 2253 . . 3 (∃𝑦 𝑥𝐹𝑦 → (𝐹‘𝑥) = (℩𝑦𝜑))
336, 32sylbi 220 . 2 (𝑥 ∈ dom 𝐹 → (𝐹‘𝑥) = (℩𝑦𝜑))
344, 33vtoclga 3536 1 (𝐵 ∈ dom 𝐹 → (𝐹‘𝐵) = (℩𝑦𝜓))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   = wceq 1569  ∃wex 1811   ∈ wcel 2144  ∃!weu 2593  {cab 2738  {csn 4583  ⟨cop 4589   class class class wbr 5102  {copab 5166  dom cdm 5650  ℩cio 6492  Fun wfun 6532  ‘cfv 6538
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-mo 2564  df-eu 2594  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-uni 4867  df-br 5103  df-opab 5167  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-iota 6494  df-fun 6540  df-fv 6546
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator