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

Theorem fsn 6308
 Description: A function maps a singleton to a singleton iff it is the singleton of an ordered pair. (Contributed by NM, 10-Dec-2003.)
Hypotheses
Ref Expression
fsn.1 𝐴 ∈ V
fsn.2 𝐵 ∈ V
Assertion
Ref Expression
fsn (𝐹:{𝐴}⟶{𝐵} ↔ 𝐹 = {⟨𝐴, 𝐵⟩})

Proof of Theorem fsn
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 opelf 5978 . . . . . . . 8 ((𝐹:{𝐴}⟶{𝐵} ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐹) → (𝑥 ∈ {𝐴} ∧ 𝑦 ∈ {𝐵}))
2 velsn 4141 . . . . . . . . 9 (𝑥 ∈ {𝐴} ↔ 𝑥 = 𝐴)
3 velsn 4141 . . . . . . . . 9 (𝑦 ∈ {𝐵} ↔ 𝑦 = 𝐵)
42, 3anbi12i 729 . . . . . . . 8 ((𝑥 ∈ {𝐴} ∧ 𝑦 ∈ {𝐵}) ↔ (𝑥 = 𝐴𝑦 = 𝐵))
51, 4sylib 207 . . . . . . 7 ((𝐹:{𝐴}⟶{𝐵} ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐹) → (𝑥 = 𝐴𝑦 = 𝐵))
65ex 449 . . . . . 6 (𝐹:{𝐴}⟶{𝐵} → (⟨𝑥, 𝑦⟩ ∈ 𝐹 → (𝑥 = 𝐴𝑦 = 𝐵)))
7 fsn.1 . . . . . . . . . 10 𝐴 ∈ V
87snid 4155 . . . . . . . . 9 𝐴 ∈ {𝐴}
9 feu 5993 . . . . . . . . 9 ((𝐹:{𝐴}⟶{𝐵} ∧ 𝐴 ∈ {𝐴}) → ∃!𝑦 ∈ {𝐵}⟨𝐴, 𝑦⟩ ∈ 𝐹)
108, 9mpan2 703 . . . . . . . 8 (𝐹:{𝐴}⟶{𝐵} → ∃!𝑦 ∈ {𝐵}⟨𝐴, 𝑦⟩ ∈ 𝐹)
113anbi1i 727 . . . . . . . . . . 11 ((𝑦 ∈ {𝐵} ∧ ⟨𝐴, 𝑦⟩ ∈ 𝐹) ↔ (𝑦 = 𝐵 ∧ ⟨𝐴, 𝑦⟩ ∈ 𝐹))
12 opeq2 4341 . . . . . . . . . . . . . 14 (𝑦 = 𝐵 → ⟨𝐴, 𝑦⟩ = ⟨𝐴, 𝐵⟩)
1312eleq1d 2672 . . . . . . . . . . . . 13 (𝑦 = 𝐵 → (⟨𝐴, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝐴, 𝐵⟩ ∈ 𝐹))
1413pm5.32i 667 . . . . . . . . . . . 12 ((𝑦 = 𝐵 ∧ ⟨𝐴, 𝑦⟩ ∈ 𝐹) ↔ (𝑦 = 𝐵 ∧ ⟨𝐴, 𝐵⟩ ∈ 𝐹))
15 ancom 465 . . . . . . . . . . . 12 ((⟨𝐴, 𝐵⟩ ∈ 𝐹𝑦 = 𝐵) ↔ (𝑦 = 𝐵 ∧ ⟨𝐴, 𝐵⟩ ∈ 𝐹))
1614, 15bitr4i 266 . . . . . . . . . . 11 ((𝑦 = 𝐵 ∧ ⟨𝐴, 𝑦⟩ ∈ 𝐹) ↔ (⟨𝐴, 𝐵⟩ ∈ 𝐹𝑦 = 𝐵))
1711, 16bitr2i 264 . . . . . . . . . 10 ((⟨𝐴, 𝐵⟩ ∈ 𝐹𝑦 = 𝐵) ↔ (𝑦 ∈ {𝐵} ∧ ⟨𝐴, 𝑦⟩ ∈ 𝐹))
1817eubii 2480 . . . . . . . . 9 (∃!𝑦(⟨𝐴, 𝐵⟩ ∈ 𝐹𝑦 = 𝐵) ↔ ∃!𝑦(𝑦 ∈ {𝐵} ∧ ⟨𝐴, 𝑦⟩ ∈ 𝐹))
19 fsn.2 . . . . . . . . . . . 12 𝐵 ∈ V
2019eueq1 3346 . . . . . . . . . . 11 ∃!𝑦 𝑦 = 𝐵
2120biantru 525 . . . . . . . . . 10 (⟨𝐴, 𝐵⟩ ∈ 𝐹 ↔ (⟨𝐴, 𝐵⟩ ∈ 𝐹 ∧ ∃!𝑦 𝑦 = 𝐵))
22 euanv 2522 . . . . . . . . . 10 (∃!𝑦(⟨𝐴, 𝐵⟩ ∈ 𝐹𝑦 = 𝐵) ↔ (⟨𝐴, 𝐵⟩ ∈ 𝐹 ∧ ∃!𝑦 𝑦 = 𝐵))
2321, 22bitr4i 266 . . . . . . . . 9 (⟨𝐴, 𝐵⟩ ∈ 𝐹 ↔ ∃!𝑦(⟨𝐴, 𝐵⟩ ∈ 𝐹𝑦 = 𝐵))
24 df-reu 2903 . . . . . . . . 9 (∃!𝑦 ∈ {𝐵}⟨𝐴, 𝑦⟩ ∈ 𝐹 ↔ ∃!𝑦(𝑦 ∈ {𝐵} ∧ ⟨𝐴, 𝑦⟩ ∈ 𝐹))
2518, 23, 243bitr4i 291 . . . . . . . 8 (⟨𝐴, 𝐵⟩ ∈ 𝐹 ↔ ∃!𝑦 ∈ {𝐵}⟨𝐴, 𝑦⟩ ∈ 𝐹)
2610, 25sylibr 223 . . . . . . 7 (𝐹:{𝐴}⟶{𝐵} → ⟨𝐴, 𝐵⟩ ∈ 𝐹)
27 opeq12 4342 . . . . . . . 8 ((𝑥 = 𝐴𝑦 = 𝐵) → ⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝐵⟩)
2827eleq1d 2672 . . . . . . 7 ((𝑥 = 𝐴𝑦 = 𝐵) → (⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝐴, 𝐵⟩ ∈ 𝐹))
2926, 28syl5ibrcom 236 . . . . . 6 (𝐹:{𝐴}⟶{𝐵} → ((𝑥 = 𝐴𝑦 = 𝐵) → ⟨𝑥, 𝑦⟩ ∈ 𝐹))
306, 29impbid 201 . . . . 5 (𝐹:{𝐴}⟶{𝐵} → (⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ (𝑥 = 𝐴𝑦 = 𝐵)))
31 opex 4859 . . . . . . 7 𝑥, 𝑦⟩ ∈ V
3231elsn 4140 . . . . . 6 (⟨𝑥, 𝑦⟩ ∈ {⟨𝐴, 𝐵⟩} ↔ ⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝐵⟩)
337, 19opth2 4875 . . . . . 6 (⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝐵⟩ ↔ (𝑥 = 𝐴𝑦 = 𝐵))
3432, 33bitr2i 264 . . . . 5 ((𝑥 = 𝐴𝑦 = 𝐵) ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝐴, 𝐵⟩})
3530, 34syl6bb 275 . . . 4 (𝐹:{𝐴}⟶{𝐵} → (⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝐴, 𝐵⟩}))
3635alrimivv 1843 . . 3 (𝐹:{𝐴}⟶{𝐵} → ∀𝑥𝑦(⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝐴, 𝐵⟩}))
37 frel 5963 . . . 4 (𝐹:{𝐴}⟶{𝐵} → Rel 𝐹)
387, 19relsnop 5147 . . . 4 Rel {⟨𝐴, 𝐵⟩}
39 eqrel 5132 . . . 4 ((Rel 𝐹 ∧ Rel {⟨𝐴, 𝐵⟩}) → (𝐹 = {⟨𝐴, 𝐵⟩} ↔ ∀𝑥𝑦(⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝐴, 𝐵⟩})))
4037, 38, 39sylancl 693 . . 3 (𝐹:{𝐴}⟶{𝐵} → (𝐹 = {⟨𝐴, 𝐵⟩} ↔ ∀𝑥𝑦(⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝐴, 𝐵⟩})))
4136, 40mpbird 246 . 2 (𝐹:{𝐴}⟶{𝐵} → 𝐹 = {⟨𝐴, 𝐵⟩})
427, 19f1osn 6088 . . . 4 {⟨𝐴, 𝐵⟩}:{𝐴}–1-1-onto→{𝐵}
43 f1oeq1 6040 . . . 4 (𝐹 = {⟨𝐴, 𝐵⟩} → (𝐹:{𝐴}–1-1-onto→{𝐵} ↔ {⟨𝐴, 𝐵⟩}:{𝐴}–1-1-onto→{𝐵}))
4442, 43mpbiri 247 . . 3 (𝐹 = {⟨𝐴, 𝐵⟩} → 𝐹:{𝐴}–1-1-onto→{𝐵})
45 f1of 6050 . . 3 (𝐹:{𝐴}–1-1-onto→{𝐵} → 𝐹:{𝐴}⟶{𝐵})
4644, 45syl 17 . 2 (𝐹 = {⟨𝐴, 𝐵⟩} → 𝐹:{𝐴}⟶{𝐵})
4741, 46impbii 198 1 (𝐹:{𝐴}⟶{𝐵} ↔ 𝐹 = {⟨𝐴, 𝐵⟩})
 Colors of variables: wff setvar class Syntax hints:   ↔ wb 195   ∧ wa 383  ∀wal 1473   = wceq 1475   ∈ wcel 1977  ∃!weu 2458  ∃!wreu 2898  Vcvv 3173  {csn 4125  ⟨cop 4131  Rel wrel 5043  ⟶wf 5800  –1-1-onto→wf1o 5803 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pr 4833 This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ral 2901  df-rex 2902  df-reu 2903  df-rab 2905  df-v 3175  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-sn 4126  df-pr 4128  df-op 4132  df-br 4584  df-opab 4644  df-id 4953  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-fun 5806  df-fn 5807  df-f 5808  df-f1 5809  df-fo 5810  df-f1o 5811 This theorem is referenced by:  fsn2  6309  fsng  6310  mapsn  7785  axlowdimlem7  25628  poimirlem3  32582  poimirlem9  32588  fdc  32711
 Copyright terms: Public domain W3C validator