Metamath Proof Explorer


Theorem updjudhcoinrg

Description: The composition of the mapping of an element of the disjoint union to the value of the corresponding function and the right injection equals the second function. (Contributed by AV, 27-Jun-2022)

Ref Expression
Hypotheses updjud.f φ F : A C
updjud.g φ G : B C
updjudhf.h H = x A ⊔︀ B if 1 st x = F 2 nd x G 2 nd x
Assertion updjudhcoinrg φ H inr B = G

Proof

Step Hyp Ref Expression
1 updjud.f φ F : A C
2 updjud.g φ G : B C
3 updjudhf.h H = x A ⊔︀ B if 1 st x = F 2 nd x G 2 nd x
4 1 2 3 updjudhf φ H : A ⊔︀ B C
5 4 ffnd φ H Fn A ⊔︀ B
6 inrresf inr B : B A ⊔︀ B
7 ffn inr B : B A ⊔︀ B inr B Fn B
8 6 7 mp1i φ inr B Fn B
9 frn inr B : B A ⊔︀ B ran inr B A ⊔︀ B
10 6 9 mp1i φ ran inr B A ⊔︀ B
11 fnco H Fn A ⊔︀ B inr B Fn B ran inr B A ⊔︀ B H inr B Fn B
12 5 8 10 11 syl3anc φ H inr B Fn B
13 2 ffnd φ G Fn B
14 fvco2 inr B Fn B b B H inr B b = H inr B b
15 8 14 sylan φ b B H inr B b = H inr B b
16 fvres b B inr B b = inr b
17 16 adantl φ b B inr B b = inr b
18 17 fveq2d φ b B H inr B b = H inr b
19 fveqeq2 x = inr b 1 st x = 1 st inr b =
20 2fveq3 x = inr b F 2 nd x = F 2 nd inr b
21 2fveq3 x = inr b G 2 nd x = G 2 nd inr b
22 19 20 21 ifbieq12d x = inr b if 1 st x = F 2 nd x G 2 nd x = if 1 st inr b = F 2 nd inr b G 2 nd inr b
23 22 adantl φ b B x = inr b if 1 st x = F 2 nd x G 2 nd x = if 1 st inr b = F 2 nd inr b G 2 nd inr b
24 1stinr b B 1 st inr b = 1 𝑜
25 1n0 1 𝑜
26 25 neii ¬ 1 𝑜 =
27 eqeq1 1 st inr b = 1 𝑜 1 st inr b = 1 𝑜 =
28 26 27 mtbiri 1 st inr b = 1 𝑜 ¬ 1 st inr b =
29 24 28 syl b B ¬ 1 st inr b =
30 29 adantl φ b B ¬ 1 st inr b =
31 30 adantr φ b B x = inr b ¬ 1 st inr b =
32 31 iffalsed φ b B x = inr b if 1 st inr b = F 2 nd inr b G 2 nd inr b = G 2 nd inr b
33 23 32 eqtrd φ b B x = inr b if 1 st x = F 2 nd x G 2 nd x = G 2 nd inr b
34 djurcl b B inr b A ⊔︀ B
35 34 adantl φ b B inr b A ⊔︀ B
36 2 adantr φ b B G : B C
37 2ndinr b B 2 nd inr b = b
38 37 adantl φ b B 2 nd inr b = b
39 simpr φ b B b B
40 38 39 eqeltrd φ b B 2 nd inr b B
41 36 40 ffvelrnd φ b B G 2 nd inr b C
42 3 33 35 41 fvmptd2 φ b B H inr b = G 2 nd inr b
43 18 42 eqtrd φ b B H inr B b = G 2 nd inr b
44 38 fveq2d φ b B G 2 nd inr b = G b
45 15 43 44 3eqtrd φ b B H inr B b = G b
46 12 13 45 eqfnfvd φ H inr B = G