Metamath Proof Explorer


Theorem funfocofob

Description: If the domain of a function G is a subset of the range of a function F , then the composition ( G o. F ) is surjective iff G is surjective. (Contributed by GL and AV, 29-Sep-2024)

Ref Expression
Assertion funfocofob FunFG:ABAranFGF:F-1AontoBG:AontoB

Proof

Step Hyp Ref Expression
1 fdmrn FunFF:domFranF
2 1 biimpi FunFF:domFranF
3 2 3ad2ant1 FunFG:ABAranFF:domFranF
4 3 adantr FunFG:ABAranFGF:F-1AontoBF:domFranF
5 eqid ranFA=ranFA
6 eqid F-1A=F-1A
7 eqid FF-1A=FF-1A
8 simp2 FunFG:ABAranFG:AB
9 8 adantr FunFG:ABAranFGF:F-1AontoBG:AB
10 eqid GranFA=GranFA
11 simpr FunFG:ABAranFGF:F-1AontoBGF:F-1AontoB
12 4 5 6 7 9 10 11 fcoresfo FunFG:ABAranFGF:F-1AontoBGranFA:ranFAontoB
13 12 ex FunFG:ABAranFGF:F-1AontoBGranFA:ranFAontoB
14 sseqin2 AranFranFA=A
15 14 biimpi AranFranFA=A
16 15 3ad2ant3 FunFG:ABAranFranFA=A
17 8 fdmd FunFG:ABAranFdomG=A
18 16 17 eqtr4d FunFG:ABAranFranFA=domG
19 18 reseq2d FunFG:ABAranFGranFA=GdomG
20 8 freld FunFG:ABAranFRelG
21 resdm RelGGdomG=G
22 20 21 syl FunFG:ABAranFGdomG=G
23 19 22 eqtrd FunFG:ABAranFGranFA=G
24 eqidd FunFG:ABAranFB=B
25 23 16 24 foeq123d FunFG:ABAranFGranFA:ranFAontoBG:AontoB
26 13 25 sylibd FunFG:ABAranFGF:F-1AontoBG:AontoB
27 simpr FunFG:ABAranFG:AontoBG:AontoB
28 simpl1 FunFG:ABAranFG:AontoBFunF
29 simpl3 FunFG:ABAranFG:AontoBAranF
30 focofo G:AontoBFunFAranFGF:F-1AontoB
31 27 28 29 30 syl3anc FunFG:ABAranFG:AontoBGF:F-1AontoB
32 31 ex FunFG:ABAranFG:AontoBGF:F-1AontoB
33 26 32 impbid FunFG:ABAranFGF:F-1AontoBG:AontoB