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

Theorem fsn 6892
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 6534 . . . . . . . 8 ((𝐹:{𝐴}⟶{𝐵} ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐹) → (𝑥 ∈ {𝐴} ∧ 𝑦 ∈ {𝐵}))
2 velsn 4577 . . . . . . . . 9 (𝑥 ∈ {𝐴} ↔ 𝑥 = 𝐴)
3 velsn 4577 . . . . . . . . 9 (𝑦 ∈ {𝐵} ↔ 𝑦 = 𝐵)
42, 3anbi12i 628 . . . . . . . 8 ((𝑥 ∈ {𝐴} ∧ 𝑦 ∈ {𝐵}) ↔ (𝑥 = 𝐴𝑦 = 𝐵))
51, 4sylib 220 . . . . . . 7 ((𝐹:{𝐴}⟶{𝐵} ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐹) → (𝑥 = 𝐴𝑦 = 𝐵))
65ex 415 . . . . . 6 (𝐹:{𝐴}⟶{𝐵} → (⟨𝑥, 𝑦⟩ ∈ 𝐹 → (𝑥 = 𝐴𝑦 = 𝐵)))
7 fsn.1 . . . . . . . . . 10 𝐴 ∈ V
87snid 4595 . . . . . . . . 9 𝐴 ∈ {𝐴}
9 feu 6549 . . . . . . . . 9 ((𝐹:{𝐴}⟶{𝐵} ∧ 𝐴 ∈ {𝐴}) → ∃!𝑦 ∈ {𝐵}⟨𝐴, 𝑦⟩ ∈ 𝐹)
108, 9mpan2 689 . . . . . . . 8 (𝐹:{𝐴}⟶{𝐵} → ∃!𝑦 ∈ {𝐵}⟨𝐴, 𝑦⟩ ∈ 𝐹)
113anbi1i 625 . . . . . . . . . . 11 ((𝑦 ∈ {𝐵} ∧ ⟨𝐴, 𝑦⟩ ∈ 𝐹) ↔ (𝑦 = 𝐵 ∧ ⟨𝐴, 𝑦⟩ ∈ 𝐹))
12 opeq2 4798 . . . . . . . . . . . . . 14 (𝑦 = 𝐵 → ⟨𝐴, 𝑦⟩ = ⟨𝐴, 𝐵⟩)
1312eleq1d 2897 . . . . . . . . . . . . 13 (𝑦 = 𝐵 → (⟨𝐴, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝐴, 𝐵⟩ ∈ 𝐹))
1413pm5.32i 577 . . . . . . . . . . . 12 ((𝑦 = 𝐵 ∧ ⟨𝐴, 𝑦⟩ ∈ 𝐹) ↔ (𝑦 = 𝐵 ∧ ⟨𝐴, 𝐵⟩ ∈ 𝐹))
1514biancomi 465 . . . . . . . . . . 11 ((𝑦 = 𝐵 ∧ ⟨𝐴, 𝑦⟩ ∈ 𝐹) ↔ (⟨𝐴, 𝐵⟩ ∈ 𝐹𝑦 = 𝐵))
1611, 15bitr2i 278 . . . . . . . . . 10 ((⟨𝐴, 𝐵⟩ ∈ 𝐹𝑦 = 𝐵) ↔ (𝑦 ∈ {𝐵} ∧ ⟨𝐴, 𝑦⟩ ∈ 𝐹))
1716eubii 2666 . . . . . . . . 9 (∃!𝑦(⟨𝐴, 𝐵⟩ ∈ 𝐹𝑦 = 𝐵) ↔ ∃!𝑦(𝑦 ∈ {𝐵} ∧ ⟨𝐴, 𝑦⟩ ∈ 𝐹))
18 fsn.2 . . . . . . . . . . . 12 𝐵 ∈ V
1918eueqi 3700 . . . . . . . . . . 11 ∃!𝑦 𝑦 = 𝐵
2019biantru 532 . . . . . . . . . 10 (⟨𝐴, 𝐵⟩ ∈ 𝐹 ↔ (⟨𝐴, 𝐵⟩ ∈ 𝐹 ∧ ∃!𝑦 𝑦 = 𝐵))
21 euanv 2705 . . . . . . . . . 10 (∃!𝑦(⟨𝐴, 𝐵⟩ ∈ 𝐹𝑦 = 𝐵) ↔ (⟨𝐴, 𝐵⟩ ∈ 𝐹 ∧ ∃!𝑦 𝑦 = 𝐵))
2220, 21bitr4i 280 . . . . . . . . 9 (⟨𝐴, 𝐵⟩ ∈ 𝐹 ↔ ∃!𝑦(⟨𝐴, 𝐵⟩ ∈ 𝐹𝑦 = 𝐵))
23 df-reu 3145 . . . . . . . . 9 (∃!𝑦 ∈ {𝐵}⟨𝐴, 𝑦⟩ ∈ 𝐹 ↔ ∃!𝑦(𝑦 ∈ {𝐵} ∧ ⟨𝐴, 𝑦⟩ ∈ 𝐹))
2417, 22, 233bitr4i 305 . . . . . . . 8 (⟨𝐴, 𝐵⟩ ∈ 𝐹 ↔ ∃!𝑦 ∈ {𝐵}⟨𝐴, 𝑦⟩ ∈ 𝐹)
2510, 24sylibr 236 . . . . . . 7 (𝐹:{𝐴}⟶{𝐵} → ⟨𝐴, 𝐵⟩ ∈ 𝐹)
26 opeq12 4799 . . . . . . . 8 ((𝑥 = 𝐴𝑦 = 𝐵) → ⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝐵⟩)
2726eleq1d 2897 . . . . . . 7 ((𝑥 = 𝐴𝑦 = 𝐵) → (⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝐴, 𝐵⟩ ∈ 𝐹))
2825, 27syl5ibrcom 249 . . . . . 6 (𝐹:{𝐴}⟶{𝐵} → ((𝑥 = 𝐴𝑦 = 𝐵) → ⟨𝑥, 𝑦⟩ ∈ 𝐹))
296, 28impbid 214 . . . . 5 (𝐹:{𝐴}⟶{𝐵} → (⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ (𝑥 = 𝐴𝑦 = 𝐵)))
30 opex 5349 . . . . . . 7 𝑥, 𝑦⟩ ∈ V
3130elsn 4576 . . . . . 6 (⟨𝑥, 𝑦⟩ ∈ {⟨𝐴, 𝐵⟩} ↔ ⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝐵⟩)
327, 18opth2 5365 . . . . . 6 (⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝐵⟩ ↔ (𝑥 = 𝐴𝑦 = 𝐵))
3331, 32bitr2i 278 . . . . 5 ((𝑥 = 𝐴𝑦 = 𝐵) ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝐴, 𝐵⟩})
3429, 33syl6bb 289 . . . 4 (𝐹:{𝐴}⟶{𝐵} → (⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝐴, 𝐵⟩}))
3534alrimivv 1925 . . 3 (𝐹:{𝐴}⟶{𝐵} → ∀𝑥𝑦(⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝐴, 𝐵⟩}))
36 frel 6514 . . . 4 (𝐹:{𝐴}⟶{𝐵} → Rel 𝐹)
377, 18relsnop 5673 . . . 4 Rel {⟨𝐴, 𝐵⟩}
38 eqrel 5653 . . . 4 ((Rel 𝐹 ∧ Rel {⟨𝐴, 𝐵⟩}) → (𝐹 = {⟨𝐴, 𝐵⟩} ↔ ∀𝑥𝑦(⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝐴, 𝐵⟩})))
3936, 37, 38sylancl 588 . . 3 (𝐹:{𝐴}⟶{𝐵} → (𝐹 = {⟨𝐴, 𝐵⟩} ↔ ∀𝑥𝑦(⟨𝑥, 𝑦⟩ ∈ 𝐹 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝐴, 𝐵⟩})))
4035, 39mpbird 259 . 2 (𝐹:{𝐴}⟶{𝐵} → 𝐹 = {⟨𝐴, 𝐵⟩})
417, 18f1osn 6649 . . . 4 {⟨𝐴, 𝐵⟩}:{𝐴}–1-1-onto→{𝐵}
42 f1oeq1 6599 . . . 4 (𝐹 = {⟨𝐴, 𝐵⟩} → (𝐹:{𝐴}–1-1-onto→{𝐵} ↔ {⟨𝐴, 𝐵⟩}:{𝐴}–1-1-onto→{𝐵}))
4341, 42mpbiri 260 . . 3 (𝐹 = {⟨𝐴, 𝐵⟩} → 𝐹:{𝐴}–1-1-onto→{𝐵})
44 f1of 6610 . . 3 (𝐹:{𝐴}–1-1-onto→{𝐵} → 𝐹:{𝐴}⟶{𝐵})
4543, 44syl 17 . 2 (𝐹 = {⟨𝐴, 𝐵⟩} → 𝐹:{𝐴}⟶{𝐵})
4640, 45impbii 211 1 (𝐹:{𝐴}⟶{𝐵} ↔ 𝐹 = {⟨𝐴, 𝐵⟩})
Colors of variables: wff setvar class
Syntax hints:  wb 208  wa 398  wal 1531   = wceq 1533  wcel 2110  ∃!weu 2649  ∃!wreu 3140  Vcvv 3495  {csn 4561  cop 4567  Rel wrel 5555  wf 6346  1-1-ontowf1o 6349
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2156  ax-12 2172  ax-ext 2793  ax-sep 5196  ax-nul 5203  ax-pr 5322
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ral 3143  df-rex 3144  df-reu 3145  df-rab 3147  df-v 3497  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-sn 4562  df-pr 4564  df-op 4568  df-br 5060  df-opab 5122  df-id 5455  df-xp 5556  df-rel 5557  df-cnv 5558  df-co 5559  df-dm 5560  df-rn 5561  df-fun 6352  df-fn 6353  df-f 6354  df-f1 6355  df-fo 6356  df-f1o 6357
This theorem is referenced by:  fsn2  6893  fsng  6894  axlowdimlem7  26728  poimirlem3  34889  poimirlem9  34895  fdc  35014
  Copyright terms: Public domain W3C validator