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

Theorem funopsn 7002
Description: If a function is an ordered pair then it is a singleton of an ordered pair. (Contributed by AV, 20-Sep-2020.) (Proof shortened by AV, 15-Jul-2021.) A function is a class of ordered pairs, so the fact that an ordered pair may sometimes be itself a function is an "accident" depending on the specific encoding of ordered pairs as classes (in set.mm, the Kuratowski encoding). A more meaningful statement is funsng 6469, as relsnopg 5702 is to relop 5748. (New usage is discouraged.)
Hypotheses
Ref Expression
funopsn.x 𝑋 ∈ V
funopsn.y 𝑌 ∈ V
Assertion
Ref Expression
funopsn ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → ∃𝑎(𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩}))
Distinct variable groups:   𝐹,𝑎   𝑋,𝑎   𝑌,𝑎

Proof of Theorem funopsn
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 funiun 7001 . 2 (Fun 𝐹𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩})
2 eqeq1 2742 . . . . . . 7 (𝐹 = ⟨𝑋, 𝑌⟩ → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ ⟨𝑋, 𝑌⟩ = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}))
3 eqcom 2745 . . . . . . 7 (⟨𝑋, 𝑌⟩ = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩)
42, 3bitrdi 286 . . . . . 6 (𝐹 = ⟨𝑋, 𝑌⟩ → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩))
54adantl 481 . . . . 5 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩))
6 funopsn.x . . . . . . . 8 𝑋 ∈ V
7 funopsn.y . . . . . . . 8 𝑌 ∈ V
86, 7opnzi 5383 . . . . . . 7 𝑋, 𝑌⟩ ≠ ∅
9 neeq1 3005 . . . . . . . . . . 11 (⟨𝑋, 𝑌⟩ = 𝐹 → (⟨𝑋, 𝑌⟩ ≠ ∅ ↔ 𝐹 ≠ ∅))
109eqcoms 2746 . . . . . . . . . 10 (𝐹 = ⟨𝑋, 𝑌⟩ → (⟨𝑋, 𝑌⟩ ≠ ∅ ↔ 𝐹 ≠ ∅))
11 funrel 6435 . . . . . . . . . . . . . 14 (Fun 𝐹 → Rel 𝐹)
12 reldm0 5826 . . . . . . . . . . . . . 14 (Rel 𝐹 → (𝐹 = ∅ ↔ dom 𝐹 = ∅))
1311, 12syl 17 . . . . . . . . . . . . 13 (Fun 𝐹 → (𝐹 = ∅ ↔ dom 𝐹 = ∅))
1413biimprd 247 . . . . . . . . . . . 12 (Fun 𝐹 → (dom 𝐹 = ∅ → 𝐹 = ∅))
1514necon3d 2963 . . . . . . . . . . 11 (Fun 𝐹 → (𝐹 ≠ ∅ → dom 𝐹 ≠ ∅))
1615com12 32 . . . . . . . . . 10 (𝐹 ≠ ∅ → (Fun 𝐹 → dom 𝐹 ≠ ∅))
1710, 16syl6bi 252 . . . . . . . . 9 (𝐹 = ⟨𝑋, 𝑌⟩ → (⟨𝑋, 𝑌⟩ ≠ ∅ → (Fun 𝐹 → dom 𝐹 ≠ ∅)))
1817com3l 89 . . . . . . . 8 (⟨𝑋, 𝑌⟩ ≠ ∅ → (Fun 𝐹 → (𝐹 = ⟨𝑋, 𝑌⟩ → dom 𝐹 ≠ ∅)))
1918impd 410 . . . . . . 7 (⟨𝑋, 𝑌⟩ ≠ ∅ → ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → dom 𝐹 ≠ ∅))
208, 19ax-mp 5 . . . . . 6 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → dom 𝐹 ≠ ∅)
21 fvex 6769 . . . . . . 7 (𝐹𝑥) ∈ V
2221, 6, 7iunopeqop 5429 . . . . . 6 (dom 𝐹 ≠ ∅ → ( 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩ → ∃𝑎dom 𝐹 = {𝑎}))
2320, 22syl 17 . . . . 5 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → ( 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩ → ∃𝑎dom 𝐹 = {𝑎}))
245, 23sylbid 239 . . . 4 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} → ∃𝑎dom 𝐹 = {𝑎}))
2524imp 406 . . 3 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}) → ∃𝑎dom 𝐹 = {𝑎})
26 iuneq1 4937 . . . . . . . . 9 (dom 𝐹 = {𝑎} → 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = 𝑥 ∈ {𝑎} {⟨𝑥, (𝐹𝑥)⟩})
27 vex 3426 . . . . . . . . . 10 𝑎 ∈ V
28 id 22 . . . . . . . . . . . 12 (𝑥 = 𝑎𝑥 = 𝑎)
29 fveq2 6756 . . . . . . . . . . . 12 (𝑥 = 𝑎 → (𝐹𝑥) = (𝐹𝑎))
3028, 29opeq12d 4809 . . . . . . . . . . 11 (𝑥 = 𝑎 → ⟨𝑥, (𝐹𝑥)⟩ = ⟨𝑎, (𝐹𝑎)⟩)
3130sneqd 4570 . . . . . . . . . 10 (𝑥 = 𝑎 → {⟨𝑥, (𝐹𝑥)⟩} = {⟨𝑎, (𝐹𝑎)⟩})
3227, 31iunxsn 5016 . . . . . . . . 9 𝑥 ∈ {𝑎} {⟨𝑥, (𝐹𝑥)⟩} = {⟨𝑎, (𝐹𝑎)⟩}
3326, 32eqtrdi 2795 . . . . . . . 8 (dom 𝐹 = {𝑎} → 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = {⟨𝑎, (𝐹𝑎)⟩})
3433adantl 481 . . . . . . 7 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ dom 𝐹 = {𝑎}) → 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = {⟨𝑎, (𝐹𝑎)⟩})
3534eqeq2d 2749 . . . . . 6 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ dom 𝐹 = {𝑎}) → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}))
36 eqeq1 2742 . . . . . . . . . . 11 (𝐹 = ⟨𝑋, 𝑌⟩ → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ↔ ⟨𝑋, 𝑌⟩ = {⟨𝑎, (𝐹𝑎)⟩}))
3736adantl 481 . . . . . . . . . 10 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ↔ ⟨𝑋, 𝑌⟩ = {⟨𝑎, (𝐹𝑎)⟩}))
38 eqcom 2745 . . . . . . . . . . 11 (⟨𝑋, 𝑌⟩ = {⟨𝑎, (𝐹𝑎)⟩} ↔ {⟨𝑎, (𝐹𝑎)⟩} = ⟨𝑋, 𝑌⟩)
39 fvex 6769 . . . . . . . . . . . 12 (𝐹𝑎) ∈ V
4027, 39snopeqop 5414 . . . . . . . . . . 11 ({⟨𝑎, (𝐹𝑎)⟩} = ⟨𝑋, 𝑌⟩ ↔ (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}))
4138, 40sylbb 218 . . . . . . . . . 10 (⟨𝑋, 𝑌⟩ = {⟨𝑎, (𝐹𝑎)⟩} → (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}))
4237, 41syl6bi 252 . . . . . . . . 9 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} → (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎})))
4342imp 406 . . . . . . . 8 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}) → (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}))
44 simpr3 1194 . . . . . . . . . . . 12 ((𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ∧ (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎})) → 𝑋 = {𝑎})
45 simp1 1134 . . . . . . . . . . . . . . . . 17 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → 𝑎 = (𝐹𝑎))
4645eqcomd 2744 . . . . . . . . . . . . . . . 16 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (𝐹𝑎) = 𝑎)
4746opeq2d 4808 . . . . . . . . . . . . . . 15 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → ⟨𝑎, (𝐹𝑎)⟩ = ⟨𝑎, 𝑎⟩)
4847sneqd 4570 . . . . . . . . . . . . . 14 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → {⟨𝑎, (𝐹𝑎)⟩} = {⟨𝑎, 𝑎⟩})
4948eqeq2d 2749 . . . . . . . . . . . . 13 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ↔ 𝐹 = {⟨𝑎, 𝑎⟩}))
5049biimpac 478 . . . . . . . . . . . 12 ((𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ∧ (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎})) → 𝐹 = {⟨𝑎, 𝑎⟩})
5144, 50jca 511 . . . . . . . . . . 11 ((𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ∧ (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎})) → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩}))
5251ex 412 . . . . . . . . . 10 (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} → ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5352adantl 481 . . . . . . . . 9 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}) → ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5453a1dd 50 . . . . . . . 8 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}) → ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (dom 𝐹 = {𝑎} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩}))))
5543, 54mpd 15 . . . . . . 7 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}) → (dom 𝐹 = {𝑎} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5655impancom 451 . . . . . 6 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ dom 𝐹 = {𝑎}) → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5735, 56sylbid 239 . . . . 5 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ dom 𝐹 = {𝑎}) → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5857impancom 451 . . . 4 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}) → (dom 𝐹 = {𝑎} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5958eximdv 1921 . . 3 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}) → (∃𝑎dom 𝐹 = {𝑎} → ∃𝑎(𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
6025, 59mpd 15 . 2 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}) → ∃𝑎(𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩}))
611, 60mpidan 685 1 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → ∃𝑎(𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wex 1783  wcel 2108  wne 2942  Vcvv 3422  c0 4253  {csn 4558  cop 4564   ciun 4921  dom cdm 5580  Rel wrel 5585  Fun wfun 6412  cfv 6418
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426
This theorem is referenced by:  funop  7003  funop1  44662
  Copyright terms: Public domain W3C validator