Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  fundcmpsurbijinj Structured version   Visualization version   GIF version

Theorem fundcmpsurbijinj 43644
Description: Every function 𝐹:𝐴𝐵 can be decomposed into a surjective, a bijective and an injective function. (Contributed by AV, 23-Mar-2024.)
Assertion
Ref Expression
fundcmpsurbijinj ((𝐹:𝐴𝐵𝐴𝑉) → ∃𝑔𝑖𝑝𝑞((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)))
Distinct variable groups:   𝐴,𝑔,,𝑝   𝐵,𝑔,,𝑝   𝑔,𝐹,,𝑝   𝑔,𝑉   𝐴,𝑖,𝑞,𝑔,,𝑝   𝐵,𝑖,𝑞   𝑖,𝐹,𝑞
Allowed substitution hints:   𝑉(,𝑖,𝑞,𝑝)

Proof of Theorem fundcmpsurbijinj
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ffun 6510 . . . 4 (𝐹:𝐴𝐵 → Fun 𝐹)
2 funimaexg 6433 . . . 4 ((Fun 𝐹𝐴𝑉) → (𝐹𝐴) ∈ V)
31, 2sylan 582 . . 3 ((𝐹:𝐴𝐵𝐴𝑉) → (𝐹𝐴) ∈ V)
4 abrexexg 7655 . . . 4 (𝐴𝑉 → {𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})} ∈ V)
54adantl 484 . . 3 ((𝐹:𝐴𝐵𝐴𝑉) → {𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})} ∈ V)
6 fveq2 6663 . . . . . . . . 9 (𝑦 = 𝑥 → (𝐹𝑦) = (𝐹𝑥))
76sneqd 4572 . . . . . . . 8 (𝑦 = 𝑥 → {(𝐹𝑦)} = {(𝐹𝑥)})
87imaeq2d 5922 . . . . . . 7 (𝑦 = 𝑥 → (𝐹 “ {(𝐹𝑦)}) = (𝐹 “ {(𝐹𝑥)}))
98eqeq2d 2831 . . . . . 6 (𝑦 = 𝑥 → (𝑧 = (𝐹 “ {(𝐹𝑦)}) ↔ 𝑧 = (𝐹 “ {(𝐹𝑥)})))
109cbvrexvw 3447 . . . . 5 (∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)}) ↔ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)}))
1110abbii 2885 . . . 4 {𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})} = {𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})}
1211fundcmpsurbijinjpreimafv 43641 . . 3 ((𝐹:𝐴𝐵𝐴𝑉) → ∃𝑔𝑖((𝑔:𝐴onto→{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})} ∧ :{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}–1-1-onto→(𝐹𝐴) ∧ 𝑖:(𝐹𝐴)–1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)))
13 foeq3 6581 . . . . . . . . 9 (𝑝 = {𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})} → (𝑔:𝐴onto𝑝𝑔:𝐴onto→{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}))
1413adantl 484 . . . . . . . 8 ((𝑞 = (𝐹𝐴) ∧ 𝑝 = {𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}) → (𝑔:𝐴onto𝑝𝑔:𝐴onto→{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}))
15 f1oeq23 6600 . . . . . . . . 9 ((𝑝 = {𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})} ∧ 𝑞 = (𝐹𝐴)) → (:𝑝1-1-onto𝑞:{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}–1-1-onto→(𝐹𝐴)))
1615ancoms 461 . . . . . . . 8 ((𝑞 = (𝐹𝐴) ∧ 𝑝 = {𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}) → (:𝑝1-1-onto𝑞:{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}–1-1-onto→(𝐹𝐴)))
17 f1eq2 6564 . . . . . . . . 9 (𝑞 = (𝐹𝐴) → (𝑖:𝑞1-1𝐵𝑖:(𝐹𝐴)–1-1𝐵))
1817adantr 483 . . . . . . . 8 ((𝑞 = (𝐹𝐴) ∧ 𝑝 = {𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}) → (𝑖:𝑞1-1𝐵𝑖:(𝐹𝐴)–1-1𝐵))
1914, 16, 183anbi123d 1431 . . . . . . 7 ((𝑞 = (𝐹𝐴) ∧ 𝑝 = {𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}) → ((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ↔ (𝑔:𝐴onto→{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})} ∧ :{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}–1-1-onto→(𝐹𝐴) ∧ 𝑖:(𝐹𝐴)–1-1𝐵)))
2019anbi1d 631 . . . . . 6 ((𝑞 = (𝐹𝐴) ∧ 𝑝 = {𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}) → (((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)) ↔ ((𝑔:𝐴onto→{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})} ∧ :{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}–1-1-onto→(𝐹𝐴) ∧ 𝑖:(𝐹𝐴)–1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔))))
21203exbidv 1925 . . . . 5 ((𝑞 = (𝐹𝐴) ∧ 𝑝 = {𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}) → (∃𝑔𝑖((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)) ↔ ∃𝑔𝑖((𝑔:𝐴onto→{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})} ∧ :{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}–1-1-onto→(𝐹𝐴) ∧ 𝑖:(𝐹𝐴)–1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔))))
2221spc2egv 3597 . . . 4 (((𝐹𝐴) ∈ V ∧ {𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})} ∈ V) → (∃𝑔𝑖((𝑔:𝐴onto→{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})} ∧ :{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}–1-1-onto→(𝐹𝐴) ∧ 𝑖:(𝐹𝐴)–1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)) → ∃𝑞𝑝𝑔𝑖((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔))))
2322imp 409 . . 3 ((((𝐹𝐴) ∈ V ∧ {𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})} ∈ V) ∧ ∃𝑔𝑖((𝑔:𝐴onto→{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})} ∧ :{𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}–1-1-onto→(𝐹𝐴) ∧ 𝑖:(𝐹𝐴)–1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔))) → ∃𝑞𝑝𝑔𝑖((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)))
243, 5, 12, 23syl21anc 835 . 2 ((𝐹:𝐴𝐵𝐴𝑉) → ∃𝑞𝑝𝑔𝑖((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)))
25 exrot4 2172 . . 3 (∃𝑞𝑝𝑔𝑖((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)) ↔ ∃𝑔𝑞𝑝𝑖((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)))
26 excom13 2170 . . . 4 (∃𝑞𝑝𝑖((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)) ↔ ∃𝑖𝑝𝑞((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)))
27262exbii 1848 . . 3 (∃𝑔𝑞𝑝𝑖((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)) ↔ ∃𝑔𝑖𝑝𝑞((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)))
2825, 27bitri 277 . 2 (∃𝑞𝑝𝑔𝑖((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)) ↔ ∃𝑔𝑖𝑝𝑞((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)))
2924, 28sylib 220 1 ((𝐹:𝐴𝐵𝐴𝑉) → ∃𝑔𝑖𝑝𝑞((𝑔:𝐴onto𝑝:𝑝1-1-onto𝑞𝑖:𝑞1-1𝐵) ∧ 𝐹 = ((𝑖) ∘ 𝑔)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  w3a 1082   = wceq 1536  wex 1779  wcel 2113  {cab 2798  wrex 3138  Vcvv 3491  {csn 4560  ccnv 5547  cima 5551  ccom 5552  Fun wfun 6342  wf 6344  1-1wf1 6345  ontowfo 6346  1-1-ontowf1o 6347  cfv 6348
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2160  ax-12 2176  ax-ext 2792  ax-rep 5183  ax-sep 5196  ax-nul 5203  ax-pow 5259  ax-pr 5323  ax-un 7454
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1084  df-tru 1539  df-ex 1780  df-nf 1784  df-sb 2069  df-mo 2621  df-eu 2653  df-clab 2799  df-cleq 2813  df-clel 2892  df-nfc 2962  df-ne 3016  df-nel 3123  df-ral 3142  df-rex 3143  df-reu 3144  df-rab 3146  df-v 3493  df-sbc 3769  df-csb 3877  df-dif 3932  df-un 3934  df-in 3936  df-ss 3945  df-nul 4285  df-if 4461  df-pw 4534  df-sn 4561  df-pr 4563  df-op 4567  df-uni 4832  df-iun 4914  df-br 5060  df-opab 5122  df-mpt 5140  df-id 5453  df-xp 5554  df-rel 5555  df-cnv 5556  df-co 5557  df-dm 5558  df-rn 5559  df-res 5560  df-ima 5561  df-iota 6307  df-fun 6350  df-fn 6351  df-f 6352  df-f1 6353  df-fo 6354  df-f1o 6355  df-fv 6356
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator