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

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

Proof of Theorem fundcmpsurinj
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 abrexexg 7662 . . . 4 (𝐴𝑉 → {𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})} ∈ V)
21adantl 484 . . 3 ((𝐹:𝐴𝐵𝐴𝑉) → {𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})} ∈ V)
3 fveq2 6670 . . . . . . . . 9 (𝑥 = 𝑦 → (𝐹𝑥) = (𝐹𝑦))
43sneqd 4579 . . . . . . . 8 (𝑥 = 𝑦 → {(𝐹𝑥)} = {(𝐹𝑦)})
54imaeq2d 5929 . . . . . . 7 (𝑥 = 𝑦 → (𝐹 “ {(𝐹𝑥)}) = (𝐹 “ {(𝐹𝑦)}))
65eqeq2d 2832 . . . . . 6 (𝑥 = 𝑦 → (𝑧 = (𝐹 “ {(𝐹𝑥)}) ↔ 𝑧 = (𝐹 “ {(𝐹𝑦)})))
76cbvrexvw 3450 . . . . 5 (∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)}) ↔ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)}))
87abbii 2886 . . . 4 {𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})} = {𝑧 ∣ ∃𝑦𝐴 𝑧 = (𝐹 “ {(𝐹𝑦)})}
98fundcmpsurinjpreimafv 43617 . . 3 ((𝐹:𝐴𝐵𝐴𝑉) → ∃𝑔(𝑔:𝐴onto→{𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})} ∧ :{𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})}–1-1𝐵𝐹 = (𝑔)))
10 foeq3 6588 . . . . 5 (𝑝 = {𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})} → (𝑔:𝐴onto𝑝𝑔:𝐴onto→{𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})}))
11 f1eq2 6571 . . . . 5 (𝑝 = {𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})} → (:𝑝1-1𝐵:{𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})}–1-1𝐵))
1210, 113anbi12d 1433 . . . 4 (𝑝 = {𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})} → ((𝑔:𝐴onto𝑝:𝑝1-1𝐵𝐹 = (𝑔)) ↔ (𝑔:𝐴onto→{𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})} ∧ :{𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})}–1-1𝐵𝐹 = (𝑔))))
13122exbidv 1925 . . 3 (𝑝 = {𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})} → (∃𝑔(𝑔:𝐴onto𝑝:𝑝1-1𝐵𝐹 = (𝑔)) ↔ ∃𝑔(𝑔:𝐴onto→{𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})} ∧ :{𝑧 ∣ ∃𝑥𝐴 𝑧 = (𝐹 “ {(𝐹𝑥)})}–1-1𝐵𝐹 = (𝑔))))
142, 9, 13spcedv 3599 . 2 ((𝐹:𝐴𝐵𝐴𝑉) → ∃𝑝𝑔(𝑔:𝐴onto𝑝:𝑝1-1𝐵𝐹 = (𝑔)))
15 exrot3 2172 . 2 (∃𝑝𝑔(𝑔:𝐴onto𝑝:𝑝1-1𝐵𝐹 = (𝑔)) ↔ ∃𝑔𝑝(𝑔:𝐴onto𝑝:𝑝1-1𝐵𝐹 = (𝑔)))
1614, 15sylib 220 1 ((𝐹:𝐴𝐵𝐴𝑉) → ∃𝑔𝑝(𝑔:𝐴onto𝑝:𝑝1-1𝐵𝐹 = (𝑔)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398  w3a 1083   = wceq 1537  wex 1780  wcel 2114  {cab 2799  wrex 3139  Vcvv 3494  {csn 4567  ccnv 5554  cima 5558  ccom 5559  wf 6351  1-1wf1 6352  ontowfo 6353  cfv 6355
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-rep 5190  ax-sep 5203  ax-nul 5210  ax-pow 5266  ax-pr 5330  ax-un 7461
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-nel 3124  df-ral 3143  df-rex 3144  df-reu 3145  df-rab 3147  df-v 3496  df-sbc 3773  df-csb 3884  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-pw 4541  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4839  df-iun 4921  df-br 5067  df-opab 5129  df-mpt 5147  df-id 5460  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-res 5567  df-ima 5568  df-iota 6314  df-fun 6357  df-fn 6358  df-f 6359  df-f1 6360  df-fo 6361  df-f1o 6362  df-fv 6363
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator