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

Theorem funopsn 6373
Description: If a function is an ordered pair then it is a singleton of an ordered pair. (Contributed by AV, 20-Sep-2020.)
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 6372 . . 3 (Fun 𝐹𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩})
2 eqeq1 2625 . . . . . . . . . 10 (𝐹 = ⟨𝑋, 𝑌⟩ → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ ⟨𝑋, 𝑌⟩ = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}))
3 eqcom 2628 . . . . . . . . . 10 (⟨𝑋, 𝑌⟩ = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩)
42, 3syl6bb 276 . . . . . . . . 9 (𝐹 = ⟨𝑋, 𝑌⟩ → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩))
54adantl 482 . . . . . . . 8 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩))
6 funopsn.x . . . . . . . . . . 11 𝑋 ∈ V
7 funopsn.y . . . . . . . . . . 11 𝑌 ∈ V
86, 7opnzi 4908 . . . . . . . . . 10 𝑋, 𝑌⟩ ≠ ∅
9 neeq1 2852 . . . . . . . . . . . . . 14 (⟨𝑋, 𝑌⟩ = 𝐹 → (⟨𝑋, 𝑌⟩ ≠ ∅ ↔ 𝐹 ≠ ∅))
109eqcoms 2629 . . . . . . . . . . . . 13 (𝐹 = ⟨𝑋, 𝑌⟩ → (⟨𝑋, 𝑌⟩ ≠ ∅ ↔ 𝐹 ≠ ∅))
11 funrel 5869 . . . . . . . . . . . . . . . . 17 (Fun 𝐹 → Rel 𝐹)
12 reldm0 5308 . . . . . . . . . . . . . . . . 17 (Rel 𝐹 → (𝐹 = ∅ ↔ dom 𝐹 = ∅))
1311, 12syl 17 . . . . . . . . . . . . . . . 16 (Fun 𝐹 → (𝐹 = ∅ ↔ dom 𝐹 = ∅))
1413biimprd 238 . . . . . . . . . . . . . . 15 (Fun 𝐹 → (dom 𝐹 = ∅ → 𝐹 = ∅))
1514necon3d 2811 . . . . . . . . . . . . . 14 (Fun 𝐹 → (𝐹 ≠ ∅ → dom 𝐹 ≠ ∅))
1615com12 32 . . . . . . . . . . . . 13 (𝐹 ≠ ∅ → (Fun 𝐹 → dom 𝐹 ≠ ∅))
1710, 16syl6bi 243 . . . . . . . . . . . 12 (𝐹 = ⟨𝑋, 𝑌⟩ → (⟨𝑋, 𝑌⟩ ≠ ∅ → (Fun 𝐹 → dom 𝐹 ≠ ∅)))
1817com3l 89 . . . . . . . . . . 11 (⟨𝑋, 𝑌⟩ ≠ ∅ → (Fun 𝐹 → (𝐹 = ⟨𝑋, 𝑌⟩ → dom 𝐹 ≠ ∅)))
1918impd 447 . . . . . . . . . 10 (⟨𝑋, 𝑌⟩ ≠ ∅ → ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → dom 𝐹 ≠ ∅))
208, 19ax-mp 5 . . . . . . . . 9 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → dom 𝐹 ≠ ∅)
21 fvex 6163 . . . . . . . . . 10 (𝐹𝑥) ∈ V
2221, 6, 7iunopeqop 4946 . . . . . . . . 9 (dom 𝐹 ≠ ∅ → ( 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩ → ∃𝑎dom 𝐹 = {𝑎}))
2320, 22syl 17 . . . . . . . 8 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → ( 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = ⟨𝑋, 𝑌⟩ → ∃𝑎dom 𝐹 = {𝑎}))
245, 23sylbid 230 . . . . . . 7 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} → ∃𝑎dom 𝐹 = {𝑎}))
2524imp 445 . . . . . 6 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}) → ∃𝑎dom 𝐹 = {𝑎})
26 iuneq1 4505 . . . . . . . . . . . 12 (dom 𝐹 = {𝑎} → 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = 𝑥 ∈ {𝑎} {⟨𝑥, (𝐹𝑥)⟩})
27 vex 3192 . . . . . . . . . . . . 13 𝑎 ∈ V
28 id 22 . . . . . . . . . . . . . . 15 (𝑥 = 𝑎𝑥 = 𝑎)
29 fveq2 6153 . . . . . . . . . . . . . . 15 (𝑥 = 𝑎 → (𝐹𝑥) = (𝐹𝑎))
3028, 29opeq12d 4383 . . . . . . . . . . . . . 14 (𝑥 = 𝑎 → ⟨𝑥, (𝐹𝑥)⟩ = ⟨𝑎, (𝐹𝑎)⟩)
3130sneqd 4165 . . . . . . . . . . . . 13 (𝑥 = 𝑎 → {⟨𝑥, (𝐹𝑥)⟩} = {⟨𝑎, (𝐹𝑎)⟩})
3227, 31iunxsn 4574 . . . . . . . . . . . 12 𝑥 ∈ {𝑎} {⟨𝑥, (𝐹𝑥)⟩} = {⟨𝑎, (𝐹𝑎)⟩}
3326, 32syl6eq 2671 . . . . . . . . . . 11 (dom 𝐹 = {𝑎} → 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = {⟨𝑎, (𝐹𝑎)⟩})
3433adantl 482 . . . . . . . . . 10 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ dom 𝐹 = {𝑎}) → 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} = {⟨𝑎, (𝐹𝑎)⟩})
3534eqeq2d 2631 . . . . . . . . 9 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ dom 𝐹 = {𝑎}) → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} ↔ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}))
36 eqeq1 2625 . . . . . . . . . . . . . 14 (𝐹 = ⟨𝑋, 𝑌⟩ → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ↔ ⟨𝑋, 𝑌⟩ = {⟨𝑎, (𝐹𝑎)⟩}))
3736adantl 482 . . . . . . . . . . . . 13 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ↔ ⟨𝑋, 𝑌⟩ = {⟨𝑎, (𝐹𝑎)⟩}))
38 eqcom 2628 . . . . . . . . . . . . . 14 (⟨𝑋, 𝑌⟩ = {⟨𝑎, (𝐹𝑎)⟩} ↔ {⟨𝑎, (𝐹𝑎)⟩} = ⟨𝑋, 𝑌⟩)
39 fvex 6163 . . . . . . . . . . . . . . 15 (𝐹𝑎) ∈ V
4027, 39, 6, 7snopeqop 4934 . . . . . . . . . . . . . 14 ({⟨𝑎, (𝐹𝑎)⟩} = ⟨𝑋, 𝑌⟩ ↔ (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}))
4138, 40sylbb 209 . . . . . . . . . . . . 13 (⟨𝑋, 𝑌⟩ = {⟨𝑎, (𝐹𝑎)⟩} → (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}))
4237, 41syl6bi 243 . . . . . . . . . . . 12 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} → (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎})))
4342imp 445 . . . . . . . . . . 11 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}) → (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}))
44 simpr3 1067 . . . . . . . . . . . . . . 15 ((𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ∧ (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎})) → 𝑋 = {𝑎})
45 simp1 1059 . . . . . . . . . . . . . . . . . . . 20 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → 𝑎 = (𝐹𝑎))
4645eqcomd 2627 . . . . . . . . . . . . . . . . . . 19 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (𝐹𝑎) = 𝑎)
4746opeq2d 4382 . . . . . . . . . . . . . . . . . 18 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → ⟨𝑎, (𝐹𝑎)⟩ = ⟨𝑎, 𝑎⟩)
4847sneqd 4165 . . . . . . . . . . . . . . . . 17 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → {⟨𝑎, (𝐹𝑎)⟩} = {⟨𝑎, 𝑎⟩})
4948eqeq2d 2631 . . . . . . . . . . . . . . . 16 ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ↔ 𝐹 = {⟨𝑎, 𝑎⟩}))
5049biimpac 503 . . . . . . . . . . . . . . 15 ((𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ∧ (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎})) → 𝐹 = {⟨𝑎, 𝑎⟩})
5144, 50jca 554 . . . . . . . . . . . . . 14 ((𝐹 = {⟨𝑎, (𝐹𝑎)⟩} ∧ (𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎})) → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩}))
5251ex 450 . . . . . . . . . . . . 13 (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} → ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5352adantl 482 . . . . . . . . . . . 12 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}) → ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5453a1dd 50 . . . . . . . . . . 11 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}) → ((𝑎 = (𝐹𝑎) ∧ 𝑋 = 𝑌𝑋 = {𝑎}) → (dom 𝐹 = {𝑎} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩}))))
5543, 54mpd 15 . . . . . . . . . 10 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = {⟨𝑎, (𝐹𝑎)⟩}) → (dom 𝐹 = {𝑎} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5655impancom 456 . . . . . . . . 9 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ dom 𝐹 = {𝑎}) → (𝐹 = {⟨𝑎, (𝐹𝑎)⟩} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5735, 56sylbid 230 . . . . . . . 8 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ dom 𝐹 = {𝑎}) → (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5857impancom 456 . . . . . . 7 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}) → (dom 𝐹 = {𝑎} → (𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
5958eximdv 1843 . . . . . 6 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}) → (∃𝑎dom 𝐹 = {𝑎} → ∃𝑎(𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
6025, 59mpd 15 . . . . 5 (((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) ∧ 𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩}) → ∃𝑎(𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩}))
6160expcom 451 . . . 4 (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} → ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → ∃𝑎(𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
6261expd 452 . . 3 (𝐹 = 𝑥 ∈ dom 𝐹{⟨𝑥, (𝐹𝑥)⟩} → (Fun 𝐹 → (𝐹 = ⟨𝑋, 𝑌⟩ → ∃𝑎(𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩}))))
631, 62mpcom 38 . 2 (Fun 𝐹 → (𝐹 = ⟨𝑋, 𝑌⟩ → ∃𝑎(𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩})))
6463imp 445 1 ((Fun 𝐹𝐹 = ⟨𝑋, 𝑌⟩) → ∃𝑎(𝑋 = {𝑎} ∧ 𝐹 = {⟨𝑎, 𝑎⟩}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384  w3a 1036   = wceq 1480  wex 1701  wcel 1987  wne 2790  Vcvv 3189  c0 3896  {csn 4153  cop 4159   ciun 4490  dom cdm 5079  Rel wrel 5084  Fun wfun 5846  cfv 5852
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4746  ax-nul 4754  ax-pr 4872
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-fal 1486  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-ral 2912  df-rex 2913  df-reu 2914  df-rab 2916  df-v 3191  df-sbc 3422  df-csb 3519  df-dif 3562  df-un 3564  df-in 3566  df-ss 3573  df-nul 3897  df-if 4064  df-sn 4154  df-pr 4156  df-op 4160  df-uni 4408  df-iun 4492  df-br 4619  df-opab 4679  df-mpt 4680  df-id 4994  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-iota 5815  df-fun 5854  df-fn 5855  df-f 5856  df-f1 5857  df-fo 5858  df-f1o 5859  df-fv 5860
This theorem is referenced by:  funop  6374  funop1  40625
  Copyright terms: Public domain W3C validator