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 48924
Description: Alternate proof of fundcmpsurinj 48921, based on fundcmpsurinjimaid 48923: 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 7276 . . . 4 (𝐴 ∈ 𝑉 → (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∈ V)
21adantl 487 . . 3 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∈ V)
3 ffun 6760 . . . . 5 (𝐹:𝐴⟶𝐵 → Fun 𝐹)
4 funimaexg 6672 . . . . 5 ((Fun 𝐹 ∧ 𝐴 ∈ 𝑉) → (𝐹 “ 𝐴) ∈ V)
53, 4sylan 592 . . . 4 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → (𝐹 “ 𝐴) ∈ V)
65resiexd 7271 . . 3 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → ( I ↾ (𝐹 “ 𝐴)) ∈ V)
72, 6, 53jca 1147 . 2 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → ((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∈ V ∧ ( I ↾ (𝐹 “ 𝐴)) ∈ V ∧ (𝐹 “ 𝐴) ∈ V))
8 eqid 2774 . . . 4 (𝐹 “ 𝐴) = (𝐹 “ 𝐴)
9 eqid 2774 . . . 4 (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))
10 eqid 2774 . . . 4 ( I ↾ (𝐹 “ 𝐴)) = ( I ↾ (𝐹 “ 𝐴))
118, 9, 10fundcmpsurinjimaid 48923 . . 3 (𝐹:𝐴⟶𝐵 → ((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴⟶onto(𝐹 “ 𝐴) ∧ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)⟶1-1𝐵 ∧ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))))
1211adantr 486 . 2 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → ((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴⟶onto(𝐹 “ 𝐴) ∧ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)⟶1-1𝐵 ∧ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))))
13 simp1 1155 . . . . 5 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))
14 eqidd 2775 . . . . 5 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝐴 = 𝐴)
15 simp3 1157 . . . . 5 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝑝 = (𝐹 “ 𝐴))
1613, 14, 15foeq123d 6865 . . . 4 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (𝑔:𝐴⟶onto𝑝 ↔ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴⟶onto(𝐹 “ 𝐴)))
17 simpl 488 . . . . . 6 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → ℎ = ( I ↾ (𝐹 “ 𝐴)))
18 simpr 490 . . . . . 6 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝑝 = (𝐹 “ 𝐴))
19 eqidd 2775 . . . . . 6 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝐵 = 𝐵)
2017, 18, 19f1eq123d 6864 . . . . 5 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (ℎ:𝑝⟶1-1𝐵 ↔ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)⟶1-1𝐵))
21203adant1 1149 . . . 4 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (ℎ:𝑝⟶1-1𝐵 ↔ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)⟶1-1𝐵))
22 simpl 488 . . . . . . . 8 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))) → ℎ = ( I ↾ (𝐹 “ 𝐴)))
23 simpr 490 . . . . . . . 8 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))) → 𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))
2422, 23coeq12d 5861 . . . . . . 7 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))) → (ℎ ∘ 𝑔) = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))
2524ancoms 464 . . . . . 6 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴))) → (ℎ ∘ 𝑔) = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))
26253adant3 1151 . . . . 5 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (ℎ ∘ 𝑔) = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))
2726eqeq2d 2785 . . . 4 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (𝐹 = (ℎ ∘ 𝑔) ↔ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))))
2816, 21, 273anbi123d 1467 . . 3 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → ((𝑔:𝐴⟶onto𝑝 ∧ ℎ:𝑝⟶1-1𝐵 ∧ 𝐹 = (ℎ ∘ 𝑔)) ↔ ((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴⟶onto(𝐹 “ 𝐴) ∧ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)⟶1-1𝐵 ∧ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))))
2928spc3egv 3568 . 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 1104   = wceq 1572  ∃wex 1818   ∈ wcel 2156  Vcvv 3461   ↦ cmpt 5200   I cid 5560   ↾ cres 5668   “ cima 5669   ∘ ccom 5670  Fun wfun 6573  ⟶wf 6575  ⟶1-1wf1 6576  ⟶ontowfo 6577  ‘cfv 6579
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-rep 5246  ax-sep 5263  ax-nul 5274  ax-pr 5406
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-ral 3092  df-rex 3102  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-id 5561  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-iota 6533  df-fun 6581  df-fn 6582  df-f 6583  df-f1 6584  df-fo 6585  df-f1o 6586  df-fv 6587
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator