Metamath Proof Explorer


Theorem caofid1

Description: Transfer a right absorption law to the function operation. (Contributed by Mario Carneiro, 28-Jul-2014)

Ref Expression
Hypotheses caofref.1 ( 𝜑𝐴𝑉 )
caofref.2 ( 𝜑𝐹 : 𝐴𝑆 )
caofid0.3 ( 𝜑𝐵𝑊 )
caofid1.4 ( 𝜑𝐶𝑋 )
caofid1.5 ( ( 𝜑𝑥𝑆 ) → ( 𝑥 𝑅 𝐵 ) = 𝐶 )
Assertion caofid1 ( 𝜑 → ( 𝐹f 𝑅 ( 𝐴 × { 𝐵 } ) ) = ( 𝐴 × { 𝐶 } ) )

Proof

Step Hyp Ref Expression
1 caofref.1 ( 𝜑𝐴𝑉 )
2 caofref.2 ( 𝜑𝐹 : 𝐴𝑆 )
3 caofid0.3 ( 𝜑𝐵𝑊 )
4 caofid1.4 ( 𝜑𝐶𝑋 )
5 caofid1.5 ( ( 𝜑𝑥𝑆 ) → ( 𝑥 𝑅 𝐵 ) = 𝐶 )
6 2 ffnd ( 𝜑𝐹 Fn 𝐴 )
7 fnconstg ( 𝐵𝑊 → ( 𝐴 × { 𝐵 } ) Fn 𝐴 )
8 3 7 syl ( 𝜑 → ( 𝐴 × { 𝐵 } ) Fn 𝐴 )
9 fnconstg ( 𝐶𝑋 → ( 𝐴 × { 𝐶 } ) Fn 𝐴 )
10 4 9 syl ( 𝜑 → ( 𝐴 × { 𝐶 } ) Fn 𝐴 )
11 eqidd ( ( 𝜑𝑤𝐴 ) → ( 𝐹𝑤 ) = ( 𝐹𝑤 ) )
12 fvconst2g ( ( 𝐵𝑊𝑤𝐴 ) → ( ( 𝐴 × { 𝐵 } ) ‘ 𝑤 ) = 𝐵 )
13 3 12 sylan ( ( 𝜑𝑤𝐴 ) → ( ( 𝐴 × { 𝐵 } ) ‘ 𝑤 ) = 𝐵 )
14 5 ralrimiva ( 𝜑 → ∀ 𝑥𝑆 ( 𝑥 𝑅 𝐵 ) = 𝐶 )
15 2 ffvelrnda ( ( 𝜑𝑤𝐴 ) → ( 𝐹𝑤 ) ∈ 𝑆 )
16 oveq1 ( 𝑥 = ( 𝐹𝑤 ) → ( 𝑥 𝑅 𝐵 ) = ( ( 𝐹𝑤 ) 𝑅 𝐵 ) )
17 16 eqeq1d ( 𝑥 = ( 𝐹𝑤 ) → ( ( 𝑥 𝑅 𝐵 ) = 𝐶 ↔ ( ( 𝐹𝑤 ) 𝑅 𝐵 ) = 𝐶 ) )
18 17 rspccva ( ( ∀ 𝑥𝑆 ( 𝑥 𝑅 𝐵 ) = 𝐶 ∧ ( 𝐹𝑤 ) ∈ 𝑆 ) → ( ( 𝐹𝑤 ) 𝑅 𝐵 ) = 𝐶 )
19 14 15 18 syl2an2r ( ( 𝜑𝑤𝐴 ) → ( ( 𝐹𝑤 ) 𝑅 𝐵 ) = 𝐶 )
20 fvconst2g ( ( 𝐶𝑋𝑤𝐴 ) → ( ( 𝐴 × { 𝐶 } ) ‘ 𝑤 ) = 𝐶 )
21 4 20 sylan ( ( 𝜑𝑤𝐴 ) → ( ( 𝐴 × { 𝐶 } ) ‘ 𝑤 ) = 𝐶 )
22 19 21 eqtr4d ( ( 𝜑𝑤𝐴 ) → ( ( 𝐹𝑤 ) 𝑅 𝐵 ) = ( ( 𝐴 × { 𝐶 } ) ‘ 𝑤 ) )
23 1 6 8 10 11 13 22 offveq ( 𝜑 → ( 𝐹f 𝑅 ( 𝐴 × { 𝐵 } ) ) = ( 𝐴 × { 𝐶 } ) )