ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  updjudhcoinlf GIF version

Theorem updjudhcoinlf 7078
Description: The composition of the mapping of an element of the disjoint union to the value of the corresponding function and the left injection equals the first function. (Contributed by AV, 27-Jun-2022.)
Hypotheses
Ref Expression
updjud.f (πœ‘ β†’ 𝐹:𝐴⟢𝐢)
updjud.g (πœ‘ β†’ 𝐺:𝐡⟢𝐢)
updjudhf.h 𝐻 = (π‘₯ ∈ (𝐴 βŠ” 𝐡) ↦ if((1st β€˜π‘₯) = βˆ…, (πΉβ€˜(2nd β€˜π‘₯)), (πΊβ€˜(2nd β€˜π‘₯))))
Assertion
Ref Expression
updjudhcoinlf (πœ‘ β†’ (𝐻 ∘ (inl β†Ύ 𝐴)) = 𝐹)
Distinct variable groups:   π‘₯,𝐴   π‘₯,𝐡   π‘₯,𝐢   πœ‘,π‘₯   π‘₯,𝐹
Allowed substitution hints:   𝐺(π‘₯)   𝐻(π‘₯)

Proof of Theorem updjudhcoinlf
Dummy variable π‘Ž is distinct from all other variables.
StepHypRef Expression
1 updjud.f . . . . 5 (πœ‘ β†’ 𝐹:𝐴⟢𝐢)
2 updjud.g . . . . 5 (πœ‘ β†’ 𝐺:𝐡⟢𝐢)
3 updjudhf.h . . . . 5 𝐻 = (π‘₯ ∈ (𝐴 βŠ” 𝐡) ↦ if((1st β€˜π‘₯) = βˆ…, (πΉβ€˜(2nd β€˜π‘₯)), (πΊβ€˜(2nd β€˜π‘₯))))
41, 2, 3updjudhf 7077 . . . 4 (πœ‘ β†’ 𝐻:(𝐴 βŠ” 𝐡)⟢𝐢)
5 ffn 5365 . . . 4 (𝐻:(𝐴 βŠ” 𝐡)⟢𝐢 β†’ 𝐻 Fn (𝐴 βŠ” 𝐡))
64, 5syl 14 . . 3 (πœ‘ β†’ 𝐻 Fn (𝐴 βŠ” 𝐡))
7 inlresf1 7059 . . . 4 (inl β†Ύ 𝐴):𝐴–1-1β†’(𝐴 βŠ” 𝐡)
8 f1fn 5423 . . . 4 ((inl β†Ύ 𝐴):𝐴–1-1β†’(𝐴 βŠ” 𝐡) β†’ (inl β†Ύ 𝐴) Fn 𝐴)
97, 8mp1i 10 . . 3 (πœ‘ β†’ (inl β†Ύ 𝐴) Fn 𝐴)
10 f1f 5421 . . . . 5 ((inl β†Ύ 𝐴):𝐴–1-1β†’(𝐴 βŠ” 𝐡) β†’ (inl β†Ύ 𝐴):𝐴⟢(𝐴 βŠ” 𝐡))
117, 10ax-mp 5 . . . 4 (inl β†Ύ 𝐴):𝐴⟢(𝐴 βŠ” 𝐡)
12 frn 5374 . . . 4 ((inl β†Ύ 𝐴):𝐴⟢(𝐴 βŠ” 𝐡) β†’ ran (inl β†Ύ 𝐴) βŠ† (𝐴 βŠ” 𝐡))
1311, 12mp1i 10 . . 3 (πœ‘ β†’ ran (inl β†Ύ 𝐴) βŠ† (𝐴 βŠ” 𝐡))
14 fnco 5324 . . 3 ((𝐻 Fn (𝐴 βŠ” 𝐡) ∧ (inl β†Ύ 𝐴) Fn 𝐴 ∧ ran (inl β†Ύ 𝐴) βŠ† (𝐴 βŠ” 𝐡)) β†’ (𝐻 ∘ (inl β†Ύ 𝐴)) Fn 𝐴)
156, 9, 13, 14syl3anc 1238 . 2 (πœ‘ β†’ (𝐻 ∘ (inl β†Ύ 𝐴)) Fn 𝐴)
16 ffn 5365 . . 3 (𝐹:𝐴⟢𝐢 β†’ 𝐹 Fn 𝐴)
171, 16syl 14 . 2 (πœ‘ β†’ 𝐹 Fn 𝐴)
18 fvco2 5585 . . . 4 (((inl β†Ύ 𝐴) Fn 𝐴 ∧ π‘Ž ∈ 𝐴) β†’ ((𝐻 ∘ (inl β†Ύ 𝐴))β€˜π‘Ž) = (π»β€˜((inl β†Ύ 𝐴)β€˜π‘Ž)))
199, 18sylan 283 . . 3 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ ((𝐻 ∘ (inl β†Ύ 𝐴))β€˜π‘Ž) = (π»β€˜((inl β†Ύ 𝐴)β€˜π‘Ž)))
20 fvres 5539 . . . . . 6 (π‘Ž ∈ 𝐴 β†’ ((inl β†Ύ 𝐴)β€˜π‘Ž) = (inlβ€˜π‘Ž))
2120adantl 277 . . . . 5 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ ((inl β†Ύ 𝐴)β€˜π‘Ž) = (inlβ€˜π‘Ž))
2221fveq2d 5519 . . . 4 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ (π»β€˜((inl β†Ύ 𝐴)β€˜π‘Ž)) = (π»β€˜(inlβ€˜π‘Ž)))
233a1i 9 . . . . 5 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ 𝐻 = (π‘₯ ∈ (𝐴 βŠ” 𝐡) ↦ if((1st β€˜π‘₯) = βˆ…, (πΉβ€˜(2nd β€˜π‘₯)), (πΊβ€˜(2nd β€˜π‘₯)))))
24 fveq2 5515 . . . . . . . . 9 (π‘₯ = (inlβ€˜π‘Ž) β†’ (1st β€˜π‘₯) = (1st β€˜(inlβ€˜π‘Ž)))
2524eqeq1d 2186 . . . . . . . 8 (π‘₯ = (inlβ€˜π‘Ž) β†’ ((1st β€˜π‘₯) = βˆ… ↔ (1st β€˜(inlβ€˜π‘Ž)) = βˆ…))
26 fveq2 5515 . . . . . . . . 9 (π‘₯ = (inlβ€˜π‘Ž) β†’ (2nd β€˜π‘₯) = (2nd β€˜(inlβ€˜π‘Ž)))
2726fveq2d 5519 . . . . . . . 8 (π‘₯ = (inlβ€˜π‘Ž) β†’ (πΉβ€˜(2nd β€˜π‘₯)) = (πΉβ€˜(2nd β€˜(inlβ€˜π‘Ž))))
2826fveq2d 5519 . . . . . . . 8 (π‘₯ = (inlβ€˜π‘Ž) β†’ (πΊβ€˜(2nd β€˜π‘₯)) = (πΊβ€˜(2nd β€˜(inlβ€˜π‘Ž))))
2925, 27, 28ifbieq12d 3560 . . . . . . 7 (π‘₯ = (inlβ€˜π‘Ž) β†’ if((1st β€˜π‘₯) = βˆ…, (πΉβ€˜(2nd β€˜π‘₯)), (πΊβ€˜(2nd β€˜π‘₯))) = if((1st β€˜(inlβ€˜π‘Ž)) = βˆ…, (πΉβ€˜(2nd β€˜(inlβ€˜π‘Ž))), (πΊβ€˜(2nd β€˜(inlβ€˜π‘Ž)))))
3029adantl 277 . . . . . 6 (((πœ‘ ∧ π‘Ž ∈ 𝐴) ∧ π‘₯ = (inlβ€˜π‘Ž)) β†’ if((1st β€˜π‘₯) = βˆ…, (πΉβ€˜(2nd β€˜π‘₯)), (πΊβ€˜(2nd β€˜π‘₯))) = if((1st β€˜(inlβ€˜π‘Ž)) = βˆ…, (πΉβ€˜(2nd β€˜(inlβ€˜π‘Ž))), (πΊβ€˜(2nd β€˜(inlβ€˜π‘Ž)))))
31 1stinl 7072 . . . . . . . . 9 (π‘Ž ∈ 𝐴 β†’ (1st β€˜(inlβ€˜π‘Ž)) = βˆ…)
3231adantl 277 . . . . . . . 8 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ (1st β€˜(inlβ€˜π‘Ž)) = βˆ…)
3332adantr 276 . . . . . . 7 (((πœ‘ ∧ π‘Ž ∈ 𝐴) ∧ π‘₯ = (inlβ€˜π‘Ž)) β†’ (1st β€˜(inlβ€˜π‘Ž)) = βˆ…)
3433iftrued 3541 . . . . . 6 (((πœ‘ ∧ π‘Ž ∈ 𝐴) ∧ π‘₯ = (inlβ€˜π‘Ž)) β†’ if((1st β€˜(inlβ€˜π‘Ž)) = βˆ…, (πΉβ€˜(2nd β€˜(inlβ€˜π‘Ž))), (πΊβ€˜(2nd β€˜(inlβ€˜π‘Ž)))) = (πΉβ€˜(2nd β€˜(inlβ€˜π‘Ž))))
3530, 34eqtrd 2210 . . . . 5 (((πœ‘ ∧ π‘Ž ∈ 𝐴) ∧ π‘₯ = (inlβ€˜π‘Ž)) β†’ if((1st β€˜π‘₯) = βˆ…, (πΉβ€˜(2nd β€˜π‘₯)), (πΊβ€˜(2nd β€˜π‘₯))) = (πΉβ€˜(2nd β€˜(inlβ€˜π‘Ž))))
36 djulcl 7049 . . . . . 6 (π‘Ž ∈ 𝐴 β†’ (inlβ€˜π‘Ž) ∈ (𝐴 βŠ” 𝐡))
3736adantl 277 . . . . 5 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ (inlβ€˜π‘Ž) ∈ (𝐴 βŠ” 𝐡))
381adantr 276 . . . . . 6 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ 𝐹:𝐴⟢𝐢)
39 2ndinl 7073 . . . . . . . 8 (π‘Ž ∈ 𝐴 β†’ (2nd β€˜(inlβ€˜π‘Ž)) = π‘Ž)
4039adantl 277 . . . . . . 7 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ (2nd β€˜(inlβ€˜π‘Ž)) = π‘Ž)
41 simpr 110 . . . . . . 7 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ π‘Ž ∈ 𝐴)
4240, 41eqeltrd 2254 . . . . . 6 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ (2nd β€˜(inlβ€˜π‘Ž)) ∈ 𝐴)
4338, 42ffvelcdmd 5652 . . . . 5 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ (πΉβ€˜(2nd β€˜(inlβ€˜π‘Ž))) ∈ 𝐢)
4423, 35, 37, 43fvmptd 5597 . . . 4 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ (π»β€˜(inlβ€˜π‘Ž)) = (πΉβ€˜(2nd β€˜(inlβ€˜π‘Ž))))
4522, 44eqtrd 2210 . . 3 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ (π»β€˜((inl β†Ύ 𝐴)β€˜π‘Ž)) = (πΉβ€˜(2nd β€˜(inlβ€˜π‘Ž))))
4640fveq2d 5519 . . 3 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ (πΉβ€˜(2nd β€˜(inlβ€˜π‘Ž))) = (πΉβ€˜π‘Ž))
4719, 45, 463eqtrd 2214 . 2 ((πœ‘ ∧ π‘Ž ∈ 𝐴) β†’ ((𝐻 ∘ (inl β†Ύ 𝐴))β€˜π‘Ž) = (πΉβ€˜π‘Ž))
4815, 17, 47eqfnfvd 5616 1 (πœ‘ β†’ (𝐻 ∘ (inl β†Ύ 𝐴)) = 𝐹)
Colors of variables: wff set class
Syntax hints:   β†’ wi 4   ∧ wa 104   = wceq 1353   ∈ wcel 2148   βŠ† wss 3129  βˆ…c0 3422  ifcif 3534   ↦ cmpt 4064  ran crn 4627   β†Ύ cres 4628   ∘ ccom 4630   Fn wfn 5211  βŸΆwf 5212  β€“1-1β†’wf1 5213  β€˜cfv 5216  1st c1st 6138  2nd c2nd 6139   βŠ” cdju 7035  inlcinl 7043
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 614  ax-in2 615  ax-io 709  ax-5 1447  ax-7 1448  ax-gen 1449  ax-ie1 1493  ax-ie2 1494  ax-8 1504  ax-10 1505  ax-11 1506  ax-i12 1507  ax-bndl 1509  ax-4 1510  ax-17 1526  ax-i9 1530  ax-ial 1534  ax-i5r 1535  ax-13 2150  ax-14 2151  ax-ext 2159  ax-sep 4121  ax-nul 4129  ax-pow 4174  ax-pr 4209  ax-un 4433
This theorem depends on definitions:  df-bi 117  df-dc 835  df-3an 980  df-tru 1356  df-nf 1461  df-sb 1763  df-eu 2029  df-mo 2030  df-clab 2164  df-cleq 2170  df-clel 2173  df-nfc 2308  df-ne 2348  df-ral 2460  df-rex 2461  df-rab 2464  df-v 2739  df-sbc 2963  df-csb 3058  df-dif 3131  df-un 3133  df-in 3135  df-ss 3142  df-nul 3423  df-if 3535  df-pw 3577  df-sn 3598  df-pr 3599  df-op 3601  df-uni 3810  df-br 4004  df-opab 4065  df-mpt 4066  df-tr 4102  df-id 4293  df-iord 4366  df-on 4368  df-suc 4371  df-xp 4632  df-rel 4633  df-cnv 4634  df-co 4635  df-dm 4636  df-rn 4637  df-res 4638  df-ima 4639  df-iota 5178  df-fun 5218  df-fn 5219  df-f 5220  df-f1 5221  df-fo 5222  df-f1o 5223  df-fv 5224  df-1st 6140  df-2nd 6141  df-1o 6416  df-dju 7036  df-inl 7045  df-inr 7046
This theorem is referenced by:  updjud  7080
  Copyright terms: Public domain W3C validator