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

Theorem fundcmpsurinjALT 48633
Description: Alternate proof of fundcmpsurinj 48630, based on fundcmpsurinjimaid 48632: Every function 𝐹:𝐴⟶𝐵 can be decomposed into a surjective and an injective function. (Proof modification is discouraged.) (New usage is discouraged.) (Contributed by AV, 13-Mar-2024.)
Assertion
Ref Expression
fundcmpsurinjALT ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → ∃𝑔∃ℎ∃𝑝(𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1→𝐵 ∧ 𝐹 = (ℎ ∘ 𝑔)))
Distinct variable groups:   𝐴,𝑔,ℎ,𝑝   𝐵,𝑔,ℎ,𝑝   𝑔,𝐹,ℎ,𝑝
Allowed substitution hints:   𝑉(𝑔, ℎ, 𝑝)

Proof of Theorem fundcmpsurinjALT
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 mptexg 7234 . . . 4 (𝐴 ∈ 𝑉 → (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∈ V)
21adantl 487 . . 3 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∈ V)
3 ffun 6720 . . . . 5 (𝐹:𝐴⟶𝐵 → Fun 𝐹)
4 funimaexg 6634 . . . . 5 ((Fun 𝐹 ∧ 𝐴 ∈ 𝑉) → (𝐹 “ 𝐴) ∈ V)
53, 4sylan 592 . . . 4 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → (𝐹 “ 𝐴) ∈ V)
65resiexd 7229 . . 3 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → ( I ↾ (𝐹 “ 𝐴)) ∈ V)
72, 6, 53jca 1146 . 2 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → ((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∈ V ∧ ( I ↾ (𝐹 “ 𝐴)) ∈ V ∧ (𝐹 “ 𝐴) ∈ V))
8 eqid 2763 . . . 4 (𝐹 “ 𝐴) = (𝐹 “ 𝐴)
9 eqid 2763 . . . 4 (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))
10 eqid 2763 . . . 4 ( I ↾ (𝐹 “ 𝐴)) = ( I ↾ (𝐹 “ 𝐴))
118, 9, 10fundcmpsurinjimaid 48632 . . 3 (𝐹:𝐴⟶𝐵 → ((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴–onto→(𝐹 “ 𝐴) ∧ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)–1-1→𝐵 ∧ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))))
1211adantr 486 . 2 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → ((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴–onto→(𝐹 “ 𝐴) ∧ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)–1-1→𝐵 ∧ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))))
13 simp1 1154 . . . . 5 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))
14 eqidd 2764 . . . . 5 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝐴 = 𝐴)
15 simp3 1156 . . . . 5 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝑝 = (𝐹 “ 𝐴))
1613, 14, 15foeq123d 6825 . . . 4 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (𝑔:𝐴–onto→𝑝 ↔ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴–onto→(𝐹 “ 𝐴)))
17 simpl 488 . . . . . 6 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → ℎ = ( I ↾ (𝐹 “ 𝐴)))
18 simpr 490 . . . . . 6 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝑝 = (𝐹 “ 𝐴))
19 eqidd 2764 . . . . . 6 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝐵 = 𝐵)
2017, 18, 19f1eq123d 6824 . . . . 5 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (ℎ:𝑝–1-1→𝐵 ↔ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)–1-1→𝐵))
21203adant1 1148 . . . 4 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (ℎ:𝑝–1-1→𝐵 ↔ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)–1-1→𝐵))
22 simpl 488 . . . . . . . 8 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))) → ℎ = ( I ↾ (𝐹 “ 𝐴)))
23 simpr 490 . . . . . . . 8 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))) → 𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))
2422, 23coeq12d 5846 . . . . . . 7 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))) → (ℎ ∘ 𝑔) = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))
2524ancoms 464 . . . . . 6 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴))) → (ℎ ∘ 𝑔) = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))
26253adant3 1150 . . . . 5 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (ℎ ∘ 𝑔) = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))
2726eqeq2d 2774 . . . 4 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (𝐹 = (ℎ ∘ 𝑔) ↔ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))))
2816, 21, 273anbi123d 1464 . . 3 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → ((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1→𝐵 ∧ 𝐹 = (ℎ ∘ 𝑔)) ↔ ((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴–onto→(𝐹 “ 𝐴) ∧ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)–1-1→𝐵 ∧ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))))
2928spc3egv 3560 . 2 (((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∈ V ∧ ( I ↾ (𝐹 “ 𝐴)) ∈ V ∧ (𝐹 “ 𝐴) ∈ V) → (((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴–onto→(𝐹 “ 𝐴) ∧ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)–1-1→𝐵 ∧ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))) → ∃𝑔∃ℎ∃𝑝(𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1→𝐵 ∧ 𝐹 = (ℎ ∘ 𝑔))))
307, 12, 29sylc 66 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  Vcvv 3453   ↦ cmpt 5188   I cid 5548   ↾ cres 5656   “ cima 5657   ∘ ccom 5658  Fun wfun 6540  ⟶wf 6542  –1-1→wf1 6543  –onto→wfo 6544  ‘cfv 6546
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 5234  ax-sep 5251  ax-nul 5262  ax-pr 5394
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 2838  df-nfc 2912  df-ne 2959  df-ral 3080  df-rex 3090  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-sn 4588  df-pr 4590  df-op 4838  df-uni 4870  df-iun 4955  df-br 5106  df-opab 5170  df-mpt 5189  df-id 5549  df-xp 5660  df-rel 5661  df-cnv 5662  df-co 5663  df-dm 5664  df-rn 5665  df-res 5666  df-ima 5667  df-iota 6500  df-fun 6548  df-fn 6549  df-f 6550  df-f1 6551  df-fo 6552  df-f1o 6553  df-fv 6554
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator