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

Theorem funopsn 7020
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 6485, as relsnopg 5713 is to relop 5759. (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 7019 . 2 (Fun 𝐹𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩})
2 eqeq1 2742 . . . . . . 7 (𝐹 = ⟨𝑋, 𝑌⟩ → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ ⟨𝑋, 𝑌⟩ = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}))
3 eqcom 2745 . . . . . . 7 (⟨𝑋, 𝑌⟩ = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩)
42, 3bitrdi 287 . . . . . 6 (𝐹 = ⟨𝑋, 𝑌⟩ → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩))
54adantl 482 . . . . 5 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩))
6 funopsn.x . . . . . . . 8 𝑋 ∈ V
7 funopsn.y . . . . . . . 8 𝑌 ∈ V
86, 7opnzi 5389 . . . . . . 7 𝑋, 𝑌⟩ ≠ ∅
9 neeq1 3006 . . . . . . . . . . 11 (⟨𝑋, 𝑌⟩ = 𝐹 → (⟨𝑋, 𝑌⟩ ≠ ∅ ↔ 𝐹 ≠ ∅))
109eqcoms 2746 . . . . . . . . . 10 (𝐹 = ⟨𝑋, 𝑌⟩ → (⟨𝑋, 𝑌⟩ ≠ ∅ ↔ 𝐹 ≠ ∅))
11 funrel 6451 . . . . . . . . . . . . . 14 (Fun 𝐹 → Rel 𝐹)
12 reldm0 5837 . . . . . . . . . . . . . 14 (Rel 𝐹 → (𝐹 = ∅ ↔ dom 𝐹 = ∅))
1311, 12syl 17 . . . . . . . . . . . . 13 (Fun 𝐹 → (𝐹 = ∅ ↔ dom 𝐹 = ∅))
1413biimprd 247 . . . . . . . . . . . 12 (Fun 𝐹 → (dom 𝐹 = ∅ → 𝐹 = ∅))
1514necon3d 2964 . . . . . . . . . . 11 (Fun 𝐹 → (𝐹 ≠ ∅ → dom 𝐹 ≠ ∅))
1615com12 32 . . . . . . . . . 10 (𝐹 ≠ ∅ → (Fun 𝐹 → dom 𝐹 ≠ ∅))
1710, 16syl6bi 252 . . . . . . . . 9 (𝐹 = ⟨𝑋, 𝑌⟩ → (⟨𝑋, 𝑌⟩ ≠ ∅ → (Fun 𝐹 → dom 𝐹 ≠ ∅)))
1817com3l 89 . . . . . . . 8 (⟨𝑋, 𝑌⟩ ≠ ∅ → (Fun 𝐹 → (𝐹 = ⟨𝑋, 𝑌⟩ → dom 𝐹 ≠ ∅)))
1918impd 411 . . . . . . 7 (⟨𝑋, 𝑌⟩ ≠ ∅ → ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → dom 𝐹 ≠ ∅))
208, 19ax-mp 5 . . . . . 6 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → dom 𝐹 ≠ ∅)
21 fvex 6787 . . . . . . 7 (𝐹𝑥) ∈ V
2221, 6, 7iunopeqop 5435 . . . . . 6 (dom 𝐹 ≠ ∅ → ( 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩ → ∃𝑎dom 𝐹 = {𝑎}))
2320, 22syl 17 . . . . 5 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → ( 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩ → ∃𝑎dom 𝐹 = {𝑎}))
245, 23sylbid 239 . . . 4 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} → ∃𝑎dom 𝐹 = {𝑎}))
2524imp 407 . . 3 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}) → ∃𝑎dom 𝐹 = {𝑎})
26 iuneq1 4940 . . . . . . . . 9 (dom 𝐹 = {𝑎} → 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = 𝑥 ∈ {𝑎} {⟨𝑥, (𝐹𝑥)⟩})
27 vex 3436 . . . . . . . . . 10 𝑎 ∈ V
28 id 22 . . . . . . . . . . . 12 (𝑥 = 𝑎𝑥 = 𝑎)
29 fveq2 6774 . . . . . . . . . . . 12 (𝑥 = 𝑎 → (𝐹𝑥) = (𝐹𝑎))
3028, 29opeq12d 4812 . . . . . . . . . . 11 (𝑥 = 𝑎 → ⟨𝑥, (𝐹𝑥)⟩ = ⟨𝑎, (𝐹𝑎)⟩)
3130sneqd 4573 . . . . . . . . . 10 (𝑥 = 𝑎 → {⟨𝑥, (𝐹𝑥)⟩} = {⟨𝑎, (𝐹𝑎)⟩})
3227, 31iunxsn 5020 . . . . . . . . 9 𝑥 ∈ {𝑎} {⟨𝑥, (𝐹𝑥)⟩} = {⟨𝑎, (𝐹𝑎)⟩}
3326, 32eqtrdi 2794 . . . . . . . 8 (dom 𝐹 = {𝑎} → 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = {⟨𝑎, (𝐹𝑎)⟩})
3433adantl 482 . . . . . . 7 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ dom 𝐹 = {𝑎}) → 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = {⟨𝑎, (𝐹𝑎)⟩})
3534eqeq2d 2749 . . . . . 6 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ dom 𝐹 = {𝑎}) → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}))
36 eqeq1 2742 . . . . . . . . . . 11 (𝐹 = ⟨𝑋, 𝑌⟩ → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ↔ ⟨𝑋, 𝑌⟩ = {⟨𝑎, (𝐹𝑎)⟩}))
3736adantl 482 . . . . . . . . . 10 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ↔ ⟨𝑋, 𝑌⟩ = {⟨𝑎, (𝐹𝑎)⟩}))
38 eqcom 2745 . . . . . . . . . . 11 (⟨𝑋, 𝑌⟩ = {⟨𝑎, (𝐹𝑎)⟩} ↔ {⟨𝑎, (𝐹𝑎)⟩} = ⟨𝑋, 𝑌⟩)
39 fvex 6787 . . . . . . . . . . . 12 (𝐹𝑎) ∈ V
4027, 39snopeqop 5420 . . . . . . . . . . 11 ({⟨𝑎, (𝐹𝑎)⟩} = ⟨𝑋, 𝑌⟩ ↔ (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}))
4138, 40sylbb 218 . . . . . . . . . 10 (⟨𝑋, 𝑌⟩ = {⟨𝑎, (𝐹𝑎)⟩} → (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}))
4237, 41syl6bi 252 . . . . . . . . 9 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} → (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎})))
4342imp 407 . . . . . . . 8 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}) → (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}))
44 simpr3 1195 . . . . . . . . . . . 12 ((𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ∧ (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎})) → 𝑋 = {𝑎})
45 simp1 1135 . . . . . . . . . . . . . . . . 17 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → 𝑎 = (𝐹𝑎))
4645eqcomd 2744 . . . . . . . . . . . . . . . 16 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (𝐹𝑎) = 𝑎)
4746opeq2d 4811 . . . . . . . . . . . . . . 15 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → ⟨𝑎, (𝐹𝑎)⟩ = ⟨𝑎, 𝑎⟩)
4847sneqd 4573 . . . . . . . . . . . . . 14 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → {⟨𝑎, (𝐹𝑎)⟩} = {⟨𝑎, 𝑎⟩})
4948eqeq2d 2749 . . . . . . . . . . . . 13 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ↔ 𝐹 = {⟨𝑎, 𝑎⟩}))
5049biimpac 479 . . . . . . . . . . . 12 ((𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ∧ (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎})) → 𝐹 = {⟨𝑎, 𝑎⟩})
5144, 50jca 512 . . . . . . . . . . 11 ((𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ∧ (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎})) → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩}))
5251ex 413 . . . . . . . . . 10 (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} → ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5352adantl 482 . . . . . . . . 9 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}) → ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5453a1dd 50 . . . . . . . 8 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}) → ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (dom 𝐹 = {𝑎} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩}))))
5543, 54mpd 15 . . . . . . 7 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}) → (dom 𝐹 = {𝑎} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5655impancom 452 . . . . . 6 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ dom 𝐹 = {𝑎}) → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5735, 56sylbid 239 . . . . 5 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ dom 𝐹 = {𝑎}) → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5857impancom 452 . . . 4 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}) → (dom 𝐹 = {𝑎} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5958eximdv 1920 . . 3 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}) → (∃𝑎dom 𝐹 = {𝑎} → ∃𝑎(𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
6025, 59mpd 15 . 2 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}) → ∃𝑎(𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩}))
611, 60mpidan 686 1 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → ∃𝑎(𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wex 1782  wcel 2106  wne 2943  Vcvv 3432  c0 4256  {csn 4561  cop 4567   ciun 4924  dom cdm 5589  Rel wrel 5594  Fun wfun 6427  cfv 6433
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441
This theorem is referenced by:  funop  7021  funop1  44775
  Copyright terms: Public domain W3C validator