Metamath Proof Explorer


Theorem focofob

Description: If the domain of a function G equals the range of a function F , then the composition ( G o. F ) is surjective iff G and F as function to the domain of G are both surjective. Symmetric version of fnfocofob including the fact that F is a surjection onto its range. (Contributed by GL and AV, 20-Sep-2024) (Proof shortened by AV, 29-Sep-2024)

Ref Expression
Assertion focofob ( ( 𝐹 : 𝐴𝐵𝐺 : 𝐶𝐷 ∧ ran 𝐹 = 𝐶 ) → ( ( 𝐺𝐹 ) : 𝐴onto𝐷 ↔ ( 𝐹 : 𝐴onto𝐶𝐺 : 𝐶onto𝐷 ) ) )

Proof

Step Hyp Ref Expression
1 ffn ( 𝐹 : 𝐴𝐵𝐹 Fn 𝐴 )
2 fnfocofob ( ( 𝐹 Fn 𝐴𝐺 : 𝐶𝐷 ∧ ran 𝐹 = 𝐶 ) → ( ( 𝐺𝐹 ) : 𝐴onto𝐷𝐺 : 𝐶onto𝐷 ) )
3 1 2 syl3an1 ( ( 𝐹 : 𝐴𝐵𝐺 : 𝐶𝐷 ∧ ran 𝐹 = 𝐶 ) → ( ( 𝐺𝐹 ) : 𝐴onto𝐷𝐺 : 𝐶onto𝐷 ) )
4 dffn4 ( 𝐹 Fn 𝐴𝐹 : 𝐴onto→ ran 𝐹 )
5 1 4 sylib ( 𝐹 : 𝐴𝐵𝐹 : 𝐴onto→ ran 𝐹 )
6 5 3ad2ant1 ( ( 𝐹 : 𝐴𝐵𝐺 : 𝐶𝐷 ∧ ran 𝐹 = 𝐶 ) → 𝐹 : 𝐴onto→ ran 𝐹 )
7 foeq3 ( ran 𝐹 = 𝐶 → ( 𝐹 : 𝐴onto→ ran 𝐹𝐹 : 𝐴onto𝐶 ) )
8 7 3ad2ant3 ( ( 𝐹 : 𝐴𝐵𝐺 : 𝐶𝐷 ∧ ran 𝐹 = 𝐶 ) → ( 𝐹 : 𝐴onto→ ran 𝐹𝐹 : 𝐴onto𝐶 ) )
9 6 8 mpbid ( ( 𝐹 : 𝐴𝐵𝐺 : 𝐶𝐷 ∧ ran 𝐹 = 𝐶 ) → 𝐹 : 𝐴onto𝐶 )
10 9 biantrurd ( ( 𝐹 : 𝐴𝐵𝐺 : 𝐶𝐷 ∧ ran 𝐹 = 𝐶 ) → ( 𝐺 : 𝐶onto𝐷 ↔ ( 𝐹 : 𝐴onto𝐶𝐺 : 𝐶onto𝐷 ) ) )
11 3 10 bitrd ( ( 𝐹 : 𝐴𝐵𝐺 : 𝐶𝐷 ∧ ran 𝐹 = 𝐶 ) → ( ( 𝐺𝐹 ) : 𝐴onto𝐷 ↔ ( 𝐹 : 𝐴onto𝐶𝐺 : 𝐶onto𝐷 ) ) )