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 48637
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 6723 . . . 4 (𝐹:𝐴⟶𝐵 → Fun 𝐹)
2 funimaexg 6637 . . . 4 ((Fun 𝐹 ∧ 𝐴 ∈ 𝑉) → (𝐹 “ 𝐴) ∈ V)
31, 2sylan 592 . . 3 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → (𝐹 “ 𝐴) ∈ V)
4 abrexexg 7983 . . . 4 (𝐴 ∈ 𝑉 → {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})} ∈ V)
54adantl 487 . . 3 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})} ∈ V)
6 fveq2 6896 . . . . . . . . 9 (𝑦 = 𝑥 → (𝐹‘𝑦) = (𝐹‘𝑥))
76sneqd 4596 . . . . . . . 8 (𝑦 = 𝑥 → {(𝐹‘𝑦)} = {(𝐹‘𝑥)})
87imaeq2d 6058 . . . . . . 7 (𝑦 = 𝑥 → (◡𝐹 “ {(𝐹‘𝑦)}) = (◡𝐹 “ {(𝐹‘𝑥)}))
98eqeq2d 2774 . . . . . 6 (𝑦 = 𝑥 → (𝑧 = (◡𝐹 “ {(𝐹‘𝑦)}) ↔ 𝑧 = (◡𝐹 “ {(𝐹‘𝑥)})))
109cbvrexvw 3245 . . . . 5 (∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)}) ↔ ∃𝑥 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑥)}))
1110abbii 2830 . . . 4 {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})} = {𝑧 ∣ ∃𝑥 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑥)})}
1211fundcmpsurbijinjpreimafv 48634 . . 3 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → ∃𝑔∃ℎ∃𝑖((𝑔:𝐴–onto→{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})} ∧ ℎ:{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}–1-1-onto→(𝐹 “ 𝐴) ∧ 𝑖:(𝐹 “ 𝐴)–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)))
13 foeq3 6805 . . . . . . . . 9 (𝑝 = {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})} → (𝑔:𝐴–onto→𝑝 ↔ 𝑔:𝐴–onto→{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}))
1413adantl 487 . . . . . . . 8 ((𝑞 = (𝐹 “ 𝐴) ∧ 𝑝 = {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}) → (𝑔:𝐴–onto→𝑝 ↔ 𝑔:𝐴–onto→{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}))
15 f1oeq23 6826 . . . . . . . . 9 ((𝑝 = {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})} ∧ 𝑞 = (𝐹 “ 𝐴)) → (ℎ:𝑝–1-1-onto→𝑞 ↔ ℎ:{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}–1-1-onto→(𝐹 “ 𝐴)))
1615ancoms 464 . . . . . . . 8 ((𝑞 = (𝐹 “ 𝐴) ∧ 𝑝 = {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}) → (ℎ:𝑝–1-1-onto→𝑞 ↔ ℎ:{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}–1-1-onto→(𝐹 “ 𝐴)))
17 f1eq2 6785 . . . . . . . . 9 (𝑞 = (𝐹 “ 𝐴) → (𝑖:𝑞–1-1→𝐵 ↔ 𝑖:(𝐹 “ 𝐴)–1-1→𝐵))
1817adantr 486 . . . . . . . 8 ((𝑞 = (𝐹 “ 𝐴) ∧ 𝑝 = {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}) → (𝑖:𝑞–1-1→𝐵 ↔ 𝑖:(𝐹 “ 𝐴)–1-1→𝐵))
1914, 16, 183anbi123d 1464 . . . . . . 7 ((𝑞 = (𝐹 “ 𝐴) ∧ 𝑝 = {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}) → ((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ↔ (𝑔:𝐴–onto→{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})} ∧ ℎ:{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}–1-1-onto→(𝐹 “ 𝐴) ∧ 𝑖:(𝐹 “ 𝐴)–1-1→𝐵)))
2019anbi1d 643 . . . . . 6 ((𝑞 = (𝐹 “ 𝐴) ∧ 𝑝 = {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}) → (((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)) ↔ ((𝑔:𝐴–onto→{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})} ∧ ℎ:{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}–1-1-onto→(𝐹 “ 𝐴) ∧ 𝑖:(𝐹 “ 𝐴)–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔))))
21203exbidv 1959 . . . . 5 ((𝑞 = (𝐹 “ 𝐴) ∧ 𝑝 = {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}) → (∃𝑔∃ℎ∃𝑖((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)) ↔ ∃𝑔∃ℎ∃𝑖((𝑔:𝐴–onto→{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})} ∧ ℎ:{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}–1-1-onto→(𝐹 “ 𝐴) ∧ 𝑖:(𝐹 “ 𝐴)–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔))))
2221spc2egv 3557 . . . 4 (((𝐹 “ 𝐴) ∈ V ∧ {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})} ∈ V) → (∃𝑔∃ℎ∃𝑖((𝑔:𝐴–onto→{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})} ∧ ℎ:{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}–1-1-onto→(𝐹 “ 𝐴) ∧ 𝑖:(𝐹 “ 𝐴)–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)) → ∃𝑞∃𝑝∃𝑔∃ℎ∃𝑖((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔))))
2322imp 412 . . 3 ((((𝐹 “ 𝐴) ∈ V ∧ {𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})} ∈ V) ∧ ∃𝑔∃ℎ∃𝑖((𝑔:𝐴–onto→{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})} ∧ ℎ:{𝑧 ∣ ∃𝑦 ∈ 𝐴 𝑧 = (◡𝐹 “ {(𝐹‘𝑦)})}–1-1-onto→(𝐹 “ 𝐴) ∧ 𝑖:(𝐹 “ 𝐴)–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔))) → ∃𝑞∃𝑝∃𝑔∃ℎ∃𝑖((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)))
243, 5, 12, 23syl21anc 851 . 2 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → ∃𝑞∃𝑝∃𝑔∃ℎ∃𝑖((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)))
25 exrot4 2205 . . 3 (∃𝑞∃𝑝∃𝑔∃ℎ∃𝑖((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)) ↔ ∃𝑔∃ℎ∃𝑞∃𝑝∃𝑖((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)))
26 excom13 2203 . . . 4 (∃𝑞∃𝑝∃𝑖((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)) ↔ ∃𝑖∃𝑝∃𝑞((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)))
27262exbii 1881 . . 3 (∃𝑔∃ℎ∃𝑞∃𝑝∃𝑖((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)) ↔ ∃𝑔∃ℎ∃𝑖∃𝑝∃𝑞((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)))
2825, 27bitri 278 . 2 (∃𝑞∃𝑝∃𝑔∃ℎ∃𝑖((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)) ↔ ∃𝑔∃ℎ∃𝑖∃𝑝∃𝑞((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)))
2924, 28sylib 221 1 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → ∃𝑔∃ℎ∃𝑖∃𝑝∃𝑞((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1-onto→𝑞 ∧ 𝑖:𝑞–1-1→𝐵) ∧ 𝐹 = ((𝑖 ∘ ℎ) ∘ 𝑔)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∧ w3a 1103   = wceq 1569  ∃wex 1811   ∈ wcel 2146  {cab 2741  ∃wrex 3090  Vcvv 3454  {csn 4588  ◡ccnv 5654   “ cima 5658   ∘ ccom 5659  Fun wfun 6541  ⟶wf 6543  –1-1→wf1 6544  –onto→wfo 6545  –1-1-onto→wf1o 6546  ‘cfv 6547
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2196  ax-12 2215  ax-ext 2735  ax-rep 5235  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7761
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2101  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-id 5550  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-iota 6501  df-fun 6549  df-fn 6550  df-f 6551  df-f1 6552  df-fo 6553  df-f1o 6554  df-fv 6555
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator