MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  updjudhcoinrg Structured version   Visualization version   GIF version

Theorem updjudhcoinrg 9356
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.)
Hypotheses
Ref Expression
updjud.f (𝜑𝐹:𝐴𝐶)
updjud.g (𝜑𝐺:𝐵𝐶)
updjudhf.h 𝐻 = (𝑥 ∈ (𝐴𝐵) ↦ if((1st𝑥) = ∅, (𝐹‘(2nd𝑥)), (𝐺‘(2nd𝑥))))
Assertion
Ref Expression
updjudhcoinrg (𝜑 → (𝐻 ∘ (inr ↾ 𝐵)) = 𝐺)
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐶   𝜑,𝑥   𝑥,𝐹   𝑥,𝐺
Allowed substitution hint:   𝐻(𝑥)

Proof of Theorem updjudhcoinrg
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 9354 . . . 4 (𝜑𝐻:(𝐴𝐵)⟶𝐶)
54ffnd 6509 . . 3 (𝜑𝐻 Fn (𝐴𝐵))
6 inrresf 9339 . . . 4 (inr ↾ 𝐵):𝐵⟶(𝐴𝐵)
7 ffn 6508 . . . 4 ((inr ↾ 𝐵):𝐵⟶(𝐴𝐵) → (inr ↾ 𝐵) Fn 𝐵)
86, 7mp1i 13 . . 3 (𝜑 → (inr ↾ 𝐵) Fn 𝐵)
9 frn 6514 . . . 4 ((inr ↾ 𝐵):𝐵⟶(𝐴𝐵) → ran (inr ↾ 𝐵) ⊆ (𝐴𝐵))
106, 9mp1i 13 . . 3 (𝜑 → ran (inr ↾ 𝐵) ⊆ (𝐴𝐵))
11 fnco 6459 . . 3 ((𝐻 Fn (𝐴𝐵) ∧ (inr ↾ 𝐵) Fn 𝐵 ∧ ran (inr ↾ 𝐵) ⊆ (𝐴𝐵)) → (𝐻 ∘ (inr ↾ 𝐵)) Fn 𝐵)
125, 8, 10, 11syl3anc 1367 . 2 (𝜑 → (𝐻 ∘ (inr ↾ 𝐵)) Fn 𝐵)
132ffnd 6509 . 2 (𝜑𝐺 Fn 𝐵)
14 fvco2 6752 . . . 4 (((inr ↾ 𝐵) Fn 𝐵𝑏𝐵) → ((𝐻 ∘ (inr ↾ 𝐵))‘𝑏) = (𝐻‘((inr ↾ 𝐵)‘𝑏)))
158, 14sylan 582 . . 3 ((𝜑𝑏𝐵) → ((𝐻 ∘ (inr ↾ 𝐵))‘𝑏) = (𝐻‘((inr ↾ 𝐵)‘𝑏)))
16 fvres 6683 . . . . . 6 (𝑏𝐵 → ((inr ↾ 𝐵)‘𝑏) = (inr‘𝑏))
1716adantl 484 . . . . 5 ((𝜑𝑏𝐵) → ((inr ↾ 𝐵)‘𝑏) = (inr‘𝑏))
1817fveq2d 6668 . . . 4 ((𝜑𝑏𝐵) → (𝐻‘((inr ↾ 𝐵)‘𝑏)) = (𝐻‘(inr‘𝑏)))
19 fveqeq2 6673 . . . . . . . 8 (𝑥 = (inr‘𝑏) → ((1st𝑥) = ∅ ↔ (1st ‘(inr‘𝑏)) = ∅))
20 2fveq3 6669 . . . . . . . 8 (𝑥 = (inr‘𝑏) → (𝐹‘(2nd𝑥)) = (𝐹‘(2nd ‘(inr‘𝑏))))
21 2fveq3 6669 . . . . . . . 8 (𝑥 = (inr‘𝑏) → (𝐺‘(2nd𝑥)) = (𝐺‘(2nd ‘(inr‘𝑏))))
2219, 20, 21ifbieq12d 4493 . . . . . . 7 (𝑥 = (inr‘𝑏) → if((1st𝑥) = ∅, (𝐹‘(2nd𝑥)), (𝐺‘(2nd𝑥))) = if((1st ‘(inr‘𝑏)) = ∅, (𝐹‘(2nd ‘(inr‘𝑏))), (𝐺‘(2nd ‘(inr‘𝑏)))))
2322adantl 484 . . . . . 6 (((𝜑𝑏𝐵) ∧ 𝑥 = (inr‘𝑏)) → if((1st𝑥) = ∅, (𝐹‘(2nd𝑥)), (𝐺‘(2nd𝑥))) = if((1st ‘(inr‘𝑏)) = ∅, (𝐹‘(2nd ‘(inr‘𝑏))), (𝐺‘(2nd ‘(inr‘𝑏)))))
24 1stinr 9352 . . . . . . . . . 10 (𝑏𝐵 → (1st ‘(inr‘𝑏)) = 1o)
25 1n0 8113 . . . . . . . . . . . 12 1o ≠ ∅
2625neii 3018 . . . . . . . . . . 11 ¬ 1o = ∅
27 eqeq1 2825 . . . . . . . . . . 11 ((1st ‘(inr‘𝑏)) = 1o → ((1st ‘(inr‘𝑏)) = ∅ ↔ 1o = ∅))
2826, 27mtbiri 329 . . . . . . . . . 10 ((1st ‘(inr‘𝑏)) = 1o → ¬ (1st ‘(inr‘𝑏)) = ∅)
2924, 28syl 17 . . . . . . . . 9 (𝑏𝐵 → ¬ (1st ‘(inr‘𝑏)) = ∅)
3029adantl 484 . . . . . . . 8 ((𝜑𝑏𝐵) → ¬ (1st ‘(inr‘𝑏)) = ∅)
3130adantr 483 . . . . . . 7 (((𝜑𝑏𝐵) ∧ 𝑥 = (inr‘𝑏)) → ¬ (1st ‘(inr‘𝑏)) = ∅)
3231iffalsed 4477 . . . . . 6 (((𝜑𝑏𝐵) ∧ 𝑥 = (inr‘𝑏)) → if((1st ‘(inr‘𝑏)) = ∅, (𝐹‘(2nd ‘(inr‘𝑏))), (𝐺‘(2nd ‘(inr‘𝑏)))) = (𝐺‘(2nd ‘(inr‘𝑏))))
3323, 32eqtrd 2856 . . . . 5 (((𝜑𝑏𝐵) ∧ 𝑥 = (inr‘𝑏)) → if((1st𝑥) = ∅, (𝐹‘(2nd𝑥)), (𝐺‘(2nd𝑥))) = (𝐺‘(2nd ‘(inr‘𝑏))))
34 djurcl 9334 . . . . . 6 (𝑏𝐵 → (inr‘𝑏) ∈ (𝐴𝐵))
3534adantl 484 . . . . 5 ((𝜑𝑏𝐵) → (inr‘𝑏) ∈ (𝐴𝐵))
362adantr 483 . . . . . 6 ((𝜑𝑏𝐵) → 𝐺:𝐵𝐶)
37 2ndinr 9353 . . . . . . . 8 (𝑏𝐵 → (2nd ‘(inr‘𝑏)) = 𝑏)
3837adantl 484 . . . . . . 7 ((𝜑𝑏𝐵) → (2nd ‘(inr‘𝑏)) = 𝑏)
39 simpr 487 . . . . . . 7 ((𝜑𝑏𝐵) → 𝑏𝐵)
4038, 39eqeltrd 2913 . . . . . 6 ((𝜑𝑏𝐵) → (2nd ‘(inr‘𝑏)) ∈ 𝐵)
4136, 40ffvelrnd 6846 . . . . 5 ((𝜑𝑏𝐵) → (𝐺‘(2nd ‘(inr‘𝑏))) ∈ 𝐶)
423, 33, 35, 41fvmptd2 6770 . . . 4 ((𝜑𝑏𝐵) → (𝐻‘(inr‘𝑏)) = (𝐺‘(2nd ‘(inr‘𝑏))))
4318, 42eqtrd 2856 . . 3 ((𝜑𝑏𝐵) → (𝐻‘((inr ↾ 𝐵)‘𝑏)) = (𝐺‘(2nd ‘(inr‘𝑏))))
4438fveq2d 6668 . . 3 ((𝜑𝑏𝐵) → (𝐺‘(2nd ‘(inr‘𝑏))) = (𝐺𝑏))
4515, 43, 443eqtrd 2860 . 2 ((𝜑𝑏𝐵) → ((𝐻 ∘ (inr ↾ 𝐵))‘𝑏) = (𝐺𝑏))
4612, 13, 45eqfnfvd 6799 1 (𝜑 → (𝐻 ∘ (inr ↾ 𝐵)) = 𝐺)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 398   = wceq 1533  wcel 2110  wss 3935  c0 4290  ifcif 4466  cmpt 5138  ran crn 5550  cres 5551  ccom 5553   Fn wfn 6344  wf 6345  cfv 6349  1st c1st 7681  2nd c2nd 7682  1oc1o 8089  cdju 9321  inrcinr 9323
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5195  ax-nul 5202  ax-pow 5258  ax-pr 5321  ax-un 7455
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3772  df-csb 3883  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-pss 3953  df-nul 4291  df-if 4467  df-pw 4540  df-sn 4561  df-pr 4563  df-tp 4565  df-op 4567  df-uni 4832  df-br 5059  df-opab 5121  df-mpt 5139  df-tr 5165  df-id 5454  df-eprel 5459  df-po 5468  df-so 5469  df-fr 5508  df-we 5510  df-xp 5555  df-rel 5556  df-cnv 5557  df-co 5558  df-dm 5559  df-rn 5560  df-res 5561  df-ima 5562  df-ord 6188  df-on 6189  df-lim 6190  df-suc 6191  df-iota 6308  df-fun 6351  df-fn 6352  df-f 6353  df-f1 6354  df-fo 6355  df-f1o 6356  df-fv 6357  df-om 7575  df-1st 7683  df-2nd 7684  df-1o 8096  df-dju 9324  df-inr 9326
This theorem is referenced by:  updjud  9357
  Copyright terms: Public domain W3C validator