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 48493
Description: Alternate proof of fundcmpsurinj 48490, based on fundcmpsurinjimaid 48492: 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 7227 . . . 4 (𝐴 ∈ 𝑉 → (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∈ V)
21adantl 487 . . 3 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∈ V)
3 ffun 6712 . . . . 5 (𝐹:𝐴⟶𝐵 → Fun 𝐹)
4 funimaexg 6626 . . . . 5 ((Fun 𝐹 ∧ 𝐴 ∈ 𝑉) → (𝐹 “ 𝐴) ∈ V)
53, 4sylan 592 . . . 4 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → (𝐹 “ 𝐴) ∈ V)
65resiexd 7222 . . 3 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → ( I ↾ (𝐹 “ 𝐴)) ∈ V)
72, 6, 53jca 1146 . 2 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → ((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∈ V ∧ ( I ↾ (𝐹 “ 𝐴)) ∈ V ∧ (𝐹 “ 𝐴) ∈ V))
8 eqid 2761 . . . 4 (𝐹 “ 𝐴) = (𝐹 “ 𝐴)
9 eqid 2761 . . . 4 (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))
10 eqid 2761 . . . 4 ( I ↾ (𝐹 “ 𝐴)) = ( I ↾ (𝐹 “ 𝐴))
118, 9, 10fundcmpsurinjimaid 48492 . . 3 (𝐹:𝐴⟶𝐵 → ((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴–onto→(𝐹 “ 𝐴) ∧ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)–1-1→𝐵 ∧ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))))
1211adantr 486 . 2 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → ((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴–onto→(𝐹 “ 𝐴) ∧ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)–1-1→𝐵 ∧ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))))
13 simp1 1154 . . . . 5 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))
14 eqidd 2762 . . . . 5 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝐴 = 𝐴)
15 simp3 1156 . . . . 5 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝑝 = (𝐹 “ 𝐴))
1613, 14, 15foeq123d 6817 . . . 4 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (𝑔:𝐴–onto→𝑝 ↔ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴–onto→(𝐹 “ 𝐴)))
17 simpl 488 . . . . . 6 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → ℎ = ( I ↾ (𝐹 “ 𝐴)))
18 simpr 490 . . . . . 6 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝑝 = (𝐹 “ 𝐴))
19 eqidd 2762 . . . . . 6 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝐵 = 𝐵)
2017, 18, 19f1eq123d 6816 . . . . 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 5842 . . . . . . 7 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))) → (ℎ ∘ 𝑔) = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))
2524ancoms 464 . . . . . 6 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴))) → (ℎ ∘ 𝑔) = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))
26253adant3 1150 . . . . 5 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (ℎ ∘ 𝑔) = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))
2726eqeq2d 2772 . . . 4 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (𝐹 = (ℎ ∘ 𝑔) ↔ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))))
2816, 21, 273anbi123d 1464 . . 3 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → ((𝑔:𝐴–onto→𝑝 ∧ ℎ:𝑝–1-1→𝐵 ∧ 𝐹 = (ℎ ∘ 𝑔)) ↔ ((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴–onto→(𝐹 “ 𝐴) ∧ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)–1-1→𝐵 ∧ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))))
2928spc3egv 3558 . 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 1570  ∃wex 1812   ∈ wcel 2145  Vcvv 3451   ↦ cmpt 5186   I cid 5545   ↾ cres 5653   “ cima 5654   ∘ ccom 5655  Fun wfun 6532  ⟶wf 6534  –1-1→wf1 6535  –onto→wfo 6536  ‘cfv 6538
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pr 5391
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator