Metamath Proof Explorer


Theorem funcnvpr

Description: The converse pair of an unordered pair of ordered pairs is a function if the second components are different. (Contributed by AV, 23-Jan-2021) Remove sethood antecedent. (Revised by Eric Schmidt, 14-Nov-2026)

Ref Expression
Assertion funcnvpr ( 𝐵 ≠ 𝐷 → Fun ◡ { ⟨ 𝐴 , 𝐵 ⟩ , ⟨ 𝐶 , 𝐷 ⟩ } )

Proof

Step Hyp Ref Expression
1 funcnvsn ⊢ Fun ◡ { ⟨ 𝐴 , 𝐵 ⟩ }
2 funcnvsn ⊢ Fun ◡ { ⟨ 𝐶 , 𝐷 ⟩ }
3 1 2 pm3.2i ⊢ ( Fun ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ∧ Fun ◡ { ⟨ 𝐶 , 𝐷 ⟩ } )
4 df-rn ⊢ ran { ⟨ 𝐴 , 𝐵 ⟩ } = dom ◡ { ⟨ 𝐴 , 𝐵 ⟩ }
5 rnsnopss ⊢ ran { ⟨ 𝐴 , 𝐵 ⟩ } ⊆ { 𝐵 }
6 4 5 eqsstrri ⊢ dom ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ⊆ { 𝐵 }
7 df-rn ⊢ ran { ⟨ 𝐶 , 𝐷 ⟩ } = dom ◡ { ⟨ 𝐶 , 𝐷 ⟩ }
8 rnsnopss ⊢ ran { ⟨ 𝐶 , 𝐷 ⟩ } ⊆ { 𝐷 }
9 7 8 eqsstrri ⊢ dom ◡ { ⟨ 𝐶 , 𝐷 ⟩ } ⊆ { 𝐷 }
10 ss2in ⊢ ( ( dom ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ⊆ { 𝐵 } ∧ dom ◡ { ⟨ 𝐶 , 𝐷 ⟩ } ⊆ { 𝐷 } ) → ( dom ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ∩ dom ◡ { ⟨ 𝐶 , 𝐷 ⟩ } ) ⊆ ( { 𝐵 } ∩ { 𝐷 } ) )
11 6 9 10 mp2an ⊢ ( dom ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ∩ dom ◡ { ⟨ 𝐶 , 𝐷 ⟩ } ) ⊆ ( { 𝐵 } ∩ { 𝐷 } )
12 disjsn2 ⊢ ( 𝐵 ≠ 𝐷 → ( { 𝐵 } ∩ { 𝐷 } ) = ∅ )
13 11 12 sseqtrid ⊢ ( 𝐵 ≠ 𝐷 → ( dom ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ∩ dom ◡ { ⟨ 𝐶 , 𝐷 ⟩ } ) ⊆ ∅ )
14 ss0 ⊢ ( ( dom ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ∩ dom ◡ { ⟨ 𝐶 , 𝐷 ⟩ } ) ⊆ ∅ → ( dom ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ∩ dom ◡ { ⟨ 𝐶 , 𝐷 ⟩ } ) = ∅ )
15 13 14 syl ⊢ ( 𝐵 ≠ 𝐷 → ( dom ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ∩ dom ◡ { ⟨ 𝐶 , 𝐷 ⟩ } ) = ∅ )
16 funun ⊢ ( ( ( Fun ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ∧ Fun ◡ { ⟨ 𝐶 , 𝐷 ⟩ } ) ∧ ( dom ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ∩ dom ◡ { ⟨ 𝐶 , 𝐷 ⟩ } ) = ∅ ) → Fun ( ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ∪ ◡ { ⟨ 𝐶 , 𝐷 ⟩ } ) )
17 3 15 16 sylancr ⊢ ( 𝐵 ≠ 𝐷 → Fun ( ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ∪ ◡ { ⟨ 𝐶 , 𝐷 ⟩ } ) )
18 df-pr ⊢ { ⟨ 𝐴 , 𝐵 ⟩ , ⟨ 𝐶 , 𝐷 ⟩ } = ( { ⟨ 𝐴 , 𝐵 ⟩ } ∪ { ⟨ 𝐶 , 𝐷 ⟩ } )
19 18 cnveqi ⊢ ◡ { ⟨ 𝐴 , 𝐵 ⟩ , ⟨ 𝐶 , 𝐷 ⟩ } = ◡ ( { ⟨ 𝐴 , 𝐵 ⟩ } ∪ { ⟨ 𝐶 , 𝐷 ⟩ } )
20 cnvun ⊢ ◡ ( { ⟨ 𝐴 , 𝐵 ⟩ } ∪ { ⟨ 𝐶 , 𝐷 ⟩ } ) = ( ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ∪ ◡ { ⟨ 𝐶 , 𝐷 ⟩ } )
21 19 20 eqtri ⊢ ◡ { ⟨ 𝐴 , 𝐵 ⟩ , ⟨ 𝐶 , 𝐷 ⟩ } = ( ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ∪ ◡ { ⟨ 𝐶 , 𝐷 ⟩ } )
22 21 funeqi ⊢ ( Fun ◡ { ⟨ 𝐴 , 𝐵 ⟩ , ⟨ 𝐶 , 𝐷 ⟩ } ↔ Fun ( ◡ { ⟨ 𝐴 , 𝐵 ⟩ } ∪ ◡ { ⟨ 𝐶 , 𝐷 ⟩ } ) )
23 17 22 sylibr ⊢ ( 𝐵 ≠ 𝐷 → Fun ◡ { ⟨ 𝐴 , 𝐵 ⟩ , ⟨ 𝐶 , 𝐷 ⟩ } )