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

Theorem opabiota 6968
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 6886 . . 3 (𝑥 = 𝐵 → (𝐹‘𝑥) = (𝐹‘𝐵))
2 opabiota.2 . . . 4 (𝑥 = 𝐵 → (𝜑 ↔ 𝜓))
32iotabidv 6523 . . 3 (𝑥 = 𝐵 → (℩𝑦𝜑) = (℩𝑦𝜓))
41, 3eqeq12d 2777 . 2 (𝑥 = 𝐵 → ((𝐹‘𝑥) = (℩𝑦𝜑) ↔ (𝐹‘𝐵) = (℩𝑦𝜓)))
5 vex 3455 . . . 4 𝑥 ∈ V
65eldm 5882 . . 3 (𝑥 ∈ dom 𝐹 ↔ ∃𝑦 𝑥𝐹𝑦)
7 nfiota1 6497 . . . . 5 Ⅎ𝑦(℩𝑦𝜑)
87nfeq2 2940 . . . 4 Ⅎ𝑦(𝐹‘𝑥) = (℩𝑦𝜑)
9 opabiota.1 . . . . . . 7 𝐹 = {⟨𝑥, 𝑦⟩ ∣ {𝑦 ∣ 𝜑} = {𝑦}}
109opabiotafun 6966 . . . . . 6 Fun 𝐹
11 funbrfv 6934 . . . . . 6 (Fun 𝐹 → (𝑥𝐹𝑦 → (𝐹‘𝑥) = 𝑦))
1210, 11ax-mp 5 . . . . 5 (𝑥𝐹𝑦 → (𝐹‘𝑥) = 𝑦)
13 df-br 5104 . . . . . . . 8 (𝑥𝐹𝑦 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐹)
149eleq2i 2853 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ {𝑦 ∣ 𝜑} = {𝑦}})
15 opabidw 5498 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ {𝑦 ∣ 𝜑} = {𝑦}} ↔ {𝑦 ∣ 𝜑} = {𝑦})
1613, 14, 153bitri 300 . . . . . . 7 (𝑥𝐹𝑦 ↔ {𝑦 ∣ 𝜑} = {𝑦})
17 vsnid 4624 . . . . . . . . 9 𝑦 ∈ {𝑦}
18 id 23 . . . . . . . . 9 ({𝑦 ∣ 𝜑} = {𝑦} → {𝑦 ∣ 𝜑} = {𝑦})
1917, 18eleqtrrid 2868 . . . . . . . 8 ({𝑦 ∣ 𝜑} = {𝑦} → 𝑦 ∈ {𝑦 ∣ 𝜑})
20 abid 2743 . . . . . . . 8 (𝑦 ∈ {𝑦 ∣ 𝜑} ↔ 𝜑)
2119, 20sylib 221 . . . . . . 7 ({𝑦 ∣ 𝜑} = {𝑦} → 𝜑)
2216, 21sylbi 220 . . . . . 6 (𝑥𝐹𝑦 → 𝜑)
23 vex 3455 . . . . . . . . 9 𝑦 ∈ V
245, 23breldm 5890 . . . . . . . 8 (𝑥𝐹𝑦 → 𝑥 ∈ dom 𝐹)
259opabiotadm 6967 . . . . . . . . 9 dom 𝐹 = {𝑥 ∣ ∃!𝑦𝜑}
2625eqabri 2903 . . . . . . . 8 (𝑥 ∈ dom 𝐹 ↔ ∃!𝑦𝜑)
2724, 26sylib 221 . . . . . . 7 (𝑥𝐹𝑦 → ∃!𝑦𝜑)
28 iota1 6518 . . . . . . 7 (∃!𝑦𝜑 → (𝜑 ↔ (℩𝑦𝜑) = 𝑦))
2927, 28syl 18 . . . . . 6 (𝑥𝐹𝑦 → (𝜑 ↔ (℩𝑦𝜑) = 𝑦))
3022, 29mpbid 235 . . . . 5 (𝑥𝐹𝑦 → (℩𝑦𝜑) = 𝑦)
3112, 30eqtr4d 2799 . . . 4 (𝑥𝐹𝑦 → (𝐹‘𝑥) = (℩𝑦𝜑))
328, 31exlimi 2254 . . 3 (∃𝑦 𝑥𝐹𝑦 → (𝐹‘𝑥) = (℩𝑦𝜑))
336, 32sylbi 220 . 2 (𝑥 ∈ dom 𝐹 → (𝐹‘𝑥) = (℩𝑦𝜑))
344, 33vtoclga 3537 1 (𝐵 ∈ dom 𝐹 → (𝐹‘𝐵) = (℩𝑦𝜓))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   = wceq 1570  ∃wex 1812   ∈ wcel 2145  ∃!weu 2594  {cab 2739  {csn 4584  ⟨cop 4590   class class class wbr 5103  {copab 5167  dom cdm 5651  ℩cio 6493  Fun wfun 6533  ‘cfv 6539
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-pr 5391
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-dif 3900  df-un 3902  df-in 3904  df-ss 3915  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-iota 6495  df-fun 6541  df-fv 6547
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator