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 48767
Description: Alternate proof of fundcmpsurinj 48764, based on fundcmpsurinjimaid 48766: 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 7258 . . . 4 (𝐴 ∈ 𝑉 → (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∈ V)
21adantl 487 . . 3 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∈ V)
3 ffun 6742 . . . . 5 (𝐹:𝐴⟶𝐵 → Fun 𝐹)
4 funimaexg 6656 . . . . 5 ((Fun 𝐹 ∧ 𝐴 ∈ 𝑉) → (𝐹 “ 𝐴) ∈ V)
53, 4sylan 592 . . . 4 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → (𝐹 “ 𝐴) ∈ V)
65resiexd 7253 . . 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 48766 . . 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 6847 . . . 4 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (𝑔:𝐴⟶onto𝑝 ↔ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴⟶onto(𝐹 “ 𝐴)))
17 simpl 488 . . . . . 6 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → ℎ = ( I ↾ (𝐹 “ 𝐴)))
18 simpr 490 . . . . . 6 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝑝 = (𝐹 “ 𝐴))
19 eqidd 2764 . . . . . 6 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → 𝐵 = 𝐵)
2017, 18, 19f1eq123d 6846 . . . . 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 5853 . . . . . . 7 ((ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))) → (ℎ ∘ 𝑔) = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))
2524ancoms 464 . . . . . 6 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴))) → (ℎ ∘ 𝑔) = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))
26253adant3 1150 . . . . 5 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (ℎ ∘ 𝑔) = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))
2726eqeq2d 2774 . . . 4 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → (𝐹 = (ℎ ∘ 𝑔) ↔ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)))))
2816, 21, 273anbi123d 1465 . . 3 ((𝑔 = (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)) ∧ ℎ = ( I ↾ (𝐹 “ 𝐴)) ∧ 𝑝 = (𝐹 “ 𝐴)) → ((𝑔:𝐴⟶onto𝑝 ∧ ℎ:𝑝⟶1-1𝐵 ∧ 𝐹 = (ℎ ∘ 𝑔)) ↔ ((𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦)):𝐴⟶onto(𝐹 “ 𝐴) ∧ ( I ↾ (𝐹 “ 𝐴)):(𝐹 “ 𝐴)⟶1-1𝐵 ∧ 𝐹 = (( I ↾ (𝐹 “ 𝐴)) ∘ (𝑦 ∈ 𝐴 ↦ (𝐹‘𝑦))))))
2928spc3egv 3561 . 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 2147  Vcvv 3454   ↦ cmpt 5192   I cid 5552   ↾ cres 5660   “ cima 5661   ∘ ccom 5662  Fun wfun 6560  ⟶wf 6562  ⟶1-1wf1 6563  ⟶ontowfo 6564  ‘cfv 6566
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5238  ax-sep 5255  ax-nul 5266  ax-pr 5398
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  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-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-id 5553  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator